/* ==========================================================================
   INTEGRA Comercio Exterior — hoja de estilos única
   Mobile-first · breakpoints 640 / 960 / 1280 · escala de 8 px
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* Neutros cálidos (papel arena, tinta café) */
  --paper:   #FAF7F2;
  --paper-2: #FFFFFF;
  --sand:    #F1EBE1;
  --line:    #E3DCD2;
  --line-2:  #CFC6B9;
  --ink:     #1E1A16;
  --ink-2:   #4B443C;
  --mute:    #6F675E;

  /* Azules de marca */
  --navy:         #0F2A44;
  --blue:         #185888;
  --sky:          #70C0E0;
  --on-navy:      #FFFFFF;
  --on-navy-mute: #C9D8E6;
  --navy-line:    rgba(255,255,255,.14);

  /* Acento: naranja de marca oscurecido para cumplir AA (5.3:1 sobre papel) */
  --accent:        #A85400;
  --accent-hover:  #8F4700;
  --accent-soft:   #FBEBDD;
  --on-accent:     #FFFFFF;
  --accent-on-dark:#E88820; /* solo texto sobre navy (5.6:1); ver checklist */

  /* Espaciado (escala de 8 px) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;
  --section: clamp(64px, 9vw, 128px);

  /* Tipografía */
  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.75rem, 5.6vw, 5rem);      /* 44 → 80 */
  --fs-h1:      clamp(2.75rem, 5.5vw, 4.5rem);   /* 44 → 72 (páginas internas) */
  --fs-h2:      clamp(2.125rem, 4.2vw, 3.375rem);/* 34 → 54 */
  --fs-h3:      clamp(1.375rem, 2vw, 1.625rem);  /* 22 → 26 */
  --fs-lead:    clamp(1.125rem, 1.6vw, 1.25rem); /* 18 → 20 */
  --fs-body:    1.0625rem;                       /* 17 */
  --fs-small:   0.875rem;                        /* 14 */
  --fs-label:   0.75rem;                         /* 12 */

  /* Radios, sombras, movimiento */
  --r-s: 3px;
  --r-m: 6px;
  --shadow: 0 16px 40px -24px rgba(30,26,22,.35);
  --shadow-lift: 0 24px 48px -24px rgba(24,88,136,.35);
  --dur: 200ms;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
  letter-spacing: .005em;
  font-weight: 600;
}
h1 { font-size: var(--fs-h1); font-weight: 700; text-transform: uppercase; }
h2 { font-size: var(--fs-h2); text-transform: uppercase; }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
p + p { margin-top: var(--s-2); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sky); color: var(--navy); }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: var(--r-s);
  font-weight: 600; text-decoration: none; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-2); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--dark { color: var(--accent-on-dark); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.measure { max-width: 65ch; }
.num { font-variant-numeric: tabular-nums; }

/* Link con subrayado animado */
.link {
  text-decoration: none; font-weight: 600; color: var(--blue);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%;
  transition: background-size var(--dur) var(--ease), color var(--dur);
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--arrow::after { content: " \2192"; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-s);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--blue); color: var(--blue); }
.btn--ghost-dark { border-color: rgba(255,255,255,.4); color: var(--on-navy); }
.btn--ghost-dark:hover, .btn--ghost-dark:focus-visible { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--block { width: 100%; }
/* Botones de WhatsApp en verde. #15803D con texto blanco da 5.0:1 (AA); el verde de marca de WhatsApp (#25D366) no llega a 2:1 */
.btn--wa { background: #15803D; color: #fff; }
.btn--wa:hover, .btn--wa:focus-visible { background: #166534; }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 88px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; border-radius: var(--r-s); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav { display: none; }
.site-nav[data-open="true"] {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--s-2) clamp(16px, 4vw, 40px) var(--s-3);
}
.site-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.site-nav a:not(.btn) {
  display: block; padding: 12px 8px; text-decoration: none; font-weight: 600; color: var(--ink-2);
  border-radius: var(--r-s); transition: color var(--dur), background var(--dur);
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn):focus-visible { color: var(--blue); background: var(--sand); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .nav-cta { margin-top: var(--s-2); }
.site-nav .nav-cta .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[data-open="true"] {
    display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px; }
  .site-nav a:not(.btn) { padding: 8px 12px; font-size: .9375rem; position: relative; }
  .site-nav a:not(.btn):hover, .site-nav a:not(.btn):focus-visible { background: none; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
  }
  .site-nav a:not(.btn):hover::after, .site-nav a:not(.btn):focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-cta { margin: 0 0 0 var(--s-2); }
  .site-nav .nav-cta .btn { width: auto; min-height: 44px; padding-block: 10px; }
}

@media (min-width: 960px) { .brand img { height: 72px; } .site-header .wrap { min-height: 96px; } .toc { top: calc(96px + var(--s-3)); } }

/* ---------- 4. Hero (inicio) ---------- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent);
}
.hero .wrap {
  position: relative; display: grid; gap: var(--s-6);
  padding-block: var(--s-8) var(--s-8);
}
.hero h1 { font-size: var(--fs-display); color: #fff; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { color: var(--on-navy-mute); margin-top: var(--s-3); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: var(--s-4); color: var(--on-navy-mute); font-size: var(--fs-small); }
.hero__meta b { color: #fff; font-weight: 600; }

/* Ficha del operador: el elemento gráfico propio */
.ficha {
  position: relative; background: var(--blue); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-m); padding: var(--s-3) var(--s-3) var(--s-4); box-shadow: 0 32px 64px -32px rgba(0,0,0,.6);
  max-width: 440px;
}
.ficha__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid rgba(255,255,255,.16); }
.ficha__title { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-mute); font-weight: 600; }
.ficha__num { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; color: var(--accent-on-dark); letter-spacing: .02em; }
.ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--s-3); margin: var(--s-2) 0 0; font-size: .9375rem; }
.ficha dt { color: var(--on-navy-mute); }
.ficha dd { margin: 0; color: #fff; font-weight: 600; }
.ficha dd .ok { display: inline-flex; align-items: center; gap: 6px; }
.ficha dd .ok svg { width: 16px; height: 16px; color: var(--sky); }
.ficha__foot { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px dashed rgba(255,255,255,.2); font-size: var(--fs-small); color: var(--on-navy-mute); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ficha__foot b { color: #fff; font-weight: 600; }
.mark { pointer-events: none; width: min(46vw, 220px); margin: 0 0 var(--s-4) auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero__visual { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.hero__visual .ficha { z-index: 1; }

@media (min-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .85fr);
    align-items: center; padding-block: var(--s-12) var(--s-12); gap: var(--s-8);
  }
  .hero__visual { justify-self: end; padding-top: 0; }
  .mark { width: 300px; margin-bottom: var(--s-4); }
}

/* ---------- 5. Franja de certificaciones ---------- */
.certs { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.certs .wrap { display: grid; gap: var(--s-3); padding-block: var(--s-4); }
.cert { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); align-items: start; }
.cert__badge {
  width: 56px; height: 56px; border-radius: var(--r-m); display: grid; place-items: center;
  background: var(--sand); color: var(--blue); border: 1px solid var(--line);
}
.cert__badge svg { width: 28px; height: 28px; }
.cert h3 { font-size: 1.25rem; }
.cert p { color: var(--mute); font-size: var(--fs-small); margin-top: 2px; }
.cert__id { color: var(--accent) !important; font-size: var(--fs-label) !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px !important; }
@media (min-width: 640px) { .certs .wrap { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 1100px) { .certs .wrap { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } .cert h3 { font-size: 1.125rem; } }

/* ---------- 6. Secciones ---------- */
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--white { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .lead { color: var(--on-navy-mute); }
.section__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); }
.section__head .lead { margin-top: var(--s-1); }
@media (min-width: 960px) {
  .section__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-6); align-items: end; }
  .section__head .lead { margin: 0; }
}

/* Tarjetas de servicios */
.cards { display: grid; gap: var(--s-2); list-style: none; }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--blue); }
.card__icon { width: 44px; height: 44px; color: var(--blue); }
.card__icon svg { width: 44px; height: 44px; }
.card h3 { margin-top: var(--s-1); }
.card p { color: var(--ink-2); flex: 1; }
.card .link { align-self: flex-start; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }
@media (min-width: 1280px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* Proceso en 4 pasos (línea de proceso) */
.steps { list-style: none; display: grid; gap: var(--s-4); counter-reset: paso; position: relative; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-family: var(--f-display); font-size: 2.25rem; font-weight: 700; color: var(--accent); line-height: 1;
}
.step h3 { font-size: 1.5rem; }
.step p { color: var(--ink-2); margin-top: var(--s-1); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding-top: var(--s-4); }
  .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-2); }
  .step { padding-left: 0; padding-top: var(--s-2); }
  .step::before { position: static; display: block; margin-bottom: var(--s-2); }
  .step::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
}

/* Cifras */
.stats { list-style: none; display: grid; gap: var(--s-4); }
.stat { border-left: 2px solid var(--accent-on-dark); padding-left: var(--s-2); }
.stat__value { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; line-height: 1; color: #fff; }
.stat__value .suffix { color: var(--accent-on-dark); }
.stat__label { margin-top: var(--s-1); color: var(--on-navy-mute); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Testimonios */
.quotes { list-style: none; display: grid; gap: var(--s-3); }
.quote { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-4); position: relative; }
.quote::before {
  content: "\201C"; position: absolute; top: 8px; left: 20px;
  font-family: var(--f-display); font-size: 5rem; line-height: 1; color: var(--sky); opacity: .8;
}
.quote blockquote { margin: 0; font-size: var(--fs-lead); color: var(--ink); padding-top: var(--s-3); }
.quote figcaption { margin-top: var(--s-3); color: var(--mute); font-size: var(--fs-small); }
.quote figcaption b { color: var(--ink); display: block; }
@media (min-width: 640px) { .quotes { grid-template-columns: repeat(2, 1fr); } }

/* Placeholder marcado (datos pendientes) */
.ph { background: var(--accent-soft); color: var(--accent); border-radius: 2px; padding: 0 .25em; font-weight: 600; }
.section--navy .ph, .site-footer .ph, .hero .ph { background: rgba(232,136,32,.18); color: var(--accent-on-dark); }

/* CTA final */
.cta-band { background: var(--blue); color: var(--on-navy); }
.cta-band .wrap { display: grid; gap: var(--s-4); padding-block: var(--s-8); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-navy-mute); margin-top: var(--s-2); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (min-width: 960px) { .cta-band .wrap { grid-template-columns: minmax(0, 1.4fr) auto; } }

/* ---------- 7. Páginas internas ---------- */
.page-head { background: var(--navy); color: var(--on-navy); }
.page-head .wrap { padding-block: var(--s-8); display: grid; gap: var(--s-2); }
.page-head h1 { color: #fff; max-width: 16ch; }
.page-head .lead { color: var(--on-navy-mute); }
@media (min-width: 960px) { .page-head .wrap { padding-block: var(--s-12) var(--s-8); } }

/* Servicios: índice sticky + contenido */
.layout-aside { display: grid; gap: var(--s-6); }
.toc { display: none; }
@media (min-width: 960px) {
  .layout-aside { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .toc { display: block; position: sticky; top: calc(88px + var(--s-3)); }
}
.toc__title { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: var(--s-2); }
.toc ul { list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 8px 16px; text-decoration: none; color: var(--ink-2); font-weight: 600; margin-left: -2px; border-left: 2px solid transparent; transition: color var(--dur), border-color var(--dur); }
.toc a:hover, .toc a:focus-visible { color: var(--blue); }
.toc a[aria-current="true"] { color: var(--blue); border-left-color: var(--accent); }
.toc-mobile { margin-bottom: var(--s-4); }
.toc-mobile select { width: 100%; }
@media (min-width: 960px) { .toc-mobile { display: none; } }

.service { padding-block: var(--s-6); border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { font-size: clamp(1.875rem, 3.2vw, 2.5rem); }
.service .lead { margin-top: var(--s-2); }
.service__grid { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.service__block h3 { font-size: 1.125rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--blue); font-size: var(--fs-small); }
.service__block ul { list-style: none; margin-top: var(--s-1); display: grid; gap: 6px; }
.service__block li { padding-left: 20px; position: relative; color: var(--ink-2); }
.service__block li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent); }
@media (min-width: 640px) { .service__grid { grid-template-columns: repeat(2, 1fr); } }

.faq { margin-top: var(--s-4); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 14px 32px 14px 0; font-weight: 600; list-style: none; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 var(--s-2); color: var(--ink-2); max-width: 65ch; }

/* Normativa: lista de enlaces */
.normlist { list-style: none; margin-top: var(--s-3); border-top: 1px solid var(--line); }
.normlink { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.normlink__a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); text-decoration: none; }
.normlink__a svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.normlink__a:hover, .normlink__a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.normlink span { color: var(--ink-2); font-size: .9375rem; }
.normlink small { color: var(--mute); font-size: var(--fs-label); letter-spacing: .04em; margin-left: 6px; }

/* Nosotros */
.prose { max-width: 65ch; }
.prose p + p { margin-top: var(--s-2); }
.two-col { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; } }
.photo {
  aspect-ratio: 4 / 3; width: 100%; max-width: 100%; border-radius: var(--r-m);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--sky) 100%);
  display: grid; place-items: end start; padding: var(--s-2); color: #fff; font-size: var(--fs-small); font-weight: 600;
}
.photo--portrait { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 9; }
.team { list-style: none; display: grid; gap: var(--s-4); }
.team picture { display: block; }
.team img, .team__lead img { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: cover; border-radius: var(--r-m); background: var(--sand); }
.team .ph { font-size: var(--fs-label); vertical-align: middle; font-family: var(--f-body); letter-spacing: .04em; }
.photo--initials { font-family: var(--f-display); font-size: 3rem; font-weight: 700; place-items: center; color: rgba(255,255,255,.85); }
.team__lead { margin: 0; max-width: 420px; }
.team__lead figcaption { margin-top: var(--s-2); color: var(--mute); font-size: var(--fs-small); }
.team__lead figcaption b { display: block; color: var(--ink); font-size: 1.0625rem; }
.team h3 { margin-top: var(--s-2); font-size: 1.375rem; }
.team p { color: var(--ink-2); font-size: var(--fs-small); margin-top: 4px; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }
.values { list-style: none; display: grid; gap: var(--s-3); }
.value { border-top: 2px solid var(--accent); padding-top: var(--s-2); }
.value h3 { font-size: 1.375rem; }
.value p { color: var(--ink-2); margin-top: var(--s-1); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 1280px) { .values { grid-template-columns: repeat(4, 1fr); } }
.cert-detail { display: grid; gap: var(--s-3); }
.cert-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-4); }
.cert-card h3 { font-size: 1.75rem; }
.cert-card .eyebrow { margin-bottom: var(--s-1); }
.cert-card ul { list-style: none; margin-top: var(--s-2); display: grid; gap: 8px; }
.cert-card li { padding-left: 24px; position: relative; color: var(--ink-2); }
.cert-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (min-width: 960px) { .cert-detail { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }

/* Novedades */
.posts { list-style: none; display: grid; gap: var(--s-3); }
.post { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.post:hover, .post:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--blue); }
.post__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: center; font-size: var(--fs-small); color: var(--mute); }
.tag { display: inline-block; font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--sand); padding: 3px 8px; border-radius: 2px; }
.tag--draft { color: var(--accent); background: var(--accent-soft); }
.post h2 { font-size: 1.625rem; text-transform: none; }
.post p { color: var(--ink-2); flex: 1; }
@media (min-width: 960px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: var(--s-2) var(--s-3); border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--ink-2); max-width: 65ch; }

/* Contacto */
.contact-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s-8); align-items: start; } }
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea, .toc-mobile select {
  font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-s);
  padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,88,136,.18); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field .error { color: #B3261E; font-size: var(--fs-small); min-height: 1.2em; }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__status { font-weight: 600; color: var(--blue); }
.form__status[data-state="error"] { color: #B3261E; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-4); display: grid; gap: var(--s-3); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card dl { display: grid; gap: var(--s-2); margin: 0; }
.contact-card dt { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.contact-card dd { margin: 2px 0 0; }
.map { aspect-ratio: 4 / 3; width: 100%; border: 0; border-radius: var(--r-m); background: var(--sand); }
.map-ph { aspect-ratio: 4 / 3; width: 100%; border-radius: var(--r-m); border: 1px dashed var(--line-2); background: var(--sand); display: grid; place-items: center; color: var(--mute); text-align: center; padding: var(--s-3); }

/* 404 */
.error-page .wrap { padding-block: var(--s-12); text-align: left; display: grid; gap: var(--s-3); }
.error-page .code { font-family: var(--f-display); font-size: clamp(6rem, 18vw, 12rem); font-weight: 700; line-height: .9; color: var(--sky); }

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-mute); font-size: .9375rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
.footer__brand { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.footer__brand small { display: block; font-family: var(--f-body); font-size: var(--fs-label); letter-spacing: .16em; font-weight: 600; color: var(--on-navy-mute); margin-top: 6px; }
.footer__slogan { margin-top: var(--s-2); color: #fff; font-size: 1.0625rem; }
.footer__certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); list-style: none; }
.footer__certs li { border: 1px solid var(--navy-line); border-radius: 2px; padding: 4px 10px; font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #fff; }
.footer__col h2 { font-family: var(--f-body); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: var(--s-2); font-weight: 600; }
.footer__col ul { list-style: none; display: grid; gap: 8px; }
.footer__col address { font-style: normal; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid var(--navy-line); padding-block: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); justify-content: space-between; font-size: var(--fs-small); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-8); } }

/* WhatsApp flotante (visible en todos los tamaños; en escritorio muestra la etiqueta) */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 56px; height: 56px; padding: 0 16px; border-radius: 28px;
  background: #1EBE5D; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,.45); transition: background var(--dur), transform var(--dur) var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float span { display: none; }
.wa-float:hover, .wa-float:focus-visible { background: #16A34A; transform: translateY(-2px); }
@media (min-width: 960px) { .wa-float { right: 24px; bottom: 24px; padding: 0 20px 0 16px; } .wa-float span { display: inline; } }

/* ---------- 8b. Modalidades de transporte ---------- */
.modes { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.mode {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mode figure, .mode picture { display: block; margin: 0; position: relative; }
.mode img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--sand);
}
.mode__body { padding: var(--s-3); display: grid; gap: var(--s-1); }
.mode h3 { font-size: 1.25rem; }
.mode p { color: var(--ink-2); font-size: var(--fs-body); }
.mode:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(15,42,68,.45); }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
@media (prefers-reduced-motion: reduce) { .mode:hover { transform: none; } }

/* ---------- 9. Animaciones de entrada (solo con JS y sin reduced-motion) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- 10. Impresión ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .skip-link, .hero::before { display: none; }
  body { background: #fff; color: #000; }
}
