/* =====================================================
   ETB HOME PAGE - PIXEL PERFECT CSS v2.0
   Enterprise Refactor - Production Ready
   
   Based on design references:
   - 1_Desktop.png (Full Design)
   - Frame 12.png (Hero Section Figma Specs)
   - Card.png (Card Component)
   ===================================================== */

/* ===== CSS VARIABLES - DESIGN SYSTEM ===== */
:root {
    /* Primary Colors */
    --etb-cyan: #0092BC;
    --etb-blue-deep: #214780;
    --etb-blue-sky: #004191;
    --etb-neon: #00FFFF;
    
    /* Neutrals */
    --etb-white: #FFFFFF;
    --etb-gray-100: #515151;
    --etb-gray-75: #7A7A7A;
    --etb-gray-50: #A8A8A8;
    --etb-gray-25: #D5D5D5;
    --etb-gray-bg: #F8F8F9;
    
    /* Border Radius - Design System */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Image Sizes - From Figma Specs */
    --card-center-width: 635px;
    --card-center-height: 400px;
    --card-side-width: 438px;
    --card-side-height: 300px;
    --ofertas-main-width: 635px;
    --ofertas-main-height: 435px;
    --ofertas-thumb-width: 180px;
    --ofertas-thumb-height: 210px;
}

/* =====================================================
   1. HERO SECTION - PIXEL PERFECT (Frame 12.png)
   
   Specifications:
   - Gradient: radial-gradient(circle at 50% 30%, #00FFFF 0%, #044A8B 100%)
   - Border-radius: 29.67px
   - Padding: 45px (top), 137px (right), 40px (bottom), 137px (left)
   - Viewport spacing: 10px left/right
   - Internal spacing: 20px vertical rhythm
   ===================================================== */
.hero-section-home {
    /* Radial gradient exacto de Figma - NOT centered approximation */
    background: radial-gradient(circle at 50% 30%, #00FFFF 0%, #044A8B 100%);
    
    /* Layout - EXACT Figma specs */
    position: relative;
    width: calc(100% - 20px); /* 10px left + 10px right viewport spacing */
    max-width: 1398px;
    height: 405px; /* Fixed height from Figma */
    min-height: 405px; /* Ensure minimum height matches */
    
    /* Margin - 10px viewport spacing + proper bottom spacing */
    margin: 15px auto 60px auto; /* 60px bottom for section spacing */
    
    /* Border radius exacto de Figma: 29.67px */
    border-radius: 29.67px;
    
    /* Content overflow */
    overflow: hidden;
    
    /* Flexbox centering */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Padding exacto de Figma: top 45px, right 137px, bottom 40px, left 137px */
    padding: 45px 137px 40px 137px;
    
    /* Box model */
    box-sizing: border-box;
}

/* Decorative curves */
.hero-curve-top {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
}

.hero-curve-bottom {
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
}

/* Content wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px; /* Internal vertical spacing - 20px rhythm */
}

/* =====================================================
   HERO TYPOGRAPHY - PIXEL PERFECT
   
   Title: 48px Lexend Deca, font-weight 700-800, line-height 100%
   Subtitle: 16px Lexend Deca, font-weight 500, margin-bottom 20px
   ===================================================== */

/* Title: 48px Lexend Deca, line-height 100%, text-align center */
.hero-title-main {
    font-family: 'Lexend Deca', 'Lexend', sans-serif;
    font-size: clamp(32px, 5vw, 48px); /* Fluid typography */
    line-height: 1; /* 100% line-height */
    text-align: center;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0; /* NO browser defaults */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title-light {
    font-weight: 500; /* Medium weight for "Una conexión" */
    display: block;
}

.hero-title-bold {
    font-weight: 700; /* Bold weight for "rápida y confiable" */
    display: block;
}

/* Subtitle: 16px Lexend Deca, weight 500, spacing-below 20px exact */
.hero-subtitle-main {
    font-family: 'Lexend Deca', 'Lexend', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500; /* Medium weight */
    line-height: 1; /* 100% */
    text-align: center;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0;
}

/* Search wrapper: 664x70px, radius 25px */
.hero-search-wrapper {
    width: 664px;
    max-width: 100%;
    height: 70px;
    background: #F8F8F9;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 15px 37px;
    box-sizing: border-box;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Lexend', 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400; /* Regular weight */
    color: #333333;
    background: transparent;
    line-height: 1.5; /* Match input height center alignment */
}

.hero-search-input::placeholder {
    color: rgba(153, 153, 153, 0.8); /* Match design opacity */
    font-weight: 400;
}

.hero-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333333;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.hero-search-btn:hover {
    color: #0092CB;
}

/* Invoice button: 664x70px, radius 25px, bg #214780, shadow */
.hero-invoice-btn {
    width: 664px;
    max-width: 100%;
    height: 70px;
    background: #214780;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Lexend', 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0px 59.34px 118.68px -22.25px rgba(0, 0, 0, 0.14);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-invoice-btn:hover {
    background: #1a3a66;
    transform: translateY(-2px);
}

.hero-invoice-btn svg {
    flex-shrink: 0;
}

/* Legacy selectors for JS compatibility - hidden */
.search-bar-hero { display: none; }
.search-input-hero { display: none; }
.search-btn-hero { display: none; }
.btn-pagar-facturas { display: none; }
.hero-curve-decoration { display: none; }

/* =====================================================
   HERO RESPONSIVE LAYOUT
   
   Breakpoints: 1440px, 1024px, 768px, 480px
   - Maintain 10px side margin at all widths
   - Scale padding proportionally (NOT fixed overflow)
   - Keep gradient ratio consistent
   - Prevent text overflow or wrapping issues
   ===================================================== */

/* Desktop Large - 1440px */
@media (max-width: 1440px) {
    .hero-section-home {
        max-width: calc(100% - 40px);
        padding: 45px 80px 40px 80px; /* Scale padding proportionally */
        margin-bottom: 50px; /* Proportional spacing */
    }
}

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .hero-section-home {
        height: auto; /* Allow flexible height on tablet */
        min-height: 360px;
        padding: 40px 50px 35px 50px;
        border-radius: 26px; /* Proportional radius */
        margin-bottom: 40px;
    }
    
    .hero-search-wrapper,
    .hero-invoice-btn {
        width: 100%;
        max-width: 560px;
    }
    
    .hero-title-main {
        font-size: clamp(32px, 4.5vw, 40px);
    }
    
    .hero-content-wrapper {
        gap: 18px;
    }
}

/* Small Tablet - 768px */
@media (max-width: 768px) {
    .hero-section-home {
        margin: 16px auto 32px auto; /* 32px bottom spacing */
        max-width: calc(100% - 32px); /* 16px each side */
        height: auto;
        padding: 32px 24px 28px 24px;
        min-height: 320px;
        border-radius: 24px;
    }
    
    .hero-title-main {
        font-size: clamp(28px, 5vw, 32px);
    }
    
    .hero-subtitle-main {
        font-size: 14px;
    }
    
    .hero-search-wrapper,
    .hero-invoice-btn {
        width: 100%;
        max-width: 100%;
        height: 56px;
    }
    
    .hero-search-wrapper {
        padding: 12px 20px;
    }
    
    .hero-curve-top,
    .hero-curve-bottom {
        width: 280px;
        height: 280px;
    }
    
    .hero-content-wrapper {
        gap: 16px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .hero-section-home {
        margin: 12px auto 24px auto; /* 24px bottom spacing */
        max-width: calc(100% - 24px); /* 12px each side */
        height: auto;
        padding: 24px 16px 20px 16px;
        min-height: 280px;
        border-radius: 20px;
    }
    
    .hero-title-main {
        font-size: clamp(24px, 6vw, 28px);
    }
    
    .hero-subtitle-main {
        font-size: 13px;
    }
    
    .hero-search-wrapper,
    .hero-invoice-btn {
        width: 100%;
        height: 50px;
        margin-bottom: 0; /* Stack properly */
    }
    
    .hero-search-wrapper {
        padding: 10px 16px;
    }
    
    .hero-content-wrapper {
        gap: 14px;
    }
    
    .hero-curve-top,
    .hero-curve-bottom {
        width: 200px;
        height: 200px;
    }
}

/* =====================================================
   2. PLANES SECTION - "Planes que se adaptan a tu hogar"
   ===================================================== */
.planes-section-home {
    background: var(--etb-gray-bg);
    padding: 60px 0;
    margin-top: 0; /* Remove conflicting margin - hero has margin-bottom */
}

.section-title-home {
    color: var(--etb-blue-deep);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}

.section-subtitle-home {
    color: var(--etb-gray-75);
    font-size: 1rem;
    margin-top: 8px;
}

/* Carousel Wrapper */
.carousel-wrapper-home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 60px;
}

/* Carousel Container */
.carousel-container-home {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
    /* Reserve space for CLS prevention */
    min-height: 420px;
}

/* Carousel Track - Hogar */
.carousel-track-hogar {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

/* Card Hogar - Base (Side) */
.carousel-card-hogar-home {
    flex-shrink: 0;
}

.plan-card-home {
    width: var(--card-side-width);
    height: var(--card-side-height);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    transform: scale(0.85);
    opacity: 0.6;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Card Hogar - Active (Center) - 635x400px */
.plan-card-home.active {
    width: var(--card-center-width) !important;
    height: var(--card-center-height) !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    z-index: 10 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.plan-card-home:hover {
    transform: scale(0.88);
}

.plan-card-home.active:hover {
    transform: scale(1.02) !important;
}

/* Card Background */
.plan-card-bg-home {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Card Overlay */
.plan-card-overlay-home {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

/* Card Decorative Curve */
.plan-card-curve-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    border-bottom: 5px solid white;
    border-right: 5px solid white;
    border-bottom-right-radius: 100%;
    z-index: 3;
}

/* Card Content */
.plan-card-content-home {
    position: relative;
    z-index: 4;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: white;
}

.plan-card-top-home {
    display: flex;
    flex-direction: column;
}

.plan-badge-home {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 16px;
}

.plan-intro-home {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.plan-name-home {
    font-size: 1.1rem;
    font-weight: 700;
}

.plan-card-bottom-home {
    display: flex;
    flex-direction: column;
}

.plan-price-label-home {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.plan-price-home {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.plan-details-home {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 4px;
}

.plan-highlight-home {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--etb-neon);
}

/* Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--etb-white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: var(--etb-cyan);
}

.carousel-nav-btn:hover {
    background: var(--etb-cyan);
    color: var(--etb-white);
    box-shadow: 0 6px 16px rgba(0, 146, 188, 0.4);
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

/* Dots */
.carousel-dots-home {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.dot-home {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--etb-gray-25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot-home:hover {
    background: var(--etb-gray-75);
}

.dot-home.active {
    background: var(--etb-cyan);
}

/* Beneficios Grid */
.beneficios-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.beneficio-card-home {
    background: var(--etb-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.beneficio-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.beneficio-icon-home {
    width: 48px;
    height: 48px;
    color: var(--etb-cyan);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beneficio-text-home h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--etb-blue-deep);
    margin: 0 0 4px 0;
}

.beneficio-text-home p {
    font-size: 0.85rem;
    color: var(--etb-cyan);
    margin: 0;
}

/* =====================================================
   3. BANNER INSTALACIÓN
   ===================================================== */
.banner-instalacion-home {
    background: var(--etb-blue-deep);
    padding: 20px 0;
}

.banner-content-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.banner-text-home {
    color: var(--etb-white);
    font-size: 1rem;
    font-weight: 400;
}

.banner-text-home strong {
    font-weight: 700;
}

.btn-pasate-home {
    display: inline-block;
    background: transparent;
    color: var(--etb-white);
    border: 2px solid var(--etb-white);
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pasate-home:hover {
    background: var(--etb-white);
    color: var(--etb-blue-deep);
}

/* =====================================================
   4. CONEXIÓN SECTION - "Tu conexión te acompaña"
   ===================================================== */
.conexion-section-home {
    background: var(--etb-white);
    padding: 60px 0;
}

/* Mobile Carousel Track */
.carousel-track-mobile {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.carousel-card-mobile-home {
    flex-shrink: 0;
}

/* Mobile Card - Base (Side) */
.mobile-card-home {
    width: var(--card-side-width);
    height: var(--card-side-height);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    transform: scale(0.85);
    opacity: 0.6;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0092BC 0%, #044A8B 100%);
}

/* Mobile Card - Active (Center) - 635x400px */
.mobile-card-home.active {
    width: var(--card-center-width) !important;
    height: var(--card-center-height) !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    z-index: 10 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.mobile-card-featured {
    background: linear-gradient(135deg, #044A8B 0%, #214780 100%);
}

.mobile-card-image-home {
    height: 55%;
    overflow: hidden;
}

.mobile-card-image-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-card-content-home {
    padding: 16px 20px;
    color: var(--etb-white);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-badge-home {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 4px;
    line-height: 1.3;
}

.mobile-badge-featured {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.mobile-plan-name-home {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mobile-plan-name-featured {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.mobile-price-label-home {
    font-size: 0.85rem;
    font-weight: 400;
    display: block;
}

.mobile-price-home {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.mobile-price-featured {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.mobile-promo-home {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.mobile-apps-home {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.app-logo {
    height: 20px;
    width: auto;
}

.mobile-apps-text {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.esim-badge-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-top: auto;
    width: fit-content;
}

.esim-label {
    background: var(--etb-cyan);
    color: var(--etb-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.esim-text {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Mobile Tabs */
.movil-tabs-home {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.movil-tab-home {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--etb-white);
    border: 1px solid var(--etb-gray-25);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.movil-tab-home:hover {
    border-color: var(--etb-cyan);
    box-shadow: 0 4px 12px rgba(0, 146, 188, 0.15);
}

.movil-tab-icon-home {
    color: var(--etb-cyan);
}

.movil-tab-text-home h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--etb-blue-deep);
    margin: 0 0 2px 0;
}

.movil-tab-text-home p {
    font-size: 0.85rem;
    color: var(--etb-cyan);
    margin: 0;
}

/* =====================================================
   5. OFERTAS SECTION
   ===================================================== */
.ofertas-section-home {
    background: var(--etb-cyan);
    padding: 60px 0;
}

.ofertas-title-home {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--etb-white);
    text-align: center;
    margin-bottom: 40px;
}

/* Gallery Layout - 635x435 main, 180x210 thumbs */
.ofertas-gallery-home {
    display: grid;
    grid-template-columns: var(--ofertas-main-width) auto;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.ofertas-main-home {
    width: var(--ofertas-main-width);
    height: var(--ofertas-main-height);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ofertas-main-img-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.ofertas-thumbnails-home {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ofertas-thumb-home {
    width: var(--ofertas-thumb-width);
    height: var(--ofertas-thumb-height);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.8;
    border: 3px solid transparent;
}

.ofertas-thumb-home:hover {
    opacity: 1;
    transform: scale(1.05);
}

.ofertas-thumb-home.active {
    opacity: 1;
    border-color: var(--etb-white);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.ofertas-thumb-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   6. BENEFICIOS CAROUSEL SECTION
   ===================================================== */
.beneficios-section-home {
    background: var(--etb-gray-bg);
    padding: 60px 0;
}

.beneficios-title-home {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--etb-blue-deep);
    text-align: center;
    margin-bottom: 8px;
}

.beneficios-subtitle-home {
    font-size: 1rem;
    color: var(--etb-gray-75);
    text-align: center;
    margin-bottom: 40px;
}

.beneficios-carousel-track {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.carousel-card-beneficio-home {
    flex-shrink: 0;
}

/* Beneficio Card - Base (Side) */
.beneficio-image-card {
    width: var(--card-side-width);
    height: var(--card-side-height);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    transform: scale(0.85);
    opacity: 0.6;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
}

/* Beneficio Card - Active (Center) - 635x400px */
.beneficio-image-card.active {
    width: var(--card-center-width) !important;
    height: var(--card-center-height) !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    z-index: 10 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.beneficio-image-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 146, 188, 0.7);
}

.beneficio-image-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--etb-white);
    text-align: center;
    line-height: 1.2;
}

.beneficios-dots-home {
    margin-top: 40px;
}

/* =====================================================
   7. FAQ SECTION
   ===================================================== */
.faq-section-home {
    background: var(--etb-white);
    padding: 60px 0;
}

.faq-title-home {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--etb-blue-deep);
    text-align: center;
    margin-bottom: 40px;
}

.faq-container-home {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item-home {
    border: 2px solid var(--etb-blue-deep);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
    background: var(--etb-white);
    transition: all 0.3s ease;
}

.faq-item-home:hover {
    box-shadow: 0 8px 16px rgba(33, 71, 128, 0.12);
}

.faq-item-home:last-child {
    margin-bottom: 0;
}

.faq-question-home {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.faq-question-home span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--etb-blue-deep);
}

.faq-icon-home {
    width: 24px;
    height: 24px;
    color: var(--etb-blue-deep);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question-home.active .faq-icon-home {
    transform: rotate(180deg);
}

.faq-answer-home {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-home.active {
    max-height: 300px;
    padding-top: 16px;
}

.faq-answer-home p {
    font-size: 0.95rem;
    color: var(--etb-gray-100);
    line-height: 1.6;
    margin: 0;
}

/* FAQ CTA */
.faq-cta-home {
    text-align: center;
    margin-top: 40px;
}

.faq-cta-home p {
    font-size: 1rem;
    color: var(--etb-gray-75);
    margin-bottom: 16px;
}

.btn-chat-home {
    display: inline-block;
    background: var(--etb-cyan);
    color: var(--etb-white);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 146, 188, 0.3);
}

.btn-chat-home:hover {
    background: #007a9c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 146, 188, 0.4);
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --card-center-width: 500px;
        --card-center-height: 320px;
        --card-side-width: 350px;
        --card-side-height: 240px;
        --ofertas-main-width: 500px;
        --ofertas-main-height: 350px;
    }
    
    .section-title-home,
    .ofertas-title-home,
    .beneficios-title-home,
    .faq-title-home {
        font-size: 1.875rem;
    }
    
    .plan-price-home {
        font-size: 2.75rem;
    }
    
    .beneficios-grid-home {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .ofertas-gallery-home {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .ofertas-thumbnails-home {
        flex-direction: row;
        justify-content: center;
    }
    
    .ofertas-thumb-home {
        width: 150px;
        height: 175px;
    }
    
    /* Reserve space for carousels - CLS prevention */
    .carousel-container-home {
        min-height: 340px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --card-center-width: 85vw;
        --card-center-height: 400px;
        --card-side-width: 85vw;
        --card-side-height: 400px;
        --ofertas-main-width: 90vw;
        --ofertas-main-height: 300px;
        --ofertas-thumb-width: 120px;
        --ofertas-thumb-height: 140px;
    }
    
    .section-title-home,
    .ofertas-title-home,
    .beneficios-title-home,
    .faq-title-home {
        font-size: 1.5rem;
    }
    
    .carousel-wrapper-home {
        padding: 0 40px;
    }
    
    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .plan-card-home,
    .mobile-card-home,
    .beneficio-image-card {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    
    .plan-card-home:not(.active),
    .mobile-card-home:not(.active),
    .beneficio-image-card:not(.active) {
        display: none;
    }
    
    .movil-tabs-home {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .movil-tab-home {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .banner-content-home {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .faq-question-home span {
        font-size: 0.95rem;
    }
    
    /* Reserve space for carousels - CLS prevention */
    .carousel-container-home {
        min-height: 420px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .plan-price-home {
        font-size: 2.5rem;
    }
    
    .mobile-price-featured {
        font-size: 2.25rem;
    }
    
    .carousel-wrapper-home {
        padding: 0 32px;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
    }
}
