/* Canal Interno de Información · Grupo Talento
   Estilo alineado con talentocorporativo.com */

:root {
  --accent: #fd664d;           /* coral corporativo */
  --accent-dark: #e4533b;
  --ink: #030202;              /* casi negro (títulos) */
  --text: #444444;
  --text-soft: #676767;
  --muted: #8a8a8a;
  --line: #e2e2e2;
  --bg: #f6f6f6;
  --bg-alt: #f2f2f2;
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 8px;
  --font: "Nunito Sans", "museo-sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografía corporativa ---------- */
.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
h1 { font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--ink); margin: 0 0 20px; letter-spacing: -.3px; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--ink); margin: 0 0 16px; }
p { margin: 0 0 16px; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { display: block; height: 32px; width: auto; }
.header-tag { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft); }

/* ---------- Hero ---------- */
.hero { background: var(--white); padding: 72px 0 64px; }
.hero .container { max-width: 820px; }
.lead { font-size: 19px; font-weight: 300; line-height: 1.65; color: var(--text); max-width: 720px; margin-bottom: 32px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-dark); border-color: var(--accent-dark); outline: none; }
.btn-outline { background: transparent; border-color: rgba(253,102,77,.75); color: var(--ink); }
.btn-outline:hover, .btn-outline:focus { border-color: var(--accent); background: rgba(253,102,77,.06); outline: none; }
.btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn-sm { padding: 10px 16px; font-size: 12px; letter-spacing: 1.5px; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.mode-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Bloque informativo ---------- */
.info { background: var(--bg-alt); padding: 64px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.info-col p { font-weight: 400; color: var(--text); }
ul.ticks { list-style: none; margin: 0 0 20px; padding: 0; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
ol.steps { list-style: none; counter-reset: paso; margin: 0 0 20px; padding: 0; }
ol.steps li { counter-increment: paso; position: relative; padding-left: 44px; margin-bottom: 12px; }
ol.steps li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 1px;
}
ol.steps strong { color: var(--ink); font-weight: 700; }
.important { border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.important strong { color: var(--ink); }

/* ---------- Zona de trabajo (formulario / consulta) ---------- */
.work { padding: 56px 0 72px; }
.work-in { max-width: 920px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 44px; }
.panel-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; }

.form-group { margin: 0 0 22px; }
.form-group > label:not(.check), .form-group .field-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 8px;
}
.form-group label b { color: var(--accent); font-weight: 700; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.separator {
  font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
  margin: 34px 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block;
}

input[type=text], input[type=email], input[type=tel], textarea, select.form-control {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  width: 100%; background: var(--white); border: 1px solid #cfcfcf; border-radius: var(--radius);
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
input[type=text], input[type=email], input[type=tel], select.form-control { height: 46px; padding: 0 14px; }
textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, select.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(253,102,77,.15); }
select.form-control {
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fd664d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: 10px; line-height: 1.45; }
.form-group > .check { font-size: 15px; }
.form-group > .check > span { font-weight: 600; color: var(--ink); }
.check.legal > span { font-weight: 400; color: var(--text); }
.check input { margin: 4px 0 0; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--accent); }
.checks { margin-top: 6px; }
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.check.legal a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--accent); }
.check.legal a:hover { color: var(--accent); }
.legal-text { display: none; margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--text-soft); background: var(--bg); padding: 14px 16px; border-radius: var(--radius); }
.legal-text.open { display: block; }
.legal-text strong { color: var(--ink); font-weight: 700; }
.legal-p { display: block; margin-bottom: 8px; }
.legal-text a { color: var(--accent-dark); text-decoration: underline; word-break: break-all; }
.legal-p:last-child { margin-bottom: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-group.has-error label { color: var(--accent-dark); }
.form-group.has-error .form-control { border-color: var(--accent); }
.validation { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-dark); margin-top: 6px; }

/* Zona de archivos */
.dropzone {
  position: relative; border: 2px dashed #d6d6d6; border-radius: var(--radius-lg);
  padding: 30px 16px; text-align: center; color: var(--text-soft); font-size: 14px; cursor: pointer; background: var(--bg);
  transition: all .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: rgba(253,102,77,.05); }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-list li .size { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Grabadora */
.recorder { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; background: var(--bg); }
.recorder .check { margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.recorder .hint { font-size: 13px; color: var(--muted); margin: 0 0 14px 26px; }
.rec-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rec-time { font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; margin-left: 6px; }
.rec-time.live { color: var(--accent-dark); font-weight: 700; }
.rec-time.live::before { content: "●"; margin-right: 5px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
#recPreview { width: 100%; margin-top: 12px; }
.rec-attached { margin-top: 10px; font-size: 14px; color: #2a7a2a; font-weight: 600; }

.submit-row { margin: 30px 0 20px; }

.form-errors { border-left: 3px solid var(--accent); background: rgba(253,102,77,.07); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; color: var(--accent-dark); font-size: 14px; margin-bottom: 20px; }
.form-errors-title { font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.form-errors ul { margin: 0; padding-left: 20px; }

/* Resultado */
.result { text-align: center; padding: 24px 10px; }
.result-icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 34px; line-height: 68px; }
.result-text { font-size: 17px; color: var(--text); max-width: 620px; margin: 0 auto 16px; }
.codigo-inline { display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: 2px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; margin-left: 8px; user-select: all; }
.muted { font-size: 13px; color: var(--muted); }

/* Consulta de expediente */
.code-row { display: flex; gap: 12px; align-items: stretch; }
.code-row input { flex: 1 1 auto; font-size: 18px; letter-spacing: 1px; font-weight: 600; }
.expediente { margin-top: 36px; }
.exp-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; margin-bottom: 24px; padding: 16px 20px; background: var(--bg); border-radius: var(--radius-lg); }
.exp-meta strong { color: var(--ink); font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 18px; font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-soft); cursor: pointer; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--white); font-size: 11px; line-height: 20px; text-align: center; margin-left: 4px; }
#expDatos { margin: 0; font-size: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
#expDatos .dato { padding: 10px 0; border-bottom: 1px solid var(--line); }
#expDatos .dato.wide { grid-column: 1 / -1; }
#expDatos dt { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 3px; }
#expDatos dd { margin: 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

.msg { padding: 16px 20px; border-radius: var(--radius-lg); margin-bottom: 12px; font-size: 15px; background: var(--bg); border-left: 3px solid #cfcfcf; }
.msg.informante { border-left-color: var(--accent); }
.msg .msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.msg .msg-head strong { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.msg .msg-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.msg .msg-body { white-space: pre-wrap; word-break: break-word; color: var(--text); }
.msg .file-list { margin-top: 8px; }
.no-messages { font-size: 14px; color: var(--muted); text-align: center; padding: 24px 0; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: 12px; padding: 28px 0; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: 32px; }
  .card { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  h1 { font-size: 28px; }
  .lead { font-size: 17px; }
  .header-tag { display: none; }
  .row2, .checks-grid, #expDatos { grid-template-columns: 1fr; }
  .mode-buttons .btn { flex: 1 1 100%; }
  .btn { white-space: normal; }
  .code-row { flex-direction: column; }
  .card { padding: 22px 16px; }
  .footer-in { flex-direction: column; gap: 8px; }
}

.captcha-row { margin-top: 10px; }
.captcha-row iframe { max-width: 100%; }
