/* ==========================================================
   Alex Marketing Digital Group — Landing page
   Paleta oficial: grafito, marfil, verde y grises
   ========================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --grafito: #1c1e21;
  --grafito-2: #25282c;
  --marfil: #f4f1ec;
  --verde: #1f5e4e;
  --verde-oscuro: #174a3d;
  --menta: #8fc2b3;           /* tinte del verde de marca para fondos oscuros */
  --gris: #8a8f98;
  --gris-claro: #e2e4e7;
  --texto-suave: #4b4f56;
  --blanco: #faf8f4;
  --linea: rgba(28, 30, 33, .12);
  --linea-clara: rgba(244, 241, 236, .14);

  --font-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 136px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  color: var(--grafito);
  background: var(--marfil);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
em { font-style: normal; color: var(--verde); }
::selection { background: var(--verde); color: var(--marfil); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--marfil);
  color: var(--grafito);
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--verde);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--menta); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--blanco); }

.section__head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--row {
  max-width: none;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 24px 64px;
}
.section__title {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  font-weight: 300;
}
.section__lead { margin-top: 20px; color: var(--texto-suave); font-size: 1.06em; max-width: 46ch; }
.section__head--row .section__lead { margin-top: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.btn:hover svg:last-child { transform: translateX(3px); }

.btn--primary { background: var(--verde); color: var(--marfil); border-color: var(--verde); }
.btn--primary:hover { background: var(--verde-oscuro); border-color: var(--verde-oscuro); }
.btn--light { background: var(--marfil); color: var(--grafito); border-color: var(--marfil); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--outline-light { color: var(--marfil); border-color: rgba(244, 241, 236, .35); }
.btn--outline-light:hover { border-color: var(--marfil); background: rgba(244, 241, 236, .06); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--marfil);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  background: rgba(28, 30, 33, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linea-clara);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { flex-shrink: 0; position: relative; z-index: 2; }
.header .brand { margin-right: auto; }
.nav { order: 2; }
.lang { order: 3; }
.nav-toggle { order: 4; }

/* Selector de idioma */
.lang {
  position: relative;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--linea-clara);
  border-radius: 999px;
}
.lang__btn {
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 241, 236, .7);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang__btn:hover { color: var(--marfil); }
.lang__btn[aria-pressed="true"] { background: var(--marfil); color: var(--grafito); }
.logo { width: auto; height: 36px; aspect-ratio: 1692 / 524; fill: currentColor; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; }
.nav__list a {
  position: relative;
  font-family: var(--font-display);
  font-size: .98rem;
  padding-block: 6px;
  color: rgba(244, 241, 236, .8);
  transition: color .2s;
}
.nav__list a:hover { color: var(--marfil); }
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--marfil);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: var(--section-y);
  background: var(--grafito);
  background-image: radial-gradient(60vmax 60vmax at 90% -10%, rgba(31, 94, 78, .45), transparent 70%);
  color: var(--marfil);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero__title {
  font-size: clamp(2.6rem, 1.3rem + 5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero__title em { color: var(--menta); font-weight: 400; }
.hero__lead {
  max-width: 36ch;
  margin-top: 28px;
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  color: rgba(244, 241, 236, .72);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__actions--tiles { gap: 10px; }
.hero__actions--tiles .btn { gap: 9px; padding-inline: 22px; }
.hero__actions--tiles .btn svg { width: 19px; height: 19px; }
.carousel-dots { display: none; }

.hero__media { position: relative; justify-self: end; width: 100%; max-width: 500px; margin-bottom: 34px; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--grafito-2);
}
.hero__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(37, 40, 44, .72);
  border: 1px solid var(--linea-clara);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
  font-size: .85rem;
  line-height: 1.4;
  color: rgba(244, 241, 236, .72);
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--marfil); }
.hero__badge-dot { position: relative; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--menta); }
.hero__badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--menta);
  animation: pulse 2.2s cubic-bezier(.22, .61, .36, 1) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Estadísticas del hero */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 36px;
  border-top: 1px solid var(--linea-clara);
}
.stat { padding-inline: 20px; border-left: 1px solid var(--linea-clara); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 1.4vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--marfil);
  white-space: nowrap;
}
.stat__suffix { color: var(--menta); }
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: .85rem;
  line-height: 1.4;
  color: rgba(244, 241, 236, .65);
}

/* Entrada suave del hero al cargar (solo CSS) */
.intro { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
.intro--media { animation-name: fadeIn; animation-duration: 1.1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.98); } }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Problema ---------- */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.split__aside { position: sticky; top: 120px; }

.problem {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-block: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--linea);
}
.problem:last-child { border-bottom: 1px solid var(--linea); }
.problem__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--verde);
}
.problem h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); font-weight: 400; margin-bottom: 8px; }
.problem p { color: var(--texto-suave); max-width: 46ch; }

/* ---------- Solución ---------- */
.dark {
  padding-block: var(--section-y);
  background: var(--grafito);
  color: var(--marfil);
}
.statement__text {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.9rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.statement__text em { color: var(--menta); }

.value__grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  margin-top: clamp(64px, 9vw, 120px);
}
.media { overflow: hidden; border-radius: var(--radius); background: var(--grafito-2); }
.media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.value__title {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 300;
  margin-bottom: 24px;
}
.value__title em { color: var(--menta); }
.value__text > p { color: rgba(244, 241, 236, .72); font-size: 1.06em; }
.value__text strong { color: var(--marfil); font-weight: 600; }
.value__text .btn { margin-top: 40px; }

/* ---------- Listas con check ---------- */
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { position: relative; padding-left: 36px; color: rgba(244, 241, 236, .88); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--menta);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fc2b3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks--dark li { color: var(--grafito); }
.checks--dark li::before {
  border-color: var(--verde);
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f1ec' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 36px;
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  background: var(--blanco);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.service:hover {
  border-color: rgba(31, 94, 78, .35);
  box-shadow: 0 18px 40px -28px rgba(28, 30, 33, .45);
  transform: translateY(-3px);
}
.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.service__icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border: 1px solid rgba(31, 94, 78, .25);
  border-radius: 50%;
  color: var(--verde);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.service:hover .service__icon { background: var(--verde); border-color: var(--verde); color: var(--marfil); }
.service__num {
  font-family: var(--font-display);
  font-size: .9rem;
  color: var(--gris);
}
.service__title { font-size: 1.4rem; font-weight: 400; margin-bottom: 12px; }
.service__desc { color: var(--texto-suave); font-size: .97rem; }

/* ---------- Proceso ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--linea);
}
.step { position: relative; }
.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--grafito);
  color: var(--marfil);
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: 0 0 0 8px var(--blanco);
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--texto-suave); max-width: 30ch; }

/* ---------- Para quién ---------- */
.audience {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}
.audience .checks { grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 36px; }
.audience__card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--grafito);
  color: var(--marfil);
}
.audience__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--menta);
  margin-bottom: 8px;
}
.audience__card dl { margin-bottom: 32px; }
.audience__card dl div { padding-block: 18px; border-bottom: 1px solid var(--linea-clara); }
.audience__card dt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.audience__card dd { color: rgba(244, 241, 236, .62); }

/* ---------- Sobre Alex ---------- */
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}
.about__text > p:not(.eyebrow) { color: var(--texto-suave); margin-top: 18px; font-size: 1.05em; max-width: 52ch; }
.about__text .section__title { margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tags li {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(31, 94, 78, .3);
  color: var(--verde);
  font-size: .92rem;
  font-weight: 500;
}

/* ---------- Botón de reproducir y ventana de vídeo (compartidos) ---------- */
.reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(244, 241, 236, .55);
  border-radius: 50%;
  background: rgba(244, 241, 236, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--marfil);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.reel__play svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }

/* Ventana del reproductor */
.reel-modal {
  margin: auto;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.reel-modal[open] { animation: fadeUp .35s var(--ease) both; }
.reel-modal::backdrop {
  background: rgba(14, 15, 17, .85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.reel-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.reel-modal__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 241, 236, .35);
  border-radius: 50%;
  background: rgba(244, 241, 236, .08);
  color: var(--marfil);
  cursor: pointer;
  transition: background-color .2s;
}
.reel-modal__close:hover { background: rgba(244, 241, 236, .2); }
.reel-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Contacto ---------- */
.contact {
  padding-block: var(--section-y);
  background: var(--verde);
  color: var(--marfil);
}
.contact__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: clamp(48px, 7vw, 104px);
}
.contact__info { position: sticky; top: 112px; }
.contact__title {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.025em;
}
.contact__lead {
  max-width: 42ch;
  margin-top: 22px;
  font-size: 1.08em;
  color: rgba(244, 241, 236, .8);
}
.contact__list { display: grid; gap: 4px; margin-top: 40px; }
.contact__list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--linea-clara);
  transition: opacity .2s;
}
.contact__list a:hover { opacity: .8; }
.contact__list small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--menta);
}
.contact__list span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--linea-clara);
}
.contact__icon svg,
.footer__social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Formularios ---------- */
.form-card {
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: var(--radius);
  background: var(--blanco);
  color: var(--grafito);
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .55);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 32px;
  border-radius: 999px;
  background: var(--gris-claro);
}
.tab {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--texto-suave);
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.tab:hover { color: var(--grafito); }
.tab[aria-selected="true"] {
  background: var(--blanco);
  color: var(--grafito);
  box-shadow: 0 2px 8px -3px rgba(28, 30, 33, .25);
}
.panel:not([hidden]) { animation: fadeUp .45s var(--ease) both; }

.form__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; }
.form__intro { margin: 8px 0 28px; color: var(--texto-suave); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; color: var(--grafito); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(28, 30, 33, .18);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--grafito);
  font: inherit;
  font-size: 1rem; /* evita el zoom automático en iOS */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1e21' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
  cursor: pointer;
}
.field select:invalid { color: var(--gris); }
.field select option { color: var(--grafito); }
.field input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(28, 30, 33, .35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(31, 94, 78, .15);
}
.form.was-validated :is(input, select, textarea):invalid { border-color: #b4412f; }

.form .btn { margin-top: 6px; min-height: 56px; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form__status { font-size: .9rem; color: #b4412f; }
.form__status:empty { display: none; }
.form__status a { text-decoration: underline; }

/* Desplegable personalizado (mejora del <select> nativo) */
.select { position: relative; }
.select__native {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(28, 30, 33, .18);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--grafito);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.select__trigger:hover { border-color: rgba(28, 30, 33, .35); }
.select__trigger:focus-visible,
.select.is-open .select__trigger {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(31, 94, 78, .15);
}
.select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__trigger.is-placeholder .select__value { color: var(--gris); }
.select__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.select.is-open .select__arrow { transform: rotate(180deg); }
.form.was-validated .select__native:invalid + .select__trigger { border-color: #b4412f; }

.select__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 288px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 24px 48px -20px rgba(28, 30, 33, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  scrollbar-width: thin;
  scrollbar-color: var(--gris-claro) transparent;
}
.select.is-up .select__list { top: auto; bottom: calc(100% + 8px); transform: translateY(6px); }
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; transition-duration: .18s, .18s, 0s; }
.select__list:focus { outline: none; }
.select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .97rem;
  color: var(--grafito);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.select__option.is-active { background: rgba(31, 94, 78, .08); }
.select__option[aria-selected="true"] { color: var(--verde); font-weight: 600; }
.select__option svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--verde);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.select__option[aria-selected="true"] svg { opacity: 1; }

/* Selector de fecha (mm/dd/yyyy) */
.date { position: relative; }
.date input { padding-right: 52px; }
.date__toggle {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--grafito);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.js .date__toggle { display: grid; }
.date__toggle:hover,
.date.is-open .date__toggle { background: rgba(31, 94, 78, .08); color: var(--verde); }
.date__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.date__cal {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 308px;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 14px;
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 24px 48px -20px rgba(28, 30, 33, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.date.is-up .date__cal { top: auto; bottom: calc(100% + 8px); transform: translateY(6px); }
.date.is-open .date__cal { opacity: 1; visibility: visible; transform: none; transition-duration: .18s, .18s, 0s; }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal__title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; }
.cal__nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: transparent;
  color: var(--grafito);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.cal__nav:hover:not([disabled]) { background: rgba(31, 94, 78, .08); border-color: rgba(31, 94, 78, .3); }
.cal__nav[disabled] { opacity: .3; cursor: default; }
.cal__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cal__grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.cal__grid th {
  padding-block: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gris);
}
.cal__grid td { padding: 0; text-align: center; }
.cal__day {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--grafito);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.cal__day:hover:not([disabled]) { background: rgba(31, 94, 78, .08); }
.cal__day.is-today { color: var(--verde); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(31, 94, 78, .35); }
.cal__day.is-selected,
.cal__day.is-selected:hover { background: var(--verde); color: var(--marfil); box-shadow: none; }
.cal__day[disabled] { color: rgba(28, 30, 33, .25); cursor: default; }
.cal__day:focus-visible { outline: 2px solid var(--verde); outline-offset: 1px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__success { text-align: center; padding-block: 40px 16px; animation: fadeUp .45s var(--ease) both; }
.form__success:focus { outline: none; }
.form__success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--verde);
}
.form__success-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--marfil); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form__success h3 { font-size: 1.6rem; font-weight: 400; }
.form__success p { margin: 10px 0 28px; color: var(--texto-suave); }
.btn--outline-dark { color: var(--grafito); border-color: rgba(28, 30, 33, .25); }
.btn--outline-dark:hover { border-color: var(--grafito); }

/* ---------- Footer ---------- */
.footer {
  padding-top: 56px;
  background: var(--grafito);
  color: rgba(244, 241, 236, .6);
  font-size: .92rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px 48px;
}
.footer .brand { color: var(--marfil); display: inline-block; }
.footer__tagline { margin-top: 12px; font-size: .8rem; letter-spacing: .04em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer__nav a { transition: color .2s; }
.footer__nav a:hover { color: var(--marfil); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--linea-clara);
  color: var(--marfil);
  transition: background-color .2s, color .2s, border-color .2s;
}
.footer__social a:hover { background: var(--marfil); color: var(--grafito); border-color: var(--marfil); }
.footer__bottom {
  margin-top: 40px;
  padding-block: 24px;
  border-top: 1px solid var(--linea-clara);
  font-size: .85rem;
}

/* ---------- Real Estate ---------- */
.btn--accent {
  color: var(--menta);
  border-color: rgba(143, 194, 179, .45);
  background: rgba(143, 194, 179, .1);
}
.btn--accent:hover { background: var(--menta); border-color: var(--menta); color: var(--grafito); }

.audience-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.audience-chips li {
  padding: 6px 14px;
  border: 1px solid var(--linea-clara);
  border-radius: 999px;
  font-size: .85rem;
  color: rgba(244, 241, 236, .82);
}

.cta-band {
  padding-block: var(--section-y);
  background: var(--verde);
  color: var(--marfil);
  text-align: center;
}
.cta-band__inner { max-width: 820px; }
.cta-band .eyebrow { justify-content: center; }
.cta-band__title {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.025em;
}
.cta-band__lead { max-width: 46ch; margin: 22px auto 0; font-size: 1.08em; color: rgba(244, 241, 236, .8); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* Enlace para volver a la página principal */
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: .95rem;
  color: rgba(244, 241, 236, .75);
  transition: color .2s;
}
.back-link:hover { color: var(--marfil); }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }
.back-link--center { margin: 32px auto 0; }

/* Vídeos de ejemplo dentro de las tarjetas de servicio (Real Estate) */
.vcard {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--grafito);
}
.vcard picture { height: 100%; }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55) 100%);
}
.vcard__time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
/* Miniaturas de fotos y vídeos: mismo tamaño y alineadas al pie de la tarjeta */
.service__media { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; }
.service__media li { flex: 1 1 0; max-width: 96px; min-width: 0; }
.vcard--sm { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; }
.vcard--sm .reel__play { width: 36px; height: 36px; }
.vcard--sm .reel__play svg { width: 16px; height: 16px; margin-left: 2px; }
.vcard--sm .vcard__time { right: 6px; bottom: 6px; padding: 2px 6px; font-size: .68rem; }
.vcard:hover img { transform: scale(1.04); }

/* Galería de diseños dentro de la tarjeta */
.gitem--hidden { display: none; }
.vcard .gcard__more { z-index: 3; }
.video-modal__nav[hidden] { display: none; }
.video-modal__nav { top: 42%; }
.gcard {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: var(--gris-claro);
  box-shadow: 0 0 0 1px var(--linea);
}
.gcard picture { height: 100%; }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard:hover img { transform: scale(1.05); }
.gcard__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 30, 33, .62);
  color: var(--marfil);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* Visor de diseños */
.gallery-modal__count { color: var(--marfil); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.gallery-modal__stage {
  --ratio-w: 4;
  --ratio-h: 5;
  position: relative;
  --max-w: 560px;
  width: min(var(--max-w), 94vw, calc((100vh - 90px) * var(--ratio-w) / var(--ratio-h)));
  aspect-ratio: var(--ratio-w) / var(--ratio-h);
  overflow: hidden;
  border-radius: 14px;
  background: var(--grafito-2);
  touch-action: pan-y;
}
.gallery-modal__img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gallery-modal__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 30, 33, .55);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s;
}
.gallery-modal__nav:hover { background: rgba(28, 30, 33, .8); }
.gallery-modal__nav--prev { left: 10px; }
.gallery-modal__nav--next { right: 10px; }
.gallery-modal__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vcard:hover .reel__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(244, 241, 236, .3); }

/* Reproductor de vídeos propios */
.video-modal__title { color: var(--marfil); font-family: var(--font-display); }
.video-modal__frame {
  position: relative;
  width: min(420px, 92vw, calc((100vh - 90px) * 9 / 16));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}
.video-modal__frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

.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;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
  animation: waIn .5s var(--ease) 1s both;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s, visibility .25s;
}
.wa-float svg { order: 2; flex-shrink: 0; width: 30px; height: 30px; fill: currentColor; }
.wa-float__label {
  order: 1;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-family: var(--font-display);
  font-weight: 500;
  transition: max-width .35s var(--ease), opacity .25s var(--ease), margin .35s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .5); }
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { max-width: 140px; opacity: 1; margin: 0 10px 0 6px; }
.nav-open .wa-float { opacity: 0; visibility: hidden; }
@keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.85); } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .stat:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .header__inner { gap: 18px; }
  .nav { gap: 18px; }
  .nav__list { gap: 18px; }
  .nav__list a { font-size: .92rem; }
}

@media (max-width: 860px) {
  /* El problema: carrusel horizontal con avance automático */
  .problems {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .problems::-webkit-scrollbar { display: none; }
  .problem,
  .problem:last-child {
    flex: 0 0 46%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--linea);
    border-radius: 16px;
    background: var(--blanco);
    scroll-snap-align: start;
  }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
  .carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 30, 33, .2);
    cursor: pointer;
    transition: width .3s var(--ease), background-color .3s var(--ease);
  }
  .carousel-dots button.is-active { width: 24px; background: var(--verde); }
  :root { --header-h: 64px; }
  .logo { height: 30px; }

  /* Menú móvil */
  .nav-toggle { display: block; }
  .header__inner { gap: 10px; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--grafito);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__list { flex-direction: column; }
  .nav__list li { border-bottom: 1px solid var(--linea-clara); }
  .nav__list a { display: block; padding: 16px 0; font-size: 1.6rem; font-weight: 300; color: var(--marfil); }
  .nav__list a::after { display: none; }

  .hero__grid, .value__grid, .audience, .about, .split, .section__head--row { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 480px; }
  .split__aside { position: static; }
  .value__grid .media, .about .media { max-width: 520px; width: 100%; margin-inline: auto; order: 2; }
  .value__grid .media { order: 0; }

  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }


  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { position: static; }
  .contact__list { display: none; }
  .contact__grid { gap: 36px; }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__bottom { text-align: center; }
}

@media (max-width: 560px) {
  /* Ritmo vertical más compacto en pantallas pequeñas */
  :root { --section-y: 72px; --radius: 16px; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: 1.9rem; }
  .eyebrow { margin-bottom: 16px; }

  /* Inicio */
  .hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 64px; }
  .hero__grid { gap: 40px; }
  .hero__title { font-size: 2.75rem; }
  .hero__lead { margin-top: 20px; font-size: 1.05rem; }
  .hero__actions { margin-top: 32px; gap: 10px; }
  .hero__actions .btn, .cta-band__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn { min-height: 50px; padding-block: 12px; }
  .hero__actions--tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero__actions--tiles .btn {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    padding: 14px 6px 12px;
    border-radius: 16px;
    font-size: .8rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
  .hero__actions--tiles .btn svg { width: 22px; height: 22px; }
  .hero__badge { padding: 12px 18px 12px 16px; gap: 12px; }
  .audience-chips { margin-top: 22px; }
  .back-link { margin-bottom: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 0; margin-top: 48px; padding-top: 28px; }
  .stat { padding-inline: 16px; }
  .stat:nth-child(3n + 1) { padding-left: 16px; border-left: 1px solid var(--linea-clara); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat__value { font-size: 2rem; }
  .stat__label { font-size: .8rem; }

  /* Problemas: número pequeño en línea con el título */
  .problem { grid-template-columns: 36px 1fr; gap: 16px; padding-block: 24px; }
  .problem__num { width: 36px; height: 36px; font-size: .75rem; }
  .problem h3 { font-size: 1.3rem; margin-bottom: 6px; }
  .problem p { font-size: .95rem; }

  /* Servicios: lista compacta con icono a la izquierda */
  .services { grid-template-columns: 1fr; gap: 10px; }
  .service {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 20px 18px;
    border-radius: 14px;
  }
  .service__top { grid-row: 1 / span 2; margin: 0; }
  .service__num { display: none; }
  .service__icon { width: 44px; height: 44px; padding: 11px; }
  .service__title { font-size: 1.12rem; margin: 2px 0 6px; }
  .service__desc { font-size: .92rem; line-height: 1.55; }
  .service__media { grid-column: 2; gap: 8px; margin-top: 14px; padding-top: 0; }
  .gcard__more { font-size: 1.1rem; }
  .service__media li { max-width: 88px; }

  /* Proceso, público y resto */
  .audience .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .statement__text { font-size: 1.85rem; }
  .value__grid { margin-top: 56px; }
  .cta-band__title, .contact__title { font-size: 2.1rem; }

  /* Formularios */
  .form-card { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .tab { font-size: .9rem; padding-inline: 8px; }

  .footer__nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 12px 26px; }

  .wa-float { right: 16px; bottom: 16px; height: 54px; padding: 0 12px; }

  /* ==========================================================
     Móvil compacto: mismo contenido, menos scroll
     ========================================================== */
  :root { --section-y: 56px; }
  .section__head { margin-bottom: 28px; }
  .section__title { font-size: 1.7rem; }
  .section__lead { margin-top: 14px; font-size: .95rem; }

  /* Inicio: foto apaisada y estadísticas en 3 columnas */
  .hero { padding-bottom: 48px; }
  .hero__grid { gap: 32px; }
  .hero__media img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 22px 0; margin-top: 36px; padding-top: 24px; }
  .stat,
  .stat:nth-child(odd),
  .stat:nth-child(3n + 1) { padding-inline: 10px; border-left: 1px solid var(--linea-clara); }
  .stat:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .stat__value { font-size: 1.5rem; }
  .stat__label { margin-top: 6px; font-size: .72rem; line-height: 1.3; }

  /* El problema: tarjetas deslizables en horizontal */
  .problems {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .problems::-webkit-scrollbar { display: none; }
  .problem,
  .problem:last-child {
    flex: 0 0 80%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--linea);
    border-radius: 16px;
    background: var(--blanco);
    scroll-snap-align: start;
  }
  .problem h3 { font-size: 1.2rem; }
  .problem p { font-size: .92rem; }

  /* La solución: textos más ajustados y foto panorámica */
  .statement__text { font-size: 1.5rem; }
  .value__grid { margin-top: 40px; gap: 32px; }
  .value__title { font-size: 1.6rem; margin-bottom: 16px; }
  .value__text > p { font-size: .97rem; }
  .value__grid .media img { aspect-ratio: 4 / 5; }
  .value__text .btn { margin-top: 28px; }
  .checks { gap: 10px; margin-top: 20px; }
  .checks li { font-size: .95rem; }

  /* Servicios: acordeón (icono + título; al tocar se despliega) */
  .services { gap: 8px; }
  .service { align-items: center; padding: 14px 16px; }
  .service__icon { width: 40px; height: 40px; padding: 10px; }
  .service__title { margin: 0; font-size: 1.05rem; }
  .service__desc,
  .service__media { display: none; }
  .service.is-open { align-items: start; }
  .service.is-open .service__title { margin-bottom: 6px; }
  .service.is-open .service__desc { display: block; }
  .service.is-open .service__media { display: flex; }
  .service__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .service__toggle-text { flex: 1; }
  .service__toggle::after {
    content: "";
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 1.6px solid var(--verde);
    border-bottom: 1.6px solid var(--verde);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .25s var(--ease);
  }
  .service.is-open .service__toggle::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .service__badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(31, 94, 78, .1);
    color: var(--verde);
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .service.is-open .service__badge { display: none; }

  /* Cómo trabajamos: cuadrícula 2 × 2 */
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .step { display: block; }
  .step__num { width: 36px; height: 36px; margin-bottom: 12px; font-size: .9rem; box-shadow: none; }
  .step h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .step p { font-size: .86rem; line-height: 1.5; }

  /* Para quién: perfil más compacto */
  .audience { gap: 32px; }
  .audience .checks { margin-top: 22px; }
  .audience__card { padding: 22px; }
  .audience__card dl { margin-bottom: 20px; }
  .audience__card dl div { padding-block: 12px; }
  .audience__card dt { font-size: 1.1rem; }
  .audience__card dd { font-size: .85rem; }

  /* Sobre Alex: foto como avatar circular sobre el texto */
  .about { gap: 20px; }
  .about .media {
    order: -1;
    width: 112px;
    max-width: 112px;
    margin: 0;
    aspect-ratio: 1;
    border-radius: 50%;
  }
  .about .media img { aspect-ratio: 1; object-position: 50% 50%; }
  .about__text > p:not(.eyebrow) { margin-top: 14px; font-size: .97rem; }
  .tags { margin-top: 22px; gap: 8px; }
  .tags li { padding: 6px 14px; font-size: .85rem; }

  /* Contacto */
  .contact__title { font-size: 1.8rem; }
  .contact__lead { margin-top: 14px; font-size: .95rem; }
}

@media (hover: none) {
  .service:hover { transform: none; box-shadow: none; }
  .service:hover .service__icon { background: transparent; border-color: rgba(31, 94, 78, .25); color: var(--verde); }
}

/* Accesibilidad: sin animaciones para quien lo prefiera */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
