:root {
  --bg: #f6eadf;
  --card: rgba(255, 250, 245, 0.84);
  --text: #2d2522;
  --muted: #6e5d55;
  --line: rgba(102, 73, 60, 0.14);
  --shadow: 0 24px 64px rgba(84, 47, 27, 0.12);
  --orange: #ef7b3d;
  --orange-deep: #db6430;
  --pink: #d65f8c;
  --pink-soft: #f5d2df;
  --green: #25d366;
  --green-deep: #16974a;
  --green-soft: rgba(37, 211, 102, 0.12);
  --white: #ffffff;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 196, 0.6), transparent 36%),
    linear-gradient(180deg, #fef6f0 0%, var(--bg) 50%, #fdf2ea 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.page-bg {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.55;
  z-index: 0;
}

.page-bg--rose {
  top: 4rem;
  right: -5rem;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(214, 95, 140, 0.34), transparent 70%);
}

.page-bg--orange {
  bottom: 8rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(239, 123, 61, 0.3), transparent 72%);
}

.topbar,
.shell,
.page-footer {
  position: relative;
  z-index: 1;
}

.topbar,
.page-footer {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.topbar {
  padding: 1.25rem 1rem 0;
}

.page-footer {
  padding: 0 1rem 6rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(111, 63, 40, 0.08);
}

.brand-lockup__logos {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-lockup__logo {
  width: auto;
  max-height: 2rem;
  border-radius: 10px;
  object-fit: contain;
}

.brand-lockup__logo--secondary {
  max-height: 1.7rem;
}

.brand-lockup__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.site-owner {
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 245, 0.62);
}

.site-owner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-owner__meta {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 1rem 1rem 1rem;
}

.hero-card,
.info-block {
  animation: rise 0.6s ease both;
}

.hero-card {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-xl);
  background: var(--card);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

body[data-screen="valid"] .topbar,
body[data-screen="valid"] .progress,
body[data-screen="valid"] .hero-pill,
body[data-screen="valid"] #screen-valid > .hero-copy:first-child,
body[data-screen="whatsapp"] .topbar,
body[data-screen="whatsapp"] .progress,
body[data-screen="whatsapp"] .hero-pill,
body[data-screen="referral"] .topbar,
body[data-screen="referral"] .progress,
body[data-screen="referral"] .hero-pill {
  display: none;
}

body[data-screen="valid"] .shell,
body[data-screen="whatsapp"] .shell,
body[data-screen="referral"] .shell {
  padding-top: 0.35rem;
}

body[data-screen="valid"] .hero-card,
body[data-screen="whatsapp"] .hero-card,
body[data-screen="referral"] .hero-card {
  padding-top: 0.95rem;
}

body[data-screen="valid"] #screen-valid .hero-copy--compact {
  margin-top: 0;
}

body[data-screen="whatsapp"] #screen-whatsapp .hero-copy,
body[data-screen="referral"] #screen-referral .hero-copy {
  margin-top: 0;
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.progress__step {
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  color: rgba(90, 67, 58, 0.54);
}

.progress__step span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 73, 60, 0.18);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.progress__step small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress__step.is-active span,
.progress__step.is-complete span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
  color: var(--white);
  transform: translateY(-1px);
}

.progress__step.is-active,
.progress__step.is-complete {
  color: var(--text);
}

.progress__line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 123, 61, 0.24), rgba(214, 95, 140, 0.24));
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--orange-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: fade 0.35s ease both;
}

.hero-copy {
  margin-bottom: 1rem;
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3,
.section-head h2,
.credit-card h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(2rem, 8vw, 3.3rem);
}

.hero-copy h2 {
  font-size: clamp(1.75rem, 7vw, 2.65rem);
}

.hero-copy h3,
.section-head h2,
.credit-card h3 {
  font-size: clamp(1.32rem, 5.4vw, 1.95rem);
}

.hero-copy p,
.muted,
.field-help,
.video-copy,
.info-card li,
.credit-card p,
.prep-card p,
.privacy-note {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy--compact {
  margin-top: 1.2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(102, 73, 60, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.mini-badge--accent {
  background: linear-gradient(135deg, rgba(239, 123, 61, 0.12), rgba(214, 95, 140, 0.14));
  color: #8b3c5f;
}

.cp-form {
  display: grid;
  gap: 0.9rem;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 1.05rem 1rem;
  border: 1px solid rgba(102, 73, 60, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-wrap input:focus {
  border-color: rgba(214, 95, 140, 0.36);
  box-shadow: 0 0 0 4px rgba(214, 95, 140, 0.12);
  transform: translateY(-1px);
}

.field-error {
  min-height: 1.2rem;
  margin: -0.3rem 0 0;
  color: #b24350;
  font-size: 0.92rem;
  font-weight: 600;
}

.field-help,
.muted,
.video-copy,
.privacy-note {
  margin: 0;
  font-size: 0.95rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(214, 95, 140, 0.22);
}

.btn--whatsapp {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(25, 135, 84, 0.24);
}

.btn--strong {
  padding-block: 1.05rem;
  box-shadow: 0 18px 38px rgba(25, 135, 84, 0.28);
}

.btn--ghost {
  border: 1px solid rgba(102, 73, 60, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.btn--secondary-outline {
  border: 1px solid rgba(188, 79, 131, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #7d3f5f;
  box-shadow: 0 12px 28px rgba(188, 79, 131, 0.08);
}

.btn--small {
  margin-top: 0.9rem;
  padding: 0.78rem 1rem;
  font-size: 0.92rem;
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 0;
}

.btn__icon svg,
.whatsapp-svg {
  display: block;
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.cta-stack {
  display: grid;
  gap: 0.8rem;
}

.highlight-card,
.mini-card,
.video-card,
.info-card,
.checklist li,
.credit-card,
.prep-card {
  border: 1px solid rgba(102, 73, 60, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(108, 61, 40, 0.08);
}

.highlight-card,
.credit-card,
.prep-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
}

.highlight-card {
  margin-bottom: 1rem;
}

.credit-card {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 243, 0.94)),
    linear-gradient(135deg, rgba(239, 123, 61, 0.08), rgba(214, 95, 140, 0.08));
}

.credit-note {
  font-size: 0.9rem;
}

.microcopy {
  font-size: 0.9rem;
}

.prep-card {
  margin-top: 0.85rem;
}

.prep-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-card {
  min-height: 5.5rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
}

.mini-card strong {
  display: block;
  line-height: 1.35;
}

.video-card {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: var(--radius-lg);
}

#screen-valid .video-card {
  margin-top: 0.8rem;
}

#screen-valid .hero-copy--compact {
  margin-top: 0.85rem;
  margin-bottom: 0.75rem;
}

#screen-valid .credit-card {
  margin-top: 1rem;
}

#screen-valid .prep-card {
  margin-top: 0.7rem;
}

#screen-valid .benefits-grid {
  margin-top: 0.85rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #000;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play__icon {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1.1rem solid var(--pink);
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.9rem;
  border-radius: var(--radius-md);
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
  transform: translateY(-50%);
  box-shadow: 0 6px 16px rgba(214, 95, 140, 0.2);
}

.checklist li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.39rem;
  width: 0.36rem;
  height: 0.62rem;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translateY(-62%) rotate(45deg);
}

.prospect-note {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.prospect-note strong {
  color: var(--text);
}

.info-block {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 246, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(108, 61, 40, 0.08);
}

.section-head {
  margin-bottom: 0.95rem;
}

.section-head h2 {
  margin-top: 0;
}

.info-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.info-card + .info-card {
  margin-top: 0.9rem;
}

.info-card summary {
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

.info-card summary::-webkit-details-marker {
  display: none;
}

.info-card summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--orange-deep);
}

.info-card[open] summary::after {
  content: "-";
}

.info-card__body {
  display: grid;
  gap: 0.9rem;
  padding: 0 1.1rem 1.1rem;
}

.info-card__body img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.info-card ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.15rem;
}

.privacy-note {
  max-width: 52rem;
  margin: 1rem auto 0;
  text-align: center;
  opacity: 0.88;
}

.consent-note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0.82;
}

.footer-owner {
  margin: 0.45rem auto 0;
  font-size: 0.58rem;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
}

.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246, 234, 223, 0), rgba(246, 234, 223, 0.96) 30%);
  backdrop-filter: blur(14px);
}

.sticky-cta.is-hidden {
  display: none;
}

.sticky-cta .btn {
  padding-inline: 0.7rem;
}

@media (min-width: 768px) {
  .topbar,
  .page-footer {
    padding-inline: 1.5rem;
  }

  .shell {
    padding: 1.25rem 1.5rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
    align-items: start;
  }

  .hero-card,
  .info-block {
    padding: 1.55rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-frame video {
    aspect-ratio: 16 / 9;
  }

  .sticky-cta {
    display: none !important;
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Página /grupo (fase 2026-09-05): CTA tipo botón sobre un enlace <a>. */
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
