/* =========================================================
   EPJA - CONTACTOS
   DISEÑO 2026 (mismo sistema que el resto del sitio)
   ========================================================= */

:root {
    --verde: #0e9102;
    --verde-oscuro: #123a12;
    --verde-hover: #0a7102;
    --verde-claro: #e7f4e9;
    --amarillo: #f9ae06;
    --naranja: #ff6600;
    --blanco: #ffffff;
    --gris-fondo: #f6f7f5;
    --gris-texto: #444444;
    --gris-suave: #767676;
    --borde: #e4e8e3;
    --radio: 14px;
    --sombra: 0 6px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-texto);
    background: var(--gris-fondo);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   NAVBAR (idéntico al resto del sitio)
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 8px 30px;
    background: var(--blanco);
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--verde), var(--amarillo)) 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 2000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 430px;
    width: 430px;
    min-width: 430px;
    overflow: visible;
}

.escudo-provincial { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }

.portada-titulo { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.portada-titulo .bold { font-size: 15px; font-weight: 700; color: var(--gris-texto); }
.portada-titulo .regular { margin-top: 3px; font-size: 10px; font-weight: 500; color: var(--gris-suave); }

.nav-links {
    display: flex; align-items: center; justify-content: flex-end; gap: 3px;
    width: 100%; margin: 0; padding: 0; list-style: none;
}

.nav-links li { position: relative; margin: 0; padding: 0; }

.nav-links li > a {
    display: flex; align-items: center; justify-content: center; padding: 9px 10px;
    color: #2b2b2b; text-decoration: none; font-size: 13px; font-weight: 600;
    border-radius: 20px; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease;
}

.nav-links li > a:hover { background: var(--verde-claro); color: var(--verde); }
.nav-links .sistema-epja-item > a { background: var(--verde); color: var(--blanco); margin-left: 4px; }
.nav-links .sistema-epja-item > a:hover { background: var(--verde-hover); color: var(--blanco); }

.new-badge {
    margin-left: 7px; padding: 2px 6px; background: #ff4b5c; color: white;
    border-radius: 8px; font-size: 8px; font-weight: 700;
}

.dropdown-item { position: relative; }

.dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 220px; padding: 7px; background: var(--verde-oscuro); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); z-index: 5000;
}

.dropdown::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid var(--verde-oscuro);
}

/* Puente invisible: evita que el hover se pierda entre el item y el submenu */
.dropdown::after { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }

.dropdown-item:hover > .dropdown { display: block; }

.dropdown a {
    display: block !important; padding: 10px 14px !important; color: white !important;
    text-decoration: none !important; font-size: 13px !important; font-weight: 500 !important;
    text-align: left !important; border-radius: 8px !important; white-space: nowrap !important;
    background: transparent !important; transform: none !important;
}

.dropdown a:hover { background: rgba(255, 255, 255, 0.12) !important; color: var(--amarillo) !important; }

.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; margin-left: auto; z-index: 2100; }
.bar { display: block; width: 27px; height: 3px; margin: 5px 0; border-radius: 5px; background: var(--verde); transition: all 0.3s ease; }


/* =========================================================
   CONTENIDO - CONTACTOS
   ========================================================= */

.contactos-page {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1;
    padding: 36px 20px 50px;
}

.contactos-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.contactos-header-icon {
    width: 58px; height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; background: var(--verde); color: white; font-size: 25px;
    box-shadow: 0 6px 16px rgba(14, 145, 2, 0.22);
}

.section-kicker { display: block; margin-bottom: 5px; color: var(--verde); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }

.contactos-header h1 { margin: 0; color: var(--verde-oscuro); font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.contactos-header p { margin: 8px 0 0; color: var(--gris-suave); font-size: 14px; line-height: 1.5; max-width: 640px; }


/* Grilla de tarjetas de contacto */

.contactos-grid {
    width: 100%; max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}

.contacto-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: white;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    border-top: 4px solid var(--verde);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); }

.contacto-card.acento-amarillo { border-top-color: var(--amarillo); }
.contacto-card.acento-oscuro { border-top-color: var(--verde-oscuro); }
.contacto-card.acento-naranja { border-top-color: var(--naranja); }

.contacto-icono {
    width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
    background: var(--verde-claro); display: flex; align-items: center; justify-content: center;
    color: var(--verde); font-size: 22px;
}

.contacto-card.acento-amarillo .contacto-icono { background: #fdf3dc; color: var(--amarillo); }
.contacto-card.acento-oscuro .contacto-icono { background: #e3ece3; color: var(--verde-oscuro); }
.contacto-card.acento-naranja .contacto-icono { background: #fff1e6; color: var(--naranja); }

.contacto-info { min-width: 0; }
.contacto-info h3 { margin: 0 0 6px; color: var(--verde-oscuro); font-size: 15px; font-weight: 700; }

.contacto-info p {
    margin: 0 0 4px; color: var(--gris-texto); font-size: 13.5px; font-weight: 500; line-height: 1.4;
}

.contacto-info p.horario { color: var(--gris-suave); font-size: 12px; font-weight: 400; margin-top: 6px; }

.contacto-info a.enlace {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--verde); font-size: 13.5px; font-weight: 700; text-decoration: none;
}

.contacto-info a.enlace:hover { text-decoration: underline; }

/* Fila de redes sociales dentro de la tarjeta */

.contacto-redes {
    display: flex; gap: 8px; margin-top: 4px;
}

.contacto-redes a {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--verde-claro); color: var(--verde-oscuro);
    text-decoration: none; font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contacto-redes a:hover { background: var(--verde); color: white; transform: translateY(-2px); }


/* =========================================================
   FOOTER (idéntico al resto del sitio)
   ========================================================= */

.footer { position: relative; z-index: 2; margin-top: auto; padding: 42px 0 0; background: var(--verde-oscuro); color: white; }

.footer-grid {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 35px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.footer-section {
    padding: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; transition: transform 0.25s ease, background 0.25s ease;
}

.footer-section:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.09); }
.footer-section h3 { position: relative; margin: 0 0 17px; padding-bottom: 10px; color: white; font-size: 15px; }

.footer-section h3::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 35px; height: 2px;
    background: var(--amarillo); transition: width 0.25s ease;
}

.footer-section:hover h3::after { width: 60px; }

.footer-links a {
    display: block; padding: 6px 0; color: rgba(255, 255, 255, 0.82); text-decoration: none;
    font-size: 12px; line-height: 1.4; transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover { padding-left: 5px; color: var(--amarillo); }

.social-icons { display: flex; gap: 9px; margin-top: 10px; }

.social-icons a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, 0.10); color: white; text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover { background: var(--verde); transform: translateY(-3px); }

.footer-bottom { padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.10); text-align: center; }
.footer-bottom p { margin: 4px 0; color: rgba(255, 255, 255, 0.65); font-size: 11px; }


/* =========================================================
   RESPONSIVE
   Puntos de corte:
   - 1100px : notebooks chicas
   - 1024px : tablets / celulares en horizontal  -> menú hamburguesa
   - 768px  : celulares grandes (Samsung / iPhone Plus / Max)
   - 480px  : celulares en vertical (360-430px)
   - 360px  : pantallas chicas (iPhone SE, Galaxy A chicos)
   ========================================================= */

@media (max-width: 1100px) {
    .navbar { padding-left: 20px; padding-right: 20px; }
    .navbar-brand { flex: 0 1 330px; width: 330px; min-width: 330px; }
    .portada-titulo .regular { white-space: normal; }
    .nav-links li > a { padding: 8px 7px; font-size: 11px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- MENÚ HAMBURGUESA (tablets y celulares) ---------- */
@media (max-width: 1024px) {
    .navbar {
        position: sticky; top: 0; width: 100%; min-height: 64px; height: 64px;
        padding: 6px 14px; display: flex; align-items: center; justify-content: space-between;
        background: #ffffff; border-bottom: 3px solid transparent;
        border-image: linear-gradient(90deg, var(--verde), var(--amarillo)) 1;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08); z-index: 2000;
    }
    .navbar-brand { display: flex; align-items: center; gap: 8px; width: auto; min-width: 0; flex: 1 1 auto; max-width: calc(100% - 55px); }
    .escudo-provincial { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }
    .portada-titulo { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
    .portada-titulo .bold { display: block; font-size: 12px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gris-texto); }
    .portada-titulo .regular { display: block; margin-top: 2px; font-size: 8.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gris-suave); }

    .menu-toggle {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin: 0; padding: 7px; border: none; border-radius: 10px;
        background: var(--verde-claro); cursor: pointer; flex-shrink: 0; position: relative; z-index: 2200;
        -webkit-tap-highlight-color: transparent;
    }
    .bar { display: block; width: 23px; height: 2.5px; margin: 3px 0; border-radius: 5px; background: var(--verde); transition: all 0.25s ease; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

    .nav-links {
        position: fixed; top: 64px; left: 0; width: 100%;
        height: calc(100vh - 64px);            /* respaldo */
        height: calc(100dvh - 64px);           /* iPhone: no cuenta la barra de Safari */
        padding: 14px 14px calc(30px + env(safe-area-inset-bottom, 0px));
        display: flex; flex-direction: column; align-items: stretch;
        justify-content: flex-start; gap: 8px; background: rgba(246, 247, 245, 0.98);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
        transform: translateX(100%); visibility: hidden;
        transition: transform 0.28s ease, visibility 0.28s ease; z-index: 2100;
    }
    .nav-links.active { left: 0; transform: translateX(0); visibility: visible; }

    /* Evita que la página de atrás se mueva mientras el menú está abierto */
    body:has(.nav-links.active) { overflow: hidden; }

    .nav-links li { width: 100%; margin: 0; padding: 0; }
    .nav-links li > a {
        width: 100%; min-height: 50px; padding: 14px 16px; display: flex; align-items: center;
        justify-content: space-between; border: 1px solid #e1e7df; border-radius: 12px; background: #ffffff;
        color: var(--verde-oscuro); font-size: 14px; font-weight: 600; text-decoration: none;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.04);
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }
    .nav-links li > a:hover { background: var(--verde-claro); border-color: rgba(14, 145, 2, 0.25); color: var(--verde); }
    .nav-links .sistema-epja-item > a { margin-top: 4px; margin-left: 0; justify-content: center; background: var(--verde); border-color: var(--verde); color: white; }
    .nav-links .sistema-epja-item > a:hover { background: var(--verde-hover); color: white; transform: none; }

    .dropdown {
        position: static; width: 100%; min-width: 0; margin-top: 5px; padding: 5px; display: none;
        transform: none; background: #edf5ed; border: 1px solid #dce8dc; border-radius: 10px; box-shadow: none;
    }
    .dropdown::before { display: none; }
    .dropdown::after { display: none; }
    /* En táctil el dropdown se abre solo con la clase .open (no con hover) */
    .dropdown-item:hover > .dropdown { display: none; }
    .dropdown-item.open > .dropdown { display: block !important; }
    .dropdown a {
        display: flex !important; align-items: center; justify-content: flex-start !important; width: 100%;
        min-height: 44px; padding: 10px 13px !important; margin: 2px 0; background: white !important;
        border-radius: 8px !important; color: var(--gris-texto) !important; font-size: 12.5px !important;
        text-align: left !important; white-space: normal !important; box-sizing: border-box;
    }
    .dropdown a:hover { background: var(--verde-claro) !important; color: var(--verde) !important; }

    .nav-links .dropdown-item > a { position: relative; padding-right: 45px !important; }
    .nav-links .dropdown-item > a::after {
        content: '⌄'; position: absolute; right: 17px; top: 50%; transform: translateY(-50%);
        font-size: 18px; font-weight: 600; color: var(--verde); transition: transform 0.25s ease;
    }
    .nav-links .dropdown-item.open > a::after { transform: translateY(-50%) rotate(180deg); }
}

/* Tablets y celulares en horizontal: hay más lugar para el título */
@media (min-width: 600px) and (max-width: 1024px) {
    .navbar { padding-left: 20px; padding-right: 20px; }
    .escudo-provincial { width: 48px; height: 48px; }
    .portada-titulo .bold { font-size: 14px; }
    .portada-titulo .regular { font-size: 10px; }
}

/* ---------- CELULARES GRANDES (hasta 768px) ---------- */
@media (max-width: 768px) {

    .contactos-page { padding: 24px 14px 36px; }

    .contactos-header { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
    .contactos-header-icon { width: 48px; height: 48px; border-radius: 13px; font-size: 20px; }
    .section-kicker { font-size: 10px; letter-spacing: 0.8px; line-height: 1.4; }
    .contactos-header h1 { font-size: 24px; }
    .contactos-header p { font-size: 13px; }

    /* Tarjetas de contacto: ícono a la izquierda, datos a la derecha (más compacto) */
    .contactos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .contacto-card { flex-direction: row; align-items: center; gap: 14px; padding: 18px 16px; }
    .contacto-icono { width: 48px; height: 48px; font-size: 19px; }
    .contacto-info h3 { font-size: 15px; margin-bottom: 4px; }
    .contacto-info p.horario { font-size: 12.5px; }
    .contacto-info a.enlace { min-height: 44px; font-size: 14px; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
    .contacto-info a.enlace i { flex-shrink: 0; }

    /* Redes sociales: botones de 44px para el dedo */
    .contacto-redes { gap: 10px; margin-top: 2px; }
    .contacto-redes a { width: 44px; height: 44px; font-size: 17px; }

    /* Footer */
    .footer { padding-top: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 14px 28px; }
    .footer-section { padding: 18px; }
    .footer-links a { padding: 10px 0; font-size: 13px; }
    .social-icons a { width: 42px; height: 42px; }
    .footer-bottom { padding: 16px 14px; }
}

/* ---------- UNA SOLA COLUMNA (hasta 700px) ---------- */
@media (max-width: 700px) {
    .contactos-grid { grid-template-columns: 1fr; }
}

/* ---------- CELULARES EN VERTICAL (hasta 480px) ---------- */
@media (max-width: 480px) {
    .navbar { padding: 6px 12px; }
    .portada-titulo .bold { font-size: 11.5px; }
    .portada-titulo .regular { font-size: 8px; }

    .contactos-page { padding: 20px 12px 32px; }
    .contactos-header h1 { font-size: 23px; }
}

/* ---------- PANTALLAS CHICAS (hasta 360px) ---------- */
@media (max-width: 360px) {
    .escudo-provincial { width: 38px; height: 38px; }
    .navbar-brand { gap: 6px; }
    .portada-titulo .bold { font-size: 11px; }

    .contactos-header-icon { width: 42px; height: 42px; font-size: 18px; }
    .contactos-header h1 { font-size: 21px; }

    .contacto-card { gap: 12px; padding: 16px 14px; }
    .contacto-icono { width: 44px; height: 44px; font-size: 18px; }
}

/* ---------- DISPOSITIVOS TÁCTILES: sin efectos hover "pegados" ---------- */
@media (hover: none) {
    .contacto-card:hover { transform: none; box-shadow: var(--sombra); }
    .contacto-info a.enlace:hover { text-decoration: none; }
    .contacto-redes a:hover { transform: none; }
    .footer-section:hover { transform: none; background: rgba(255, 255, 255, 0.06); }
    .footer-section:hover h3::after { width: 35px; }
    .footer-links a:hover { padding-left: 0; }
    .social-icons a:hover { transform: none; }
}

/* =========================================================
   INTEGRACIÓN CON LA IDENTIDAD VISUAL DEL INDEX 2026
   ========================================================= */
body { font-family: "Barlow", Arial, sans-serif; background: #f5f7fa; color: #2e2d2c; }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; width: 100%; min-height: 84px; height: 84px; padding: 8px max(20px, calc((100% - 1280px) / 2)) 0; border-radius: 0; box-shadow: 0 2px 10px rgba(46,45,44,.08); background: #fff; }
.navbar-brand { gap: 12px; }
.navbar .portada-titulo { font-family: "Montserrat", Arial, sans-serif; }
.contactos-page { padding: clamp(126px, 12vw, 150px) 24px 78px; }
.contactos-header { max-width: 1120px; padding: 0 0 22px; border-bottom: 1px solid #dce3eb; }
.contactos-header-icon { background: #1f5d9b; box-shadow: 0 7px 18px rgba(31,93,155,.18); }
.section-kicker { color: #1f5d9b; font-family: "Barlow", Arial, sans-serif; }
.contactos-header h1 { color: #2e2d2c; font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif; font-weight: 800; }
.contactos-header p { color: #5f5f5f; font-size: 15px; }
.contactos-grid { max-width: 1000px; gap: 22px; }
.contacto-card { border: 1px solid #e0e5ec; border-top: 4px solid #1f5d9b; border-radius: 16px; box-shadow: 0 10px 28px rgba(32,51,76,.07); padding: 28px; }
.contacto-card.acento-amarillo { border-top-color: #facd05; }
.contacto-card.acento-oscuro { border-top-color: #2e2d2c; }
.contacto-card.acento-naranja { border-top-color: #f4492e; }
.contacto-icono { color: #1f5d9b; background: #e6eef8; border-radius: 14px; }
.contacto-card.acento-amarillo .contacto-icono { color: #6b5500; background: #fff7cc; }
.contacto-card.acento-oscuro .contacto-icono { color: #2e2d2c; background: #ededed; }
.contacto-card.acento-naranja .contacto-icono { color: #b52c18; background: #fff0ed; }
.contacto-info h3 { color: #2e2d2c; font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif; font-size: 21px; }
.contacto-info .enlace { color: #1f5d9b; overflow-wrap: anywhere; }
.contacto-redes a { background: #1f5d9b; }
.site-footer { background: #2e2d2c; color: #fff; margin-top: auto; font-family: "Barlow", Arial, sans-serif; }
.site-footer .w.pg { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 38px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer p { color: #e5e5e5; line-height: 1.65; margin: 0 0 18px; }
.site-footer h3 { margin: 0 0 15px; color: #facd05; font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif; font-size: 18px; }
.site-footer .w.pg > div:not(:first-child) a { display: block; width: fit-content; margin: 0 0 10px; color: #f5f5f5; text-decoration: none; line-height: 1.45; font-size: 14px; }
.site-footer a:hover { color: #facd05 !important; }
.site-footer .redes { display: flex; gap: 10px; }
.site-footer .redes a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; }
.site-footer .redes svg { width: 18px; height: 18px; }
.site-footer .pf { border-top: 1px solid rgba(255,255,255,.18); }
.site-footer .pf .w { width: min(1180px, calc(100% - 48px)); min-height: 58px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #d6d6d6; font-size: 12px; }
@media (max-width: 900px) { .site-footer .w.pg { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; } }
@media (max-width: 700px) { .contactos-page { padding: 112px 14px 50px; } .contactos-header { gap: 13px; } .contactos-grid { grid-template-columns: 1fr; gap: 16px; } .contacto-card { padding: 22px 18px; } .site-footer .w.pg { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 25px; padding: 34px 0; } .site-footer .pf .w { width: calc(100% - 36px); padding: 14px 0; align-items: flex-start; flex-direction: column; } }

/* Ajustes finales de navegación: paleta azul, negro y amarillo del sitio oficial. */
:root { --verde: #1f5d9b; --verde-oscuro: #2e2d2c; --verde-hover: #174775; --verde-claro: #e6eef8; --amarillo: #facd05; --naranja: #f4492e; --borde: #dce3eb; }
.nav-links li > a { color: #2e2d2c; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.nav-links li > a:hover, .nav-links li.open > a { background: #e6eef8; color: #1f5d9b; }
.nav-links .dropdown { border: 1px solid #e0e5ec; border-radius: 12px; box-shadow: 0 12px 28px rgba(32,51,76,.12); background: #fff; }
.nav-links .dropdown::before { border-bottom-color: #fff; top: -7px; }
.nav-links .dropdown a { color: #2e2d2c !important; }
.nav-links .dropdown a:hover { background: #e6eef8 !important; color: #1f5d9b !important; }
@media (max-width: 1024px) { .nav-links { background: #fff; } .nav-links li > a { color: #2e2d2c; } .nav-links .dropdown { box-shadow: none; border-radius: 10px; } }


/* =========================================================
   MARCA INSTITUCIONAL — alineada con el encabezado de index.html
   ========================================================= */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    height: 84px;
    min-height: 84px;
    padding: 8px max(20px, calc((100% - 1280px) / 2)) 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(46, 45, 44, .08);
    border: 0;
    border-radius: 0;
    font-family: "Barlow", Arial, sans-serif;
}
.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
    flex-shrink: 0;
}
.navbar .escudo-provincial {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0;
    object-fit: contain;
    flex-shrink: 0;
}
.navbar .portada-titulo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    white-space: normal;
    line-height: normal;
    text-align: left;
    font-family: "Montserrat", Arial, sans-serif;
}
.navbar .portada-titulo .bold {
    display: block;
    flex: 0 0 auto;
    max-width: 8.5em;
    margin: 0;
    padding: 0;
    color: #2e2d2c;
    font: 600 14px/1.15 "Montserrat", Arial, sans-serif;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
}
.navbar .portada-titulo .bold strong {
    display: block;
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.1;
    text-transform: uppercase;
}
.navbar .portada-titulo .regular {
    display: block;
    flex: 0 1 190px;
    max-width: 190px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #2e2d2c;
    font: 400 14px/1.35 "Barlow", Arial, sans-serif;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
@media (max-width: 1200px) {
    .navbar { gap: 14px; }
    .navbar .navbar-brand { gap: 10px; }
    .navbar .portada-titulo { gap: 10px; }
    .navbar .portada-titulo .bold { font-size: 12px; }
    .navbar .portada-titulo .regular { max-width: 150px; font-size: 12px; }
}
@media (max-width: 1024px) {
    .navbar { padding-left: 20px; padding-right: 20px; }
    .navbar .navbar-brand { flex: 1 1 auto; max-width: calc(100% - 55px); }
    .navbar .portada-titulo { gap: 8px; }
    .navbar .portada-titulo .bold { font-size: 12px; }
    .navbar .portada-titulo .regular { max-width: 165px; font-size: 12px; }
}
@media (max-width: 768px) {
    .navbar { height: 76px; min-height: 76px; padding: 8px 16px 0; }
    .navbar .navbar-brand { gap: 8px; max-width: calc(100% - 54px); }
    .navbar .escudo-provincial { width: 44px; height: 44px; }
    .navbar .portada-titulo { flex-direction: column; align-items: flex-start; gap: 2px; overflow: hidden; }
    .navbar .portada-titulo .bold { max-width: 100%; font-size: 11.5px; line-height: 1.1; }
    .navbar .portada-titulo .bold strong { display: inline; margin-left: 3px; font-size: 1em; }
    .navbar .portada-titulo .regular { max-width: 100%; font-size: 10px; line-height: 1.15; }
}
@media (max-width: 420px) {
    .navbar { padding-left: 10px; padding-right: 10px; }
    .navbar .portada-titulo .bold { font-size: 10.5px; }
    .navbar .portada-titulo .regular { font-size: 9px; }
}

/* =========================================================
   MODO NOCTURNO — Contactos
   La página usa colores propios fijos (títulos #2e2d2c, tarjetas blancas),
   por eso modo-nocturno.css no los alcanzaba y el texto quedaba oscuro
   sobre fondo oscuro. Los acentos (celeste, amarillo, rojo) no cambian.
   ========================================================= */
body.modo-nocturno .section-kicker { color: #a9d0ff; }
body.modo-nocturno .contactos-header { border-bottom-color: #414a55; }
body.modo-nocturno .contactos-header h1 { color: #f2f4f7; }
body.modo-nocturno .contactos-header p { color: #b8c2cc; }

/* Sin "border-color" abreviado para no pisar el borde superior de color */
body.modo-nocturno .contacto-card {
  background: #20262d;
  border-right-color: #414a55;
  border-bottom-color: #414a55;
  border-left-color: #414a55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
body.modo-nocturno .contacto-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
body.modo-nocturno .contacto-info h3 { color: #f2f4f7; }
body.modo-nocturno .contacto-info p { color: #d5dbe3; }
body.modo-nocturno .contacto-info p.horario { color: #a3adb8; }
body.modo-nocturno .contacto-info .enlace { color: #a9d0ff; }

body.modo-nocturno .contacto-icono { background: #293b50; color: #a9d0ff; }
body.modo-nocturno .contacto-card.acento-amarillo .contacto-icono { background: #3b3410; color: #facd05; }
body.modo-nocturno .contacto-card.acento-oscuro .contacto-icono { background: #2f3640; color: #edf1f5; }
body.modo-nocturno .contacto-card.acento-naranja .contacto-icono { background: #402420; color: #ff8a76; }
body.modo-nocturno .contacto-card.acento-oscuro { border-top-color: #edf1f5; }

body.modo-nocturno .contacto-redes a { color: #fff; }
/* ==========================================
   CORRECCIÓN NAVBAR - MODO NOCTURNO
   ========================================== */

body.modo-nocturno .navbar {
    background: #171b20 !important;
}

body.modo-nocturno .navbar .portada-titulo .bold,
body.modo-nocturno .navbar .portada-titulo .regular {
    color: #f2f4f7 !important;
}

body.modo-nocturno .navbar .nav-links > li > a {
    color: #d5dbe3 !important;
}

body.modo-nocturno .navbar .nav-links > li > a:hover,
body.modo-nocturno .navbar .nav-links > li > a:focus-visible,
body.modo-nocturno .navbar .nav-links > li.open > a {
    background: #293b50 !important;
    color: #a9d0ff !important;
}

body.modo-nocturno .navbar .nav-links .dropdown {
    background: #20262d !important;
    border-color: #414b57 !important;
}

body.modo-nocturno .navbar .nav-links .dropdown a {
    background: transparent !important;
    color: #e7ebf0 !important;
}

body.modo-nocturno .navbar .nav-links .dropdown a:hover {
    background: #293b50 !important;
    color: #a9d0ff !important;
}

/* Menú móvil */
@media (max-width: 1024px) {
    body.modo-nocturno .navbar .nav-links {
        background: #171b20 !important;
    }

    body.modo-nocturno .navbar .nav-links > li > a {
        background: #20262d !important;
        color: #e7ebf0 !important;
    }
}