/* Datti — tokens del Manual de Marca (oct-2026). No inventar colores fuera de esta lista. */
:root {
  --violeta: #7304C3;
  --violeta-oscuro: #3D0084;
  --menta: #00FFB6;
  --noche: #1B073A;
  --lila: #F2E6FF;
  --menta-claro: #E9FFF8;
  --blanco: #FFFFFF;

  --bg: var(--lila);
  --fg: var(--noche);
  --fg-soft: #4B3A6B;          /* noche al 75% sobre lila, para texto secundario */
  --line: rgba(27, 7, 58, .14);

  --font-title: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 60ch; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 700; color: var(--violeta-oscuro); }
h3 { font-size: 1.35rem; font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--menta); color: var(--noche); padding: .5rem .75rem; border-radius: 8px; z-index: 10; font-weight: 600; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; }
.section:not(.section-violeta) :focus-visible { outline-color: var(--violeta); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--violeta-oscuro);
  color: var(--blanco);
  isolation: isolate;
}
.hero-mark {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  height: 150%;
  width: auto;
  right: -22%;
  top: -18%;
  transform: rotate(-8deg);
}
.hero-mark-d { fill: var(--violeta); opacity: .55; }
.hero-mark-s { fill: var(--violeta-oscuro); }
@media (max-width: 719px) {
  .hero-mark { height: 115%; right: -55%; top: 10%; }
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand img { width: 120px; height: auto; }
@media (min-width: 720px) { .brand img { width: 140px; } }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.nav-links li:not(:last-child) { display: none; }
@media (min-width: 720px) { .nav-links li:not(:last-child) { display: block; } }
.nav-cta { border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: .45rem 1rem; }
.nav-cta:hover { border-color: var(--menta); text-decoration: none !important; }

.hero-body { padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 7.5rem); }
.hero-title {
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4rem);
  font-weight: 700;
  max-width: 17ch;
  margin-bottom: .6em;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 52ch; opacity: .92; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-menta { background: var(--menta); color: var(--noche); }
.btn-menta:hover { background: #33FFC5; }
.btn-ghost { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--menta); }
.btn-violeta { background: var(--violeta); color: var(--blanco); }
.btn-violeta:hover { background: var(--violeta-oscuro); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-lead { font-size: 1.2rem; color: var(--fg-soft); max-width: 48ch; }
.muted { color: var(--fg-soft); font-size: .95rem; }
.section-menta { background: var(--menta-claro); }
.section-violeta { background: var(--violeta); color: var(--blanco); }
.section-violeta h3 { color: var(--menta); }

.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; } }
.mv { grid-template-columns: 1fr; }
@media (min-width: 880px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv p { font-size: 1.1rem; }

/* Pasos: es una secuencia real (.1 .2 .3 en el manual), por eso llevan número */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.step { padding: 1.75rem 0 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 880px) {
  .step { border-bottom: 0; border-top: 2px solid var(--violeta); padding: 1.5rem 1.5rem 0 0; }
}
.step-n { display: block; font-family: var(--font-title); font-weight: 700; color: var(--violeta); font-size: 1.6rem; margin-bottom: .75rem; }
.step h3 { color: var(--violeta-oscuro); }
.step p { color: var(--fg-soft); margin: 0; }

.big { font-family: var(--font-title); font-weight: 600; font-size: 1.45rem; color: var(--violeta-oscuro); }

.values { margin: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .values { grid-template-columns: 1fr 1fr; } }
.values > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.values dt { font-family: var(--font-title); font-weight: 600; font-size: 1.15rem; color: var(--violeta-oscuro); margin-bottom: .3rem; }
.values dd { margin: 0; color: var(--fg-soft); font-size: .98rem; }

/* ---------- Formulario ---------- */
.contact { align-items: start; }
.form { display: grid; gap: 1.1rem; background: var(--blanco); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--line); }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 500; font-size: .95rem; }
.opt { color: var(--fg-soft); font-weight: 400; }
input, textarea {
  font: inherit; color: var(--fg);
  width: 100%; padding: .75rem .9rem;
  border: 1.5px solid rgba(27,7,58,.25); border-radius: 10px; background: var(--blanco);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { resize: vertical; min-height: 7.5rem; }
input:hover, textarea:hover { border-color: rgba(27,7,58,.45); }
input:focus, textarea:focus { outline: none; border-color: var(--violeta); box-shadow: 0 0 0 3px rgba(115,4,195,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .88rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--fg-soft); }
.form-status.is-error { color: #B3261E; }
.form .btn { justify-self: start; }
.form-ok { background: var(--menta-claro); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-ok h3 { color: var(--violeta-oscuro); }
.form-ok p { margin-bottom: 0; }

.privacidad { max-width: 48ch; font-size: .92rem; color: var(--fg-soft); }
.privacidad summary { cursor: pointer; color: var(--violeta); font-weight: 500; }
.privacidad summary:hover { text-decoration: underline; }
.privacidad p { margin-top: .75em; }

/* ---------- Footer ---------- */
.footer { background: var(--noche); color: var(--blanco); padding-block: 2.5rem; }
.footer-inner { display: grid; gap: .75rem; justify-items: start; }
.footer img { width: 112px; height: auto; }
.claim { font-family: var(--font-title); font-size: 1.25rem; margin: .5rem 0 0; }
.claim strong { color: var(--menta); font-weight: 700; }
.copy { font-size: .9rem; opacity: .7; margin: 0; }

/* ---------- Entrada del hero: un solo momento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-lead, .hero-actions { animation: rise .7s var(--ease) both; }
  .hero-lead { animation-delay: .1s; }
  .hero-actions { animation-delay: .2s; }
  .hero-mark { animation: drift 1.4s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes drift { from { opacity: 0; transform: rotate(-8deg) translateX(40px); } to { opacity: 1; transform: rotate(-8deg) translateX(0); } }
}
