/* css/style.css — Tema SNPP · Rojo principal · Azul secundario */

:root {
    --rojo:         #C8102E;
    --rojo-dark:    #a00c23;
    --rojo-deeper:  #7e0919;
    --rojo-light:   #fdf0f2;
    --rojo-mid:     #f5c6cc;
    --azul:         #003087;
    --azul-light:   #e8f0fe;
    --gris-bg:      #f2f3f5;
    --gris-card:    #ffffff;
    --borde:        #e0e3e8;
    --texto:        #1a1f2b;
    --texto-sec:    #5a6070;
    --texto-hint:   #9aa0ad;
    --verde:        #1a7a3e;
    --verde-bg:     #d4efdf;
    --error-color:  #a93226;
    --error-bg:     #fde8e8;
    --radius:       7px;
    --radius-lg:    12px;
    --shadow-sm:    0 1px 4px rgba(200,16,46,.08);
    --shadow-md:    0 4px 16px rgba(200,16,46,.12);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--gris-bg);
    color: var(--texto);
    font-size: 14px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ── */
.snpp-header {
    background: #fff;
}

/* Banner imagen oficial — se queda arriba, no sticky */
.snpp-banner { background: #fff; width: 100%; line-height: 0; }
.snpp-banner-link { display: block; width: 100%; text-decoration: none; }
.snpp-banner-img {
    display: block;
    width: 100%;
    max-height: 110px;      /* altura máxima reducida */
    object-fit: contain;    /* escala proporcional sin recortar */
    object-position: left center;
}

/* Fallback si la imagen no carga */
.snpp-banner-fallback .snpp-banner-img { display: none; }
.snpp-banner-fallback .snpp-banner-text-fallback { display: flex !important; }
.snpp-banner-text-fallback {
    display: none; align-items: center; gap: 14px;
    padding: 12px 24px; background: #fff;
}
.fallback-badge {
    background: var(--rojo); color: #fff; font-weight: 900; font-size: 22px;
    padding: 6px 14px; border-radius: 4px; letter-spacing: 1px; flex-shrink: 0;
}
.fallback-title { font-size: 16px; font-weight: 800; color: var(--rojo); line-height: 1.2; }
.fallback-sub { font-size: 11.5px; color: #555; margin-top: 2px; }

/* Navbar roja debajo del banner — esta sí es sticky */
.snpp-navbar {
    background: var(--rojo);
    border-top: 2px solid var(--rojo-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.snpp-navbar-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; min-height: 44px; gap: 16px;
}
.snpp-navbar-titulo { color: rgba(255,255,255,.92); font-size: 12.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.snpp-nav { display: flex; gap: 4px; }
.nav-link {
    color: rgba(255,255,255,.88); text-decoration: none; font-size: 12.5px;
    font-weight: 600; padding: 7px 14px; border-radius: var(--radius);
    transition: all .2s; white-space: nowrap; border: 1.5px solid transparent;
}
.nav-link:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); }
.nav-link.activo { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.4); }
.snpp-subheader { display: none; }

/* ── PANEL INFORMATIVO ── */
.info-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--rojo);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 20px;
    overflow: hidden;
}
.info-panel-left {
    padding: 24px 28px;
    border-right: 1px solid var(--borde);
}
.info-panel-right {
    padding: 24px 28px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-titulo {
    font-size: 15px;
    font-weight: 800;
    color: var(--rojo);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-icono { font-size: 20px; }
.info-texto {
    font-size: 13.5px;
    color: var(--texto-sec);
    line-height: 1.65;
    margin-bottom: 14px;
}
.info-gratis {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d4efdf;
    color: #1a6b3a;
    border: 1px solid #a9dfbf;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13.5px;
}
.info-bloque {
    background: #fff;
    border: 1.5px solid var(--borde);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.info-bloque-titulo {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--rojo);
    margin-bottom: 10px;
}
.info-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.info-lista li {
    font-size: 13px;
    color: var(--texto-sec);
    line-height: 1.4;
    padding-left: 4px;
}
.info-beneficiarios {
    background: var(--rojo-light);
    border-color: var(--rojo-mid);
}
.info-beneficiarios .info-bloque-titulo { color: var(--rojo-dark); }
.info-beneficiarios p {
    font-size: 13.5px;
    color: var(--texto);
}
.info-beneficiarios strong { color: var(--rojo); font-size: 15px; }

/* ── HERO BANNER ── */
.form-hero {
    background: linear-gradient(135deg, var(--rojo-deeper) 0%, var(--rojo) 55%, #e8203c 100%);
    color: #fff; text-align: center; padding: 40px 20px 64px;
    position: relative; overflow: hidden;
}
.form-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10h6v6h-6zM36 10h6v6h-6zM10 36h6v6h-6zM36 36h6v6h-6z'/%3E%3C/g%3E%3C/svg%3E");
}
.form-hero h1 { font-size: 24px; font-weight: 800; margin-bottom: 7px; position: relative; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.form-hero p  { font-size: 13.5px; opacity: .88; position: relative; }
.badge-año {
    display: inline-block; background: rgba(255,255,255,.22);
    border: 1.5px solid rgba(255,255,255,.4); color: #fff;
    font-size: 11.5px; font-weight: 800; padding: 4px 14px;
    border-radius: 20px; letter-spacing: 1.5px; margin-bottom: 12px; position: relative;
}

/* ── CONTENEDOR ── */
.main-container {
    max-width: 960px; margin: -34px auto 36px;
    position: relative; z-index: 1; padding: 0 16px; flex: 1;
}
.form-card {
    background: var(--gris-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; border-top: 4px solid var(--rojo);
}

/* ── SECCIONES ── */
.seccion { padding: 24px 28px; border-bottom: 1px solid var(--borde); }
.seccion:last-child { border-bottom: none; }
.seccion-header { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.seccion-num {
    width: 30px; height: 30px; background: var(--rojo); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; flex-shrink: 0; box-shadow: 0 2px 8px rgba(200,16,46,.3);
}
.seccion-titulo { font-size: 13.5px; font-weight: 800; color: var(--texto); text-transform: uppercase; letter-spacing: .5px; }
.seccion-desc { font-size: 12px; color: var(--texto-hint); margin-left: auto; }

/* ── GRILLAS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.col-full { grid-column: 1 / -1; }

/* ── CAMPOS ── */
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label { font-size: 11.5px; font-weight: 700; color: var(--texto-sec); text-transform: uppercase; letter-spacing: .3px; }
.campo label .req { color: var(--rojo); margin-left: 2px; }
.campo input, .campo select, .campo textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--borde);
    border-radius: var(--radius); font-size: 13.5px; color: var(--texto);
    background: #fff; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.campo input[readonly] { background: #f8f9fb; color: #555; cursor: default; border-color: #e6e9ef; }
.campo input[readonly]:focus { box-shadow: none; border-color: #e6e9ef; }

/* CI */
.ci-grupo { display: flex; gap: 8px; }
.ci-grupo input { flex: 1; }
.btn-buscar-ci {
    padding: 10px 18px; background: var(--rojo); color: #fff; border: none;
    border-radius: var(--radius); cursor: pointer; font-size: 13px; font-weight: 700;
    white-space: nowrap; font-family: inherit; display: flex; align-items: center; gap: 6px;
    transition: background .2s, transform .15s; box-shadow: 0 2px 8px rgba(200,16,46,.25);
}
.btn-buscar-ci:hover  { background: var(--rojo-dark); transform: translateY(-1px); }
.btn-buscar-ci:disabled { background: #bbb; cursor: not-allowed; transform: none; box-shadow: none; }
.ci-estado { font-size: 12px; min-height: 18px; margin-top: 3px; }
.ci-estado.cargando { color: var(--texto-hint); }
.ci-estado.ok       { color: var(--verde); font-weight: 700; }
.ci-estado.err      { color: var(--error-color); font-weight: 700; }

/* ── ESPECIALIDADES ── */
.espec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px; }
.espec-card {
    border: 2px solid var(--borde); border-radius: var(--radius); padding: 13px 14px;
    cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600; user-select: none; background: #fff; line-height: 1.3;
}
.espec-card:hover { border-color: var(--rojo); background: var(--rojo-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.espec-card.activo { border-color: var(--rojo); background: var(--rojo); color: #fff; box-shadow: 0 4px 14px rgba(200,16,46,.35); }
.espec-card input[type="radio"] { display: none; }
.espec-icono { font-size: 22px; flex-shrink: 0; }

/* Profesiones */
#bloque-profesiones { display: none; margin-top: 20px; }
.prof-subtitulo {
    font-size: 12px; font-weight: 700; color: var(--rojo); text-transform: uppercase;
    letter-spacing: .4px; margin-bottom: 10px; padding: 8px 12px;
    background: var(--rojo-light); border-left: 3px solid var(--rojo); border-radius: 0 4px 4px 0;
}
.prof-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px;
}
.prof-item {
    display: flex; align-items: center; gap: 9px; padding: 9px 13px;
    border: 1.5px solid var(--borde); border-radius: var(--radius);
    cursor: pointer; transition: all .15s; font-size: 13px; user-select: none; background: #fff;
}
.prof-item:hover  { border-color: var(--rojo); background: var(--rojo-light); }
.prof-item.selec  { border-color: var(--rojo); background: var(--rojo-light); font-weight: 700; color: var(--rojo-dark); }
.prof-item input[type="checkbox"] { accent-color: var(--rojo); width: 15px; height: 15px; flex-shrink: 0; }
.prof-footer { margin-top: 8px; font-size: 12px; color: var(--texto-hint); }
.prof-footer span { color: var(--rojo); font-weight: 700; }

/* ── RADIOS ── */
.radio-grupo { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-opcion {
    display: flex; align-items: center; gap: 9px; padding: 11px 18px;
    border: 2px solid var(--borde); border-radius: var(--radius); cursor: pointer;
    font-size: 13.5px; font-weight: 500; transition: all .2s; user-select: none; background: #fff;
}
.radio-opcion:hover  { border-color: var(--rojo); background: var(--rojo-light); }
.radio-opcion.activo { border-color: var(--rojo); background: var(--rojo-light); font-weight: 700; color: var(--rojo-dark); }
.radio-opcion input[type="radio"] { accent-color: var(--rojo); width: 15px; height: 15px; }

/* ── GEOREFERENCIA ── */
.geo-contenedor { margin-top: 8px; }
#mapa-contenedor {
    width: 100%; height: 300px; border: 2px solid var(--borde);
    border-radius: var(--radius); overflow: hidden; display: none;
    margin-top: 8px; box-shadow: inset 0 1px 4px rgba(0,0,0,.06);
}
.btn-geo {
    padding: 8px 16px; background: #2e7d32; color: #fff; border: none;
    border-radius: var(--radius); cursor: pointer; font-size: 12.5px; font-weight: 700;
    font-family: inherit; transition: background .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-geo:hover { background: #1b5e20; }
.coords-box {
    display: none; margin-top: 7px; padding: 7px 12px;
    background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 4px; font-size: 12px; color: #2e7d32;
}

/* ── FOOTER FORMULARIO ── */
.form-footer {
    background: #fafafa; border-top: 1px solid var(--borde);
    padding: 20px 28px; display: flex; justify-content: space-between;
    align-items: center; gap: 12px; flex-wrap: wrap;
}
.form-footer-nota { font-size: 11.5px; color: var(--texto-hint); max-width: 420px; line-height: 1.5; }
.btns-grupo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn-enviar {
    padding: 12px 34px; background: var(--rojo); color: #fff; border: none;
    border-radius: var(--radius); font-size: 15px; font-weight: 800; cursor: pointer;
    font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(200,16,46,.35);
}
.btn-enviar:hover   { background: var(--rojo-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(200,16,46,.45); }
.btn-enviar:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-limpiar {
    padding: 11px 22px; background: #fff; color: var(--texto-sec);
    border: 1.5px solid var(--borde); border-radius: var(--radius); font-size: 13px;
    cursor: pointer; font-family: inherit; transition: all .2s;
}
.btn-limpiar:hover { border-color: var(--rojo); color: var(--rojo); background: var(--rojo-light); }

/* ── MODAL ÉXITO ── */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 999; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal-card {
    background: #fff; border-radius: var(--radius-lg); max-width: 480px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.28); overflow: hidden; animation: modalIn .28s ease;
    border-top: 5px solid var(--rojo);
}
@keyframes modalIn { from { transform: scale(.9) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { background: linear-gradient(135deg, var(--rojo-deeper), var(--rojo)); color: #fff; padding: 28px 24px 22px; text-align: center; }
.modal-check { font-size: 52px; margin-bottom: 8px; }
.modal-header h2 { font-size: 19px; font-weight: 800; }
.modal-header p  { font-size: 13px; opacity: .88; margin-top: 4px; }
.modal-body { padding: 24px; }
.exp-box { background: var(--rojo-light); border: 2px dashed var(--rojo); border-radius: 8px; padding: 16px 20px; text-align: center; margin-bottom: 16px; }
.exp-label { font-size: 11px; font-weight: 700; color: var(--texto-sec); text-transform: uppercase; letter-spacing: .5px; }
.exp-codigo { font-size: 26px; font-weight: 900; letter-spacing: 3px; color: var(--rojo); margin: 8px 0 6px; font-family: 'Courier New', monospace; }
.exp-aviso { font-size: 12px; color: var(--texto-sec); }
.modal-pasos { font-size: 12.5px; color: var(--texto-sec); line-height: 1.8; padding-left: 4px; }
.modal-pasos li { margin-bottom: 2px; }
.modal-footer { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 9px; }
.btn-modal-consultar {
    display: block; text-align: center; padding: 12px; background: var(--rojo); color: #fff;
    text-decoration: none; border-radius: var(--radius); font-weight: 700; font-size: 14px;
    transition: background .2s; box-shadow: 0 3px 10px rgba(200,16,46,.3);
}
.btn-modal-consultar:hover { background: var(--rojo-dark); }
.btn-modal-cerrar {
    display: block; text-align: center; padding: 11px; background: #f5f6f8;
    color: var(--texto-sec); border: 1.5px solid var(--borde); border-radius: var(--radius);
    font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600; transition: all .2s;
}
.btn-modal-cerrar:hover { border-color: var(--rojo); color: var(--rojo); background: var(--rojo-light); }

/* ── ALERTA INLINE ── */
.alerta { display: none; padding: 13px 18px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; align-items: center; gap: 10px; margin: 0 28px 16px; }
.alerta.error { background: var(--error-bg); color: var(--error-color); border: 1px solid var(--rojo-mid); display: flex; }
.alerta.exito { background: var(--verde-bg); color: var(--verde); border: 1px solid #a9dfbf; display: flex; }

/* ── CONSULTA ── */
.consulta-hero { background: linear-gradient(135deg, var(--rojo-deeper) 0%, var(--rojo) 100%); color: #fff; padding: 48px 20px; text-align: center; }
.consulta-hero h2 { font-size: 26px; margin-bottom: 8px; font-weight: 800; }
.consulta-hero p  { opacity: .85; font-size: 14px; }
.consulta-box {
    max-width: 720px; margin: -30px auto 0; background: #fff;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 32px; position: relative; z-index: 1; border-top: 4px solid var(--rojo);
}
.tabs { display: flex; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--borde); margin-bottom: 24px; }
.tab-btn {
    flex: 1; padding: 12px; border: none; background: #f5f6f8; font-size: 13.5px;
    font-weight: 600; cursor: pointer; font-family: inherit; color: var(--texto-sec); transition: all .2s;
}
.tab-btn.activo { background: var(--rojo); color: #fff; }
.tab-btn:not(.activo):hover { background: var(--rojo-light); color: var(--rojo); }
.tab-panel { display: none; }
.tab-panel.activo { display: block; }
.campo-busq { display: flex; gap: 8px; }
.campo-busq input {
    flex: 1; padding: 12px 16px; border: 1.5px solid var(--borde);
    border-radius: var(--radius); font-size: 14px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.campo-busq input:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
.btn-consultar {
    padding: 12px 24px; background: var(--rojo); color: #fff; border: none;
    border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: background .2s; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(200,16,46,.25);
}
.btn-consultar:hover { background: var(--rojo-dark); }
.resultado-card {
    background: #fafbfc; border: 1.5px solid var(--borde);
    border-radius: 10px; padding: 24px; margin-top: 24px; border-top: 3px solid var(--rojo);
}
.expediente-num { font-size: 22px; font-weight: 900; color: var(--rojo); letter-spacing: 2px; margin-bottom: 4px; font-family: 'Courier New', monospace; }
.estado-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.info-item label { font-size: 11px; font-weight: 700; color: var(--texto-hint); text-transform: uppercase; display: block; margin-bottom: 2px; }
.info-item span  { font-size: 13.5px; color: var(--texto); }
.profs-lista { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.prof-tag { background: var(--rojo-light); color: var(--rojo-dark); border: 1px solid var(--rojo-mid); border-radius: 4px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.historial { margin-top: 28px; }
.historial h4 { font-size: 11.5px; text-transform: uppercase; color: var(--rojo); font-weight: 800; letter-spacing: .5px; margin-bottom: 16px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--borde); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-dot { position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.tl-fecha  { font-size: 11px; color: var(--texto-hint); }
.tl-estado { font-size: 13px; font-weight: 700; color: var(--texto); }
.tl-obs    { font-size: 12px; color: var(--texto-sec); margin-top: 2px; }
.lista-solicitudes { margin-top: 20px; }
.sol-item {
    border: 1.5px solid var(--borde); border-radius: var(--radius); padding: 15px 18px;
    margin-bottom: 10px; cursor: pointer; transition: all .2s;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.sol-item:hover { border-color: var(--rojo); background: var(--rojo-light); transform: translateX(3px); }
.sol-item .cod  { font-weight: 800; color: var(--rojo); font-size: 15px; font-family: 'Courier New', monospace; }
.sol-item .esp  { font-size: 12px; color: var(--texto-sec); margin-top: 2px; }
.sol-item .fecha{ font-size: 11px; color: var(--texto-hint); margin-top: 4px; }
.msg-error { background: var(--error-bg); border: 1px solid var(--rojo-mid); color: var(--error-color); padding: 16px; border-radius: var(--radius); margin-top: 20px; font-size: 13.5px; }

/* ── BOTÓN IMPRIMIR CERTIFICADO ── */
.btn-imprimir-cert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .3px;
    transition: all .2s;
    box-shadow: 0 3px 12px rgba(13,148,136,.35);
    white-space: nowrap;
    flex-wrap: wrap;
}
.btn-imprimir-cert:hover {
    background: linear-gradient(135deg, #0f766e, #115e59);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13,148,136,.45);
}
.btn-imprimir-cert:active { transform: translateY(0); }
.btn-imprimir-cert.multi {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
}

/* Tag de profesión dentro del botón */
.cert-prof-tag {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Contenedor múltiples certificados */
.multi-cert-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 260px;
    max-width: 320px;
}
.multi-cert-titulo {
    font-size: 11.5px;
    font-weight: 800;
    color: #0d9488;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

/* ── MODAL DESCARGA CON PROGRESO ── */
.dl-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.dl-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: dlIn .3s ease;
    border-top: 5px solid #0d9488;
}
@keyframes dlIn {
    from { transform: scale(.88) translateY(16px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.dl-icono {
    font-size: 48px;
    margin-bottom: 10px;
    animation: dlFloat 2s ease-in-out infinite;
}
@keyframes dlFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.dl-titulo {
    font-size: 18px;
    font-weight: 800;
    color: var(--texto);
    margin-bottom: 4px;
}
.dl-subtitulo {
    font-size: 13px;
    color: #0d9488;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 4px 12px;
    background: #f0fdf9;
    border-radius: 20px;
    display: inline-block;
}
.dl-progress-wrap {
    background: #e5e7eb;
    border-radius: 99px;
    height: 12px;
    overflow: hidden;
    margin: 16px 0 8px;
}
.dl-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #0d9488);
    background-size: 200% 100%;
    border-radius: 99px;
    transition: width .4s ease;
    animation: dlShimmer 1.5s linear infinite;
}
@keyframes dlShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
.dl-pct {
    font-size: 22px;
    font-weight: 900;
    color: #0d9488;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}
.dl-estado {
    font-size: 12.5px;
    color: var(--texto-sec);
    min-height: 18px;
    margin-top: 4px;
}
.dl-ok {
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
    margin-top: 8px;
    padding: 10px;
    background: #dcfce7;
    border-radius: 8px;
}
.dl-err {
    font-size: 13px;
    color: var(--error-color);
    margin-top: 8px;
    padding: 10px;
    background: var(--error-bg);
    border-radius: 8px;
    line-height: 1.5;
}

/* Aviso cuando certificado aún no está en sistema */
.cert-aviso {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    margin-top: 14px;
    line-height: 1.5;
}

/* ── FOOTER SITIO ── */
.snpp-footer { background: var(--rojo-deeper); color: rgba(255,255,255,.82); padding: 22px 20px; margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; font-size: 12.5px; }
.snpp-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.snpp-footer a:hover { color: #fff; text-decoration: underline; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 14px 0 10px; }
.footer-copy { max-width: 1100px; margin: 0 auto; font-size: 11px; opacity: .5; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .info-panel { grid-template-columns: 1fr; }
    .info-panel-left { border-right: none; border-bottom: 1px solid var(--borde); }
    .seccion { padding: 18px 16px; }
    .form-hero { padding: 30px 16px 52px; }
    .form-hero h1 { font-size: 19px; }
    .snpp-navbar-inner { padding: 0 14px; min-height: 40px; }
    .snpp-navbar-titulo { display: none; }
    .snpp-nav .nav-link { font-size: 11.5px; padding: 6px 10px; }
    .espec-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .btn-enviar { justify-content: center; }
    .consulta-box { margin: -20px 12px 0; padding: 20px; }
    .info-grid { grid-template-columns: 1fr; }
    .tabs .tab-btn { font-size: 12px; padding: 10px 8px; }
}
