* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-marino: #1f2e5e;
    --verde: #5abc55;
    --verde-texto: #5eaf6e;
    --blanco: #ffffff;
    --gradiente-azul-verde: linear-gradient(90deg, var(--azul-marino), var(--verde-texto));
    --fuente: "Montserrat", Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--fuente);
    background: var(--blanco);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main#content {
    flex: 1;
}

/* ===== HEADER - fila superior blanca ===== */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: var(--blanco);
}

.logo-header {
    height: 78px;
    width: auto;
    margin: 14px 10px 14px 60px;
}

.header-text {
    flex: 1;
    margin-left: 50px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.7;
}

.header-text p {
    margin: 0;
    width: fit-content;
    background: var(--gradiente-azul-verde);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ===== Selector idioma ES | EN | EU ===== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 60px;
}

.language-button {
    background: var(--gradiente-azul-verde);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Idioma activo: subrayado */
.language-button.active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Barras separadoras | entre idiomas */
.language-button + .language-button::before {
    content: "|";
    font-weight: 400;
    margin-right: 6px;
    background: var(--gradiente-azul-verde);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ===== NAV - barra azul marina ===== */
.main-nav {
    width: 100%;
    background: var(--azul-marino);
    border-top: 3px solid var(--verde);
    border-bottom: 3px solid var(--verde);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 9px 20px;
}

.nav-links li {
    display: flex;
    align-items: center;
}

/* Puntos separadores · entre enlaces (no en el CTA) */
.nav-links li:not(:last-child)::after {
    content: "·";
    color: var(--blanco);
    opacity: 0.7;
    font-size: 14px;
    margin-left: 26px;
}

.nav-button {
    background: transparent;
    
    /* Se reserva el espacio para el subrayado de la página activa */
    border: none;
    border-bottom: 2px solid transparent;

    color: var(--blanco);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 2px;
    display: flex;
    align-items: center;
}

/* Página en la que se encuentra actualmente el usuario */
.nav-button.active {
    color: #55c2c7;
    border-bottom-color: #55c2c7;
    font-weight: 600;
}

.nav-links li:last-child {
    margin-left: -10px;
}

/* Botón verde Colabora */
.nav-cta {
    background: var(--verde);
    color: var(--blanco);
    border: none;
    border-radius: 999px;
    padding: 8px 26px 8px 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-button:hover {
    opacity: 0.8;
}

.nav-cta:hover {
    filter: brightness(1.05);
}

/* ===== Hamburguesa - oculta en escritorio ===== */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--blanco);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Estado abierto: las 3 líneas forman una X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Responsive móvil ===== */
@media (max-width: 768px) {
    .logo-header {
        height: 58px;
        margin: 10px 0 10px 16px;
    }

    .header-text {
        display: none;
    }

    .language-selector {
        margin-right: 16px;
        margin-left: auto;
    }

    .main-nav {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 4px 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 14px;
        background: var(--azul-marino);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        z-index: 50;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        justify-content: center;
    }

    /* Sin puntos separadores en móvil */
    .nav-links li:not(:last-child)::after {
        display: none;
    }

    .nav-links li:last-child {
        margin-left: 0;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
        padding: 12px 8px;
        font-size: 15px;
    }

    .nav-cta {
        margin: 8px auto 4px;
        justify-content: center;
    }
}


/* ===== Footer siempre al fondo + estilo imagen ===== */
.site-footer {
    margin-top: auto;
    width: 100%;
    background: var(--azul-marino);
    border-top: 4px solid var(--verde);
    color: var(--blanco);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.footer-brand,
.footer-schedule,
.footer-links,
.footer-contact {
    flex: 1;
}

.footer-title,
.footer-heading {
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-logo {
    width: 160px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2px auto 0;

    /* Contorno blanco que sigue la silueta del logo (respeta la transparencia) */
    filter:
        drop-shadow(1.5px 0 0 #ffffff)
        drop-shadow(-1.5px 0 0 #ffffff)
        drop-shadow(0 1.5px 0 #ffffff)
        drop-shadow(0 -1.5px 0 #ffffff);
}

.footer-schedule p {
    margin: 0;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.footer-links a,
.footer-contact a {
    color: var(--blanco);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.footer-contact p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-wrap: wrap;
        gap: 20px;
        padding: 18px 20px;
    }

    .footer-brand,
    .footer-schedule,
    .footer-links,
    .footer-contact {
        flex: 1 1 40%;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
    }
}
