/* ===========================
   RESET
=========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   VARIABLES
=========================== */
:root {
    --color-primario: #0d3c61;
    --color-secundario: #1486cc;
    --color-acento: #1abc9c;
    --color-claro: #eef4fa;
    --color-fondo: #f4f6f9;
    --color-texto: #333333;
    --color-texto-suave: #6b6b6b;
    --color-topbar: #072339;

    --borde-radio: 10px;
    --sombra-suave: 0 8px 18px rgba(0, 0, 0, 0.08);

    --ancho-maximo: 1100px;
    --transicion-media: 0.3s ease-out;
}

/* ===========================
   BASE
=========================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* ===========================
   TOPBAR
=========================== */
.topbar {
    background-color: var(--color-topbar);
    color: #ffffff;
    font-size: 0.85rem;
}

.topbar-container {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: 0.35rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topbar-text {
    font-weight: 500;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.topbar-contact .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-acento);
}

/* ===========================
   HEADER
=========================== */
.header {
    background: linear-gradient(90deg, #0b3556, #0d3c61);
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 20;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-link img {
    height: 110px;
    width: 110px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.logo-text p {
    font-size: 1rem;
    color: #cce6ff;
    margin-bottom: 0.3rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===========================
   NAVEGACIÓN
=========================== */
.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.3rem;
}

.nav-toggle-line {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: var(--transicion-media);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background: #ffffff;
    transition: width var(--transicion-media);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #f1f9ff;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--color-acento);
}

/* ===========================
   MAIN / EVENTOS
=========================== */
.main-eventos {
    max-width: var(--ancho-maximo);
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}

/* HERO EVENTOS */
.hero-eventos {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--sombra-suave);
    border-left: 4px solid var(--color-secundario);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-eventos-texto {
    max-width: 680px;
}

.hero-etiqueta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secundario);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-eventos h2 {
    font-size: 1.7rem;
    color: var(--color-primario);
    margin-bottom: 0.4rem;
}

.hero-eventos p {
    font-size: 0.98rem;
    color: var(--color-texto-suave);
}

/* ===========================
   EVENTO RESUMEN
=========================== */
.evento-resumen {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.evento-card {
    display: grid;
    grid-template-columns: 1.05fr 1.4fr;
    gap: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--sombra-suave);
    animation: fadeInUp 0.9s ease-out;
}

/* Imagen */
.evento-img img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 340px;
    border-radius: 12px;
    object-fit: cover;
}

/* Texto */
.evento-texto {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.evento-etiqueta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.3rem;
}

.evento-etiqueta {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.evento-realizado {
    background-color: #e6f7f2;
    color: #0f7c5c;
    border: 1px solid #b7e8d7;
}

.evento-info-fecha {
    font-size: 0.8rem;
    color: var(--color-texto-suave);
}

.evento-texto h2 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--color-primario);
}

.evento-descripcion {
    font-size: 0.98rem;
    color: var(--color-texto-suave);
}

.evento-puntos {
    list-style: none;
    padding-left: 0;
    margin: 0.3rem 0 0.7rem;
}

.evento-puntos li {
    margin-bottom: 0.3rem;
    font-size: 0.98rem;
}

.evento-mensaje {
    font-size: 0.95rem;
    color: var(--color-texto);
    font-style: italic;
}

/* ===========================
   PRÓXIMOS EVENTOS
=========================== */
.proximos-eventos {
    margin-top: 2rem;
}

.proximos-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--sombra-suave);
    border-top: 3px solid var(--color-secundario);
    animation: fadeInUp 1s ease-out;
}

.proximos-card h3 {
    font-size: 1.3rem;
    color: var(--color-primario);
    margin-bottom: 0.8rem;
}

.proximos-card p {
    font-size: 0.96rem;
    color: var(--color-texto-suave);
    margin-bottom: 0.5rem;
}

.proximos-card ul {
    margin: 0.5rem 0 0.7rem;
    padding-left: 1.3rem;
}

.proximos-card ul li {
    font-size: 0.94rem;
    margin-bottom: 0.25rem;
    color: var(--color-texto-suave);
}

.proximos-recordatorio {
    margin-top: 0.7rem;
    font-size: 0.95rem;
}

.proximos-recordatorio a {
    color: var(--color-secundario);
    font-weight: 600;
    text-decoration: none;
}

.proximos-recordatorio a:hover {
    text-decoration: underline;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background-color: var(--color-primario);
    color: #ffffff;
    text-align: center;
    padding: 1.8rem 1rem;
    font-size: 0.9rem;
}

.footer-content {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}

.footer-titulo {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

footer .social-icons {
    margin: 0.4rem 0 0.8rem;
}

footer .social-icons a {
    margin: 0 0.4rem;
    display: inline-block;
    transition: transform var(--transicion-media), opacity var(--transicion-media);
}

footer .social-icons a:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

footer .icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

footer .credit {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    font-style: italic;
}

footer .credit a img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 0.3rem;
}

/* ===========================
   ANIMACIONES
=========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE
=========================== */

/* Tablets / pantallas medias */
@media screen and (max-width: 900px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 100%;
        justify-content: flex-start;
    }

    .main-eventos {
        margin: 1.5rem auto 2.5rem;
        padding: 0 1rem;
    }

    .evento-card {
        grid-template-columns: 1fr;
    }

    .evento-img img {
        max-height: 280px;
    }
}

/* Menú hamburguesa y móviles */
@media (max-width: 760px) {
    /* HEADER: igual en todas las páginas */
    .header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.9rem 1rem;
        gap: 0.6rem;
        text-align: center;
    }

    .logo {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.3rem;
    }

    .logo-link img {
        height: 80px;
        width: 80px;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0,0,0,0.4);
        object-fit: cover;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .logo-text p {
        font-size: 0.9rem;
    }

    /* Menú: sin hamburguesa, centrado, igual en todos */
    .nav-toggle {
        display: none !important;
    }

    .nav-list {
        position: static;
        max-height: none;
        overflow: visible;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        background: transparent;
        border-radius: 0;
        padding: 0;
        margin-top: 0.3rem;
        gap: 0.4rem;
    }

    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* Móviles pequeños */
@media screen and (max-width: 480px) {
    .topbar-container {
        padding: 0.35rem 0.9rem;
    }

    .hero-eventos {
        padding: 1.4rem 1.2rem;
    }

    .hero-eventos h2 {
        font-size: 1.4rem;
    }

    .hero-eventos p {
        font-size: 0.9rem;
    }

    .evento-card {
        padding: 1.3rem;
    }

    .evento-img img {
        min-height: 200px;
        max-height: 230px;
    }

    footer {
        font-size: 0.8rem;
    }

    footer .credit {
        font-size: 0.75rem;
    }

    footer .credit a img {
        width: 20px;
        height: 20px;
    }
}