:root {
  --ink: #35363a;
  --ink-soft: #4a4950;
  --lav: #dcc8e3;
  --lav-stripe: #d1bedc;
  --lav-deep: #b9a0da;
  --cream: #fff9e8;
  --yellow: #fbf3a6;
  --blue: #c8d5f3;
  --peach: #f7cfa8;
  --mint: #bfe7df;
  --lilac: #cdb7e6;
  --pink: #f7c6de;
  --white: #ffffff;
  --error: #b3261e;
  --radius: 18px;
  --shadow: 0 10px 24px rgba(46, 47, 51, .14);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  background-color: var(--lav);
  background-image: repeating-linear-gradient(90deg, var(--lav) 0 80px, var(--lav-stripe) 80px 160px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .95rem 1.7rem; border: 0; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--light { background: var(--yellow); color: var(--ink); padding: .7rem 1.3rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* Barra superior */
.topbar { background: var(--ink); position: sticky; top: 0; z-index: 10; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding-block: .6rem; }
.topbar__logo img { width: clamp(150px, 22vw, 230px); }

/* Etiquetas tipo píldora */
.pill {
  display: inline-block; background: var(--yellow); border-radius: 999px;
  padding: .35rem 1.2rem; font-size: clamp(1rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: .01em;
}
.pill strong { font-weight: 800; }
.pill--dark { background: var(--ink); color: var(--white); letter-spacing: .18em; font-weight: 500; font-size: clamp(.95rem, 2vw, 1.35rem); }

/* Portada */
.hero { overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 1rem; padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero__copy { padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.hero__title { margin-top: 1rem; display: grid; gap: .2rem; }
.hero__word { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 900; line-height: .95; letter-spacing: -.01em; }
.hero__3d { width: min(540px, 90%); margin-block: .4rem .2rem; }
.hero__sub { font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.1; }
.hero__lead { margin-top: 1.2rem; max-width: 34ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); }
.hero__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.price-tag { font-weight: 600; font-size: 1.05rem; }
.price-tag s { font-weight: 400; opacity: .6; margin-left: .3rem; }
/* La ilustración llega al borde derecho de la pantalla: su corte lateral coincide con el borde, como en el flyer. */
.hero__art { margin: 0 calc((min(1160px, 100vw - 32px) - 100vw) / 2) 0 0; display: flex; justify-content: flex-end; }
.hero__art img { width: 100%; max-width: 560px; max-height: 780px; object-fit: cover; object-position: right top; }

/* Descripción */
.about { background: var(--cream); padding-top: clamp(3rem, 7vw, 5rem); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about p { margin-top: 1rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; }
.h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.12; }
.h2--center { text-align: center; }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding-inline: .1em; }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.outcomes li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.2rem; background: var(--white); border-radius: 14px; border: 1px solid #eee3f6;
}
.outcomes__n { font-weight: 800; font-size: 1.25rem; color: var(--lav-deep); line-height: 1.4; }
.about__objects { display: block; margin: clamp(2.5rem, 6vw, 4rem) auto 0; width: min(1000px, 100% - 32px); }

/* Notas de temas */
.topics { padding-block: clamp(3.5rem, 8vw, 6rem); }
.notes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.note {
  padding: 1.6rem 1.4rem 1.8rem; text-align: center; box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease;
}
.note:hover { transform: rotate(0deg) scale(1.02); }
.note h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.note p { margin-top: .5rem; font-size: 1.05rem; }
.note--yellow { background: var(--yellow); --tilt: -2.5deg; }
.note--blue   { background: var(--blue);   --tilt: 1.5deg; }
.note--peach  { background: var(--peach);  --tilt: -1deg; }
.note--mint   { background: var(--mint);   --tilt: 2deg; }
.note--lilac  { background: var(--lilac);  --tilt: -1.5deg; }
.note--pink   { background: var(--pink);   --tilt: 2.5deg; }

/* Lanzamiento */
.launch { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.launch__grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.launch__date { text-align: center; }
.launch__when { display: flex; justify-content: center; align-items: center; gap: 1.6rem; margin-top: 1.2rem; }
.launch__day { display: grid; font-weight: 800; line-height: 1; text-align: center; font-size: clamp(1.3rem, 3vw, 2.2rem); }
.launch__day strong { font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 900; }
.launch__time { display: grid; border-left: 3px solid var(--ink); padding-left: 1.6rem; text-align: left; }
.launch__time strong { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: .95; }
.launch__time span { margin-top: .5rem; font-weight: 700; font-size: .85rem; }
.countdown { margin-top: 1.4rem; font-weight: 600; min-height: 1.5em; }
.badge {
  width: clamp(130px, 16vw, 190px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; transform: rotate(-12deg);
  font-weight: 800; line-height: 1.1; font-size: clamp(1rem, 2vw, 1.45rem);
}
.badge span { font-size: 1.8em; line-height: 1; }
.badge--dark { background: var(--ink); color: var(--white); }
.badge--yellow { background: var(--yellow); font-size: clamp(.8rem, 1.5vw, 1.05rem); transform: rotate(10deg); }

/* Inscripción */
.signup { background: var(--ink); color: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: 60px; }
.signup__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.signup__lead { margin-top: 1rem; color: #d9d6e0; max-width: 42ch; }
.price-box { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); background: var(--yellow); color: var(--ink); max-width: 360px; }
.price-box__label { font-weight: 800; letter-spacing: .12em; font-size: .85rem; text-transform: uppercase; }
.price-box__amount { font-size: 3.2rem; font-weight: 900; line-height: 1.1; margin-top: .2rem; }
.price-box__amount small { font-size: 1rem; font-weight: 600; }
.price-box__regular { font-size: .95rem; }
.price-box__note { margin-top: .8rem; font-size: .9rem; color: var(--ink-soft); }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.2rem); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field small { font-weight: 400; color: #77737f; }
.field input, .field select {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid #d8d2e2; border-radius: 10px;
  font: 400 1rem var(--font); color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lav); }
.field [aria-invalid="true"] { border-color: var(--error); }
.form__fields { display: grid; gap: 1rem; }
.checkout { display: grid; gap: 1.1rem; }
.checkout__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.checkout__head h3 { font-size: 1.2rem; font-weight: 800; }
.checkout__edit { background: none; border: 0; padding: 0; font: 600 .9rem var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.checkout__who { font-size: .92rem; color: #5d5a63; margin-top: -.6rem; }
.summary { margin: 0; border: 1.5px solid #ebe4f2; border-radius: 14px; overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; }
.summary div + div { border-top: 1px solid #ebe4f2; }
.summary dt { font-size: .95rem; }
.summary dd { margin: 0; font-weight: 600; white-space: nowrap; }
.summary__discount { color: #1f7a4d; }
.summary__total { background: var(--yellow); font-weight: 800; }
.summary__total dt, .summary__total dd { font-size: 1.15rem; font-weight: 800; }
.coupon label { display: block; font-weight: 600; font-size: .95rem; }
.coupon__row { display: flex; gap: .6rem; margin-top: .4rem; }
.coupon__row input { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1.5px solid #d8d2e2; border-radius: 10px; font: 500 1rem var(--font); text-transform: uppercase; }
.coupon__row input::placeholder { text-transform: none; }
.coupon__msg { margin-top: .4rem; font-size: .9rem; font-weight: 600; color: #1f7a4d; }
.coupon__msg:empty { display: none; }
.coupon__msg.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { margin-top: .7rem; font-size: .82rem; color: #77737f; text-align: center; }
.footer a { color: inherit; }
.form__error { color: var(--error); font-weight: 600; font-size: .95rem; }
.pay { display: grid; gap: .9rem; margin-top: .4rem; }
.pay__or { display: flex; align-items: center; gap: .8rem; color: #77737f; font-size: .9rem; }
.pay__or::before, .pay__or::after { content: ''; flex: 1; height: 1px; background: #e4dfeb; }
.pay__paypal { min-height: 50px; }
.pay__secure { font-size: .82rem; color: #77737f; text-align: center; }

/* Preguntas */
.faq { padding-block: clamp(3.5rem, 8vw, 6rem); }
.faq__inner { max-width: 760px; }
.faq details { margin-top: 1rem; background: var(--white); border-radius: 14px; padding: 1.1rem 1.3rem; }
.faq details:first-of-type { margin-top: 2rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: .6rem; color: var(--ink-soft); }

/* Pie */
.footer { background: var(--ink); color: #c9c5d1; padding-block: 2rem; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer img { width: 150px; }

/* Página de gracias y panel */
.page-center { min-height: 100vh; display: flex; flex-direction: column; }
.page-center main { flex: 1; display: grid; place-items: center; padding: 3rem 16px; }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 3rem); max-width: 560px; text-align: center; box-shadow: var(--shadow); }
.card h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.15; }
.card p { margin-top: 1rem; color: var(--ink-soft); }
.card .btn { margin-top: 1.6rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .about__grid, .signup__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero__art { width: min(420px, 100% + 16px); margin: 0 -16px 0 auto; }
  .hero__art img { max-height: 520px; }
  .notes { grid-template-columns: repeat(2, 1fr); }
  .launch__grid { grid-template-columns: 1fr 1fr; justify-items: center; }
  .launch__date { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 560px) {
  .notes { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .launch__when { gap: 1rem; }
  .launch__time { padding-left: 1rem; }
  .btn--light { padding: .55rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .note { transition: none; }
}
