/* ===== Hero base (páginas internas / un solo slide) ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(420px, 72vh, 720px);
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: inherit;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
    padding: 40px 0;
    pointer-events: none;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(7,32,29,.72) 0%, rgba(7,32,29,.45) 55%, rgba(7,32,29,.28) 100%);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 720px;
    padding: 28px 0 36px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: .95rem;
    backdrop-filter: blur(5px);
}

.hero h2 {
    font-size: clamp(1.9rem, 4.5vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.08rem;
    max-width: 640px;
    margin-bottom: 24px;
    color: #eef8f6;
    line-height: 1.55;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 4px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.4);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
}

.slider-btn:hover {
    background: rgba(0,0,0,.7);
}

.prev { left: 20px; }
.next { right: 20px; }

.hero-small {
    min-height: clamp(340px, 46vh, 520px);
}

.hero-small .hero-slider {
    min-height: inherit;
    display: flex;
}

.hero-small .slide.active {
    position: relative;
    min-height: inherit;
}

.hero-small .hero-content {
    padding: 20px 0 28px;
}

.hero-small h2 {
    font-size: clamp(1.7rem, 3.8vw, 3rem);
}

.hero-small p {
    font-size: 1.02rem;
    margin-bottom: 20px;
}

/* ===== Carrusel moderno (inicio) ===== */
.hero-carousel {
    --hc-height: clamp(360px, 52vh, 560px);
    position: relative;
    height: var(--hc-height);
    min-height: var(--hc-height);
    overflow: hidden;
    background: #0b221c;
}

.hero-carousel-track {
    position: absolute;
    inset: 0;
}

.hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.hero-carousel .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    inset: -4%;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 7s ease-out;
    will-change: transform;
}

.hero-carousel .hero-slide.is-active .hero-slide-bg {
    transform: scale(1.12);
}

.hero-slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(6,28,24,.82) 0%, rgba(6,28,24,.45) 48%, rgba(6,28,24,.2) 100%),
        linear-gradient(to top, rgba(6,20,18,.55) 0%, transparent 42%);
}

.hero-carousel .hero-content {
    max-width: 680px;
    padding: 0;
    color: #fff;
}

.hero-carousel h2 {
    font-size: clamp(1.9rem, 4.5vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 16px;
    font-family: "Source Serif 4", Georgia, serif;
}

.hero-carousel p {
    font-size: 1.08rem;
    max-width: 640px;
    margin-bottom: 24px;
    color: #eef8f6;
    line-height: 1.55;
}

.hero-carousel .container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 72px;
}

.hero-carousel .hero-slide .hero-badge,
.hero-carousel .hero-slide h2,
.hero-carousel .hero-slide p,
.hero-carousel .hero-slide .hero-buttons {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}

.hero-carousel .hero-slide.is-active .hero-badge,
.hero-carousel .hero-slide.is-active h2,
.hero-carousel .hero-slide.is-active p,
.hero-carousel .hero-slide.is-active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.hero-carousel .hero-slide.is-active .hero-badge { transition-delay: .12s; }
.hero-carousel .hero-slide.is-active h2 { transition-delay: .22s; }
.hero-carousel .hero-slide.is-active p { transition-delay: .32s; }
.hero-carousel .hero-slide.is-active .hero-buttons { transition-delay: .42s; }

.hero-carousel-ui {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.hero-carousel-ui > * {
    pointer-events: auto;
}

.hc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .25s ease;
    font-size: 1.2rem;
    line-height: 1;
}

.hc-nav:hover {
    background: rgba(45,179,74,.85);
    border-color: transparent;
}

.hc-nav.prev { left: 18px; }
.hc-nav.next { right: 18px; }

.hc-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

.hc-dot {
    width: 44px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hc-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background: #fff;
    border-radius: inherit;
}

.hc-dot.is-active::after {
    width: 100%;
    transition: width var(--hc-duration, 6s) linear;
}

.hc-dot.is-active.is-paused::after {
    transition: none;
}

@media (max-width: 768px) {
    .hero-carousel {
        --hc-height: min(58svh, 480px);
    }

    .hero-carousel .container {
        align-items: flex-end;
        padding-top: 28px;
        padding-bottom: 64px;
    }

    .hero-carousel .hero h2,
    .hero-carousel h2 {
        font-size: clamp(1.6rem, 7vw, 2.25rem);
    }

    .hero-carousel .hero p,
    .hero-carousel p {
        font-size: .98rem;
        margin-bottom: 18px;
    }

    .hc-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hc-nav.prev { left: 10px; }
    .hc-nav.next { right: 10px; }

    .hc-dots { bottom: 16px; }

    .hero-small {
        min-height: 0;
        height: auto;
    }

    .hero-small .slide.active {
        position: relative;
        height: auto;
        align-items: flex-end;
        padding: 28px 0 32px;
    }

    .hero-small .hero-content {
        padding: 8px 0;
    }

    .hero h2,
    .hero-small h2 {
        font-size: clamp(1.55rem, 7vw, 2.2rem);
    }

    .hero p,
    .hero-small p {
        font-size: .98rem;
        margin-bottom: 18px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        padding: 12px 18px;
    }
}
