/* ==========================================================================
   Hero Slider Section - Full Width + Imagen Oscurecida + Líneas Inferiores
   ========================================================================== */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Elimina líneas o sombras en la unión con la cabecera y sub-barra */
.l2-header,
.l2-sub-bar {
    border-bottom: none;
    box-shadow: none;
}

/* Evita huecos superiores entre el header/sub-bar y el contenido principal */
.l2-subpage-main {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.hero-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: -1px 0 0 calc(50% - 50vw);
    padding: 0;
    height: clamp(460px, 65vh, 720px);
    min-height: 460px;
    overflow: hidden;
    background-color: var(--l2-bg-color, #0b0907);
    border-top: none;
    border-bottom: 3px solid var(--l2-border-color, #33271d);
    user-select: none;
    box-sizing: border-box;
    display: block;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    touch-action: pan-y;
    box-sizing: border-box;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease-out, visibility 0.8s;
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* Imagen del slider más oscura para dar mayor protagonismo al texto */
.slide img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.48) contrast(1.06);
}

/* Solo letras encima del slider, sin marco ni fondo */
.slide-text-box {
    position: absolute;
    top: 50%;
    left: max(68px, calc((100% - 1400px) / 2 + 68px));
    transform: translateY(-50%);
    z-index: 5;
    max-width: 720px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

.slide-text-box h2 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffe24a;
    margin: 0 0 8px 0;
    letter-spacing: 3.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1), 2px 2px 0 #000000;
}

.slide-text-box h1 {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 1), 2px 2px 0 #000000, -1px -1px 0 #000000;
}

.slide-text-box p {
    font-size: 15.5px;
    line-height: 1.68;
    color: #ffffff;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1), 1px 1px 3px #000000;
}

/* Color propio para sub_text */
.slide-text-box p.slide-sub-text {
    margin: 0;
    color: #ffcf48;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1), 1px 1px 3px #000000;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 42px;
    height: 52px;
    background: rgba(15, 13, 10, 0.78);
    border: 1px solid rgba(212, 172, 13, 0.5);
    color: #ffd700;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slider-arrow:hover {
    background: rgba(31, 26, 22, 0.98);
    border-color: #ffe866;
    color: #ffffff;
}

.prev-arrow { left: 14px; }
.next-arrow { right: 14px; }

/* Indicadores inferiores tipo línea en lugar de puntos */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 6;
}

.dot {
    width: 34px;
    height: 4px;
    padding: 0;
    border-radius: 2px;
    border: none;
    background: rgba(255, 245, 209, 0.28);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.dot.active,
.dot:hover {
    width: 52px;
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 460px;
        min-height: 460px;
    }

    .slide-text-box {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .slider-arrow {
        display: none;
    }

    .dot {
        width: 24px;
    }

    .dot.active,
    .dot:hover {
        width: 38px;
    }
}