/* =============================================
   HERO SLIDER - Standardized Design System
   ============================================= */
.hero-slider {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 700px;
    overflow: hidden;
    background: #0a0a0a;
    margin-top: 0;
    padding: 0 !important;
    /* Limpiar cualquier padding de section genérico */
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s linear;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente que oscurece el fondo para legibilidad, asegurando que cubra todo */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, transparent 20%);
}

.slide-inner {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 210px 50px 0 !important;
    /* Forzado incremento para limpiar el header doble row */
}

.hero-content {
    color: white;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.5);
    color: #ff6b35;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.cta-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
    background: #ff8b55;
}

.hero-floating-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
    animation: floatImg 6s ease-in-out infinite;
    border-radius: 20px;
}

@keyframes floatImg {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Forzar centrado de controles */
.hero-slider .slider-controls {
    position: absolute !important;
    bottom: 60px !important;
    left: 50% !important;
    right: auto !important;
    /* Desanclar del right si existía */
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 25px !important;
}

.slider-bullets {
    display: flex;
    gap: 12px;
}

.bullet {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.bullet.active {
    background: #ff6b35;
    border-color: #ff6b35;
    transform: scale(1.3);
}

.slider-nav {
    display: flex;
    gap: 15px;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.nav-arrow:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    transform: scale(1.1);
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 40;
}

.progress-fill {
    height: 100%;
    background: #ff6b35;
    width: 0%;
}

#main-content {
    padding-top: 0;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Hero mobile ── */
@media (max-width: 768px) {
    .hero-slider {
        /* dvh: dynamic viewport height — descuenta barra del navegador en iOS Safari */
        height: 62dvh;
        height: 62svh; /* fallback para browsers sin dvh */
        min-height: 440px;  /* pantallas bajas */
        max-height: 620px;  /* cap para iPhone Pro Max y pantallas muy altas */
    }

    .slide-inner {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding: 88px 20px 68px !important; /* top: clearance header | bottom: clearance controles */
        gap: 0;
    }

    .hero-floating-box { display: none; }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.97rem;
        margin-bottom: 24px;
        max-width: 100%;
        line-height: 1.55;
    }

    .hero-pill {
        font-size: 0.68rem;
        padding: 5px 13px;
        margin-bottom: 14px;
    }

    .cta-button {
        padding: 13px 30px;
        font-size: 0.9rem;
    }

    .hero-slider .slider-controls {
        bottom: 20px !important;
        gap: 14px !important;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60dvh;
        height: 60svh;
        min-height: 400px;
        max-height: 560px;
    }

    .slide-inner {
        padding: 76px 18px 60px !important;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.1rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-pill {
        font-size: 0.65rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    .hero-slider .slider-controls {
        bottom: 16px !important;
        gap: 12px !important;
    }
}

/* Z Fold 5 y pantallas muy estrechas */
@media (max-width: 360px) {
    .hero-slider {
        height: 58dvh;
        height: 58svh;
        min-height: 380px;
        max-height: 520px;
    }

    .slide-inner {
        padding: 82px 14px 14px !important;
    }

    .hero-title {
        font-size: clamp(1.4rem, 9vw, 1.85rem);
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-pill {
        font-size: 0.62rem;
        padding: 4px 10px;
    }

    .cta-button {
        padding: 11px 22px;
        font-size: 0.83rem;
    }
}