/* ============================================================
   itWorks · versión cálida y humana — ESTILOS
   ============================================================ */

/* ─── Reset ligero ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Layout ─── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--cream2 { background: var(--cream-2); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; font-size: var(--t-sm);
  color: var(--terra-dark); letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--terra); border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: var(--t-4xl); font-weight: 700; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
.lead { font-size: var(--t-lg); color: var(--ink-soft); }
.hl { color: var(--terra); font-style: italic; }
.hl-green { color: var(--green-dark); }

.section-head { max-width: 640px; margin-bottom: var(--sp-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-4); color: var(--ink-soft); font-size: var(--t-lg); }

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.85em 1.6em; font-weight: 700; font-size: var(--t-base);
  border-radius: var(--r-full); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--terra); color: #fff; box-shadow: var(--sh-terra); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px rgba(224,122,95,0.42); }
.btn-primary:active { transform: translateY(-1px) scale(1); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-dark); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(129,178,154,0.35); }
.btn-green:hover { transform: translateY(-3px) scale(1.02); }
.btn-lg { padding: 1em 2em; font-size: var(--t-lg); }
.btn-block { width: 100%; }

/* ─── Píldoras / badges ─── */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.4em 0.95em; border-radius: var(--r-full);
  font-weight: 700; font-size: var(--t-sm);
}
.pill-terra { background: var(--terra-soft); color: var(--terra-dark); }
.pill-green { background: var(--green-soft); color: var(--green-dark); }
.pill-sand  { background: var(--sand-soft); color: #9a7430; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ─── Enlace "saltar al contenido" (accesibilidad) ─── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--terra); color: #fff; font-weight: 700;
  padding: 0.7em 1.2em; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ─── Selector de idioma ─── */
.lang-switch {
  font-weight: 800; font-size: var(--t-xs); letter-spacing: 0.06em;
  border: 2px solid var(--line-strong); border-radius: var(--r-full);
  padding: 0.35em 0.75em; color: var(--ink-soft); transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--terra); color: var(--terra-dark); }

/* ─── WhatsApp flotante ─── */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 238, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--sh-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: 72px; }
.logo { display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.logo .it { color: var(--ink); }
.logo .works { color: var(--terra); }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: 3px; align-self: center; }
.nav-links { display: flex; gap: var(--sp-4); }
.nav-links a { font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--terra); border-radius:2px; transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav-phone { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.nav-phone:hover { color: var(--terra-dark); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.2s; }
.burger.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: var(--sp-2);
  padding: 0 var(--pad-x); max-height: 0; overflow: hidden;
  background: var(--cream); transition: max-height 0.35s var(--ease), padding 0.35s;
}
.mobile-menu.open { max-height: 620px; padding: var(--sp-4) var(--pad-x) var(--sp-6); border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: var(--sp-3) 0; font-weight: 700; border-bottom: 1px solid var(--line); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-10); align-items: center; }
.hero h1 { margin: var(--sp-4) 0; }
.hero .lead { max-width: 30rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.hero-trust { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); color: var(--ink-soft); font-size: var(--t-sm); }
.hero-avatars { display: flex; }
.hero-avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
  border: 3px solid var(--cream); display: grid; place-items: center;
  font-weight: 700; font-size: 0.8rem; color: #fff;
}
.hero-avatars span:first-child { margin-left: 0; }
.hero-stars { color: var(--sand); letter-spacing: 2px; }

/* Blob decorativo cálido detrás de la ilustración */
.hero-art { position: relative; }
.hero-blob { position: absolute; inset: -8% -6%; background: radial-gradient(circle at 35% 30%, var(--sand-soft), var(--terra-soft) 60%, transparent 75%); filter: blur(6px); z-index: 0; }
.hero-art svg { position: relative; z-index: 1; width: 100%; height: auto; }

/* tarjetas flotantes sobre la ilustración */
.float-card {
  position: absolute; z-index: 2; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: var(--sp-3); font-weight: 700; font-size: var(--t-sm);
  animation: float 5s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.float-card.fc-1 { top: 8%; left: -4%; }
.float-card.fc-2 { bottom: 12%; right: -3%; animation-delay: 1.5s; }
.float-card.fc-3 { bottom: -3%; left: 12%; animation-delay: 0.8s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* tira de "confían en nosotros" */
.logos-strip { margin-top: var(--sp-10); text-align: center; }
.logos-strip p { color: var(--ink-mute); font-weight: 700; font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-6); opacity: 0.6; }
.logos-row span { font-family: var(--font-head); font-weight: 700; font-size: var(--t-lg); color: var(--ink-soft); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }
.card-ic {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  margin-bottom: var(--sp-4); color: #fff; transition: transform 0.4s var(--ease);
}
.card:hover .card-ic { transform: rotate(-8deg) scale(1.08); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); font-size: var(--t-base); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); font-weight: 700; color: var(--terra-dark); }
.card-link svg { transition: transform 0.25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* utilidades de color de fondo para iconos/tarjetas */
.bg-terra { background: var(--terra); } .bg-green { background: var(--green); }
.bg-sand  { background: var(--sand); }  .bg-navy { background: var(--navy); }
.card.feature { grid-column: span 1; }

/* ============================================================
   ANTES / DESPUÉS (slider)
   ============================================================ */
.ba-wrap { max-width: 920px; margin-inline: auto; }
.ba {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  user-select: none; box-shadow: var(--sh-lg); aspect-ratio: 16 / 8;
  border: 6px solid var(--paper);
}
.ba-pane { position: absolute; inset: 0; display: grid; place-content: center; gap: var(--sp-3); text-align: center; padding: var(--sp-8); }
.ba-after  { background: linear-gradient(135deg, var(--green-soft), #eaf3ee); color: var(--green-dark); }
.ba-before { background: linear-gradient(135deg, #f7e3dd, var(--terra-soft)); color: var(--terra-dark); clip-path: inset(0 50% 0 0); }
.ba-pane .ba-emoji { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.ba-pane h3 { font-size: var(--t-2xl); color: inherit; }
.ba-pane p { font-weight: 700; max-width: 22rem; margin-inline: auto; }
.ba-tag { position: absolute; top: var(--sp-4); padding: 0.3em 0.9em; border-radius: var(--r-full); font-weight: 800; font-size: var(--t-sm); background: rgba(255,255,255,0.8); }
.ba-tag.left { left: var(--sp-4); color: var(--terra-dark); }
.ba-tag.right { right: var(--sp-4); color: var(--green-dark); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--paper); transform: translateX(-50%); z-index: 3; }
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 52px; height: 52px; border-radius: 50%; background: var(--paper); box-shadow: var(--sh-md);
  display: grid; place-items: center; color: var(--terra); cursor: ew-resize; touch-action: none;
}
.ba-handle svg { width: 26px; height: 26px; }
.ba-hint { text-align: center; margin-top: var(--sp-4); color: var(--ink-mute); font-weight: 700; font-size: var(--t-sm); }

/* ============================================================
   SELECTOR "¿CON QUÉ TE AYUDAMOS?"
   ============================================================ */
.helper { max-width: 940px; margin-inline: auto; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.help-chip {
  display: flex; align-items: center; gap: var(--sp-3); text-align: left;
  padding: var(--sp-4) var(--sp-5); background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--r-md);
  font-weight: 700; font-size: var(--t-base); color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s;
}
.help-chip .emo { font-size: 1.6rem; line-height: 1; }
.help-chip:hover { border-color: var(--terra); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.help-chip.active { border-color: var(--terra); background: var(--terra-soft); color: var(--terra-dark); }

.help-result {
  display: flex; gap: var(--sp-5); margin-top: var(--sp-6);
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--terra);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-md);
  animation: hr-pop .35s var(--ease);
}
.help-result .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: var(--terra-soft); flex-shrink: 0; }
.help-result-body h3 { margin-bottom: .35rem; }
.help-result-body p { color: var(--ink-soft); margin-bottom: var(--sp-4); }
.help-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@keyframes hr-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   POR QUÉ / STATS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-10); align-items: center; }
.why-points { display: grid; gap: var(--sp-5); }
.why-point { display: flex; gap: var(--sp-4); }
.why-point .ic { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.why-point h3 { font-size: var(--t-lg); margin-bottom: 2px; }
.why-point p { color: var(--ink-soft); font-size: var(--t-base); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); text-align: center;
}
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: var(--t-4xl); color: var(--terra); line-height: 1; }
.stat .num .suf { color: var(--green-dark); }
.stat .lbl { margin-top: var(--sp-2); color: var(--ink-soft); font-weight: 700; font-size: var(--t-sm); }

/* ============================================================
   QUIÉN ESTÁ DETRÁS
   ============================================================ */
.who-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: var(--sp-10); align-items: center; }
.who-photo {
  border-radius: var(--r-xl); overflow: hidden;
  border: 6px solid var(--paper); box-shadow: var(--sh-lg);
  background: var(--green-soft); max-width: 380px;
}
.who-photo img, .who-photo svg { width: 100%; height: auto; display: block; }
.who-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }

/* ============================================================
   ZONA / COBERTURA
   ============================================================ */
.zone-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); max-width: 760px; margin-inline: auto; }
.zone-tags span {
  font-weight: 700; font-size: var(--t-sm); padding: 0.5em 1.1em;
  border-radius: var(--r-full); background: var(--paper);
  border: 1px solid var(--line); color: var(--ink-soft);
}

/* ============================================================
   PLAN TRANQUILIDAD
   ============================================================ */
.plan-band {
  background: linear-gradient(135deg, var(--green-soft), #eef5f0);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-8); align-items: center;
}
.plan-band > * { min-width: 0; }
.plan-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.plan-list li {
  position: relative; padding-left: 2rem; color: var(--ink-soft); font-weight: 600;
}
.plan-list li::before {
  content: ''; position: absolute; left: 0; top: 0.2em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235E927A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}
.plan-cta {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); text-align: center; box-shadow: var(--sh-sm);
}
.plan-cta p { color: var(--ink-soft); margin-bottom: var(--sp-5); }
.plan-cta b { color: var(--ink); }

/* ============================================================
   PROCESO
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-6); }
.step .badge-num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-xl); color: #fff;
  background: var(--terra); margin-bottom: var(--sp-4); box-shadow: var(--sh-terra);
}
.step:nth-child(2) .badge-num { background: var(--green); box-shadow: 0 12px 28px rgba(129,178,154,0.35); }
.step:nth-child(3) .badge-num { background: var(--sand); color: var(--ink); }
.step:nth-child(4) .badge-num { background: var(--navy); }
.step h3 { font-size: var(--t-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-soft); font-size: var(--t-base); }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.testi .stars { color: var(--sand); letter-spacing: 2px; margin-bottom: var(--sp-3); }
.testi p { font-size: var(--t-base); color: var(--ink); margin-bottom: var(--sp-5); }
.testi-who { display: flex; align-items: center; gap: var(--sp-3); }
.testi-who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.testi-who b { display: block; }
.testi-who span { color: var(--ink-mute); font-size: var(--t-sm); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) 0; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: var(--t-lg); color: var(--ink); }
.faq-q .chev { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--terra-dark); transition: transform 0.3s var(--ease), background 0.2s; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); background: var(--terra); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding-bottom: var(--sp-5); color: var(--ink-soft); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-8); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info h2 { margin-bottom: var(--sp-4); }
.contact-info p { color: var(--ink-soft); }
.contact-methods { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.cmethod { display: flex; gap: var(--sp-3); align-items: center; min-width: 0; }
.cmethod > * { min-width: 0; }
.cmethod span { overflow-wrap: anywhere; }
.cmethod .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.cmethod b { display: block; }
.cmethod span { color: var(--ink-soft); font-size: var(--t-sm); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--sh-md); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 700; font-size: var(--t-sm); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8em 1em; font: inherit; color: var(--ink);
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-soft); background: var(--paper); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field.err input, .field.err textarea { border-color: var(--terra-dark); }
.err-msg { color: var(--terra-dark); font-size: var(--t-sm); font-weight: 700; min-height: 1em; }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--t-sm); color: var(--ink-soft); }
.check input { margin-top: 4px; accent-color: var(--terra); width: 18px; height: 18px; }
.check a { color: var(--terra-dark); font-weight: 700; text-decoration: underline; }
.form-ok { text-align: center; padding: var(--sp-8) var(--sp-4); }
.form-ok .big { width: 70px; height: 70px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; margin: 0 auto var(--sp-4); }
.form-err-box { display: none; margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-md); background: var(--terra-soft); color: var(--terra-dark); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #DDD8E0; padding-block: var(--sp-10) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); }
.footer .logo .it { color: #fff; } .footer .logo .works { color: var(--sand); }
.footer h4 { font-family: var(--font-body); font-weight: 800; color: #fff; margin-bottom: var(--sp-4); font-size: var(--t-base); }
.footer a { color: #C3BDCF; transition: color 0.2s; }
.footer a:hover { color: var(--sand); }
.footer li { margin-bottom: var(--sp-2); }
.footer-tag { color: #B0AAC0; margin: var(--sp-3) 0; max-width: 26rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.12); color: #A39DB5; font-size: var(--t-sm); }
.footer-bottom a { margin-left: var(--sp-4); }

/* ============================================================
   ANIMACIONES DE SCROLL (reveal)
   ============================================================ */
/* Visible por defecto (si el JS falla o está desactivado, se ve todo) */
.reveal { opacity: 1; transform: none; }
/* Solo se oculta para animar cuando hay JS */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; } .js .reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero-art { max-width: 460px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .who-photo { max-width: 320px; margin-inline: auto; }
  .plan-band { grid-template-columns: 1fr; }
  .cards, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .help-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Ocultar el teléfono del bar en portátiles medianos: cabe el menú y sigue estando en el botón y en contacto */
@media (max-width: 1300px) {
  .nav-phone { display: none; }
}
/* Con 8 secciones, colapsar a menú hamburguesa cuando el nav horizontal ya no cabe holgado */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
}
@media (max-width: 620px) {
  .cards, .testi-grid, .steps, .stats, .field-row, .help-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .float-card { display: none; }
  /* Botones: dejar que el texto largo se ajuste dentro de su caja en vez de desbordar */
  .btn { white-space: normal; text-align: center; }
  .btn-lg { width: 100%; border-radius: var(--r-lg); }
  /* Más aire en el recuadro del plan para que el CTA no se estreche de más */
  .plan-band { padding: 1.75rem; }
  .plan-cta { padding: var(--sp-5); }
  /* El CTA del bar sobra en móvil: está en el menú hamburguesa y en el botón flotante de WhatsApp */
  .nav-cta .btn-primary { display: none; }
}
