/* ═══════════════════════════════════════════════════════════════
   vacantesgdl.com — Editorial mexicano moderno
   Display: Instrument Serif (carácter serif moderno)
   Body:    Geist (sans técnica, no genérica)
   Acento:  amber industrial #d97706 (no morado, no azul corporativo)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:           #f5f1ea;   /* off-white cálido, tipo papel periódico */
  --bg-alt:       #ebe4d6;   /* segundo plano de papel envejecido */
  --ink:          #0c0a09;   /* negro tinta */
  --ink-soft:     #44403c;
  --paper:        #fbf8f1;   /* papel más claro para cards */
  --rule:         #0c0a09;   /* línea de regla, mismo color que tinta */

  --amber:        #b45309;   /* acento ámbar industrial */
  --amber-deep:   #78350f;
  --amber-bright: #f59e0b;
  --whatsapp:     #128c4f;
  --whatsapp-dk:  #0d6e3e;

  --serif:  'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans:   'Geist', system-ui, sans-serif;

  --max:    1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
}

/* Decorative grain overlay para textura de papel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Topbar / Periódico masthead ─────────────────────────────── */
.hero {
  border-bottom: 1.5px solid var(--rule);
  padding: 18px 0 0;
  background: var(--bg);
}
.hero .masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
  font-weight: 600;
}
.hero .masthead .edition { color: var(--amber); }
.hero .masthead .masthead-zone { flex: 1; text-align: center; }
.hero .masthead .date { font-feature-settings: "tnum"; }

.masthead-cta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}
.masthead-cta:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}
.masthead-cta:active { transform: translateY(1px); }
.masthead-cta:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.hero-inner {
  padding: 80px 0 96px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
}
.hero h1 .ampersand {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-bright);
}

.hero-right { padding-bottom: 14px; }
.hero .lede {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 0 28px;
  color: var(--ink-soft);
}
.hero .lede strong { color: var(--ink); font-weight: 700; }

.hero-rule {
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1.5px solid var(--rule);
  background: var(--bg);
}
.stats > div {
  padding: 24px var(--gutter);
  border-right: 1px solid var(--ink);
  font-family: var(--sans);
}
.stats > div:last-child { border-right: 0; }
.stats .num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--amber);
  display: block;
  margin-bottom: 4px;
  font-feature-settings: "tnum";
}
.stats .lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ─── CTA buttons ─────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;          /* WCAG/Apple touch target */
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:active { transform: translateY(1px); }

.cta-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--ink);
}
.cta-primary:hover { background: var(--amber); border-color: var(--amber); color: #fff; }

.cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  margin-left: 8px;
}
.cta-ghost:hover { background: var(--ink); color: var(--bg); }

.cta-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: 1.5px solid var(--whatsapp);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta-whatsapp::before {
  content: "";
  width: 16px; height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.999-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.886 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0 0 20.464 3.488"/></svg>') center/contain no-repeat;
}
.cta-whatsapp:hover { background: var(--whatsapp-dk); border-color: var(--whatsapp-dk); }

.cta-large {
  font-size: 16px;
  padding: 20px 40px;
}

/* ─── Sections ────────────────────────────────────────────────── */
.section {
  padding: clamp(56px, 10vw, 96px) 0;
  border-bottom: 1.5px solid var(--rule);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.section-head .kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.section-head .kicker .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.section h2 em {
  font-style: italic;
  color: var(--amber);
}
.section-sub {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 56ch;
  margin: 0;
}

/* ─── Buscador de vacantes ────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 8px 0;
  margin: 56px 0 0;
  background: var(--bg);
  position: relative;
}
.search-bar .search-icon {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--amber);
  padding-left: 4px;
  display: inline-block;
  transform: translateY(2px);
}
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(20px, 3.5vw, 32px);
  padding: 14px 0;
  color: var(--ink);
  outline: 0;
  min-width: 0;
  font-feature-settings: "ss01";
}
.search-bar input::placeholder {
  color: var(--ink-soft);
  opacity: 0.65;
  font-style: italic;
}
/* Hide native search input clear button (Chrome) */
.search-bar input::-webkit-search-decoration,
.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-results-button,
.search-bar input::-webkit-search-results-decoration { display: none; }

.search-clear {
  background: transparent;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.search-clear:hover { background: var(--ink); color: var(--bg); }

.search-count {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  padding-right: 8px;
  white-space: nowrap;
  font-feature-settings: "tnum";
}
.search-count.has-filter { color: var(--amber); }

.no-results {
  padding: 64px 24px 80px;
  text-align: center;
  font-family: var(--serif);
}
.no-results p {
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
}
.no-results em {
  color: var(--amber);
  font-style: italic;
}
.no-results .no-results-hint {
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin: 0;
}

.card[hidden] { display: none; }

/* ─── Cards de vacantes — grid asimétrico ─────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--rule);
}
.card {
  grid-column: span 6;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3.5vw, 36px);
  background: var(--paper);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.18s ease;
}
/* Tercera card cada fila ocupa más */
.grid .card:nth-child(odd) { border-right: 1px solid var(--ink); }
.grid .card:nth-child(even) { border-right: 0; }
.grid .card.featured {
  grid-column: span 12;
  background: var(--ink);
  color: var(--bg);
}
.card:hover { background: var(--bg-alt); }
.card.featured:hover { background: #1c1917; }

.card .num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 28px;
  font-feature-settings: "tnum";
  display: flex;
  align-items: center;
  gap: 14px;
}
.card .num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.2;
}
.card.featured .num { color: var(--amber-bright); }
.card.featured .num::after { background: var(--bg); opacity: 0.25; }

.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: inherit;
}
.card.featured h3 { font-size: clamp(32px, 5.5vw, 48px); }
.card .brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 11px;
  background: var(--amber);
  color: #fff;
  padding: 4px 10px;
  border-radius: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: 6px;
  margin-left: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}
.card a.brand:hover {
  background: var(--amber-deep);
  color: #fff;
}
.card a.brand:active { transform: translateY(1px); }
.card a.brand:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.card .brand .map-pin {
  font-size: 11px;
  line-height: 1;
  /* Render emoji in color even when inside a strong-color badge */
  filter: grayscale(0);
}

.card .salary {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 32px);
  margin: 0 0 6px;
  color: inherit;
  line-height: 1.1;
}
.card.featured .salary { color: var(--amber-bright); }
.card .salary em { font-style: italic; }
.card .bonus {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
.card.featured .bonus { color: rgba(255,255,255,0.65); }

.card .meta {
  list-style: none;
  padding: 24px 0 0;
  margin: 24px 0 28px;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  flex: 1;
}
.card.featured .meta { border-top-color: rgba(255,255,255,0.25); }
.card .meta li {
  padding: 7px 0 7px 18px;
  position: relative;
  color: var(--ink-soft);
}
.card.featured .meta li { color: rgba(255,255,255,0.85); }
.card .meta li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

.card .cta { align-self: flex-start; margin-top: auto; }

/* ─── Steps — Cómo funciona ──────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}
.steps li {
  padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 36px) clamp(48px, 7vw, 64px);
  border-right: 1px solid var(--ink);
  position: relative;
}
.steps li:last-child { border-right: 0; }

.step-num {
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 96px);
  line-height: 0.9;
  color: var(--amber);
  display: block;
  margin-bottom: 24px;
  font-feature-settings: "tnum";
}
.steps h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.steps p {
  font-family: var(--sans);
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.cta-block {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 0 0;
}
.cta-help {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 24px 0 0;
}
.cta-help strong { color: var(--amber); font-weight: 700; }

/* ─── B2B section (Para empresas) ─────────────────────────────── */
.section-b2b {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 0;
  position: relative;
}
.section-b2b::before {
  /* Top accent line in amber to mark audience shift */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--amber);
}
.section-b2b h2 { color: var(--bg); }
.section-b2b h2 em { color: var(--amber-bright); font-style: italic; }
.section-b2b .b2b-sub { color: rgba(255, 255, 255, 0.72); }
.section-b2b .section-head { border-bottom-color: rgba(255, 255, 255, 0.25); }
.section-b2b .section-head .kicker { color: rgba(255, 255, 255, 0.88); }
.section-b2b .section-head .kicker .dot { background: var(--amber-bright); }

.benefits {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.benefits li {
  padding: clamp(36px, 5vw, 48px) clamp(24px, 3.5vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.benefits li:last-child { border-right: 0; }
.benefits .b-num {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 76px);
  line-height: 0.9;
  color: var(--amber-bright);
  display: block;
  margin-bottom: 20px;
  font-feature-settings: "tnum";
}
.benefits h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.benefits h3 em { color: var(--amber-bright); font-style: italic; }
.benefits p {
  font-family: var(--sans);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.55;
}

.cta-publish {
  background: var(--amber-bright);
  color: var(--ink);
  border: 1.5px solid var(--amber-bright);
}
.cta-publish:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}
.cta-publish:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 4px;
}
.section-b2b .b2b-help {
  color: rgba(255, 255, 255, 0.55);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: clamp(48px, 7vw, 64px) 0 clamp(56px, 8vw, 80px);
  background: var(--ink);
  color: var(--bg);
}
.footer .container { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.footer .brand-block {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.footer .brand-block .small {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  color: var(--amber-bright);
  font-weight: 600;
}
.footer .legal-block {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
.footer .legal-block p { margin: 0 0 12px; }
.footer .legal-block strong { color: var(--bg); }

/* ═══════════════════════════════════════════════════════════════
   Responsive cascade
   ───────────────────────────────────────────────────────────────
   1024+   desktop                 (default styles)
   880     tablet landscape        — hero column, cards full width
   640     tablet portrait / mobile — search wraps, stats 2x2, footer single col
   480     mobile                  — CTAs full width, masthead compact
   380     small mobile (iPhone SE) — stats 1 col, denser padding
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: clamp(40px, 7vw, 64px) 0 clamp(48px, 8vw, 72px);
  }
  .hero h1 { font-size: clamp(48px, 12vw, 96px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 20px clamp(20px, 5vw, 32px); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(1),
  .stats > div:nth-child(2) { border-bottom: 1px solid var(--ink); }
  .card { grid-column: span 12; border-right: 0 !important; }
  .card.featured { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
  .benefits { grid-template-columns: 1fr; }
  .benefits li { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .benefits li:last-child { border-bottom: 0; }
  .footer .container { grid-template-columns: 1fr; gap: 32px; }
  .footer .brand-block { font-size: clamp(36px, 9vw, 48px); }
  .section-head { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 880px) {
  .hero .masthead { flex-wrap: wrap; gap: 8px 14px; }
  .hero .masthead .masthead-zone { flex: 1 1 100%; order: 5; text-align: center; }
  .masthead-cta { padding: 7px 12px; }
}

@media (max-width: 640px) {
  .hero .masthead { font-size: 11px; gap: 8px 12px; }
  .hero .masthead .edition,
  .hero .masthead .date,
  .hero .masthead span { flex: 0 1 auto; }
  .hero .masthead .masthead-zone { display: none; }   /* redundante: ya aparece en hero/footer */
  .masthead-cta { padding: 6px 11px; font-size: 10px; letter-spacing: 0.14em; }
  .search-bar { gap: 10px; flex-wrap: wrap; }
  .search-bar .search-icon { font-size: 22px; }
  .search-bar input {
    font-size: 17px;             /* prevents iOS auto-zoom (must be >= 16px) */
    padding: 12px 0;
    flex: 1 1 100%;
    order: 2;
  }
  .search-bar .search-icon { order: 1; }
  .search-clear { order: 3; }
  .search-count { order: 4; padding-right: 0; padding-left: 0; font-size: 11px; }
  .no-results p { font-size: clamp(20px, 5vw, 26px); }
}

@media (max-width: 480px) {
  .hero .masthead { font-size: 10px; letter-spacing: 0.14em; }
  .hero .lede { font-size: 16px; }
  .hero-right .cta { display: flex; width: 100%; margin: 8px 0; }
  .cta-ghost { margin-left: 0; }
  .cta-large { width: 100%; }
  .card .brand {
    display: inline-block;
    margin-left: 0;
    margin-top: 8px;
    vertical-align: baseline;
  }
  .card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
  .section-head { padding-bottom: 14px; }
  .section-head .kicker { font-size: 11px; }
  .footer .legal-block { font-size: 11px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--ink); padding: 16px 20px; }
  .stats > div:last-child { border-bottom: 0; }
  .stats .num { font-size: 36px; }
  .card { padding: 24px 18px; }
  .card .meta { font-size: 13px; }
  .step-num { font-size: 56px; }
}

/* Accessibility: respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─── Sobre la empresa (confianza) ─────────────────────────────────────── */
.about-grid {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}
.about-grid li {
  padding: 40px clamp(20px, 3vw, 36px) 44px;
  border-right: 1px solid var(--ink);
}
.about-grid li:last-child { border-right: 0; }
.about-num {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 68px);
  line-height: 0.9;
  color: var(--amber);
  display: block;
  margin-bottom: 18px;
  font-feature-settings: "tnum";
}
.about-grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.about-grid h3 em { font-style: italic; color: var(--amber-deep); }
.about-grid p {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.trust-row {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.trust-row li {
  padding: 22px clamp(16px, 2vw, 24px) 22px;
  border-right: 1px solid rgba(12, 10, 9, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-row li:last-child { border-right: 0; }
.trust-row strong {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
}
.trust-row span {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ─── FAQ (details/summary nativo, sin JS) ─────────────────────────────── */
.faq {
  margin-top: 48px;
  border-top: 1.5px solid var(--rule);
}
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-item summary {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 26px 48px 26px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber-deep); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--amber);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
  max-width: 66ch;
  margin: 0 0 30px;
  padding-right: 48px;
}

/* ─── Responsive de las secciones nuevas ───────────────────────────────── */
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid li { border-right: 0; border-bottom: 1px solid var(--ink); }
  .about-grid li:last-child { border-bottom: 0; }
  .trust-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-row li { border-right: 0; border-bottom: 1px solid rgba(12, 10, 9, 0.15); padding-bottom: 18px; }
  .trust-row li:last-child { border-bottom: 0; }
  .faq-item p { padding-right: 0; }
  .faq-item summary { padding-right: 40px; }
}
