/* =========================================================
   ISALL · Landing
   Mobile first. Colores, fuentes y medidas en variables :root
   ========================================================= */

/* ---------- Fuentes alojadas en la propia web (sin Google Fonts: RGPD y velocidad) ----------
   IBM Plex Sans (variable 300-600) e IBM Plex Mono (400 y 500). Licencia SIL Open Font License. */
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca */
  --teal: #0F5C5A;
  --teal-dark: #0B4846;
  --teal-deep: #083634;
  --teal-soft: #E3EFEE;
  --sand: #E9D8B4;
  --sand-soft: #F6EEDD;
  --sand-bg: #FBF8F2;
  --sand-hover: #F3E6C9;
  --panel-bg: #0B403E;
  --topbar-bg: #062B29;

  /* Texto */
  --ink: #1C2B2A;
  --ink-soft: #4A5756;
  --white: #FFFFFF;
  --line: #E4E0D6;

  /* Avisos */
  --pending-bg: #FFF1C2;
  --pending-ink: #7A5A00;
  --error: #C0392B;

  /* Tipografía */
  --font-head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Medidas: esquinas casi rectas, sin sombras */
  --radius-sm: 2px;
  --radius: 4px;
  --container: 1160px;
  --header-h: 68px;

  /* Cuadrícula de plano técnico */
  --grid-dark: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  --grid-light: linear-gradient(rgba(15, 92, 90, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 92, 90, .055) 1px, transparent 1px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6.5vw, 3.6rem); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; }
h1 .text-accent { font-weight: 500; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 400; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; text-wrap: wrap; }
p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }

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

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.text-accent { color: var(--teal); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--teal); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* Etiqueta corta sobre los títulos: minúsculas normales, monoespaciada */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: .8em;
}
.eyebrow::before { content: ""; flex: none; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--sand); }
.center .eyebrow { justify-content: center; }

/* Marcador de datos pendientes: bien visible a propósito */
.pending {
  display: inline-block;
  background: var(--pending-bg);
  color: var(--pending-ink);
  font-size: .78em;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1;
  padding: .85em 1.4em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lg { font-size: 1rem; padding: 1em 1.7em; }
.btn--block { width: 100%; }

.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); color: var(--white); }

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

.btn--ghost { color: var(--teal); background: var(--teal-soft); }
.btn--ghost:hover { background: #D3E6E4; color: var(--teal-dark); }

/* ---------- Barra superior de contacto ---------- */
.topbar { background: var(--topbar-bg); color: rgba(255, 255, 255, .7); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar p { margin: 0; }
.topbar__claim { display: none; }
.topbar__contact { display: flex; gap: 20px; margin: 0 auto 0 0; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--sand); }
.topbar svg { width: 14px; height: 14px; fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo img { width: 140px; height: auto; }
.header__back { font-family: var(--font-head); font-weight: 600; font-size: .92rem; text-decoration: none; } /* páginas legales */

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
  padding: 12px 20px 24px;
  display: none;
}
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0 0 16px; padding: 0; }
.nav__list a {
  display: block; padding: 14px 4px;
  font-family: var(--font-body); font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__list a:hover { color: var(--teal); }
.nav__cta { width: 100%; }

/* Selector de idioma: un solo botón que despliega la otra opción */
.lang { position: relative; padding: 12px 0; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  color: var(--teal);
  background: var(--teal-soft);
  border: 0; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
}
.lang__btn:hover { background: #D3E6E4; }
.lang__btn:active { transform: translateY(1px) scale(.98); }
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang__btn .lang__chev { width: 12px; height: 12px; transition: transform .2s; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  list-style: none; margin: 8px 0 0; padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 150px;
}
.nav__list .lang__menu a {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 12px;
  border: 0; border-radius: var(--radius);
  font-size: .9rem;
}
.nav__list .lang__menu a:hover { background: var(--sand-soft); }
.lang__menu b { font-family: var(--font-mono); font-size: .78rem; color: var(--teal); letter-spacing: .04em; }

/* ---------- Hero oscuro con cuadrícula de plano técnico ---------- */
.hero {
  background-color: var(--teal-deep);
  background-image: var(--grid-dark);
  background-size: 32px 32px;
  color: var(--white);
  padding: 48px 0 56px;
  overflow: hidden;
}
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .text-accent { color: var(--sand); }
.hero .eyebrow { color: var(--sand); }
.hero__lead { font-size: 1.08rem; color: rgba(255, 255, 255, .78); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--white); color: var(--white); }

/* Recuadro "Cifras que nos avalan" (fondo sólido: la cuadrícula no se ve a través) */
.hero__panel {
  width: 100%; max-width: 500px; justify-self: end;
  background: var(--panel-bg);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  font-size: .92rem;
}
.panel__head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  color: var(--sand);
}
.panel__head > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.panel__mark { width: 16px; height: 16px; flex: none; }
.panel__ref { font-family: var(--font-mono); font-size: .78rem; color: rgba(255, 255, 255, .45); }

.panel__stats { margin: 0; padding: 6px 20px; }
.panel__stats div {
  display: grid; grid-template-columns: 11.5rem 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
}
.panel__stats div:last-child { border-bottom: 0; }
.panel__stats dd { margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.stat__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--sand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.panel__cta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: var(--sand); color: var(--teal-deep);
  font-family: var(--font-body); font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 3px 3px;
  transition: background .2s;
}
.panel__cta:hover { background: var(--sand-hover); color: var(--teal-deep); }
.panel__cta:active { transform: translateY(1px) scale(.98); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--alt { background-color: var(--sand-bg); background-image: var(--grid-light); background-size: 32px 32px; }
.section__head { text-align: left; max-width: 720px; margin: 0 auto 40px 0; }
.section__intro { color: var(--ink-soft); font-size: 1.05rem; margin: 12px 0 0; }

/* Por qué ISALL: ventajas con línea superior, sin cajas */
.features { display: grid; gap: 0 32px; }
.feature {
  position: relative;
  background: transparent;
  border: 0; border-top: 1px solid var(--teal);
  padding: 24px 0 8px;
}
.feature__icon { display: block; margin-bottom: 14px; }
.feature__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* Productos: dibujo técnico sobre fondo oscuro */
.products { display: grid; gap: 22px; }
.product {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.product:hover { transform: translateY(-4px); border-color: var(--teal); }
.product__art {
  background-color: var(--teal-deep);
  background-image: var(--grid-dark);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
}
.product__art svg { width: 100%; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.product__body > p { color: var(--ink-soft); font-size: .96rem; }
.product__body .btn { margin-top: auto; align-self: flex-start; }
.product--featured { border-color: var(--teal); }

.badge {
  align-self: flex-start;
  background: var(--sand); color: var(--teal-deep);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  padding: 5px 12px; border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.checklist li { position: relative; margin: 0; padding: 9px 0 9px 28px; font-size: .94rem; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 18px; height: 18px; border-radius: 3px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F5C5A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Cómo trabajamos: línea de tiempo */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--teal-deep); color: var(--sand);
  font-family: var(--font-mono); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--white); /* tapa la línea discontinua detrás del número */
}
.step p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- Contacto ---------- */
.contact {
  background-color: var(--teal-deep);
  background-image: var(--grid-dark);
  background-size: 32px 32px;
  color: var(--white);
  padding: 64px 0;
}
.contact__inner { display: grid; gap: 36px; }
.contact h2 { color: var(--white); }
.contact__info > p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.contact a:hover { color: var(--sand); }

.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg {
  flex: none; width: 40px; height: 40px; padding: 9px;
  border-radius: 12px; background: rgba(255, 255, 255, .1);
  fill: none; stroke: var(--sand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact__list strong { display: block; font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--sand); letter-spacing: .04em; }
.contact__list a { color: var(--white); }

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.form__title { font-family: var(--font-body); font-size: 1.25rem; margin-bottom: 18px; }
.form__row { display: grid; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field label span { color: var(--teal); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--sand-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(15, 92, 90, .12); }
.field .is-invalid { border-color: var(--error); background: #FFF6F5; }

.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.field--check label { font-weight: 400; font-size: .88rem; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* trampa antibots */

.form__status { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--teal); font-weight: 600; }
.form__status.is-error { color: var(--error); font-weight: 600; }

/* ---------- Pie ---------- */
.footer {
  background: var(--topbar-bg);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  padding: 52px 0 0;
}
.footer__inner { display: grid; gap: 32px; padding-bottom: 36px; }
.footer__brand img { width: 150px; margin-bottom: 14px; }
.footer__brand p { max-width: 34em; margin: 0; }
.footer h4 { color: var(--sand); margin-bottom: 12px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; padding-bottom: 22px; font-size: .84rem; }
.footer__bottom p { margin: 0; }

/* ---------- Páginas legales y 404 ---------- */
.legal { padding: 48px 0 72px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }

.notfound { padding: 96px 0 120px; }
.notfound__en { margin-top: 40px; font-size: .9rem; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Sin desplazamientos ni animaciones; se mantienen los cambios de color como respuesta visual */
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .btn:active, .product:hover, .product--featured, .product--featured:hover { transform: none; }
}

/* =========================================================
   Solo móvil: carruseles y contacto compacto
   ========================================================= */
.carousel__dots { display: none; }

@media (max-width: 639px) {
  .hero { padding: 36px 0 40px; }
  .hero__panel { font-size: .88rem; }
  .panel__stats div { grid-template-columns: 9.4rem 1fr; gap: 12px; padding: 14px 0; }

  .section { padding: 52px 0; }
  .section__head { margin-bottom: 28px; }

  /* Tarjetas en carrusel horizontal (se ve un trozo de la siguiente) */
  .carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 6px 20px 10px;
    scroll-padding: 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel > * { flex: 0 0 84%; scroll-snap-align: start; }
  .features.carousel { gap: 0 32px; } /* separación tal y como estaba en la v3 publicada */
  .carousel > .reveal { opacity: 1; transform: none; }
  .steps.carousel { margin-bottom: 0; }
  .features.carousel .feature,
  .steps.carousel .step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
  }

  /* Puntos de posición: zona táctil de 24px; el punto visible (8px) se dibuja con ::before y se estira con transform */
  .carousel__dots { display: flex; justify-content: center; margin: 6px 0 0; }
  .carousel__dots button {
    position: relative;
    width: 24px; height: 24px; padding: 0;
    border: 0; background: none;
    cursor: pointer;
  }
  .carousel__dots button::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 8px; height: 8px; margin: -4px 0 0 -4px;
    border-radius: 999px;
    background: var(--line);
    transition: transform .25s, background .25s;
  }
  .carousel__dots button.is-active::before { background: var(--teal); transform: scaleX(2.5); }
  #como-trabajamos .carousel__dots,
  #how-we-work .carousel__dots { margin-bottom: 28px; }

  /* Contacto más compacto */
  .contact { padding: 48px 0; }
  .contact__inner { gap: 28px; }
  .contact h2 { font-size: 1.5rem; }
  .contact__info > p { font-size: 1rem; margin-bottom: 0; }
  .contact__list { grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 22px; font-size: .9rem; }
  .contact__list li { gap: 10px; }
  .contact__list svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; }
  .form { padding: 22px 18px; }
  .form__title { font-size: 1.1rem; margin-bottom: 14px; }
  .form__row { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .field { margin-bottom: 12px; }
  .field label { font-size: .82rem; margin-bottom: 4px; }
  .field input, .field select, .field textarea { padding: 10px 12px; } /* letra de 16px: evita el zoom de iPhone */
  .field textarea { min-height: 84px; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .topbar__claim { display: block; }
  .topbar__contact { margin: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px 30px; }
  .footer__inner { grid-template-columns: 2fr 1fr; }
}

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 960px) {
  :root { --header-h: 80px; }

  .header__logo img { width: 170px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 32px;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .nav__list { display: flex; align-items: center; gap: 28px; margin: 0; }
  .nav__list a { padding: 6px 0; border: 0; font-size: .95rem; position: relative; }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--teal); transform: scaleX(0); transition: transform .2s;
  }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__list .lang__menu a::after { display: none; }
  .lang { padding: 0; margin-left: -8px; }
  .lang__menu { position: absolute; right: 0; top: 100%; z-index: 10; }
  .nav__cta { width: auto; }

  .hero { padding: 80px 0 72px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }

  .section { padding: 96px 0; }
  .section__head {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: end;
    max-width: none; margin-bottom: 56px;
  }
  .section__head .eyebrow, .section__head h2 { grid-column: 1; }
  .section__head h2 { margin-bottom: 0; }
  .section__head .section__intro { grid-column: 2; grid-row: 1 / span 2; margin: 0; }

  .features { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .product--featured { transform: translateY(-12px); }
  .product--featured:hover { transform: translateY(-16px); }

  .steps { position: relative; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps::before {
    content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px);
  }
  .step { padding-right: 32px; }

  .contact { padding: 96px 0; }
  .contact__inner { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .contact__info { position: sticky; top: calc(var(--header-h) + 32px); }

  .footer__inner { grid-template-columns: 3fr 1fr; }
}
