/* =========================================================
   TRAMMA Design Studio — estilos del sitio
   Tokens tomados de la hoja de marca en Figma
   ========================================================= */

/* Geist y Geist Mono (SIL Open Font License, ver /fonts/OFL.txt), alojadas en este servidor */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Paleta primaria */
  --onyx: #0d0d0f;
  --spicy: #de4313;
  --honey: #fec163;
  --smoke: #f6f6f4;
  --gradient: linear-gradient(90deg, var(--honey), var(--spicy));
  /* Complementaria */
  --linen: #e8e3d9;
  --clay: #8c7a6b;
  --charcoal: #2d4b5a;
  --white: #fff;

  /* Texto sobre claro */
  --ink: var(--onyx);
  --ink-70: rgba(13, 13, 15, .7);
  --ink-65: rgba(13, 13, 15, .65);
  --ink-60: rgba(13, 13, 15, .6);
  --ink-55: rgba(13, 13, 15, .55);
  --ink-50: rgba(13, 13, 15, .5);
  --ink-45: rgba(13, 13, 15, .45);
  --line: rgba(140, 122, 107, .3);

  /* Tipografía */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1440px;
  --gutter: 56px;
  --header-h: 80px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 0 0 1px rgba(13, 13, 15, .05), 0 30px 60px -25px rgba(13, 13, 15, .3);
}

/* ---------- Base ---------- */
*, *::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;
  background: var(--smoke);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
main, .contact { overflow-x: clip; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--honey); color: var(--onyx); }
:focus-visible { outline: 2px solid var(--spicy); outline-offset: 3px; border-radius: 4px; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 112px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--onyx); color: var(--smoke); padding: 10px 16px; border-radius: 8px; font-size: 14px; }
.skip-link:focus { top: 16px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.eyebrow--dot { display: flex; align-items: center; gap: 12px; }
.eyebrow--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--spicy); flex: none; }
.eyebrow--accent { color: var(--spicy); }
.eyebrow--honey { color: var(--honey); }
.eyebrow--muted { color: rgba(246, 246, 244, .45); letter-spacing: .14em; }

.h2 { font-size: clamp(36px, 3.4vw, 48px); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.33; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 1.625; color: var(--ink-60); max-width: 384px; }
.accent { color: var(--spicy); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--spicy); color: var(--smoke); }
.btn--primary:hover { background: #c93a0f; }
.btn--sm { padding: 10px 20px; }
.btn--lg { padding: 16px 28px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 20px; }
.link-arrow > span:first-child { border-bottom: 1px solid rgba(13, 13, 15, .25); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow__icon { transition: transform .2s; }
.link-arrow:hover > span:first-child { border-color: var(--spicy); }
.link-arrow:hover .link-arrow__icon { transform: translateX(4px); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(246, 246, 244, .8);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(13, 13, 15, .06); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: auto; height: 56px; }
.main-nav ul { display: flex; gap: 40px; }
.main-nav a:not(.btn) { font-size: 14px; line-height: 20px; color: var(--ink-60); transition: color .2s; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="true"] { color: var(--ink); }
.main-nav__cta { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; }
.lang__sep { color: rgba(140, 122, 107, .5); }
.lang__other { color: var(--clay); cursor: default; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.105fr) minmax(0, 1fr); gap: 64px; align-items: center;
  padding-top: 176px; padding-bottom: 96px;
}
.hero__title {
  margin-top: 32px;
  font-size: clamp(42px, 4.72vw, 68px); font-weight: 600; line-height: .98; letter-spacing: -.03em;
  max-width: 664px;
}
.hero__lead { margin-top: 32px; max-width: 448px; font-size: 18px; line-height: 1.625; color: var(--ink-70); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }

.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: -32px; z-index: -1;
  border-radius: 40px; background: rgba(222, 67, 19, .1); filter: blur(64px);
}
.app-preview {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(13, 13, 15, .05), 0 40px 80px -20px rgba(13, 13, 15, .28);
}
.app-preview__bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  background: rgba(246, 246, 244, .6); border-bottom: 1px solid rgba(13, 13, 15, .05);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--spicy { background: rgba(222, 67, 19, .8); }
.dot--honey { background: var(--honey); }
.dot--clay { background: rgba(140, 122, 107, .5); }
.app-preview__url { padding-left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--clay); }
.app-preview__body { display: flex; min-height: 352px; }
.app-preview__side {
  width: 160px; flex: none; padding: 16px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid rgba(13, 13, 15, .05);
}
.app-preview__side-title { font-size: 14px; font-weight: 600; letter-spacing: -.02em; padding-bottom: 12px; }
.app-preview__side span { padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 19.5px; color: var(--ink-55); }
.app-preview__side .is-active { background: var(--onyx); color: var(--smoke); }
.app-preview__main { flex: 1; min-width: 0; padding: 24px; display: flex; flex-direction: column; }
.app-preview__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.app-preview__kicker { font-size: 12px; line-height: 16px; color: var(--ink-45); }
.app-preview__title { font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -.02em; }
.chip { background: var(--linen); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--ink-60); white-space: nowrap; }
.stats { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: rgba(246, 246, 244, .7); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.stat strong { font-size: 18px; font-weight: 600; line-height: 28px; letter-spacing: -.02em; }
.stat span { font-size: 11px; line-height: 16.5px; color: var(--ink-45); }
.bars { margin-top: auto; padding-top: 24px; height: 136px; display: flex; align-items: flex-end; gap: 8px; }
.bars i { flex: 1; height: var(--h); background: rgba(13, 13, 15, .1); border-radius: 6px 6px 0 0; }
.bars i.is-hot { background: var(--spicy); }
.tokens-card {
  position: absolute; left: -24px; bottom: -24px; width: 146px; padding: 16px;
  background: var(--onyx); border-radius: var(--radius-md);
  box-shadow: 0 20px 25px rgba(0, 0, 0, .1), 0 8px 10px rgba(0, 0, 0, .1);
}
.tokens-card p { font-family: var(--font-mono); font-size: 10px; line-height: 15px; color: var(--honey); }
.tokens-card div { display: flex; gap: 6px; padding-top: 8px; }
.tokens-card i { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }

/* ---------- Por qué TRAMMA ---------- */
.essence { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 80px; }
.essence .h2 { margin-top: 24px; max-width: 500px; }
.essence .lead { margin-top: 24px; }
.pillar { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 40px; padding-block: 36px; }
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar__num { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--clay); }
.pillar p { margin-top: 12px; max-width: 512px; font-size: 16px; line-height: 26px; color: var(--ink-65); }

/* ---------- Trabajo seleccionado ---------- */
.work { padding-block: 80px; }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.work__head .h2 { margin-top: 24px; max-width: 672px; }
.cases { display: flex; flex-direction: column; gap: 96px; }
.case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.case--reverse .case__visual { order: 2; }
.case__visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; padding: 24px;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.case__visual--linen { background: var(--linen); }
.case__visual--honey { background: var(--honey); }
.case__visual--onyx { background: var(--onyx); }
.case__meta { display: flex; align-items: baseline; gap: 20px; }
.case__num { font-size: 60px; font-weight: 600; line-height: 60px; letter-spacing: -.04em; color: rgba(140, 122, 107, .4); }
.case__sector { font-family: var(--font-mono); font-size: 12px; line-height: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); }
.case__title { margin-top: 20px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.case__facts { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.case__facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.case__facts dt { font-family: var(--font-mono); font-size: 11px; line-height: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.case__facts dt.is-accent { color: var(--spicy); }
.case__facts dd { font-size: 16px; line-height: 26px; color: var(--ink-70); }

/* Vista: personas */
.people { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.people__head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; letter-spacing: -.02em; }
.pill-dark { background: var(--onyx); color: var(--smoke); border-radius: 999px; padding: 4px 12px; font-size: 11px; line-height: 16.5px; letter-spacing: 0; }
.people__grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(13, 13, 15, .05); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--white); }
.person p { display: flex; flex-direction: column; line-height: 1.25; }
.person b { font-size: 13px; font-weight: 500; }
.person small { font-size: 11px; color: var(--ink-45); }

/* Vista: kiosko */
.kiosk { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.kiosk__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(13, 13, 15, .4); }
.kiosk__title { font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -.02em; }
.kiosk__grid { width: 100%; max-width: 220px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kiosk__grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(13, 13, 15, .08); }
.kiosk__grid .is-active { background: var(--spicy); color: var(--smoke); box-shadow: none; }

/* Vista: flota (el texto va claro porque la tarjeta es oscura) */
.fleet { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; color: var(--smoke); }
.fleet__head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; letter-spacing: -.02em; }
.fleet__head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; color: rgba(246, 246, 244, .5); }
.fleet__map {
  position: relative; flex: 1; border-radius: 12px; overflow: hidden;
  background-color: #17171a;
  background-image: linear-gradient(rgba(246, 246, 244, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 246, 244, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.fleet__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fleet__pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; }
.fleet__pin--a { left: 6%; top: 62%; background: var(--honey); box-shadow: 0 0 0 4px rgba(254, 193, 99, .2); }
.fleet__pin--b { right: 7%; top: 33%; background: var(--spicy); box-shadow: 0 0 0 4px rgba(222, 67, 19, .25); }
.fleet__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.fleet__stats p { display: flex; flex-direction: column; padding-block: 8px; border-radius: 8px; background: rgba(246, 246, 244, .08); box-shadow: 0 0 0 1px rgba(246, 246, 244, .06); }
.fleet__stats b { font-size: 14px; font-weight: 600; line-height: 20px; }
.fleet__stats small { font-size: 10px; line-height: 15px; color: rgba(246, 246, 244, .5); }

/* ---------- Estudio ---------- */
.atmosphere { padding-block: 32px; }
.atmosphere__figure { position: relative; height: 440px; border-radius: var(--radius-lg); overflow: hidden; background: var(--linen); }
.atmosphere__figure img { width: 100%; height: 100%; object-fit: cover; }
.atmosphere__figure figcaption {
  position: absolute; inset: auto 0 0; padding: 48px;
  background: linear-gradient(to top, rgba(13, 13, 15, .7), rgba(13, 13, 15, 0));
  color: var(--smoke); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em;
}
.atmosphere__figure figcaption { padding-right: max(48px, calc(100% - 560px)); }

/* ---------- Servicios ---------- */
.services { background: rgba(232, 227, 217, .6); border-top: 1px solid rgba(140, 122, 107, .25); }
.services__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 13fr); gap: 80px; align-items: start; }
.service-list { border-top: 1px solid rgba(140, 122, 107, .4); }
.service-list li { border-bottom: 1px solid rgba(140, 122, 107, .4); }
.service { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: 32px; }
.service__num { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--clay); }
.service__text { display: flex; flex-direction: column; gap: 6px; }
.service__name { font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.33; letter-spacing: -.02em; transition: color .2s; }
.service__desc { font-size: 14px; line-height: 20px; color: var(--ink-55); }
.service__arrow { font-size: 20px; color: var(--spicy); transition: transform .2s; }
.service:hover .service__name { color: var(--spicy); }
.service:hover .service__arrow { transform: translateX(6px); }

/* ---------- Contacto + pie ---------- */
.contact { background: var(--onyx); color: var(--smoke); }
.contact__inner { padding-block: 112px 40px; }
.contact__head { max-width: 768px; margin-bottom: 64px; }
.contact__title { margin-top: 24px; font-size: clamp(42px, 5vw, 72px); font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; }
.contact__form-col .eyebrow { margin-bottom: 32px; }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 246, 244, .45); }
.field input, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(246, 246, 244, .2); border-radius: 0;
  background: transparent; color: var(--smoke); font-size: 15px; outline: none; resize: none; transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 246, 244, .3); }
.field input:focus, .field textarea:focus { border-color: var(--spicy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief__submit { justify-self: start; margin-top: 8px; }
.brief__status { font-size: 14px; color: var(--honey); }
.brief__status.is-error { color: #ff8a65; }

.contact__local { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-left: 96px; border-left: 1px solid rgba(246, 246, 244, .15); }
.contact__local .eyebrow { margin-bottom: 32px; }
.contact__local-title { font-size: 30px; font-weight: 600; line-height: 36px; letter-spacing: -.02em; }
.contact__local-text { margin-top: 12px; max-width: 384px; line-height: 1.625; color: rgba(246, 246, 244, .55); }
.contact__wa { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.wa-button {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 999px;
  background: var(--smoke); color: var(--onyx); font-size: 14px; font-weight: 500; transition: transform .2s, background-color .2s;
}
.wa-button:hover { transform: translateY(-2px); background: var(--honey); }
.contact__phone { font-family: var(--font-mono); font-size: 14px; color: var(--honey); }
.contact__hours { margin-top: 8px; font-size: 14px; color: rgba(246, 246, 244, .55); }

.site-footer { margin-top: 96px; padding-top: 40px; border-top: 1px solid rgba(246, 246, 244, .15); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer img { height: 32px; width: auto; }
.site-footer p, .site-footer a { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 246, 244, .4); }
.site-footer a { color: var(--clay); transition: color .2s; }
.site-footer a:hover { color: var(--honey); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .main-nav ul { gap: 28px; }
  .brand img { height: 44px; }
  .hero { grid-template-columns: 1fr; padding-top: 144px; }
  .hero__visual { max-width: 640px; margin-left: 24px; }
  .contact__local { padding-left: 64px; }
  .contact__grid { gap: 64px; }
}

@media (max-width: 1024px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; padding: 24px var(--gutter) 32px;
    background: var(--smoke); border-bottom: 1px solid rgba(13, 13, 15, .08);
    display: flex; flex-direction: column; gap: 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 20px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .main-nav__cta { display: inline-flex; align-self: flex-start; padding: 14px 24px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  }
  .menu-toggle__bar { height: 2px; background: var(--onyx); border-radius: 2px; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

  .section { padding-block: 88px; }
  .essence, .services__inner { grid-template-columns: 1fr; gap: 40px; }
  .essence .lead { max-width: 560px; }
  .case { grid-template-columns: 1fr; gap: 32px; }
  .case--reverse .case__visual { order: 0; }
  .case__visual { max-width: 640px; width: 100%; }
  .cases { gap: 80px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__local { padding-left: 0; padding-top: 40px; border-left: 0; border-top: 1px solid rgba(246, 246, 244, .15); }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; --header-h: 68px; }
  .brand img { height: 34px; }
  .site-header__actions { gap: 8px; }
  .site-header__actions .btn, .lang { display: none; }
  .section { padding-block: 72px; }
  .hero { padding-top: 116px; padding-bottom: 72px; gap: 56px; }
  .hero__title { margin-top: 24px; }
  .hero__lead { margin-top: 24px; font-size: 17px; }
  .hero__actions { gap: 24px; }
  .hero__visual { margin-left: 12px; }
  .app-preview__side { display: none; }
  .app-preview__body { min-height: 0; }
  .app-preview__main { padding: 16px; }
  .app-preview__title { font-size: 19px; line-height: 26px; }
  .stats { gap: 8px; }
  .stat { padding: 10px; }
  .stat strong { font-size: 16px; }
  .bars { height: 110px; gap: 5px; }
  .tokens-card { left: -12px; bottom: -32px; padding: 12px; width: 124px; }
  .tokens-card i { width: 20px; height: 20px; }
  .pillar { gap: 20px; padding-block: 28px; }
  .work { padding-block: 64px; }
  .work__head { margin-bottom: 40px; }
  .case__visual { padding: 16px; border-radius: 20px; aspect-ratio: auto; min-height: 300px; }
  .person { padding: 10px; gap: 10px; }
  .person b { font-size: 12px; }
  .case__num { font-size: 48px; line-height: 48px; }
  .case__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .atmosphere__figure { height: 360px; border-radius: 20px; }
  .atmosphere__figure figcaption { padding: 28px 24px; }
  .service { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 16px; padding-block: 24px; }
  .contact__inner { padding-top: 80px; }
  .contact__head { margin-bottom: 48px; }
  .brief { grid-template-columns: 1fr; gap: 28px; }
  .brief__submit { justify-self: stretch; }
  .site-footer { margin-top: 64px; flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Casillas de aceptación del formulario ---------- */
.consents { margin: 4px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.consent input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 20px; height: 20px; flex: none; cursor: pointer;
  border: 1.5px solid rgba(246, 246, 244, .45); border-radius: 5px; background: transparent;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.consent input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--onyx); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.consent input:checked { background: var(--honey); border-color: var(--honey); }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 2px solid var(--spicy); outline-offset: 3px; }
.consent label { font-size: 14px; line-height: 1.5; color: rgba(246, 246, 244, .8); cursor: pointer; }
.consent__link { font-size: 13px; line-height: 21px; color: var(--honey); white-space: nowrap; border-bottom: 1px solid rgba(254, 193, 99, .4); transition: border-color .2s; }
.consent__link:hover { border-color: var(--honey); }
.consents__notice { margin-top: 4px; font-size: 12px; line-height: 1.6; color: rgba(246, 246, 244, .45); }
.consents__notice strong { color: rgba(246, 246, 244, .7); font-weight: 500; }
.consents__notice a { color: rgba(246, 246, 244, .75); text-decoration: underline; text-underline-offset: 2px; }
.pendiente { background: var(--honey); color: var(--onyx); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Enlaces legales del pie */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .site-footer__legal a { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: rgba(246, 246, 244, .7); }
.site-footer .site-footer__legal a:hover { color: var(--honey); }
.atmosphere__figure picture { display: block; width: 100%; height: 100%; }
.atmosphere__figure img { object-position: 40% 50%; }
