/* ==========================================================================
   Extraordinarias · Lista de espera
   Hoja propia: solo los colores de la marca Extraordinarias
   (carmín, vino oscuro y blanco). No usa base.css.
   Mobile first (375 px) → escritorio.
   ========================================================================== */

/* ---------- Fuentes (las mismas de base.css) ---------- */
@font-face {
  font-family: "Open Sauce";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* El .woff2 de 400 viene dañado en el paquete 5.3.0; el .woff sí funciona */
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/open-sauce-sans@5.3.0/files/open-sauce-sans-latin-400-normal.woff") format("woff");
}
@font-face {
  font-family: "Open Sauce";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/open-sauce-sans@5.3.0/files/open-sauce-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sauce";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/open-sauce-sans@5.3.0/files/open-sauce-sans-latin-700-normal.woff2") format("woff2");
}
/* Banderas del selector de país (Windows no dibuja las banderas en emoji) */
@font-face {
  font-family: "Banderas";
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
}

/* ---------- Tokens ---------- */
:root {
  --carmin: #B0122C;      /* fondo principal */
  --vino: #5E0A1C;        /* secciones alternas y formulario */
  --blanco: #FFFFFF;      /* textos y botones */
  /* Paleta completa en brief/extraordinarias-lista-espera.md */
  --crema: #F7F1EA;       /* fondo principal claro */
  --coral: #FF9A8B;       /* acentos: recuadro "Lo que incluye", checks, comillas */
  --grafito: #2B2426;     /* texto sobre fondos claros (14:1 sobre crema, 7,6:1 sobre coral) */
  --blanco-suave: rgba(255, 255, 255, .86); /* texto secundario (AA sobre carmín y vino) */
  --linea: rgba(255, 255, 255, .28);

  --sans: "Open Sauce", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(3.5rem, 9vw, 6.5rem);
  --maxw: 1100px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--carmin);
  color: var(--blanco);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
p, li { max-width: 65ch; }
a { color: inherit; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 50;
  background: var(--blanco); color: var(--vino);
  padding: .75rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

.label {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blanco);
}
.h2 {
  font-size: clamp(1.6rem, 6.2vw, 2.5rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
  max-width: 22ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 4.4vw, 1.3rem); font-weight: 500; line-height: 1.5; }

/* ---------- Botón ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: .9rem 1.75rem;
  background: var(--blanco); color: var(--carmin);   /* 7,1:1 */
  border: 2px solid var(--blanco); border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--sans); letter-spacing: .01em; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--blanco); }
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn[disabled]:hover { background: var(--blanco); color: var(--carmin); }

/* ---------- Barra superior ---------- */
/* El filete inferior es el borde por donde "entra" la cinta MODO E del encabezado */
.topbar { position: relative; z-index: 2; padding: .4rem 0; border-bottom: 1px solid var(--linea); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__logo { width: clamp(130px, 38vw, 170px); height: auto; }
.topbar__back {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: 0 .25rem;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: var(--blanco);
}
.topbar__back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 1. Encabezado ---------- */
/* Recreación del banner: cinta "MODO E" en diagonal, monograma, nombre y promesa centrados */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.25rem, 9vw, 4.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}
.hero__ribbon {
  position: absolute; left: -12%; top: clamp(52px, 11vw, 150px);
  width: clamp(320px, 62%, 900px);
  transform: rotate(-20deg); transform-origin: 0 0;
  background: var(--vino);
  padding: .4em 0;
  overflow: hidden; white-space: nowrap;
  font-size: clamp(12px, 1.5vw, 20px); font-weight: 400; letter-spacing: .06em; line-height: 1.2;
  color: var(--blanco);
  pointer-events: none;
}
.hero__ribbon span { display: block; padding-left: 1em; }
.hero__inner {
  position: relative;   /* por encima de la cinta */
  display: grid; justify-items: center; text-align: center;
}
/* Tamaños limitados también por la altura, para que del monograma al botón quepa en la primera pantalla */
.hero__eo { width: clamp(140px, min(38vw, 29vh), 230px); height: auto; }
.hero__word { width: clamp(280px, min(82vw, 70vh), 520px); height: auto; margin-top: clamp(1.1rem, 4vw, 1.75rem); }
.hero__title {
  margin-top: clamp(1.1rem, 4vw, 1.6rem);
  font-size: clamp(1.3rem, 5.4vw, 1.95rem);
  font-weight: 400; line-height: 1.35;
  max-width: 32ch;
  text-wrap: balance;
}
.hero__sub {
  margin: .75rem auto 0;
  font-size: clamp(1.02rem, 4vw, 1.15rem); font-weight: 500; color: var(--blanco-suave);
  max-width: 44ch; text-wrap: balance;
}
.hero .btn { margin-top: clamp(1.4rem, 5vw, 1.9rem); }

/* Entrada suave solo del encabezado (siempre termina visible) */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: subir .8s var(--ease) both; }
  .hero__inner > :nth-child(2) { animation-delay: .08s; }
  .hero__inner > :nth-child(3) { animation-delay: .16s; }
  .hero__inner > :nth-child(4) { animation-delay: .22s; }
  .hero__inner > :nth-child(5) { animation-delay: .28s; }
  @keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section--vino { background: var(--vino); }
.section p + p { margin-top: 1rem; }

/* 3. ¿Tienes la preparación…? (fondo crema, textos en grafito) */
.section--crema { background: var(--crema); color: var(--grafito); }
.section--crema .label { color: var(--grafito); }
.section--crema :focus-visible { outline-color: var(--grafito); }

.que__grid { display: grid; gap: 2rem; align-items: start; }
/* La foto cierra la sección: a todo el ancho, sin margen inferior y con esquinas rectas */
.section--crema:has(.que__photo) { padding-bottom: 0; }
.que__photo { margin-top: var(--section); }
.que__photo img {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 0%;
  max-height: 640px;
}
@media (max-width: 600px) {
  /* En el celular un poco más alta, centrada en Yamitim y la mujer de canas */
  .que__photo img { aspect-ratio: 4 / 3; object-position: 58% 0%; }
}

/* Recuadro "Lo que incluye": carmín con texto blanco, íconos en rosa claro */
.includes {
  --rosa-claro: #FFD9D2;
  padding: 1.75rem 1.5rem;
  background: var(--carmin); color: var(--blanco);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(94, 10, 28, .12), 0 28px 56px -22px rgba(94, 10, 28, .55);
}
/* Títulos "Lo que incluye" y "Bono" en coral: elección de Yamitim (24 nov 2026),
   aunque el contraste en letra pequeña es 3,5:1 (por debajo de AA) */
.section--crema .includes .label { color: var(--coral); margin-bottom: 1.1rem; }
.inc { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.inc li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; line-height: 1.45; }
.inc__icon {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--coral); color: var(--carmin);   /* círculos en coral (24 nov 2026) */
}
.inc__icon svg {
  width: 1.4rem; height: 1.4rem;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.inc__bonus { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 217, 210, .45); }
.section--crema .inc__bonus .label { margin-bottom: .4rem; }
.section .inc__bonus p + p { margin-top: 0; }

/* 4. Para quién */
.checks { display: grid; gap: 1.1rem; padding: 0; margin-bottom: 2rem; list-style: none; }
.checks li { position: relative; padding-left: 2.25rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%235E0A1C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* 5. Testimonio */
.quote { text-align: center; }
.quote::before {
  content: "“"; display: block;
  font: italic 600 5rem/0.6 var(--serif); margin-bottom: .5rem;
  color: var(--coral);
}
.quote blockquote p {
  margin: 0 auto; max-width: 30ch;
  font: italic 600 clamp(1.55rem, 6.4vw, 2.3rem)/1.3 var(--serif);
}
.quote figcaption {
  margin-top: 1.5rem;
  font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- 6. Formulario ---------- */
.signup { scroll-margin-top: 0; }
.signup__grid { display: grid; gap: 1.75rem; }
.signup__intro p { color: var(--blanco-suave); font-size: 1.0625rem; }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field > label { font-weight: 700; font-size: 1rem; }
.field__opt { font-weight: 400; color: var(--blanco-suave); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem;
  background: var(--blanco); color: var(--vino);
  border: 2px solid var(--blanco); border-radius: 12px;
  font: 400 1.0625rem/1.4 var(--sans);   /* 17 px: el iPhone no hace zoom */
  -webkit-appearance: none; appearance: none;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.form textarea { min-height: 6.5rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--blanco); outline-offset: 3px; border-radius: 12px;
}
.form input::placeholder { color: rgba(94, 10, 28, .55); }

.phone { display: grid; grid-template-columns: 7.2rem 1fr; gap: .5rem; }
.form .phone__code {
  padding-right: 2rem; font-family: "Banderas", var(--sans);
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235E0A1C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .6rem center / 1.1rem no-repeat;
  cursor: pointer;
}

/* Campo con error: barra carmín dentro del campo blanco + mensaje debajo */
.form [aria-invalid="true"] { border-color: var(--carmin); box-shadow: inset 6px 0 0 var(--carmin); }
.field__error {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: 1rem; font-weight: 500; line-height: 1.4;
}
.field__error::before {
  content: "!"; flex: none;
  display: inline-grid; place-items: center;
  width: 1.3rem; height: 1.3rem; margin-top: .05rem; border-radius: 50%;
  background: var(--blanco); color: var(--vino); font-weight: 700; font-size: .85rem;
}

/* Casilla de autorización */
.field--check { grid-template-columns: auto 1fr; column-gap: .75rem; align-items: start; }
.field--check > label { font-weight: 400; font-size: 1rem; line-height: 1.5; color: var(--blanco-suave); cursor: pointer; padding-top: .05rem; }
.field--check .field__error { grid-column: 1 / -1; }
.check {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin: 0; flex: none;
  background: var(--blanco); border: 2px solid var(--blanco); border-radius: 6px;
  cursor: pointer; position: relative;
  /* área táctil de 44 px */
  box-shadow: 0 0 0 9px transparent;
}
.check:checked {
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23B0122C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat;
}
.check::after { content: ""; position: absolute; inset: -9px; }
.check[aria-invalid="true"] { box-shadow: 0 0 0 3px var(--carmin) inset; }

.politica[href] { text-decoration: underline; text-underline-offset: 3px; color: var(--blanco); }
.politica:not([href]) { text-decoration: none; }

/* Trampa contra robots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Aviso de error de envío */
.form__alert {
  padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--blanco); color: var(--vino);
  font-weight: 500; line-height: 1.5;
  border-left: 6px solid var(--carmin);
}
.form__alert a { color: var(--carmin); font-weight: 700; text-underline-offset: 3px; }
.form__noscript { color: var(--blanco-suave); }

.form.is-sending input, .form.is-sending select, .form.is-sending textarea { opacity: .75; }

/* Confirmación */
.done {
  display: grid; gap: .5rem; justify-items: start;
  padding: 1.75rem 1.5rem; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 1.0625rem;
}
.done:focus { outline: none; }
.done:focus-visible { outline: 3px solid var(--blanco); outline-offset: 3px; }
.done__icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--blanco); color: var(--carmin); margin-bottom: .5rem;
}
.done__title { font-size: clamp(1.35rem, 5.4vw, 1.7rem); font-weight: 700; line-height: 1.25; }

/* ---------- 7. Pie: ahora es el pie compartido en carmín (../assets/css/pie.css, .footer--carmin) ---------- */

/* ---------- Escritorio ---------- */
@media (min-width: 720px) {
  .includes { padding: 2rem 1.9rem; }
}
@media (min-width: 960px) {
  .topbar { padding: .9rem 0; }
  .hero { padding-top: 2.5rem; }
  .hero__title { max-width: 40ch; }
  .hero__word { margin-top: 1.25rem; }
  /* Texto y foto a la izquierda; recuadro rectangular a la derecha, a la altura del título */
  .que__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .que__text .h2 { max-width: 20ch; }
  /* El texto se centra en altura frente al recuadro y crece un poco: menos hueco debajo */
  .que__grid { align-items: center; }
  .que__text .h2 { margin-bottom: 1.5rem; }
  .que__text p { font-size: 1.1875rem; line-height: 1.65; max-width: 34em; }
  .section .que__text p + p { margin-top: 1.25rem; }
  .signup__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
  .signup__intro { position: sticky; top: 2rem; }
}
