/* =========================================================
   LANDING PAGE DE RECLUTAMIENTO — styles.css
   Mobile-first. Sin dependencias externas.
   Personaliza la paleta en las variables de :root.
   ========================================================= */

:root {
  /* Paleta */
  --navy: #10243A;
  --navy-700: #183352;
  --navy-600: #24466B;
  --white: #FFFFFF;
  --gray-50: #F2F5F8;
  --gray-100: #E6EBF1;
  --gray-300: #C5CFDA;
  --gray-500: #6B7887;
  --text: #2B3440;          /* gris oscuro para textos */
  --text-muted: #55606D;
  --gold: #D1AE6C;          /* acento sobre fondos oscuros / botones */
  --gold-soft: #F4EBDA;
  --gold-dark: #8A6A2C;     /* acento para texto sobre blanco (contraste AA) */
  --error: #B42318;
  --error-bg: #FEF3F2;
  --success: #1F7A4D;

  /* Tipografía (fuentes del sistema: carga instantánea) */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  /* Medidas */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 58, .06), 0 2px 8px rgba(16, 36, 58, .05);
  --shadow-md: 0 10px 30px rgba(16, 36, 58, .10);
  --header-h: 68px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--navy-600);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 650; }

p { margin: 0 0 1em; }

a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 820px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px;
  font: inherit; font-weight: 650; font-size: .95rem; letter-spacing: .03em;
  border: 1.5px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(209, 174, 108, .35); }
.btn-primary:hover { background: #C9A25C; color: var(--navy); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--navy); }

.btn-small { min-height: 40px; padding: 8px 16px; font-size: .85rem; }
.btn-large { min-height: 56px; padding: 14px 32px; font-size: 1rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--gray-100);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; letter-spacing: .01em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--navy) 0 55%, var(--gold) 55% 100%);
}
.brand-name { font-size: 1.05rem; line-height: 1.2; }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; }
.main-nav a:hover { color: var(--navy); text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-btn {
  min-width: 40px; min-height: 40px; padding: 4px 8px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--gray-500);
}
.lang-btn:hover { color: var(--navy); }
.lang-btn[aria-pressed="true"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang-sep { color: var(--gray-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(1200px 500px at 100% 0%, var(--gold-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}
.hero-grid { display: block; }
.hero-content { max-width: 760px; }

.eyebrow, .section-kicker {
  display: inline-block; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow { padding: 6px 12px; border: 1px solid #E5D3AE; border-radius: 10px; background: var(--white); font-size: .72rem; }
@media (min-width: 640px) { .eyebrow { border-radius: 999px; font-size: .78rem; } }

.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); margin-bottom: .45em; }
.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 36em; }

.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-icon {
  flex: none; width: 26px; height: 26px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--navy); color: var(--gold);
}
.hero-note { margin-top: 14px; font-size: .92rem; color: var(--text-muted); }
.hero .btn-large { width: 100%; }

/* Primera pantalla en azul marino con texto blanco */
.hero {
  color: var(--white);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(209, 174, 108, .18) 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(36, 70, 107, .55) 0%, transparent 65%),
    var(--navy);
}
.hero h1 { color: var(--white); }
.hero .lead { color: #D5DDE6; }
.hero .hero-points li { color: var(--white); }
.hero .hero-note { color: #B9C5D2; }
.hero .eyebrow { background: transparent; border-color: rgba(209, 174, 108, .55); color: var(--gold); }
.hero .check-icon { background: var(--gold); color: var(--navy); }
.hero :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--gold); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.section-intro { color: var(--text-muted); font-size: 1.05rem; }

/* Tarjetas */
.cards { display: grid; gap: 20px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); }
.card p { color: var(--text-muted); margin: 0; }
.card-icon { width: 48px; height: 48px; padding: 11px; margin-bottom: 18px; border-radius: 12px; background: var(--navy); color: var(--gold); }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: none; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-100); }
.step-number { display: block; margin-bottom: 14px; font-family: var(--font-serif); font-size: 2.2rem; line-height: 1; color: var(--gold-dark); }
.step p { color: var(--text-muted); margin: 0; }

/* Capacitación */
.training-grid { display: grid; gap: 36px; }
.training-text h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.training-text p { color: var(--text-muted); font-size: 1.05rem; }
.note {
  font-size: .92rem !important; padding: 14px 16px; border-left: 3px solid var(--gold);
  background: var(--gray-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.training-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.training-list li { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--gray-100); background: var(--white); }
.training-list h3 { font-size: 1.02rem; margin-bottom: .3em; }
.training-list p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Formulario ---------- */
.section-form { background: linear-gradient(180deg, var(--gray-50), var(--white)); }
.form-head h2:focus { box-shadow: none; }
.form-card {
  padding: 24px 18px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
}

.progress { display: flex; list-style: none; margin: 0 0 28px; padding: 0; gap: 8px; }
.progress-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.progress-step:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; left: calc(50% + 24px); right: calc(-50% + 20px);
  height: 2px; background: var(--gray-100);
}
.progress-step.is-done:not(:last-child)::after { background: var(--gold); }
.progress-dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  background: var(--gray-50); color: var(--gray-500); border: 2px solid var(--gray-100);
}
.progress-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); }
.progress-step.is-active .progress-dot { background: var(--navy); color: var(--white); border-color: var(--navy); }
.progress-step.is-active .progress-label { color: var(--navy); }
.progress-step.is-done .progress-dot { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { padding: 0; margin-bottom: 6px; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); }
.required-note { font-size: .88rem; color: var(--text-muted); }

.field-grid { display: grid; gap: 18px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .93rem; color: var(--navy); }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="date"], select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2310243A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
input:hover, select:hover { border-color: var(--gray-500); }
input:focus-visible, select:focus-visible { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 70, 107, .25); border-radius: var(--radius-sm); }
input::placeholder { color: #8994A1; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); background-color: var(--error-bg); }

.state-picker { display: grid; gap: 8px; }
.state-search {
  padding-left: 40px !important;
  background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='9' cy='9' r='5.5' fill='none' stroke='%236B7887' stroke-width='1.8'/%3E%3Cpath d='M13 13l4 4' stroke='%236B7887' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 13px center / 18px;
}

.field-hint { margin: 0; font-size: .84rem; color: var(--text-muted); }
.field-error { margin: 0; font-size: .86rem; font-weight: 600; color: var(--error); }
.field-error::before { content: "! "; }

.choice-group { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; display: grid; gap: 10px; }
.choice-group legend { padding: 0; margin-bottom: 10px; font-weight: 650; color: var(--navy); font-size: 1.02rem; }
.choice-group .field-hint { margin-top: -6px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-100); background: var(--white);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.choice:hover { border-color: var(--gray-300); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--gray-50); }
.choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.choice input:focus-visible { box-shadow: 0 0 0 3px rgba(36, 70, 107, .35); border-radius: 4px; }
.choice-group[aria-invalid="true"] .choice { border-color: #F3B8B2; }

.info-note { margin: 22px 0 0; padding: 14px 16px; font-size: .92rem; border-radius: var(--radius-sm); background: var(--gray-50); color: var(--text-muted); }
.info-note-accent { margin: 12px 0 0; background: var(--gold-soft); color: #5B4720; border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.duration-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .92rem; font-weight: 600; color: var(--navy); }
.duration-note svg { width: 20px; height: 20px; color: var(--gold-dark); }

.summary { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.summary h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.summary-list { display: grid; gap: 12px; margin: 0; }
.summary-list div { min-width: 0; }
.summary-list dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.summary-list dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.summary-status { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; color: #D5DDE6; }

.consent { margin-top: 22px; }
.choice-consent { font-size: .92rem; background: var(--gray-50); }
.choice-consent a { font-weight: 600; }

.form-alert { margin: 22px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--error-bg); color: var(--error); font-weight: 600; font-size: .92rem; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.form-actions .btn { flex: 1 1 160px; }

/* Resultado */
.form-result { text-align: center; padding: 12px 4px; }
.form-result:focus { box-shadow: none; }
.result-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; }
.result-icon svg { width: 32px; height: 32px; }
.result-icon.is-info { background: var(--gold-soft); color: var(--gold-dark); }
.result-icon.is-success { background: #E7F4EC; color: var(--success); }
.form-result h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.form-result p { color: var(--text-muted); max-width: 34em; margin-left: auto; margin-right: auto; }
.result-extra { font-size: .9rem; }

/* ---------- Acordeón ---------- */
.accordion { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--gray-100); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 650; color: var(--navy);
  background: none; border: 0; border-radius: var(--radius);
}
.faq-question:hover { background: var(--gray-50); }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gray-50); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  background: var(--navy); transform: translate(-50%, -50%); transition: transform .2s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-icon { background: var(--gold); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 20px 20px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA final ---------- */
.final-cta {
  padding: 72px 0; text-align: center; color: var(--white);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(209, 174, 108, .22), transparent 70%),
    var(--navy);
}
.final-inner { max-width: 760px; }
.final-cta h2 { color: var(--white); font-size: clamp(1.8rem, 5vw, 2.6rem); }
.final-cta p { color: #D5DDE6; font-size: 1.05rem; margin-bottom: 2rem; }

/* ---------- Pie de página ---------- */
.site-footer { background: #0B1A2B; color: #C3CDD8; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.site-footer :focus-visible { box-shadow: 0 0 0 3px #0B1A2B, 0 0 0 6px var(--gold); }
.footer-top { display: grid; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand p { margin: 12px 0 0; max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lang-switch-footer .lang-btn { color: #9AA8B7; }
.lang-switch-footer .lang-btn:hover, .lang-switch-footer .lang-btn[aria-pressed="true"] { color: var(--white); }
.lang-switch-footer .lang-sep { color: #44566B; }

.privacy-notice { padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.privacy-notice:focus { box-shadow: none; }
.privacy-notice h2 { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; color: var(--white); letter-spacing: .02em; }
.privacy-notice p { font-size: .86rem; max-width: 70em; }

.footer-bottom { padding-top: 24px; }
.disclaimer { font-size: .8rem; color: #8F9DAD; max-width: 70em; }
.copyright { margin: 0; font-size: .82rem; color: #8F9DAD; }

/* ---------- Tablet (≥ 640px) ---------- */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .hero .btn-large { width: auto; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .form-card { padding: 36px; }
  .summary-list { grid-template-columns: 1fr 1fr; }
  .summary-wide { grid-column: 1 / -1; }
  .form-actions .btn { flex: 0 0 auto; }
  .form-actions { justify-content: flex-end; }
  .form-result .form-actions { justify-content: center; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: inline-flex; }
  .footer-top { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
}

/* ---------- Escritorio (≥ 960px) ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .main-nav { display: block; }
  .hero { padding: 72px 0 96px; }
  .section { padding: 96px 0; }
  .cards, .steps { grid-template-columns: repeat(3, 1fr); }
  .training-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .training-list { grid-template-columns: 1fr 1fr; }
  .form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .form-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .form-card { padding: 44px; }
  .final-cta { padding: 96px 0; }
}

/* ---------- Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .btn, .choice, .card { border: 1px solid CanvasText; }
}

/* Campo trampa contra spam (no visible) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
