/* ==========================================================================
   +FOOD · Corporate Food Solutions
   Sistema de estilos — basado en brand-tokens.json
   ========================================================================== */

/* --------------------------------------------------------------- Tokens -- */
:root {
  /* Marca */
  --yellow: #FFC107;
  --yellow-dark: #E0A800;
  --black: #0A0A0A;
  --graphite: #1E1E1E;
  --gray: #BDBDBD;
  --white: #FFFFFF;

  /* Neutros de apoyo */
  --ink: #14161A;
  --ink-soft: #4A5057;
  --ink-faint: #8A9199;
  --line: #E6E8EB;
  --surface: #F6F7F8;
  --surface-warm: #FAF8F4;

  /* Tipografía */
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Espaciado (unidad 8) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 56px;
  --s7: 80px;
  --s8: 120px;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --header-h: 84px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(10, 10, 10, .06);
  --shadow-md: 0 12px 32px rgba(10, 10, 10, .08);
  --shadow-lg: 0 28px 70px rgba(10, 10, 10, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 var(--s2);
  color: var(--black);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }

::selection { background: var(--yellow); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- Layout -- */
.wrap {
  width: min(100% - 2 * var(--s3), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(var(--s6), 9vw, var(--s8)); }
.section--tight { padding-block: clamp(var(--s5), 6vw, var(--s7)); }

.section--surface { background: var(--surface); }
.section--warm { background: var(--surface-warm); }

.section--dark {
  background: var(--black);
  color: var(--gray);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--yellow);
  color: var(--black);
  padding: var(--s2) var(--s3);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- Eyebrows -- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin: 0 0 var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--yellow);
  flex: none;
}
.section--dark .eyebrow { color: var(--yellow); }
.eyebrow--center { justify-content: center; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 68ch;
}
.section--dark .lead { color: var(--gray); }

.section-head { margin-bottom: clamp(var(--s5), 5vw, var(--s6)); }
.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: var(--wrap-narrow);
}
.section-head--center .lead { margin-inline: auto; }

/* -------------------------------------------------------------- Botones -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 15px var(--s4);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 6px 20px rgba(255, 193, 7, .3);
}
.btn--primary:hover {
  background: var(--yellow-dark);
  box-shadow: 0 10px 28px rgba(255, 193, 7, .4);
}

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--graphite); }

.btn--ghost { border-color: var(--line); color: var(--black); background: transparent; }
.btn--ghost:hover { border-color: var(--black); }

.btn--ghost-light {
  border-color: rgba(255, 255, 255, .3);
  color: var(--white);
  background: transparent;
}
.btn--ghost-light:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* --------------------------------------------------------------- Header -- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: min(100% - 2 * var(--s3), var(--wrap));
  margin-inline: auto;
}

.header__logo img { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s1); }

.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .93rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--black); background: var(--surface); }

.nav a[aria-current="page"] {
  color: var(--black);
  box-shadow: inset 0 -3px 0 var(--yellow);
  border-radius: 0;
}

.header__cta { display: flex; align-items: center; gap: var(--s2); }
.header__cta .btn { padding: 12px var(--s3); font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--black);
  transform: translateX(-50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; left: 0; transform: none; }
.nav-toggle span::after { top: 6px; left: 0; transform: none; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- Hero -- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--gray);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 620px at 78% -8%, rgba(255, 193, 7, .12), transparent 62%),
    linear-gradient(135deg, #0A0A0A 0%, #1E1E1E 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: center;
  padding-block: clamp(var(--s6), 8vw, 104px);
}

.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--yellow); }

.hero__claim {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--s3);
}
.hero__claim em { font-style: normal; color: var(--yellow); }

.hero__text {
  color: var(--gray);
  max-width: 56ch;
  margin-bottom: var(--s5);
}

.hero__rule {
  width: 72px;
  height: 4px;
  background: var(--yellow);
  margin: var(--s3) 0;
}

.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 7 / 5; }

.hero__badge {
  position: absolute;
  left: var(--s3);
  bottom: var(--s3);
  right: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
}
.hero__badge strong {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--yellow);
  line-height: 1;
}
.hero__badge span { font-size: .88rem; color: var(--gray); line-height: 1.4; }

/* Franja de credenciales bajo el hero */
.trustbar {
  position: relative;
  background: var(--graphite);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.trustbar ul {
  list-style: none;
  margin: 0;
  padding: var(--s3) 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s2);
}
.trustbar li {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
  padding-inline: var(--s1);
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.trustbar li:first-child { border-left: 0; }
.trustbar li b { color: var(--yellow); font-weight: 700; }

/* -------------------------------------------------------- Grillas base -- */
.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr .85fr; }

.media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* --------------------------------------------------------- Pilar / card -- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 193, 7, .16);
  color: var(--black);
  margin-bottom: var(--s3);
}
.card__icon svg { width: 26px; height: 26px; }

/* Numeradas */
.card--num { position: relative; padding-top: var(--s5); }
.card--num .num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: var(--s2);
  display: block;
}

/* ------------------------------------------------------------ Servicios -- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service:hover::after { transform: scaleX(1); }

.service__tag {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--black);
  margin-bottom: var(--s1);
}
.service__tag .plus { color: var(--yellow); margin-right: 2px; }

.service__kicker {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s2);
}

.service p { color: var(--ink-soft); font-size: .97rem; margin: 0 0 var(--s3); }

.service ul {
  list-style: none;
  margin: auto 0 0;
  padding: var(--s3) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.service li {
  font-size: .9rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
}

/* --------------------------------------------------------- Diferencial -- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-md); overflow: hidden; }

.pillar { background: var(--black); padding: var(--s5) var(--s4); }
.pillar h3 { font-size: 1.1rem; letter-spacing: .02em; margin-bottom: var(--s1); }
.pillar h3 span { color: var(--yellow); }
.pillar p { color: var(--gray); font-size: .95rem; margin: 0; }

/* ----------------------------------------------------------- Estadística -- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.stat {
  border-left: 3px solid var(--yellow);
  padding-left: var(--s3);
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--black);
  margin-bottom: 6px;
}
.section--dark .stat strong { color: var(--white); }
.stat span { font-size: .92rem; color: var(--ink-soft); }
.section--dark .stat span { color: var(--gray); }

/* ------------------------------------------------------------- Timeline -- */
.timeline { display: grid; gap: 0; position: relative; }

.tl-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }

.tl-year {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--yellow-dark);
  line-height: 1;
}
.section--dark .tl-item { border-color: rgba(255, 255, 255, .12); }
.section--dark .tl-year { color: var(--yellow); }
.tl-body h3 { margin-bottom: var(--s1); }
.tl-body p { color: var(--ink-soft); margin: 0; }
.section--dark .tl-body p { color: var(--gray); }

/* ----------------------------------------------------------------- Cita -- */
.quote {
  background: var(--surface-warm);
  border-left: 5px solid var(--yellow);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: clamp(var(--s4), 5vw, var(--s6));
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
  text-wrap: balance;
}
.quote cite {
  display: block;
  margin-top: var(--s3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ Checklist -- */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2) var(--s4);
}
.checks li {
  position: relative;
  padding-left: 34px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .97rem;
  color: var(--white);
  padding-block: 10px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
           linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
        linear-gradient(#000, #000);
  mask-composite: exclude;
}
.checks--light li { color: var(--ink); }

/* ------------------------------------------------------------- Proceso -- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); counter-reset: step; }
.step { position: relative; padding-top: var(--s4); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--yellow-dark);
  position: absolute;
  top: 0;
  left: 0;
}
.step::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.step h3 { font-size: 1.05rem; margin: var(--s3) 0 var(--s1); }
.step p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------------ CTA -- */
.cta {
  position: relative;
  background: var(--black);
  border-radius: var(--r-lg);
  padding: clamp(var(--s5), 6vw, var(--s7));
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 50% 0%, rgba(255, 193, 7, .16), transparent 65%);
}
.cta > * { position: relative; }
.cta h2 { color: var(--white); }
.cta p { color: var(--gray); max-width: 60ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: var(--s4); }

/* --------------------------------------------------------- Formulario -- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(var(--s4), 4vw, var(--s6));
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: var(--s3); }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--black);
}
.field .req { color: var(--yellow-dark); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  padding: 13px var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, .22);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #D64545; }

.field__hint { font-size: .82rem; color: var(--ink-faint); margin-top: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }

.form-note {
  font-size: .85rem;
  color: var(--ink-faint);
  margin-top: var(--s3);
}

/* Datos de contacto */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.contact-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--yellow-dark); flex: none; margin-top: 3px; }
.contact-list b {
  display: block;
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.contact-list a:hover { color: var(--yellow-dark); }

/* ----------------------------------------------------------------- FAQ -- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s3) 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: var(--s2) 0 0; color: var(--ink-soft); max-width: 78ch; }

/* --------------------------------------------------------------- Footer -- */
.footer {
  background: var(--black);
  color: var(--gray);
  padding-block: var(--s7) var(--s4);
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo img { height: 36px; width: auto; margin-bottom: var(--s3); }
.footer__grid p { color: var(--gray); max-width: 38ch; }
.footer h4 {
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--gray); transition: color .18s var(--ease); }
.footer a:hover { color: var(--yellow); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  font-size: .84rem;
  color: #6E7378;
}

/* --------------------------------------------------------- WhatsApp FAB -- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform .2s var(--ease);
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 28px; height: 28px; }

/* ------------------------------------------------- Hero de página interna -- */
.page-hero {
  position: relative;
  background: var(--black);
  color: var(--gray);
  padding-block: clamp(var(--s6), 7vw, 104px) clamp(var(--s5), 6vw, var(--s7));
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 480px at 85% 0%, rgba(255, 193, 7, .12), transparent 62%),
    linear-gradient(135deg, #0A0A0A 0%, #1E1E1E 100%);
}
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: var(--s3); }
.page-hero .lead { color: var(--gray); }
.page-hero .lead strong { color: var(--white); }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero--compact { padding-block: clamp(var(--s5), 6vw, var(--s7)) clamp(var(--s5), 5vw, var(--s6)); }

.crumbs {
  font-size: .85rem;
  color: var(--ink-faint);
  margin-bottom: var(--s3);
  display: flex;
  gap: var(--s1);
  align-items: center;
}
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--yellow); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ------------------------------------------------ Etiqueta de unidad -- */
.unit-tag {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--black);
  margin: 0 0 var(--s1);
}
.unit-tag .plus { color: var(--yellow); }

/* Checklist en columna, sobre fondo claro */
.checks--stack { grid-template-columns: 1fr; margin-top: var(--s4); gap: 0; }
.checks--stack li { padding-block: 8px; }

/* Proceso sobre fondo oscuro */
.steps--dark .step::after { background: rgba(255, 255, 255, .16); }
.steps--dark .step h3 { color: var(--white); }
.steps--dark .step p { color: var(--gray); }
.steps--dark .step::before { color: var(--yellow); }

/* ------------------------------------------- Panel lateral de contacto -- */
.aside-panel {
  background: var(--surface-warm);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4);
}
.aside-panel h3 { font-size: 1.1rem; margin-bottom: var(--s2); }

.mini-steps {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: var(--s1);
  font-size: .94rem;
  color: var(--ink-soft);
}
.mini-steps b { color: var(--black); font-weight: 600; }
.mini-steps::marker { color: var(--yellow-dark); }

/* Confirmación del formulario */
.form-ok {
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  background: rgba(255, 193, 7, .14);
  border: 1px solid rgba(255, 193, 7, .5);
  font-size: .92rem;
  color: var(--ink);
}
.form-ok a { font-weight: 600; text-decoration: underline; }
.form-ok[hidden] { display: none; }

/* ------------------------------------------------------------ Animación -- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ----------------------------------------------------------- Responsive -- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .trustbar ul { grid-template-columns: repeat(3, 1fr); }
  .trustbar li:nth-child(4) { border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .header__logo img { height: 42px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--s2);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px var(--s2); font-size: 1rem; border-radius: var(--r-sm); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--yellow); }

  .header__cta .btn { display: none; }

  .grid--2, .grid--3, .services, .split, .split--wide-left, .pillars,
  .checks, .form-grid { grid-template-columns: 1fr; }

  .split .media { order: -1; }

  .tl-item { grid-template-columns: 1fr; gap: var(--s2); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s4); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4, .stats, .steps, .trustbar ul { grid-template-columns: 1fr; }
  .trustbar li { border-left: 0; text-align: left; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .hero__badge { position: static; margin: 0; border-radius: 0; border: 0; border-top: 1px solid rgba(255,255,255,.1); }
}

@media print {
  .header, .fab, .nav-toggle, .cta { display: none; }
  body { color: #000; }
}
