/* =========================================================
   HÍBRIDO — Sistema visual
   Sobrio · Apple-like · Cream + Mint sobre grafito profundo
   ========================================================= */

:root {
  /* Type */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Brand colors (constants) */
  --cream: #F4EFDA;
  --mint: #C9E5BC;
  --mint-strong: #A9D49A;
  --mint-deep: #6FA779;

  /* Dark theme (default) */
  --bg: #0A0A0A;
  --bg-soft: #0E0F0D;
  --surface: #131311;
  --surface-2: #1A1A17;
  --line: rgba(244, 239, 218, 0.08);
  --line-strong: rgba(244, 239, 218, 0.14);
  --text: #F4EFDA;
  --text-muted: rgba(244, 239, 218, 0.62);
  --text-faint: rgba(244, 239, 218, 0.38);
  --accent: #E8C77A;
  --accent-ink: #0A0A0A;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);

  /* Sizing */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* Type scale (Apple-like, fluid) */
  --display: clamp(56px, 11vw, 168px);
  --h1: clamp(44px, 7vw, 96px);
  --h2: clamp(34px, 4.6vw, 64px);
  --h3: clamp(24px, 2.4vw, 32px);
  --h4: 20px;
  --body-lg: clamp(18px, 1.6vw, 22px);
  --body: 17px;
  --small: 14px;
  --eyebrow: 12px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #FAFAF7;
  --bg-soft: #F3F2EC;
  --surface: #FFFFFF;
  --surface-2: #F0EFE8;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.16);
  --text: #0A0A0A;
  --text-muted: rgba(10, 10, 10, 0.62);
  --text-faint: rgba(10, 10, 10, 0.42);
  --accent: var(--mint-deep);
  --accent-ink: #FFFFFF;
  --shadow: 0 1px 0 rgba(0,0,0,0.03) inset, 0 30px 60px -30px rgba(0,0,0,0.18);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background-color 600ms var(--ease-out), color 600ms var(--ease-out);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--mint); color: #0A0A0A; }

/* ===== Layout ===== */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
section {
  position: relative;
  padding-block: clamp(80px, 12vh, 160px);
}

/* ===== Typography helpers ===== */
.display, .h1, .h2, .h3 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: var(--display); letter-spacing: -0.045em; line-height: 0.95; }
.h1 { font-size: var(--h1); }
.h2 { font-size: var(--h2); }
.h3 { font-size: var(--h3); letter-spacing: -0.02em; line-height: 1.15; }
.lead {
  font-size: var(--body-lg);
  color: var(--text-muted);
  letter-spacing: -0.011em;
  line-height: 1.4;
  text-wrap: pretty;
  margin: 0;
}
.eyebrow {
  font-size: var(--eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.small { font-size: var(--small); color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { transform: translateY(-1px); background: #DCEFD0; }
[data-theme="light"] .btn-primary:hover { background: var(--mint-strong); color: #0A0A0A; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); }
.btn .arrow { transition: transform .25s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: backdrop-filter .3s, background-color .3s;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand img { height: 22px; width: auto; opacity: 0.95; }
[data-theme="light"] .brand img { filter: invert(1) brightness(0.4) saturate(0.5); }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a {
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 16px;
  font-size: 13.5px;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(80px, 14vh, 140px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-height: 900px) {
  .hero { --display: clamp(48px, 9vw, 128px); }
  .hero h1 { font-size: var(--display); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 1200px; height: 600px;
  background: radial-gradient(ellipse, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 36px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero .lead { max-width: 620px; }
.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: 60px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.hero-meta .scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-meta .scroll-hint::after {
  content: "↓";
  display: inline-block;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ===== Section header ===== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head .lead { max-width: 520px; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== Eventos / Portafolio ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.event-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out);
}
.event-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.event-card.large {
  grid-column: span 6;
  min-height: 480px;
}
.event-card image-slot {
  width: 100%;
  flex: 1;
  min-height: 240px;
}
.event-img {
  width: 100%;
  flex: 1;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
.event-meta {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.event-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.event-title {
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.event-card.large .event-meta { padding: 24px 32px 28px; }
.event-card.large .event-title { font-size: 22px; }
@media (max-width: 900px) {
  .events-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .event-card, .event-card.large { grid-column: span 1; }
  .event-card.large { min-height: 340px; }
}
@media (max-width: 540px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ===== Capacidades / Multi-idioma ===== */
.capabilities {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.cap-head h2 { margin: 0; }
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.cap-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.cap-item:last-child { border-bottom: 1px solid var(--line); }
.cap-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.cap-icon svg { width: 26px; height: 26px; }
.cap-item h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.cap-item p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 42ch;
}
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* infinity symbol slightly bigger */
.stat .num .infinity {
  font-size: 1.1em;
  letter-spacing: -0.05em;
}

/* ===== Manifiesto ===== */
.manifesto {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.manifesto-text {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
}
.manifesto-text .muted { color: var(--text-faint); }
.manifesto-text .hl { color: var(--accent); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.2fr minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.manifesto-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 24px;
  padding-top: 8px;
}
.stat .num {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
  font-feature-settings: "tnum", "lnum";
}
.stat .num .pct { font-size: 0.55em; color: var(--text-muted); margin-left: 2px; }
.stat .label {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ===== Contexto ===== */
.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.context-card {
  background: var(--surface);
  padding: 44px 36px 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 340px;
}
.context-card .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.context-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.context-card p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.5;
  margin: auto 0 0;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  .context-grid { grid-template-columns: 1fr; }
}

/* ===== Servicios ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 36px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.service-card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.service-card p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.5;
  margin: 0;
  max-width: 38ch;
}
.service-card .more {
  margin-top: auto;
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.005em;
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Proceso ===== */
.process {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.process-list {
  display: grid;
  gap: 0;
}
.process-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process-row:last-child { border-bottom: 1px solid var(--line); }
.process-row .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 6px;
  letter-spacing: 0.1em;
}
.process-row h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.process-row p {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 50ch;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .process-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .process-row .num { padding-top: 0; }
}

/* ===== Clientes ===== */
.clients {
  text-align: center;
}
.clients-head { text-align: center; margin-bottom: 64px; display: block; }
.clients-head .lead { margin-inline: auto; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client {
  aspect-ratio: 5 / 3;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color .25s, background-color .25s;
  position: relative;
}
.client:hover { color: var(--text); background: var(--surface); }
.client image-slot {
  width: 70%;
  height: 60%;
}
.client-logo img {
  max-width: 70%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity .25s var(--ease-out);
}
.client-logo:hover img { opacity: 1; }
[data-theme="light"] .client-logo img { opacity: 0.78; }
@media (max-width: 1280px) {
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Contacto ===== */
.contact {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.contact-lead h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 28px; font-weight: 500; }
.contact-lead h2 .it { color: var(--accent); font-style: italic; font-weight: 400; }
.contact-details {
  margin-top: 48px;
  display: grid;
  gap: 4px;
}
.contact-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  align-items: center;
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row .k { color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-row .v a:hover { color: var(--accent); }

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
  outline: none;
  transition: border-color .2s;
  letter-spacing: -0.005em;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { -webkit-appearance: none; appearance: none; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.form-submit { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.form .note { color: var(--text-faint); font-size: 12.5px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}
.footer-brand img { height: 28px; opacity: 0.9; margin-bottom: 16px; }
[data-theme="light"] .footer-brand img { filter: invert(1) brightness(0.4) saturate(0.5); }
.footer-brand p { color: var(--text-muted); max-width: 30ch; font-size: 14px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 16px; font-weight: 500; font-family: var(--font-mono); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ===== Splitter dots ===== */
.dots {
  display: inline-flex;
  gap: 6px;
  vertical-align: middle;
}
.dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}
.dots span.on { background: var(--accent); }

/* ===== Mobile refinements ===== */
@media (max-width: 760px) {
  :root { --pad-x: 20px; }
  section { padding-block: 72px; }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 80px;
  }
  .hero h1 {
    font-size: clamp(44px, 13vw, 72px) !important;
    letter-spacing: -0.035em;
  }
  .hero .lead { font-size: 16.5px !important; }
  .hero-cta {
    margin-top: 32px;
    width: 100%;
  }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
  .hero-meta {
    bottom: 28px;
    font-size: 10px;
    gap: 12px;
  }
  .hero-meta span:nth-child(3) { display: none; }

  /* Nav */
  .nav { padding: 12px 0; }
  .nav-cta { padding: 8px 14px; font-size: 12.5px; min-height: 36px; }
  .brand img { height: 18px; }

  /* Section heads */
  .section-head { margin-bottom: 48px; }
  .h2, .section-head h2 { font-size: clamp(32px, 8vw, 44px); }
  .lead { font-size: 16.5px; }

  /* Manifiesto */
  .manifesto-text { font-size: clamp(26px, 7.5vw, 36px); }
  .manifesto-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
  .stat .num { font-size: 52px; }

  /* Eventos */
  .event-card.large { min-height: 280px; }
  .event-card image-slot { min-height: 200px; }
  .event-meta { padding: 16px 18px 18px; }
  .event-card.large .event-meta { padding: 18px 20px 20px; }
  .event-title { font-size: 15px; }
  .event-card.large .event-title { font-size: 18px; }

  /* Context cards */
  .context-card { padding: 32px 24px 36px; min-height: 0; }
  .context-grid { border-radius: 18px; }

  /* Service cards */
  .service-card { padding: 32px 24px; min-height: 0; border-radius: 22px; }
  .service-card h3 { font-size: 22px; }
  .service-card .icon { width: 48px; height: 48px; margin-bottom: 16px; }

  /* Process */
  .process-row { padding: 28px 0 !important; }
  .process-row h3 { font-size: 22px !important; }

  /* Clientes */
  .clients-head { margin-bottom: 40px; }

  /* Contacto */
  .contact-lead h2 { font-size: clamp(32px, 8vw, 44px); }
  .form { padding: 24px 22px; border-radius: 22px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .contact-row .k { font-size: 10.5px; }
  .form-submit { flex-direction: column-reverse; align-items: stretch; }
  .form-submit .btn { justify-content: center; min-height: 48px; }
  .field input, .field textarea, .field select { font-size: 16px; /* prevent iOS zoom */ }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 11px; }

  /* Tweaks panel: minimize chrome on small screens */
  .twk-panel { right: 8px !important; bottom: 8px !important; width: calc(100vw - 16px) !important; max-width: 320px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(40px, 12vw, 60px) !important; }
  .manifesto-stats { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Prevent any accidental horizontal overflow */
html, body { overflow-x: hidden; max-width: 100vw; }

