/* =====================================================================
   NORIA Sistema — Estilos del portal de postulación
   Identidad: navy #0D2B3E · teal #3A8FAA · teal claro #5EAAC4 · panel #F4F7F9
   Mobile first.
   ===================================================================== */

:root {
    --navy:        #0D2B3E;
    --teal:        #3A8FAA;
    --teal-light:  #5EAAC4;
    --panel:       #F4F7F9;
    --line:        #e2eaee;
    --text:        #15323f;
    --muted:       #5f7682;
    --white:       #ffffff;
    --shadow:      0 18px 48px -22px rgba(13, 43, 62, 0.35);
    --radius:      18px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(94, 170, 196, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 0%, rgba(58, 143, 170, 0.10), transparent 55%),
        var(--panel);
    min-height: 100vh;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
}

/* ---------- Barra superior ---------- */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
}
.logo-img {
    height: 54px;
    width: auto;
    display: block;
}

/* ---------- Layout ---------- */
.wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 26px 18px 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}
.card:nth-child(2) { animation-delay: .07s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Vacante ---------- */
.codigo {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--teal);
    background: rgba(58, 143, 170, 0.10);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.vacante h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.5px;
}
.empresa {
    color: var(--teal);
    font-weight: 600;
    margin-top: 4px;
    font-size: 16px;
}

.meta {
    list-style: none;
    margin: 20px 0 4px;
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.meta li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.meta li span {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    font-weight: 600;
}

.bloque { margin-top: 22px; }
.bloque h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 7px;
}
.bloque p { color: #324d59; }

/* ---------- Formulario ---------- */
.form-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 21px;
    color: var(--navy);
    margin-bottom: 18px;
}
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.field label span { color: #d4604f; }

.field input {
    width: 100%;
    font: inherit;
    color: var(--text);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfdfe;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(58, 143, 170, 0.15);
}
.field input[type="file"] { padding: 10px 12px; background: var(--panel); cursor: pointer; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }

/* honeypot oculto */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Botón ---------- */
.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--navy);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: background .18s, transform .05s;
}
.btn:hover { background: #11384f; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }

.form-nota {
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
    text-align: center;
}

/* ---------- Alertas ---------- */
.alert {
    background: #fdf1ef;
    border: 1px solid #f3cabf;
    color: #9a3b2a;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert ul { margin: 6px 0 0 18px; }

/* ---------- Estados (éxito / 404 / cerrada) ---------- */
.estado-msg { text-align: center; padding: 40px 26px; }
.estado-msg h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--navy);
    font-size: 26px;
    margin-bottom: 8px;
}
.estado-msg p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.estado-icon {
    font-size: 30px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 8px;
}
.exito .check {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 34px;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px -10px rgba(58,143,170,.7);
}
.psico-box {
    margin-top: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}
.psico-box .btn { margin-top: 12px; }
.muted { color: var(--muted); }

/* ---------- Pie ---------- */
.pie {
    text-align: center;
    padding: 22px;
    color: var(--muted);
    font-size: 12.5px;
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 560px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .meta {
        grid-template-columns: 1fr 1fr;
        gap: 16px 24px;
    }
}

/* =====================================================================
   PANEL DE ADMINISTRACIÓN + LOGIN
   ===================================================================== */

/* ---- Login ---- */
.login-body {
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.login-wrap { width: 100%; max-width: 380px; }
.login-card { text-align: center; padding: 34px 28px; }
.login-logo-img {
    height: 68px;
    width: auto;
    margin: 4px auto 0;
    display: block;
}
.login-sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; margin-top: 10px; }
.login-card form { text-align: left; }

/* ---- Topbar del panel ---- */
.admin-top { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-top-inner {
    max-width: 980px; margin: 0 auto; padding: 12px 20px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
    justify-content: space-between;
}
.admin-brand { display: flex; align-items: center; text-decoration: none; }
.admin-logo-img { height: 46px; width: auto; display: block; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-nav a {
    color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 6px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.admin-nav a:hover { background: var(--panel); color: var(--teal); }
.admin-nav a.salir { color: #c0503f; }

.admin-wrap { max-width: 980px; margin: 0 auto; padding: 26px 18px 48px; }
.admin-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.admin-head h1 {
    font-family: 'Bricolage Grotesque', sans-serif; color: var(--navy);
    font-size: 24px; letter-spacing: -.3px;
}

/* ---- Lista de vacantes ---- */
.vagas-list { display: grid; gap: 16px; }
@media (min-width: 720px) { .vagas-list { grid-template-columns: 1fr 1fr; } }
.vaga-row { padding: 20px; }
.vaga-row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vaga-cargo {
    font-family: 'Bricolage Grotesque', sans-serif; color: var(--navy);
    font-size: 19px; margin-top: 10px;
}
.vaga-empresa { color: var(--teal); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.cand-count {
    font-size: 12px; color: var(--muted); background: var(--panel);
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .3px;
    padding: 3px 9px; border-radius: 999px; margin-left: 6px;
}
.estado-ativa          { background: #e3f4ea; color: #1f7a45; }
.estado-terna_completa { background: #e7f0fb; color: #1f5a9a; }
.estado-encerrada      { background: #eef1f3; color: #5f7682; }
.estado-cancelada      { background: #fdecea; color: #a23b2c; }

.link-box { display: flex; gap: 6px; margin: 8px 0 12px; }
.link-box input {
    flex: 1; font: inherit; font-size: 12.5px; color: var(--muted);
    padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
}
.vaga-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-mini {
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--line); background: #fff; color: var(--navy);
    padding: 8px 13px; border-radius: 9px; text-decoration: none; transition: background .15s;
}
.btn-mini:hover { background: var(--panel); }
.btn-edit { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-edit:hover { background: #327d96; }

/* ---- Modal QR ---- */
.qr-modal {
    position: fixed; inset: 0; background: rgba(13,43,62,.55);
    display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.qr-modal.open { display: flex; }
.qr-box {
    background: #fff; border-radius: 16px; padding: 24px; text-align: center; max-width: 320px;
}
.qr-box h3 { font-family: 'Bricolage Grotesque', sans-serif; color: var(--navy); margin-bottom: 12px; }
.qr-box img { width: 100%; height: auto; image-rendering: pixelated; }
.qr-box #qr-link { font-size: 11px; word-break: break-all; margin: 10px 0 14px; }

/* ---- Formulario de vacante ---- */
.form-vaga textarea, .form-vaga select {
    width: 100%; font: inherit; color: var(--text);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfe;
    transition: border-color .15s, box-shadow .15s;
}
.form-vaga textarea:focus, .form-vaga select:focus,
.field select:focus, .field textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(58,143,170,.15);
}
.form-vaga textarea { resize: vertical; }
.seccion {
    font-family: 'Bricolage Grotesque', sans-serif; color: var(--navy);
    font-size: 16px; margin: 26px 0 14px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.seccion:first-of-type { margin-top: 4px; }
.seccion small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.check-field { display: flex; align-items: flex-end; }
.check-field label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check-field input { width: auto; }

.alert.ok { background: #e8f6ee; border-color: #b7e0c6; color: #1f7a45; }

/* =====================================================================
   LISTADO PÚBLICO DE VACANTES (vitrina)
   ===================================================================== */
.ofertas-intro { padding: 4px 2px 0; }
.ofertas-intro h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(26px, 6vw, 34px);
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.ofertas-intro p { color: var(--muted); margin-top: 6px; }

.ofertas-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .ofertas-grid { grid-template-columns: 1fr 1fr; } }

.oferta-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}
.oferta-cargo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    color: var(--navy);
    line-height: 1.15;
}
.oferta-empresa { color: var(--teal); font-weight: 600; font-size: 14px; margin-top: 3px; }
.oferta-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 12px; }
.chip {
    font-size: 12px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 999px;
}
.oferta-desc { color: #324d59; font-size: 14.5px; flex: 1; margin-bottom: 18px; }

/* =====================================================================
   POSTULANTES POR VACANTE (vista del reclutador)
   ===================================================================== */
.sub-cargo { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sub-cargo .codigo { margin-bottom: 0; }

.postulantes-list { display: grid; gap: 16px; }
@media (min-width: 720px) { .postulantes-list { grid-template-columns: 1fr 1fr; } }

.postulante { padding: 20px; }
.postulante-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.postulante-top h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px; color: var(--navy); line-height: 1.2;
}

.datos { list-style: none; margin: 14px 0 0; display: grid; gap: 9px; }
.datos li { display: flex; flex-direction: column; gap: 1px; font-size: 14px; color: var(--text); }
.datos li span {
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--muted); font-weight: 600;
}
.datos a { color: var(--teal); text-decoration: none; }
.datos a:hover { text-decoration: underline; }

.motivo-actual {
    margin-top: 12px; font-size: 13.5px; color: #9a3b2a;
    background: #fdf1ef; border: 1px solid #f3cabf; border-radius: 10px; padding: 10px 12px;
}

.postulante-acciones { margin: 16px 0 12px; }

.estado-form {
    border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px;
}
.estado-row { display: flex; gap: 8px; }
.estado-row select {
    flex: 1; font: inherit; padding: 9px 11px;
    border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; color: var(--text);
}
.estado-row select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(58,143,170,.15); }
.motivo-wrap { margin-top: 9px; }
.motivo-wrap input {
    width: 100%; font: inherit; padding: 9px 11px;
    border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; color: var(--text);
}
.motivo-wrap input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(58,143,170,.15); }

/* Badges de estado de candidato */
.cest-candidatou_se { background: #eef1f3; color: #5f7682; }
.cest-em_avaliacao  { background: #e7f0fb; color: #1f5a9a; }
.cest-convocado     { background: #fff4e2; color: #9a6a16; }
.cest-em_terna      { background: #ece8fb; color: #5b3fa2; }
.cest-selecionado   { background: #e3f4ea; color: #1f7a45; }
.cest-descartado    { background: #fdecea; color: #a23b2c; } /* =====================================================================
   SNIPPET PARA AGREGAR AL FINAL DE css/style.css
   Estilos de la nota de voz (grabador + consigna + modal de insistencia).
   ===================================================================== */

.aviso-audio {
    background: linear-gradient(135deg, rgba(94,170,196,0.10), rgba(58,143,170,0.05));
    border: 1px solid rgba(58,143,170,0.30);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--navy);
    line-height: 1.5;
}

/* Bloque general nota de voz */
.nota-voz-bloque {
    margin: 24px 0 6px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.nv-titulo {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--navy); font-size: 17px; margin-bottom: 14px;
}
.nv-titulo span { color: #d4604f; }

/* Consigna guiada */
.consigna {
    background: #fff;
    border-left: 3px solid var(--teal);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14.5px;
    color: #324d59;
}
.consigna strong { color: var(--navy); }
.consigna ol { margin: 8px 0 8px 22px; }
.consigna ol li { margin-bottom: 4px; }
.consigna-nota { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Grabador */
.btn-grabar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 22px;
    background: var(--teal); color: #fff; border: none; border-radius: 12px;
    font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
    transition: background .18s, transform .05s;
}
.btn-grabar:hover { background: #327d96; }
.btn-grabar:active { transform: translateY(1px); }
.mic-icon { font-size: 20px; }

.rec-indicador {
    display: flex; align-items: center; gap: 10px;
    color: #c73a2c; font-weight: 600; margin-bottom: 8px;
}
.rec-punto {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    background: #d4604f; animation: pulse-rec 1s infinite;
}
@keyframes pulse-rec {
    0%,100% { opacity: 1; }
    50%     { opacity: 0.35; }
}
.rec-tiempo { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; text-align: center; }
.rec-barra { height: 8px; background: #e2eaee; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
#rec-barra-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-light)); width: 0%; transition: width .2s; }

.rec-ok { color: #1f7a45; font-weight: 600; margin-bottom: 8px; }
#audioPreview { width: 100%; margin: 8px 0 12px; }

/* Alternativa: subir audio */
.subir-audio {
    margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
    font-size: 14px;
}
.subir-audio summary {
    cursor: pointer; color: var(--teal); font-weight: 600; padding: 4px 0;
}
.subir-audio p { color: var(--muted); font-size: 12.5px; margin: 8px 0 6px; }
.subir-audio input[type="file"] {
    width: 100%; padding: 10px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff;
}

/* Modal de insistencia */
.modal-bg {
    position: fixed; inset: 0; background: rgba(13,43,62,0.65);
    display: none; align-items: center; justify-content: center;
    padding: 20px; z-index: 100;
}
.modal-bg.open { display: flex; animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-caja {
    background: #fff; border-radius: 16px; padding: 28px 24px;
    max-width: 420px; width: 100%; text-align: center;
    box-shadow: 0 30px 60px -20px rgba(13,43,62,0.5);
    animation: pop-in .25s cubic-bezier(.2,.7,.3,1);
}
@keyframes pop-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-caja h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--navy); font-size: 20px; margin-bottom: 12px;
}
.modal-caja p { color: #324d59; margin-bottom: 12px; font-size: 14.5px; line-height: 1.5; }
.modal-caja .btn { margin-top: 8px; margin-bottom: 12px; }
.link-escape {
    background: none; border: none; color: var(--muted);
    font: inherit; font-size: 13px; text-decoration: underline;
    cursor: pointer; padding: 4px 8px;
}
.link-escape:hover { color: var(--text); }

/* Reproductor de audio en el panel */
.audio-panel {
    display: block; width: 100%; margin: 8px 0;
}
.audio-panel-vacio {
    font-size: 13px; color: var(--muted); font-style: italic;
    padding: 8px 12px; background: var(--panel); border-radius: 8px;
    display: inline-block;
}

/* Select del formulario */
.field select {
    width: 100%; font: inherit; color: var(--text);
    padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 11px; background: #fbfdfe;
    transition: border-color .15s, box-shadow .15s;
}
.field select:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(58,143,170,.15);
}
/* =====================================================================
   AJUSTE — Etiquetas prominentes en base de talentos
   PEGAR AL FINAL DE css/style.css
   ===================================================================== */

.etiquetas-prominentes {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 14px;
}
.etiqueta-grande {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal), #327d96);
    color: #fff;
    font-size: 14px; font-weight: 700;
    padding: 6px 14px; border-radius: 999px;
    letter-spacing: .3px;
    box-shadow: 0 2px 6px -1px rgba(58,143,170,.35);
}
.etiquetas-vacio {
    font-size: 12.5px; color: var(--muted);
    font-style: italic; margin-bottom: 12px;
}
.etiquetas-vacio a { color: var(--teal); font-weight: 600; text-decoration: none; }
.etiquetas-vacio a:hover { text-decoration: underline; }


