/* ================================================================
   HERO MODERNO — Duprat Lira Abogados
   Paleta: #172c41 (azul marino) | #b18d42 (dorado)
   Tipografía: Raleway (títulos) | Lato (cuerpo)
   ================================================================ */

/* ── Contenedor principal ── */
#slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 550px;
    overflow: hidden;
    background-color: #172c41;
}

/* ── Wrapper de slides ── */
.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Cada slide ── */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    /* Placeholder cuando no hay imagen: degradado de marca */
    background-color: #172c41;
}

/* Si no hay background-image se muestra un degradado de placeholder */
.hero-slide:not([style*="url"]) {
    background-image: linear-gradient(135deg, #172c41 0%, #1f3d5c 50%, #243348 100%);
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide.leaving {
    opacity: 0;
    z-index: 1;
}

/* ── Overlay degradado ── */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Degradado: azul marino profundo hacia dorado semi-transparente */
    background: linear-gradient(
        125deg,
        rgba(23, 44, 65, 0.88) 0%,
        rgba(23, 44, 65, 0.70) 40%,
        rgba(177, 141, 66, 0.25) 100%
    );
    /* Capa extra desde abajo para asegurar legibilidad */
    /* Se apila usando ::after */
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(23, 44, 65, 0.60) 0%,
        transparent 50%
    );
}

/* ── Contenido de texto ── */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    /* Animaciones de entrada al activarse el slide */
    animation: none;
}

.hero-slide.active .hero-content > * {
    animation-fill-mode: both;
}

.hero-slide.active .hero-eyebrow {
    animation: heroFadeUp 0.7s ease 0.1s both;
}

.hero-slide.active .hero-title {
    animation: heroFadeUp 0.7s ease 0.3s both;
}

.hero-slide.active .hero-subtitle {
    animation: heroFadeUp 0.7s ease 0.5s both;
}

.hero-slide.active .hero-cta-group {
    animation: heroFadeUp 0.7s ease 0.7s both;
}

/* ── Eyebrow (pequeño texto sobre el título) ── */
.hero-eyebrow {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #b18d42;
    background: rgba(177, 141, 66, 0.12);
    border: 1px solid rgba(177, 141, 66, 0.4);
    border-radius: 100px;
    padding: 6px 20px;
    margin-bottom: 24px;
}

/* ── Título principal ── */
.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    max-width: 820px;
}

/* Acento dorado en el título */
.hero-accent {
    color: #b18d42;
    display: block;
}

/* ── Subtítulo / descripción ── */
.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 0 36px;
}

/* ── Grupo de botones CTA ── */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botón sólido dorado */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-btn-primary {
    background-color: #b18d42;
    border-color: #b18d42;
    color: #ffffff;
}

.hero-btn-primary:hover {
    background-color: #c9a24e;
    border-color: #c9a24e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(177, 141, 66, 0.45);
    text-decoration: none;
}

.hero-btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.hero-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Flechas de navegación ── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(23, 44, 65, 0.5);
    border: 1px solid rgba(177, 141, 66, 0.4);
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-arrow:hover {
    background: rgba(177, 141, 66, 0.75);
    border-color: #b18d42;
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* ── Puntos de navegación ── */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s ease;
}

.hero-dot:hover {
    border-color: #b18d42;
    background: rgba(177, 141, 66, 0.5);
}

.hero-dot.active {
    background: #b18d42;
    border-color: #b18d42;
    width: 28px;
    border-radius: 5px;
}

/* ── Animación de entrada ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────
   RESPONSIVO
───────────────────────────────────────── */

/* Tablet */
@media (max-width: 991px) {
    #slider {
        height: 85vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 110px 32px 90px;
    }

    .hero-title {
        font-size: clamp(26px, 6vw, 44px);
    }

    .hero-arrow {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .hero-arrow-prev { left: 14px; }
    .hero-arrow-next { right: 14px; }
}

/* Móvil */
@media (max-width: 767px) {
    #slider {
        height: 90vh;
        min-height: 480px;
    }

    .hero-content {
        padding: 100px 20px 80px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 2.5px;
        padding: 5px 14px;
    }

    .hero-title {
        font-size: clamp(24px, 7.5vw, 36px);
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .hero-btn {
        font-size: 11px;
        padding: 12px 24px;
        letter-spacing: 1px;
    }

    .hero-arrow {
        display: none; /* En móvil se navega con swipe */
    }

    .hero-dots {
        bottom: 20px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 420px) {
    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 280px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}
