/* =========================================================
   EPJA - TRABAJA CON NOSOTROS (SUBIR CV)
   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;
    --rojo: #e74c3c;
    --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; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-texto);
    background: var(--gris-fondo);
    min-height: 100vh;
    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; }


/* =========================================================
   ENCABEZADO DE PÁGINA
   ========================================================= */

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

.cv-header {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.cv-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; }

.cv-header h1 { margin: 0; color: var(--verde-oscuro); font-size: clamp(23px, 3vw, 30px); line-height: 1.15; }
.cv-header p { margin: 8px 0 0; color: var(--gris-suave); font-size: 13.5px; line-height: 1.5; }


/* =========================================================
   FORMULARIO (mismas clases que usa el JS de validación)
   ========================================================= */

.curriculum-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.success-message {
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    padding: 18px 22px;
    border-radius: var(--radio);
    margin-bottom: 24px;
    border-left: 4px solid var(--verde);
    display: none;
    font-size: 13.5px;
}

.curriculum-form {
    background: white;
    padding: 32px;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    border: 1px solid var(--borde);
    position: relative;
}

.form-section { margin-bottom: 28px; }
.form-section:last-of-type { margin-bottom: 0; }

.section-title {
    color: var(--verde-oscuro);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--borde);
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-title i { color: var(--verde); font-size: 14px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
    color: var(--gris-texto);
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 12.5px;
}

.required { color: var(--rojo); }

.form-input,
.form-select,
.form-textarea {
    padding: 11px 14px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    font-size: 13.5px;
    font-family: 'Montserrat', sans-serif;
    background: #fafcf9;
    color: var(--gris-texto);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--verde);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 145, 2, 0.10);
}

.form-input.error,
.form-select.error {
    border-color: var(--rojo);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.10);
}

.form-textarea { resize: vertical; min-height: 100px; }

.error-message {
    color: var(--rojo);
    font-size: 11.5px;
    margin-top: 5px;
    display: none;
}

/* Campo de archivo */

.file-input-container { position: relative; display: inline-block; width: 100%; }
.file-input { position: absolute; left: -9999px; opacity: 0; }

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--verde);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    border: 2px dashed transparent;
}

.file-input-label:hover {
    background: var(--verde-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 145, 2, 0.25);
}

.file-input-label.drag-over {
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    border-color: var(--verde);
}

.file-name {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--gris-fondo);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--gris-texto);
    display: none;
}

/* Campo título especial */

.titulo-especial {
    display: none;
    margin-top: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botones */

.form-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 34px;
}

.btn {
    padding: 13px 26px;
    border: none;
    border-radius: 22px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--verde);
    color: white;
    box-shadow: 0 4px 10px rgba(14, 145, 2, 0.25);
}

.btn-primary:hover { background: var(--verde-hover); transform: translateY(-2px); }

.btn-secondary {
    background: white;
    color: var(--gris-texto);
    border: 1px solid var(--borde);
}

.btn-secondary:hover { background: var(--gris-fondo); transform: translateY(-2px); }

/* Loading */

.loading { display: none; text-align: center; color: var(--verde); margin-top: 20px; }
.loading i { font-size: 26px; animation: spin 1s linear infinite; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* =========================================================
   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
   ========================================================= */

@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); }
}

@media (max-width: 768px) {
    .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; 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: 8px; 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: 42px; height: 42px;
        margin: 0; padding: 7px; border: none; border-radius: 10px; background: var(--verde-claro);
        cursor: pointer; flex-shrink: 0; position: relative; z-index: 2200;
    }
    .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); padding: 14px 14px 30px;
        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;
        transform: translateX(100%); transition: transform 0.28s ease; z-index: 2100;
    }
    .nav-links.active { left: 0; transform: translateX(0); }
    .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: 13px; 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); transform: translateX(2px); }
    .nav-links .sistema-epja-item > a { margin-top: 4px; 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; }
    .dropdown-item.open > .dropdown { display: block !important; }
    .dropdown a {
        display: flex !important; align-items: center; justify-content: flex-start !important; width: 100%;
        min-height: 42px; padding: 10px 13px !important; margin: 2px 0; background: white !important;
        border-radius: 8px !important; color: var(--gris-texto) !important; font-size: 11px !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); }

    .cv-page { padding: 25px 12px 35px; }
    .cv-header { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
    .cv-header-icon { width: 48px; height: 48px; border-radius: 13px; font-size: 20px; }
    .cv-header h1 { font-size: 19px; }
    .cv-header p { font-size: 12px; }

    .curriculum-form { padding: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .form-buttons { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   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; }
.cv-page { padding: clamp(126px, 12vw, 150px) 24px 72px; }
.cv-header { max-width: 900px; margin-bottom: 30px; padding: 0 0 22px; border-bottom: 1px solid #dce3eb; }
.cv-header-icon { background: #1f5d9b; box-shadow: 0 7px 18px rgba(31,93,155,.18); }
.section-kicker { color: #1f5d9b; font-family: "Barlow", Arial, sans-serif; }
.cv-header h1 { color: #2e2d2c; font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif; font-weight: 800; }
.cv-header p { color: #5f5f5f; font-size: 15px; }
.curriculum-container { max-width: 900px; }
.curriculum-form { background: #fff; border: 1px solid #e0e5ec; border-radius: 18px; padding: clamp(20px, 4vw, 38px); box-shadow: 0 10px 32px rgba(32,51,76,.07); }
.form-section { border-color: #e4e9ef; }
.section-title { color: #2e2d2c; font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif; }
.section-title i { color: #1f5d9b; }
.form-label { color: #343b44; }
.form-input:focus, .form-select:focus { border-color: #1f5d9b; box-shadow: 0 0 0 3px rgba(31,93,155,.12); outline: none; }
.file-input-label { border-color: #9bb6d5; background: #f3f7fc; color: #1f5d9b; }
.file-input-label:hover, .file-input-label.drag-over { background: #e6eef8; border-color: #1f5d9b; }
.btn-primary { background: #1f5d9b; }
.btn-primary:hover { background: #174775; }
.btn-secondary { background: #f0f2f5; color: #2e2d2c; }
.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) { .cv-page { padding: 112px 14px 46px; } .cv-header { gap: 13px; } .curriculum-form { padding: 20px 16px; } .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 — Envío de currículum
   La página usa colores propios fijos (título #2e2d2c, formulario blanco),
   por eso modo-nocturno.css no los alcanzaba. Los acentos no cambian.
   ========================================================= */
body.modo-nocturno .section-kicker { color: #a9d0ff; }
body.modo-nocturno .cv-header { border-bottom-color: #414a55; }
body.modo-nocturno .cv-header h1 { color: #f2f4f7; }
body.modo-nocturno .cv-header p { color: #b8c2cc; }

body.modo-nocturno .curriculum-form { background: #20262d; border-color: #414a55; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4); }
body.modo-nocturno .form-section { border-color: #414a55; }
body.modo-nocturno .section-title { color: #f2f4f7; border-bottom-color: #414a55; }
body.modo-nocturno .section-title i { color: #a9d0ff; }
body.modo-nocturno .form-label { color: #d5dbe3; }
body.modo-nocturno .required,
body.modo-nocturno .error-message { color: #ff8a76; }

body.modo-nocturno .form-input,
body.modo-nocturno .form-select,
body.modo-nocturno .form-textarea { background: #171b20; border-color: #4a5461; color: #edf1f5; }
body.modo-nocturno .form-input::placeholder,
body.modo-nocturno .form-textarea::placeholder { color: #8a95a1; }
body.modo-nocturno .form-select option { background: #171b20; color: #edf1f5; }
body.modo-nocturno .form-input:focus,
body.modo-nocturno .form-select:focus,
body.modo-nocturno .form-textarea:focus { background: #1b2026; border-color: #90b4e1; box-shadow: 0 0 0 3px rgba(144, 180, 225, 0.22); }
body.modo-nocturno .form-input.error,
body.modo-nocturno .form-select.error { border-color: #ff6b55; }

body.modo-nocturno .file-input-label { background: #1b2733; border-color: #586575; color: #a9d0ff; }
body.modo-nocturno .file-input-label:hover,
body.modo-nocturno .file-input-label.drag-over { background: #293b50; border-color: #90b4e1; }
body.modo-nocturno .file-name { background: #2a3038; color: #d5dbe3; }
/* El texto de ayuda ("Formatos permitidos…") tiene color inline con var(--gris-suave) */
body.modo-nocturno .curriculum-form { --gris-suave: #a3adb8; }

body.modo-nocturno .btn-secondary { background: #2a3038; color: #edf1f5; border-color: #4a5461; }
body.modo-nocturno .btn-secondary:hover { background: #3c4856; }
body.modo-nocturno .success-message { background: #1f3a22; color: #cfe9c9; }
body.modo-nocturno .loading { color: #a9d0ff; }
/* ==========================================
   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;
    }
}
/* Integración: anti-bots (campo trampa fuera de pantalla + recuadro de Turnstile centrado) */
.campo-trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.verificacion-seguridad { display: flex; flex-direction: column; align-items: center; margin-top: 25px; }
.verificacion-seguridad .error-message { text-align: center; }
