:root {
  --paper: #F3F1EA;
  --ink: #15173B;
  --navy: #2E3266;  /* un paso más claro que la tinta: switch y fondo del logo */
  --ink-soft: #4A4D72;
  --peri: #6B7FC4;
  --peri-soft: #DCE1F5;
  --red: #D7263D;
  --red-dark: #A6172B;
  --yellow: #FFFFAC;
  --green: #0B7A6C;
  --green-dark: #075A50;
  --green-light: #3FB8A2;  /* para fondos oscuros */
  --line: rgba(21, 23, 59, .14);
  --radius: 14px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barra */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; max-width: 1080px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: -.02em; }
.logo svg { width: 26px; height: 26px; color: var(--navy); }
.by { font-size: 12px; color: var(--ink-soft); }

/* Hero */
.hero {
  max-width: 560px; margin: 0 auto;
  padding: 4px 18px 18px;
  min-height: calc(100svh - 54px);
  display: grid; align-content: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* Foto en marco de Reel: junto al título en escritorio, debajo de "Tu trabajo es crear" en móvil */
.reel {
  position: relative; margin: 0;
  aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 30px; overflow: hidden; background: var(--ink);
  border: 6px solid #fff; box-shadow: 0 24px 60px -20px rgba(21, 23, 59, .45);
  transform: rotate(2deg);
}
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
}
.reel figcaption b { font: 800 16px/1.1 var(--display); }
.reel figcaption span { font-size: 13px; line-height: 1.3; color: var(--ink-soft); text-wrap: balance; }
.reel-hero { display: none; }
/* En móvil el título va en tres líneas fijas y la foto se pega a la línea más larga */
.hero-head { display: grid; grid-template-columns: max-content auto; justify-content: start; gap: 8px; align-items: start; }
.reel-mini { width: 136px; aspect-ratio: 4 / 5; border-width: 3px; border-radius: 18px; transform: rotate(2deg); margin-top: 0; box-shadow: 0 12px 28px -12px rgba(21, 23, 59, .45); }
.reel-mini figcaption { left: 3px; right: 3px; bottom: 3px; padding: 5px 4px; border-radius: 10px; gap: 1px; }
.reel-mini figcaption b { font-size: 11px; letter-spacing: -.01em; white-space: nowrap; }
.reel-mini figcaption span { font-size: 9.5px; line-height: 1.2; white-space: nowrap; text-wrap: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--peri); background: var(--peri-soft); padding: 7px 11px; border-radius: 99px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

h1 {
  font: 800 clamp(36px, 10.5vw, 64px)/.98 var(--display);
  letter-spacing: -.035em;
}
/* En móvil el título se achica un poco para dejar sitio a la foto de Ignacio */
@media (max-width: 979px) { h1 { font-size: clamp(29px, 7.95vw, 56px); } }
/* En móvil el bloque de registro sube: menos aire entre el logo y "Lista de espera" */
@media (max-width: 979px) {
  .bar { padding-top: 12px; padding-bottom: 6px; }
  .hero { padding-top: 0; }
}
/* En móvil "en 10 / minutos." va más grande y en dos líneas; el resaltador se repite en cada línea */
@media (max-width: 979px) {
  h1 em { display: inline; font-size: 1.32em; line-height: .95; background: none; }
  h1 em span { display: inline-block; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); }
}
h1 s {
  color: var(--ink-soft); opacity: .45; text-decoration-thickness: .09em;
  text-decoration-color: var(--red); font-weight: 600;
}
/* Mismo destaque en el titular y en "Tu trabajo es crear." */
h1 em, h2 em {
  font-style: normal; display: inline-block; color: var(--peri);
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
}
h1 em { color: var(--peri); }  /* el mismo morado de la caja 2 */

.sub { font-size: clamp(15px, 4vw, 18px); color: var(--ink-soft); }
.sub strong { color: var(--ink); font-weight: 600; }
/* Énfasis: serif itálica en periwinkle, contrasta con la sans del resto */
.hl { font: italic 400 1.22em/1 var(--serif); color: var(--peri); letter-spacing: -.005em; }

/* Interruptor segmentado: carril gris neutro y pastilla azul tinta que marca la opción activa */
.switch {
  --track: #EDEDED; --track-line: #DCDCDC; --off-text: #8A8A8A;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-self: flex-start;
  height: 40px; padding: 4px; border-radius: 99px;
  background: var(--track); border: 1px solid var(--track-line);
  font: 500 12px/1 var(--body); white-space: nowrap;
}
@media (min-width: 420px) { .switch { font-size: 13px; } }
.sw-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 99px; background: var(--navy); box-shadow: 0 2px 6px rgba(21, 23, 59, .22);
  transform: translateX(100%); transition: transform .5s cubic-bezier(.3, 1.2, .5, 1);
}
.sw-off, .sw-on { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; transition: color .3s; }
.sw-off svg, .sw-on svg { width: 15px; height: 15px; flex: none; }
.sw-off { color: var(--off-text); }
.sw-off s { text-decoration-color: rgba(0, 0, 0, .3); }
.sw-on { color: #fff; font-weight: 600; }
.sw-on svg { width: 18px; height: 15px; }
.switch.boot .sw-thumb { transform: none; }
.switch.boot .sw-off { color: #fff; }
.switch.boot .sw-on { color: var(--off-text); }

/* Formulario */
.form { display: grid; gap: 8px; margin-top: 2px; }
.form input {
  width: 100%; height: 48px; padding: 0 16px;
  font: 400 16px var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus { border-color: var(--peri); box-shadow: 0 0 0 4px rgba(107,127,196,.18); }
.form input[aria-invalid="true"] { border-color: var(--red); }
.phone { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.form select {
  height: 48px; padding: 0 30px 0 12px; max-width: 120px;
  font: 500 16px var(--body); color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2315173B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none; outline: none;
}
.form .hp { position: absolute; left: -9999px; height: 0; opacity: 0; }
.form button {
  height: 52px; border: 0; border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 16px/1 var(--display); letter-spacing: .01em; text-transform: uppercase;
  color: #fff; background: var(--red);
  box-shadow: 0 4px 0 var(--red-dark);
  transition: transform .1s, box-shadow .1s, opacity .2s;
}
.form button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-dark); }
.form button[disabled] { opacity: .7; cursor: wait; }
/* Verde solo para estados de "activo / listo" */
.form button.done { opacity: 1; background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.form button.done .arrow { display: none; }
.form .arrow { transition: transform .2s; }
.form button:hover .arrow { transform: translateX(4px); }
.msg { min-height: 0; font-size: 14px; }
.msg:empty { display: none; }
.msg.err { color: var(--red-dark); }
.msg.ok { color: var(--green); font-weight: 500; }
.msg a { font-weight: 600; }

.fine { font-size: 12.5px; color: var(--ink-soft); }
.fine b { color: var(--ink); }

/* Ticker */
.ticker { background: var(--ink); color: var(--yellow); overflow: hidden; padding: 14px 0; }
.track { display: flex; gap: 28px; width: max-content; animation: slide 50s linear infinite; }
.track span { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.track span:nth-child(even) { color: var(--red); }
.track span:nth-child(4n) { color: var(--green-light); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Cómo funciona */
.how { max-width: 1080px; margin: 0 auto; padding: 64px 18px; }
h2 { font: 800 clamp(30px, 7vw, 52px)/1 var(--display); letter-spacing: -.03em; margin-bottom: 32px; }
.steps { list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.steps li:nth-child(2) { background: var(--peri); color: #fff; border-color: var(--peri); }
.steps li:nth-child(3) { background: var(--yellow); }
.steps b { font: 800 14px var(--display); color: var(--red); }
.steps li:nth-child(2) b { color: var(--yellow); }
.steps h3 { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; margin: 10px 0 6px; }
.steps p { font-size: 15px; opacity: .85; }

/* Ignacio */
.about { max-width: 1080px; margin: 0 auto; padding: 0 18px 64px; display: grid; gap: 22px; align-items: center; }
/* Foto como fotograma en el editor */
.ph { width: 100%; margin: 0; padding: 8px; display: grid; gap: 8px; background: var(--ink); border-radius: 18px; }
.ph picture { display: block; }
.about img { display: block; border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.tl { position: relative; display: grid; grid-template-columns: 4fr 3fr 2fr; gap: 3px; height: 12px; }
.tl span { border-radius: 3px; background: var(--green); }
.tl span:nth-child(2) { background: var(--yellow); }
.tl span:nth-child(3) { background: var(--red); }
.tl i { position: absolute; left: 40%; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--paper); }
.tc { display: flex; justify-content: space-between; padding: 0 2px 2px; font: 500 11px var(--body); color: rgba(243, 241, 234, .7); font-variant-numeric: tabular-nums; }
.about blockquote p { font: 600 clamp(20px, 5vw, 28px)/1.25 var(--display); letter-spacing: -.015em; }
/* Segundo énfasis: resaltador amarillo, el mismo del titular */
.mk { color: inherit; background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 95%, transparent 95%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
.about .q2 { display: block; margin-top: .6em; }
.about cite { display: block; margin-top: 14px; font: 500 14px var(--body); font-style: normal; color: var(--peri); text-transform: uppercase; letter-spacing: .1em; }

/* Cierre */
.last { background: var(--peri); color: #fff; text-align: center; padding: 64px 18px; }
.last p { max-width: 560px; margin: 0 auto 28px; font: 600 clamp(20px, 5vw, 28px)/1.25 var(--display); }
.last strong { color: var(--yellow); }
.count { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.count div { background: rgba(255,255,255,.14); border-radius: 16px; padding: 14px 0; width: 86px; }
.count b { display: block; font: 800 36px/1 var(--display); }
.count span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.cta {
  display: inline-flex; gap: 10px; align-items: center; text-decoration: none;
  background: var(--red); color: #fff; padding: 18px 26px; border-radius: var(--radius);
  font: 800 16px/1 var(--display); text-transform: uppercase; box-shadow: 0 4px 0 var(--red-dark);
}

footer { padding: 28px 18px 36px; text-align: center; font-size: 12px; color: var(--ink-soft); display: grid; gap: 6px; }

@media (min-width: 860px) {
  .hero { max-width: 760px; text-align: left; }
  .form { grid-template-columns: 1fr 1fr; }
  .form button, .form .msg, .form .phone { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* En celular el fotograma ocupa el ancho de las cajas; en escritorio va pequeño junto a la cita */
  .about { grid-template-columns: 280px 1fr; gap: 56px; }
}

@media (min-width: 980px) {
  .hero { max-width: 1080px; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
  .reel-hero { display: block; width: min(340px, calc((100svh - 150px) * 9 / 16)); }
  .reel-mini { display: none; }
  h1 br.m { display: none; }
  .hero-head { display: block; }
}

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