/* Rain-X Page Styles */

/* Variables CSS */
:root {
    --primary-dark: #02081C;
    --secondary-dark: #030D2B;
    --accent-blue: #0A2680;
    --text-white: white;
    --text-gray: rgba(255, 255, 255, 0.50);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.25);
    --border-medium: rgba(255, 255, 255, 0.45);
    --border-strong: rgba(255, 255, 255, 0.50);
}

/* General Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Rain-X Hero Section */
.rainx-hero-section {
    width: 100%;
    height: auto;
    min-height: 600px;
    position: relative;
    margin: 0;
    padding: 0;
}

.rainx-hero-background {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.rainx-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}

/* Mostrar solo imagen desktop por defecto */
.rainx-hero-tablet,
.rainx-hero-mobile {
    display: none;
}

.rainx-hero-desktop {
    display: block;
}

/* Rainx2 images - hidden by default on desktop */
.rainx-hero-tablet-2,
.rainx-hero-mobile-2 {
    display: none;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto;
    object-fit: fill !important;
    object-position: center;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* Rain-X Cycle Section */
.rainx-cycle-section {
    width: 100%;
    background: white;
    padding: 64px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rainx-cycle-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rainx-cycle-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Rain-X Stores Section */
.rainx-stores-section {
    width: 100%;
    background: var(--primary-dark);
    padding: 64px 0;
}

.rainx-stores-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.rainx-stores-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: white;
    text-align: center;
    margin-bottom: 64px;
}

.rainx-stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 124px;
    max-width: 945px;
    margin: 0 auto;
}

.store-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 22px;
    padding: 24px;
    min-height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.store-logo {
    max-width: 100%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
}

/* Rain-X FAQ Section */
.rainx-faq-section {
    width: 100%;
    background: var(--primary-dark);
    padding: 64px 0 48px;
}

.rainx-faq-container {
    max-width: 852px;
    margin: 0 auto;
    padding: 0 32px;
}

.rainx-faq-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: white;
    margin-bottom: 48px;
}

.rainx-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rainx-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.rainx-faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rainx-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 24px;
}

.rainx-faq-question-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-align: left;
    flex: 1;
}

.rainx-faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.rainx-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.rainx-faq-item.active .rainx-faq-answer {
    padding-top: 16px;
}

.rainx-faq-answer p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.rainx-ad-banner {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Cambiar a imagen tablet */
    .rainx-hero-desktop {
        display: none;
    }
    
    .rainx-hero-tablet {
        display: block;
    }
    
    .rainx-hero-mobile {
        display: none;
    }
    
    .rainx-hero-section {
        height: auto;
        min-height: auto;
        padding-top: 80px;
    }
    
    .rainx-hero-background {
        height: auto;
    }
    
    .rainx-hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    .rainx-cycle-section {
        display: none;
    }
    
    /* Mostrar Rainx2 en tablet */
    .rainx-hero-tablet-2 {
        display: block;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto;
        object-fit: fill !important;
        object-position: center;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .rainx-hero-mobile-2 {
        display: none;
    }
    
    .rainx-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .rainx-stores-title,
    .rainx-faq-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /* Usar imagen tablet también en móvil */
    .rainx-hero-desktop {
        display: none;
    }
    
    .rainx-hero-tablet {
        display: block;
    }
    
    .rainx-hero-mobile {
        display: none;
    }
    
    .rainx-hero-section {
        height: auto;
        min-height: auto;
        padding-top: 80px;
        margin-bottom: 40px;
    }
    
    .rainx-hero-background {
        height: auto;
    }
    
    .rainx-hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    .rainx-cycle-section {
        display: none;
    }
    
    /* Mostrar Rainx2 en móvil */
    .rainx-hero-tablet-2 {
        display: none;
    }
    
    .rainx-hero-mobile-2 {
        display: block;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto;
        object-fit: fill !important;
        object-position: center;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .rainx-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .rainx-stores-title,
    .rainx-faq-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .rainx-faq-question-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .rainx-hero-section {
        height: auto;
        min-height: auto;
        padding-top: 80px;
        margin-bottom: 40px;
    }
    
    .rainx-hero-background {
        height: auto;
    }
    
    .rainx-hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    .rainx-stores-container,
    .rainx-faq-container {
        padding: 0 20px;
    }
    
    .rainx-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

