/* =========================================================
   SELECTA RRHH — estilos
   ========================================================= */
:root {
  --navy-900: #081628;
  --navy-800: #0B1F3A;
  --navy-700: #13305A;
  --navy-600: #1E4378;
  --accent: #19A7A0;
  --accent-600: #128C86;
  --accent-50: #E7F6F5;
  --ink: #0F1B2D;
  --text: #43516A;
  --muted: #6B778C;
  --line: #E3E8EF;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .04);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 58, .35);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #7FDCD6; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(25, 167, 160, .7); }
.btn--accent:hover { background: var(--accent-600); }
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.link-btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--accent-600); cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(25, 167, 160, .5); outline-offset: 2px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 31, 58, .5); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); }
.logo__mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--accent); font-weight: 800; font-size: 1.25rem;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: .14em; }
.logo__text small { font-size: .66rem; font-weight: 700; letter-spacing: .5em; color: var(--accent-600); margin-top: 4px; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: var(--accent); color: var(--navy-800); }
.logo--light .logo__text small { color: #7FDCD6; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: .86rem; font-weight: 600; color: var(--ink); padding: 8px 9px; white-space: nowrap; border-radius: 8px; transition: color .2s, background-color .2s; }
.nav a:not(.btn):hover { color: var(--accent-600); background: var(--bg-soft); }
.nav__cta-mobile { display: none; }
.header__cta { min-height: 42px; padding: 0 18px; font-size: .74rem; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.burger span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 16px 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 1.08rem; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.nav__cta-mobile { display: flex; margin-top: 20px; border: 0; border-radius: 999px; font-size: .86rem; min-height: 54px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 40px;
  background: var(--navy-800);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 22, 40, .72) 0%, rgba(8, 22, 40, .82) 60%, rgba(8, 22, 40, .96) 100%),
    url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1600&q=75&auto=format&fit=crop") center 30% / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__inner { position: relative; }
.hero__content { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 20px; }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.18rem); color: rgba(255, 255, 255, .82); max-width: 600px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }

.hero__search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-lg); max-width: 560px; color: var(--muted);
}
.hero__search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; height: 44px; }
.hero__search .btn { min-height: 44px; padding: 0 20px; }

.hero__stats {
  list-style: none; margin: 48px 0 0; padding: 24px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.hero__stats strong { display: block; font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero__stats span { font-size: .8rem; color: rgba(255, 255, 255, .65); }
@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 100px) 0 56px; }
  .hero__stats { max-width: 720px; }
}

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section__head { margin-bottom: 36px; max-width: 680px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--center .eyebrow { justify-content: center; }
.section__lead { font-size: 1.05rem; color: var(--muted); margin: 0; }

/* ---------- Ofertas ---------- */
.section--jobs { background: var(--bg-soft); padding-top: 56px; }
@media (min-width: 900px) { .section--jobs { padding-top: 88px; } }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-sm);
  display: grid; gap: 10px;
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
}
.filters__search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--muted);
}
.filters__search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.filters__search:focus-within { border-color: var(--accent); background: #fff; }
.filters__selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.select { position: relative; display: block; }
.select span { position: absolute; top: 7px; left: 12px; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); pointer-events: none; }
.select select {
  width: 100%; height: 52px; padding: 18px 28px 4px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B778C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
  text-overflow: ellipsis;
}
.select select:focus { outline: 0; border-color: var(--accent); }
@media (max-width: 599px) {
  .filters { position: static; }
  .filters__selects { grid-template-columns: 1fr 1fr; }
  .filters__selects .select:first-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .filters { grid-template-columns: 1.2fr 2fr; align-items: center; }
}

.jobs__meta { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 16px; font-size: .9rem; color: var(--muted); }
.jobs__meta p { margin: 0; }
.jobs__meta strong { color: var(--ink); }

.jobs { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jobs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jobs { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.job {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: jobIn .5s var(--ease) both;
}
@keyframes jobIn { from { opacity: 0; transform: translateY(14px); } }
.job:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dbe6; }
.job__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); overflow: hidden; }
.job__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.job:hover .job__media img { transform: scale(1.05); }
.job__media--empty::after {
  content: "SELECTA RRHH"; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255, 255, 255, .35); font-weight: 800; letter-spacing: .3em; font-size: .8rem;
}
.job__area {
  position: absolute; left: 12px; top: 12px;
  background: rgba(255, 255, 255, .95); color: var(--navy-800);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.job__urgent {
  position: absolute; right: 12px; top: 12px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.job__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.job__company { font-size: .78rem; font-weight: 700; color: var(--accent-600); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.job__title { font-size: 1.3rem; margin-bottom: 12px; }
.job__salary { display: flex; flex-direction: column; margin: -4px 0 14px; font-size: 1.12rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.01em; }
.job__salary span { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.job__req--tasks li::before { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--navy-600); transform: none; top: .6em; left: 4px; }
.jobs__more { text-align: center; margin-top: 32px; }
.jobs__more .btn[hidden] { display: none; }
.job__tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .86rem; color: var(--text); font-weight: 600; }
.job__tags li { display: inline-flex; align-items: center; gap: 6px; }
.job__tags svg { width: 16px; height: 16px; color: var(--accent-600); }
.job__desc { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.job__req-title { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.job__req { list-style: none; margin: 0 0 20px; padding: 0; font-size: .9rem; display: grid; gap: 6px; }
.job__req li { position: relative; padding-left: 22px; }
.job__req li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px);
}
.job .btn { margin-top: auto; width: 100%; min-height: 54px; }

.jobs__empty { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; }
.jobs__empty p { color: var(--muted); }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-50); color: var(--accent-600); font-weight: 800; font-size: 1.05rem; margin-bottom: 18px;
}
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 52px; right: -21px; width: 22px; height: 2px; background: var(--line);
  }
}

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 40px; align-items: center; margin-bottom: 56px; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about__media { position: relative; }
.about__media img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__badge {
  position: absolute; left: 16px; bottom: -22px;
  background: var(--navy-800); color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.about__badge strong { display: block; font-size: 1rem; }
.about__badge span { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.about__content p { font-size: 1.02rem; }

.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--navy-800); border-radius: 20px; overflow: hidden;
}
.stats li { padding: 28px 20px; border-right: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.stats strong { display: block; font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem); color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stats strong > span:first-child { color: var(--accent); }
.stats strong small { font-size: .45em; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.stats__label { font-size: .88rem; color: rgba(255, 255, 255, .7); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li { padding: 40px 32px; border-bottom: 0; }
  .stats li:last-child { border-right: 0; }
}

/* ---------- Sectores ---------- */
.section--sectors { background: var(--navy-800); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.section--sectors::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -250px;
  background: radial-gradient(circle, rgba(25, 167, 160, .22), transparent 65%);
}
.section--sectors h2 { color: #fff; }
.section--sectors .section__lead { color: rgba(255, 255, 255, .7); }
.sectors { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sectors { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.sectors li {
  display: flex; align-items: center; gap: 12px; padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03);
  color: #fff; font-weight: 700; font-size: .95rem;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.sectors li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(25, 167, 160, .5); transform: translateY(-2px); }
.sectors svg { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Confianza ---------- */
.section--trust { background: var(--bg-soft); }
.pillars { display: grid; gap: 16px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: var(--accent); margin-bottom: 20px; }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Empresas ---------- */
.section--companies { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: rgba(255, 255, 255, .8); }
.companies { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .companies { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.companies h2 { color: #fff; }
.companies__intro > p { font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: #fff; font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(25, 167, 160, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319A7A0' stroke-width='3'%3E%3Cpath d='M20 7 9 18l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.companies__img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: none; }
@media (min-width: 960px) { .companies__img { display: block; } }

/* ---------- Formularios ---------- */
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }
.form { padding: 24px 20px; position: relative; }
@media (min-width: 600px) { .form { padding: 36px; } }
.form__hint { color: var(--muted); font-size: .92rem; }
.form__grid { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 50px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B778C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 4px rgba(25, 167, 160, .12); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select, .field.is-invalid .file { border-color: #D9534F; background-color: #FFF7F7; }

.file {
  display: flex !important; align-items: center; gap: 12px; margin: 0 !important;
  padding: 16px; border: 1.5px dashed #C8D1DD; border-radius: var(--radius-sm); background: var(--bg-soft);
  cursor: pointer; font-weight: 600 !important; color: var(--text) !important; font-size: .92rem !important;
  transition: border-color .2s, background-color .2s;
}
.file:hover { border-color: var(--accent); background: var(--accent-50); }
.file svg { color: var(--accent-600); }
.file.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-50); color: var(--ink) !important; }
.file__input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.check.is-invalid span { color: #C9302C; }

.form__error { color: #C9302C; font-size: .9rem; font-weight: 600; background: #FFF4F4; border-radius: 8px; padding: 10px 14px; }
.form__legal { font-size: .78rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form__legal a { text-decoration: underline; }
.form__job { font-weight: 700; color: var(--accent-600); margin-top: -4px; }

.form__success { position: absolute; inset: 0; background: #fff; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.form__success[hidden] { display: none; }
.form__success-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600); margin: 0 auto 18px; animation: pop .5s var(--ease); }
.form__success-icon svg { width: 32px; height: 32px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.05rem;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-600); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2.2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-50); }
.faq details p { margin: 0; padding: 0 44px 22px 0; color: var(--muted); }
.faq details[open] p { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contacto ---------- */
.section--contact { background: var(--bg-soft); }
.contact { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: stretch; } }
.contact address { display: flex; gap: 14px; font-style: normal; font-size: 1.05rem; color: var(--ink); font-weight: 600; margin: 8px 0 28px; }
.contact address svg { width: 24px; height: 24px; color: var(--accent-600); margin-top: 2px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact__list li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact__list li > svg { color: var(--accent-600); }
.contact__k { font-weight: 700; color: var(--ink); min-width: 84px; }
.contact__v { color: var(--muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__v a { color: var(--navy-700); font-weight: 600; }
.contact__v a:hover { color: var(--accent-600); }
.contact__v.is-pending { font-style: italic; color: #9AA4B5; }
.contact__map { border-radius: 20px; overflow: hidden; min-height: 320px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #e9edf2; }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 56px 0 90px; }
@media (min-width: 768px) { .footer { padding-bottom: 28px; } }
.footer__inner { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr 1.4fr; } }
.footer__brand p { margin: 16px 0 0; }
.footer__brand p:first-of-type { font-size: 1.05rem; color: #fff; font-weight: 600; }
.footer__addr { font-size: .88rem; }
.footer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; align-content: start; }
@media (min-width: 600px) { .footer__links { grid-template-columns: repeat(3, 1fr); } }
.footer__links a { font-size: .92rem; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-top: 24px; font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
@media (min-width: 700px) { .modal { align-items: center; padding: 24px; } }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 22, 40, .6); backdrop-filter: blur(4px); animation: fadeIn .3s; }
.modal__panel {
  position: relative; width: 100%; max-width: 680px; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  animation: slideUp .4s var(--ease);
}
@media (min-width: 700px) { .modal__panel { border-radius: 22px; max-height: 90vh; } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .2s; }
.modal__close:hover { background: var(--line); transform: rotate(90deg); }
.modal .form h2 { font-size: 1.7rem; padding-right: 40px; }
.apply-success { text-align: center; padding: 56px 28px; }
.apply-success h2 { font-size: 1.8rem; }
.apply-success p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }

/* ---------- CTA fija mobile ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-weight: 800; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 12px 30px -10px rgba(8, 22, 40, .5);
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .note { background: var(--accent-50); border-radius: 12px; padding: 14px 18px; font-size: .92rem; color: var(--ink); }
