﻿:root {
    --color-primario: #000000; /*Negro*/
    --color-secundario: #F5F0E6;
    --color-terciario: #FFFFFF; /*Blanco*/
    --color-cuaternario: #722F37; /*Corinto*/
}

/* ================= BASE ================= */
body {
    margin: 0;
    background-color: var(--color-primario);
    font-family: 'Libre Baskerville', serif;
}

/* ================= HEADER ================= */
.header {
    height: 90px;
    display: flex;
    align-items: center;
    background-color: var(--color-primario);
    border-bottom: 1px solid #222;
    padding: 0 30px;
    position: relative;
}

/* LOGO */
.logo img {
    height: 58px;
    display: block;
}

/* ================= MENU DESKTOP ================= */


.hermandad-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-primario);
    transition: box-shadow 0.3s ease;
}

    .hermandad-header.scrolled {
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

.contenido {
    margin-top: 120px; /* ajusta según la altura real del header */
}
/* ================= MENU TOGGLE ================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-terciario);
    font-size: 28px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: calc(100vh - 90px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-card h1 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 30px;
    text-align: center;
}

    .hero-card h1 span {
        display: block;
        font-size: 22px;
        letter-spacing: 2px;
        margin-top: 8px;
        color: var(--color-secundario);
    }

.hero-card {
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
    position: relative;
    z-index: 2;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s ease;
    transform: scale(1);
}

    .slide.active {
        opacity: 1;
        transform: scale(1.05); /* zoom lento elegante */
    }

.hero-content {
    background-color: var(--color-primario);
    padding: 60px 20px;
    text-align: center;
}

/* ================= HERO TITLE ================= */
.hero-title {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
    margin: 0 auto 15px auto;
    color: var(--color-secundario);
}

    .hero-title span {
        display: block;
        font-size: 22px;
        letter-spacing: 3px;
        margin-top: 6px;
        color: var(--color-secundario);
    }

/* LINEA DIVISORA ELEGANTE */
.divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-cuaternario);
    margin: 20px auto 30px auto;
    opacity: 0.8;
}

/* ================= COUNTDOWN ================= */
.countdown-label {
    display: block;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.85;
    color: var(--color-secundario);
    text-align: center;
}

.countdown-time {
    font-size: 34px;
    font-weight: 500;
    color: var(--color-secundario);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-align: center;
}

.countdown-sub {
    display: block; /* 👈 clave */
    width: 100%; /* opcional pero recomendable */
    font-size: 13px;
    letter-spacing: 1.5px;
    opacity: 0.85;
    color: var(--color-secundario);
    text-align: center;
}

/* ================= FOOTER ================= */
.footer-hermandad {
    background-color: #111;
    color: #fff;
    padding: 50px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
}

.footer-section {
    flex: 1 1 220px;
}

    .footer-section h3 {
        margin-bottom: 15px;
        font-size: 16px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

        .footer-section ul li {
            margin-bottom: 8px;
        }

    .footer-section a {
        color: var(--color-secundario);
        text-decoration: none;
        transition: 0.3s;
    }

        .footer-section a:hover {
            color: #fff;
        }

.footer-redes {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

    .footer-redes a {
        font-size: 20px;
        color: var(--color-secundario);
        transition: 0.3s ease;
    }

        .footer-redes a:hover {
            color: #fff;
            transform: translateY(-3px);
        }       

@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        width: 100%;
    }

    .footer-redes {
        justify-content: center;
    }
}

.section {
    padding: 60px 20px;
    color: var(--color-terciario);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
    text-align: center;
    color: var(--color-cuaternario);
}

.text-body {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.historia-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

    .historia-images img {
        max-width: 300px;
        width: 100%;
        border-radius: 4px;
    }

.docs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.doc-item iframe {
    width: 100%;
    height: 400px;
    border: 1px solid #333;
}


.page-hero {
    padding: 80px 20px 40px;
    text-align: center;
    background: var(--color-primario);
}

.page-title {
    font-size: 34px;
    font-weight: 500;
    color: var(--color-terciario);
}

.historia-section {
    padding: 60px 20px 100px;
}

.container.narrow {
    max-width: 850px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 22px;
    letter-spacing: 1px;
}

.historia-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.historia-img {
    margin: 40px 0;
    text-align: center;
}

    .historia-img img {
        width: 100%;
        max-width: 700px;
        border-radius: 6px;
    }

.historia-quote {
    margin: 40px 0;
    padding: 25px;
    font-style: italic;
    border-left: 4px solid var(--color-secundario);
    background: rgba(255,255,255,0.05);
}

.sub-title {
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.final-text {
    margin-top: 40px;
    font-weight: 500;
}

.doc-item h3 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

.velacion-septiembre {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0f3d2e 0%, #000000 70%);
    color: #f5f1e6;
    overflow: hidden;
}

    /* Textura sutil */
    .velacion-septiembre::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("images/textura-pergamino.png");
        /* Usa una textura PNG muy sutil en gris */
        background-size: cover;
        background-repeat: no-repeat;
        opacity: 0.08; /* Súper suave */
        pointer-events: none;
    }

    .velacion-septiembre .section-title {
        text-align: center;
        font-size: 2.6rem;
        margin-bottom: 20px;
        color: #ffffff;
        position: relative;
    }

        /* Línea dorada */
        .velacion-septiembre .section-title::after {
            content: "";
            display: block;
            width: 120px;
            height: 3px;
            margin: 20px auto 40px auto;
            background: linear-gradient(to right, #b9932f, #d4af37, #b9932f);
            border-radius: 2px;
        }

.velacion-contenido {
    max-width: 900px;
    margin: auto;
    text-align: justify;
    line-height: 1.9;
    font-size: 1.1rem;
}

.frase-destacada {
    text-align: center;
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #d4af37; /* dorado litúrgico */
}

.velacion-imagen-principal img,
.velacion-imagen-final img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.velacion-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

    .velacion-galeria img {
        width: 100%;
        border-radius: 10px;
        transition: transform 0.4s ease;
    }

        .velacion-galeria img:hover {
            transform: scale(1.05);
        }

.firma {
    text-align: right;
    margin-top: 50px;
    font-weight: bold;
    color: #ffffff;
}


.martes-santo {
    padding: 100px 0;
    background-color: var(--color-primario);
    color: #f5f1e6;
}

    /* TÍTULO */
    .martes-santo .section-title {
        text-align: center;
        font-size: 2.6rem;
        margin-bottom: 20px;
        color: #ffffff;
        position: relative;
    }

        .martes-santo .section-title::after {
            content: "";
            display: block;
            width: 120px;
            height: 3px;
            margin: 20px auto 50px auto;
            background: linear-gradient(to right, #b9932f, #d4af37, #b9932f);
        }

/* GALERÍA */
.galeria-martes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 70px;
}

    .galeria-martes img {
        width: 100%;
        border-radius: 12px;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

        .galeria-martes img:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 30px rgba(0,0,0,0.6);
        }

/* MAPA */
.mapa-turnos {
    text-align: center;
    margin-bottom: 70px;
}

    .mapa-turnos h3 {
        margin-bottom: 20px;
        color: #d4af37;
    }

    .mapa-turnos img {
        width: 100%;
        max-width: 800px;
        border-radius: 12px;
    }

/* LISTADO */
.listado-turnos {
    max-width: 600px;
    margin: auto;
    margin-bottom: 70px;
}

    .listado-turnos h3 {
        text-align: center;
        margin-bottom: 30px;
        color: #d4af37;
    }

    .listado-turnos ul {
        list-style: none;
        padding: 0;
    }

    .listado-turnos li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }

/* ORACIÓN */
.oracion-martes {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-style: italic;
    line-height: 1.8;
}

    .oracion-martes h3 {
        margin-bottom: 25px;
        color: #d4af37;
    }


/* ===== NAVBAR PERSONALIZADA ===== */

.navbar {
    background-color: #111 !important;
    border-bottom: 2px solid #6b0f1a;
}

    .navbar .nav-link {
        color: #fff !important;
        font-size: 15px;
        letter-spacing: 0.4px;
        position: relative;
    }

        .navbar .nav-link:hover {
            color: var(--color-secundario) !important;
        }

    .navbar .dropdown-menu {
        background-color: #0f0f0f;
        border: 1px solid #222;
    }

    .navbar .dropdown-item {
        color: #fff;
    }

        .navbar .dropdown-item:hover {
            background-color: #161616;
            color: var(--color-secundario);
        }