/* Lanzamiento Edificio Infinito · inscripción al evento · mobile first
   Mismos colores, tipografías y componentes de la landing del proyecto. */
:root {
  --ink: #23211F;
  --ink-2: #4A453F;
  --muted: #655E55;
  --sand: #D6CFC4;
  --sand-2: #EBE6DE;
  --cream: #F6F3EE;
  --paper: #FBF9F5;
  --dark: #1F1D1B;
  --accent: #FF4F1F;
  --accent-ink: #BF360C;
  --brand: #430461;
  --brand-hover: #5A1480;
  --error: #B3261E;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 var(--s4); letter-spacing: -0.01em; text-wrap: balance; font-variant-numeric: lining-nums; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
ul, dl { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.l-header :focus-visible, .l-hero :focus-visible, .footer :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
input { caret-color: var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; text-align: center; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #E5421A; }
.btn--outline { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn--outline:hover { background: rgba(67,4,97,.08); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; flex: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: btn-spin .75s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Header */
.l-header { position: relative; z-index: 5; background: var(--dark); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.l-header__inner { max-width: 1280px; height: var(--header-h); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); display: flex; align-items: center; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; color: #fff; }
.brand__div { flex: none; width: 1px; height: 28px; background: rgba(255,255,255,.45); }
.brand__logo { flex: none; width: auto; height: 30px; }
.brand__name { font: 600 1.3125rem/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; }

/* Portada con el formulario */
.l-hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); overflow: hidden; }
.l-hero__bg { position: absolute; inset: 0; z-index: -1; }
.l-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.l-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.72) 0%, rgba(20,18,16,.86) 100%); }
.l-hero__inner { max-width: 1200px; margin-left: auto; margin-right: auto; padding: var(--s7) var(--gutter) var(--s7); display: grid; gap: var(--s6); }
.l-hero h1 { font-size: clamp(2.25rem, 8.6vw, 4rem); margin-bottom: var(--s4); }
.l-hero h1 em { font-style: italic; font-weight: 500; color: #FFB199; }
.l-sub { font-size: 1.125rem; color: #E9E3DA; max-width: 46ch; margin: 0 0 var(--s7); }

/* Datos del evento: uno por línea y grandes */
.l-evento { position: relative; margin: 0 0 var(--s5); padding: var(--s2) 18px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.l-evento__cuenta { position: absolute; top: -15px; left: 18px; margin: 0; padding: 4px 14px; border-radius: 999px; background: var(--accent-ink); color: #fff; font-weight: 700; font-size: .875rem; line-height: 1.4; }
.l-evento li { display: flex; align-items: center; gap: var(--s3); padding: 12px 0; }
.l-evento li + li { border-top: 1px solid rgba(255,255,255,.2); }
.l-evento__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,79,31,.2); color: #FFB199; }
.l-evento__txt strong { display: block; font: 600 clamp(1.375rem, 6.4vw, 2.375rem)/1.1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.l-evento__txt small { display: block; margin-top: 4px; font-size: .9375rem; color: #D6CFC4; }

/* Beneficios */
.l-beneficios { display: grid; gap: var(--s3); margin: 0 0 var(--s3); }
.l-benef { display: flex; align-items: flex-start; gap: var(--s3); padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.l-benef__ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; }
.l-benef strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.l-benef span span { display: block; margin-top: 3px; font-size: .9375rem; color: #D6CFC4; line-height: 1.4; }
.l-legal { font-size: .8125rem; color: #D6CFC4; max-width: 52ch; margin: 0 0 var(--s5); }
.l-ir { width: 100%; }

/* Formulario (mismo estilo que la landing del proyecto) */
.form { background: var(--paper); color: var(--ink); border-radius: 20px; padding: var(--s5); box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 16px 40px rgba(0,0,0,.28); }
.form h2 { font-size: clamp(1.75rem, 5vw, 2.125rem); margin-bottom: var(--s2); }
.form__intro { color: var(--ink-2); font-size: .9375rem; margin-bottom: var(--s5); }
.field { margin-bottom: var(--s4); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); column-gap: var(--s3); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9375rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { width: 100%; min-height: 52px; padding: 12px 14px; font: 1rem var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid #8F877B; border-radius: 10px; }
.field input:focus { outline: 3px solid rgba(255,79,31,.4); border-color: var(--accent-ink); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .phone { display: flex; align-items: stretch; background: #fff; border: 1.5px solid #8F877B; border-radius: 10px; }
.field .phone:focus-within { outline: 3px solid rgba(255,79,31,.4); border-color: var(--accent-ink); }
.field .phone:has(input[aria-invalid="true"]) { border-color: var(--error); }
.phone__prefix { display: flex; align-items: center; padding-left: 14px; padding-right: 12px; font: 600 1rem var(--font-body); color: var(--ink); background: var(--sand-2); border-right: 1px solid #CFC7BA; border-radius: 8px 0 0 8px; }
.field .phone input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 8px 8px 0; outline: 0 !important; }
.field .check { display: flex; align-items: flex-start; gap: var(--s3); margin: 0; font-weight: 400; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.field .check input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; }
.field .check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.check a { color: var(--accent-ink); }
.field__error { color: var(--error); font-size: .875rem; margin: 6px 0 0; }
.field__error:empty { display: none; }
.req { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: var(--s3) 0 0; font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); font-weight: 600; }
.form__status.is-loading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form__legal { font-size: .8125rem; color: var(--muted); margin: var(--s3) 0 0; }

/* Pie */
.footer { background: var(--ink); color: #D6CFC4; padding-top: var(--s7); padding-bottom: var(--s7); }
.footer__inner { display: grid; gap: var(--s5); }
.footer__logo { width: 150px; margin-bottom: var(--s4); }
.footer__legal { font-size: .875rem; line-height: 1.6; max-width: 90ch; margin: 0; }
.footer p { margin: 0; }

/* Una vida en Infinito */
.l-vida { background: var(--paper); padding: var(--s8) 0 var(--s7); }
.l-vida h2, .l-cierre h2 { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: var(--s4); }
.l-vida__lista { display: grid; gap: var(--s6); margin-top: var(--s6); }
.l-vida__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: var(--s3); }
.l-vida__item h3 { font-size: 1.875rem; margin-bottom: 4px; }
.l-vida__item p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.l-nota { margin: var(--s5) 0 0; font-size: .8125rem; color: var(--muted); }

/* Cifras del proyecto */
.l-cifras { background: var(--dark); color: #fff; padding: var(--s7) 0; }
.l-cifras__lista { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s5); }
.l-cifra strong { display: block; font: 600 clamp(2.5rem, 9vw, 4rem)/1 var(--font-display); font-variant-numeric: lining-nums; color: #fff; }
.l-cifra span { display: block; margin-top: 8px; font-size: .9375rem; line-height: 1.4; color: #D6CFC4; }
.l-cifras__nota { margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.22); color: #E9E3DA; font-size: 1rem; max-width: 62ch; }

/* Enlace secundario hacia la landing del proyecto */
.l-enlace { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.l-enlace:hover { color: var(--brand-hover); }
.l-enlace--claro { color: #fff; margin-top: var(--s4); }
.l-enlace--claro:hover { color: #FFB199; }
.l-cierre__sec { margin: var(--s4) 0 0; }

/* Cierre con segundo llamado a inscribirse */
.l-cierre { background: var(--cream); padding: var(--s8) 0; text-align: center; }
.l-cierre p { color: var(--ink-2); max-width: 42ch; margin: 0 auto var(--s5); font-size: 1.1875rem; }
.l-cierre .btn { width: 100%; max-width: 420px; }

@media (min-width: 760px) {
  .l-vida__lista { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .l-cifras__lista { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 560px) { .l-beneficios { grid-template-columns: 1fr 1fr; } }

/* Página de gracias */
.gracias { background: var(--cream); }
.g-main { flex: 1; display: grid; }
.g-copy { display: flex; flex-direction: column; align-items: flex-start; padding: var(--s7) var(--gutter); }
.g-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--ink); margin-bottom: var(--s5); }
.g-check path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.g-copy h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); color: var(--ink); margin-bottom: var(--s5); }
.g-copy h1 em { font-style: italic; font-weight: 500; color: var(--accent-ink); }
.g-lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 38ch; margin: 0 0 var(--s5); }
.g-lead strong { color: var(--ink); }
.g-evento { width: 100%; max-width: 420px; margin: 0 0 var(--s5); padding: var(--s4) var(--s5); border-radius: 14px; background: var(--sand-2); }
.g-evento div { display: flex; gap: var(--s3); padding: 6px 0; }
.g-evento dt { flex: none; width: 4.5rem; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.g-evento dd { margin: 0; font-weight: 600; }
.g-acciones { display: grid; gap: var(--s3); width: 100%; max-width: 420px; }
.g-nota { font-size: .9375rem; color: var(--muted); max-width: 46ch; margin: var(--s5) 0 0; }
.g-media { position: relative; margin: 0; background: var(--dark); }
.g-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.g-media__label { position: absolute; left: var(--s3); bottom: var(--s3); margin: 0; padding: 6px 10px; border-radius: 6px; background: rgba(31,29,27,.78); color: #fff; font-size: .8125rem; line-height: 1.2; }

@media (prefers-reduced-motion: no-preference) {
  .g-check path { animation: g-check-draw .55s cubic-bezier(.65, 0, .35, 1) .15s backwards; }
  @keyframes g-check-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn:active { transition: none; transform: none; } }

@media (min-width: 560px) { .g-acciones { grid-template-columns: 1fr 1fr; max-width: 560px; } .g-evento { max-width: 560px; } }

@media (min-width: 960px) {
  .l-hero__bg::after { background: linear-gradient(90deg, rgba(20,18,16,.9) 0%, rgba(20,18,16,.68) 52%, rgba(20,18,16,.38) 100%); }
  .l-hero__inner { min-height: calc(100svh - var(--header-h)); grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); align-items: center; gap: var(--s8); padding-top: var(--s7); padding-bottom: var(--s7); }
  .form { padding: var(--s6); }
  .l-ir { display: none; } /* en escritorio el formulario ya está a la vista */
  .g-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding-left: max(0px, calc((100% - 1280px) / 2)); }
  .g-copy { justify-content: center; padding-top: var(--s9); padding-bottom: var(--s9); padding-right: var(--s7); }
  .g-media img { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: auto; }
  .g-media__label { left: var(--s5); bottom: var(--s5); }
}
