:root {
  --suelo: #050507;
  --papel: #eef0f6;
  --muted: rgba(238, 240, 246, .66);
  --faint: rgba(238, 240, 246, .42);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --acento: #5488ff;
  --verde: #7be982;
  --crema: #f6ce96;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  background: var(--suelo);
  color: var(--papel);
  font: 16px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: -10% -10% auto; height: 95vh; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 58% at 72% 28%, rgba(84, 136, 255, .2), transparent 70%),
    radial-gradient(40% 50% at 22% 8%, rgba(122, 96, 236, .17), transparent 70%);
}
.cab, main, .pie { position: relative; z-index: 1; }
.cab { width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--papel); font: 500 16px 'Gabarito', sans-serif; text-decoration: none; }
.logo img { border-radius: 9px; box-shadow: 0 8px 28px rgba(84, 136, 255, .35); }
.logo b { font-weight: 800; }
em {
  font: italic 400 1.08em 'Instrument Serif', Georgia, serif; letter-spacing: 0;
  background: linear-gradient(92deg, #8db0ff, #a68bff 60%, #f6ce96);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
h1 { margin: 0 0 18px; font: 800 clamp(36px, 5.2vw, 60px)/1.04 'Gabarito', sans-serif; letter-spacing: -.03em; }
.lead { max-width: 36ch; margin: 0 0 28px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.pie { padding: 24px 16px; color: var(--faint); font-size: 13px; text-align: center; }
.pie a { color: var(--muted); }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }
@keyframes brillo { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes girar { to { transform: rotate(360deg); } }

.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 58px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, #6f9bff, #4573f2);
  color: #fff; font: 700 17.5px 'Gabarito', sans-serif; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 40px -12px rgba(84, 136, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .26) 50%, transparent 70%); transform: translateX(-120%); animation: brillo 4s var(--ease) infinite 1.2s; }
.cta:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 18px 50px -12px rgba(84, 136, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta.cargando { pointer-events: none; filter: saturate(.6) brightness(.9); }
.cta[disabled] { pointer-events: none; opacity: .6; }

/* Página de pago */
.pagar {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "texto caja" "lista caja"; grid-template-rows: auto 1fr;
  align-content: start; column-gap: 64px;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 36px 24px 64px;
}
.texto { grid-area: texto; animation: subir .8s var(--ease) both; }
.incluye { grid-area: lista; animation: subir .8s var(--ease) .12s both; }
.caja-plan { grid-area: caja; animation: subir .8s var(--ease) .06s both; }
.etiqueta { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px; font-weight: 500; }
.etiqueta::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 10px var(--verde); }
.incluye { display: grid; align-content: start; gap: 13px; margin: 0; padding: 0; list-style: none; }
.incluye li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; }
.incluye li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%;
  background: rgba(84, 136, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238db0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.caja-plan {
  position: sticky; top: 24px;
  padding: 26px;
  border-radius: 26px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(23, 23, 28, .88), rgba(13, 13, 16, .92));
  box-shadow: 0 0 0 1px rgba(84, 136, 255, .12), 0 40px 120px -30px rgba(84, 136, 255, .45), 0 24px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(20px);
}
.planes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px 13px;
  border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02);
  color: var(--papel); font: inherit; text-align: left;
  cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
}
.plan:hover { border-color: rgba(255, 255, 255, .24); }
.plan.activo { border-color: rgba(84, 136, 255, .75); background: rgba(84, 136, 255, .1); box-shadow: 0 0 0 3px rgba(84, 136, 255, .14); }
.p-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.p-nom i { padding: 1px 7px; border-radius: 99px; background: rgba(123, 233, 130, .12); color: var(--verde); font-size: 11.5px; font-style: normal; font-weight: 600; }
.p-precio { color: var(--muted); font-size: 13.5px; }
.p-precio b { color: var(--papel); font-weight: 600; }
.precio-grande { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 4px; }
.precio-grande b { font: 800 64px/1 'Gabarito', sans-serif; letter-spacing: -.03em; }
.precio-grande span { color: var(--muted); font-size: 17px; }
.nota-precio { min-height: 22px; margin: 0 0 22px; color: var(--faint); font-size: 14px; }
.total-iva { margin: -6px 0 10px; color: var(--muted, rgba(238,240,246,.72)); font-size: 14px; }
.metodos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.metodos span { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 12.5px; }
.seguro { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--faint); font-size: 13px; text-align: center; }
.seguro svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.alerta { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(241, 152, 106, .3); background: rgba(241, 152, 106, .08); color: #ffc3a3; font-size: 14px; }
.alerta.suave { border-color: rgba(84, 136, 255, .3); background: rgba(84, 136, 255, .08); color: #c4d4ff; }

/* Gracias */
.gracias { flex: 1; width: min(640px, 100%); margin: 0 auto; padding: 28px 16px 56px; text-align: center; }
.sello { position: relative; width: 96px; height: 96px; margin: 8px auto 26px; }
.sello svg { width: 100%; height: 100%; overflow: visible; }
.sello .giro { transform-origin: 48px 48px; animation: girar 1s linear infinite; }
.sello .fondo-ok { opacity: 0; transform: scale(.6); transform-origin: 48px 48px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.sello .marca-ok { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .6s var(--ease) .2s; }
.sello.ok .giro { display: none; }
.sello.ok .fondo-ok { opacity: 1; transform: none; }
.sello.ok .marca-ok { stroke-dashoffset: 0; }
/* El brillo va en el propio círculo, así siempre queda centrado con él. */
.sello.ok svg { filter: drop-shadow(0 0 22px rgba(84, 136, 255, .55)) drop-shadow(0 0 48px rgba(122, 96, 236, .3)); transition: filter .6s var(--ease); }
.gracias h1 { font-size: clamp(34px, 6vw, 52px); }
.gracias h1 .junto { white-space: nowrap; }
.fichas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 0 26px; }
.fichas .email-chip, .fichas .carne { margin: 0; min-height: 38px; }
.fichas .carne { padding: 8px 16px; }
.gracias .lead { margin: 0 auto 22px; }
.email-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-bottom: 26px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-weight: 500; word-break: break-all; }
.email-chip svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #8db0ff; stroke-width: 2; }
.pasos { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: paso; text-align: left; }
.pasos li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); counter-increment: paso; animation: subir .7s var(--ease) both; }
.pasos li:nth-child(2) { animation-delay: .08s; }
.pasos li:nth-child(3) { animation-delay: .16s; }
.pasos li::before { content: counter(paso); grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(84, 136, 255, .14); color: #a9c1ff; font: 700 17px 'Gabarito', sans-serif; }
.pasos b { font-weight: 600; }
.pasos span { color: var(--muted); font-size: 14.5px; }
.gracias .cta { max-width: 360px; margin: 0 auto; }
.ayuda { margin-top: 22px; color: var(--faint); font-size: 14px; }
.ayuda a { color: var(--muted); }

/* Pago de prueba */
.demo-pago { flex: 1; width: min(460px, 100%); margin: 0 auto; padding: 12px 16px 48px; animation: subir .7s var(--ease) both; }
.banda-demo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; padding: 9px 14px; border-radius: 12px; border: 1px dashed rgba(246, 206, 150, .45); background: rgba(246, 206, 150, .08); color: var(--crema); font-size: 13.5px; font-weight: 500; text-align: center; }
.hoja { padding: 24px; border-radius: 24px; background: #f7f8fb; color: #14161c; box-shadow: 0 40px 120px -24px rgba(84, 136, 255, .45), 0 20px 50px rgba(0, 0, 0, .45); }
.hoja-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #e3e6ee; }
.hoja-cab img { width: 42px; height: 42px; border-radius: 11px; }
.hoja-cab b { display: block; font: 700 16px 'Gabarito', sans-serif; }
.hoja-cab span { color: #5d6474; font-size: 13.5px; }
.hoja-precio { margin-left: auto; font: 800 26px 'Gabarito', sans-serif; white-space: nowrap; }
.hoja label { display: block; margin-bottom: 12px; color: #3a4050; font-size: 13px; font-weight: 600; }
.hoja input, .hoja select { display: block; width: 100%; height: 46px; margin-top: 6px; padding: 0 12px; border-radius: 11px; border: 1px solid #d5d9e3; background: #fff; color: #14161c; font: 15px 'Inter', sans-serif; outline: 0; transition: border-color .2s, box-shadow .2s; }
.hoja input:focus, .hoja select:focus { border-color: #5488ff; box-shadow: 0 0 0 3px rgba(84, 136, 255, .2); }
.hoja input:disabled { background: #eef0f5; color: #5d6474; }
.hoja .cta { margin-top: 18px; }
.rechazo { display: block; width: 100%; margin-top: 12px; border: 0; background: none; color: #5d6474; font: 500 13.5px 'Inter', sans-serif; text-decoration: underline; cursor: pointer; }
.error { min-height: 20px; margin: 2px 0 0; color: #c2410c; font-size: 14px; }
.nota-demo { margin: 16px 0 0; color: var(--faint); font-size: 13px; text-align: center; }

/* Página de pago: tres planes y forma de pago */
.planes.tres { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.planes.tres .plan { padding: 12px 11px; }
.planes.tres .p-precio { font-size: 12.5px; }
.formas { margin: 0 0 18px; padding: 0; border: 0; }
.formas[hidden] { display: none; }
.formas legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.forma { display: flex; gap: 10px; margin-bottom: 8px; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line2); cursor: pointer; transition: border-color .2s, background .2s; }
.forma:hover { border-color: rgba(255, 255, 255, .24); }
.forma.activa { border-color: rgba(84, 136, 255, .75); background: rgba(84, 136, 255, .08); }
.forma input { flex: none; margin: 3px 0 0; accent-color: var(--acento); }
.forma b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.forma small { display: block; margin-top: 2px; color: var(--faint); font-size: 12.5px; line-height: 1.35; }

/* Pago simulado */
.demo-pago.ancho { width: min(960px, 100%); }
.pago-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.resumen-pago { padding: 10px 4px; }
.volver { color: var(--faint); font-size: 13.5px; }
.resumen-et { margin: 22px 0 2px; color: var(--muted); font-size: 14px; }
.resumen-nom { margin: 0 0 6px; font: 600 17px 'Gabarito', sans-serif; }
.resumen-precio { margin: 0 0 8px; font: 800 48px/1.05 'Gabarito', sans-serif; letter-spacing: -.02em; }
.resumen-nota { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.resumen-lista { display: grid; gap: 6px; margin: 0; padding: 0; color: var(--faint); font-size: 14px; list-style: none; }
.exprés { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.boton-expres { height: 46px; border-radius: 10px; border: 0; background: #000; color: #fff; font: 600 15px 'Inter', sans-serif; cursor: pointer; transition: opacity .2s; }
.boton-expres:hover { opacity: .85; }
.separa { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: #7a8192; font-size: 12.5px; }
.separa[hidden] { display: none; }
.separa::before, .separa::after { content: ''; flex: 1; height: 1px; background: #e3e6ee; }
.lista-metodos { overflow: hidden; margin: 2px 0 8px; border-radius: 12px; border: 1px solid #d5d9e3; background: #fff; }
.hoja .metodo { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; margin: 0; padding: 12px 14px; border-bottom: 1px solid #e8ebf1; color: #14161c; font-weight: 400; cursor: pointer; }
.hoja .metodo:last-child { border-bottom: 0; }
.hoja .metodo input[type=radio] { width: 16px; height: 16px; margin: 3px 0 0; accent-color: #4573f2; }
.metodo-cab b { display: block; font-size: 14.5px; font-weight: 600; }
.metodo-cab small { display: block; color: #6b7283; font-size: 12.5px; }
.metodo-cuerpo { display: none; grid-column: 2; margin-top: 8px; }
.metodo.activo .metodo-cuerpo { display: block; }
.metodo-cuerpo label { margin: 0; }
.ayuda-metodo { margin: 6px 0 0; color: #6b7283; font-size: 13px; }
.sheet { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: #fff; color: #14161c; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); }
.sheet::backdrop { background: rgba(3, 4, 8, .62); backdrop-filter: blur(4px); }
.sheet-cab { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid #e8ebf1; }
.sheet-cab b { font: 700 17px 'Gabarito', sans-serif; }
.sheet-sim { padding: 2px 8px; border-radius: 99px; background: #fbf0dd; color: #8a5c12; font-size: 11.5px; font-weight: 600; }
.sheet-x { margin-left: auto; border: 0; background: none; color: #6b7283; font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-total, .sheet-fila { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid #eef0f5; color: #4d5463; font-size: 14px; }
.sheet-total b { color: #14161c; font: 800 22px 'Gabarito', sans-serif; }
.sheet-fila b { color: #14161c; font-weight: 600; }
.sheet-ops { display: grid; gap: 8px; padding: 14px 18px 4px; }
.sheet-op { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid #d5d9e3; cursor: pointer; }
.sheet-op input { margin: 3px 0 0; accent-color: #4573f2; }
.sheet-op b { display: block; font-size: 14px; font-weight: 600; }
.sheet-op small { display: block; color: #6b7283; font-size: 12.5px; }
.sheet .ayuda-metodo { margin: 8px 18px 0; }
.sheet-campo { display: block; padding: 14px 18px 0; color: #3a4050; font-size: 13px; font-weight: 600; }
.sheet-campo input { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; border-radius: 10px; border: 1px solid #d5d9e3; background: #eef0f5; color: #4d5463; font: 15px 'Inter', sans-serif; }
.sheet-ok { display: block; width: calc(100% - 36px); height: 48px; margin: 16px 18px 18px; border: 0; border-radius: 12px; color: #fff; font: 600 15.5px 'Inter', sans-serif; cursor: pointer; }
.sheet-ok.negro { background: #000; }
.sheet-ok.azul { background: #2453c4; }
.sheet-ok.verde { background: #0d8f76; }
.sheet-ok.rosa { background: #ffb3c7; color: #17120f; }
.sheet-espera { padding: 24px 18px 18px; color: #4d5463; font-size: 14.5px; text-align: center; }
.sheet-espera i { display: block; width: 30px; height: 30px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid #d5d9e3; border-top-color: #4573f2; animation: girar .9s linear infinite; }
.sheet-espera p { margin: 0; }
.botones-gracias { max-width: 360px; margin: 0 auto; }
.rechazo.claro { color: var(--muted); }

/* Pago a mano */
.segmentos-hoja { display: flex; gap: 6px; margin-bottom: 14px; padding: 4px; border-radius: 12px; background: #eef0f5; }
.segmentos-hoja button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: none; color: #4d5463; font: 600 14px 'Inter', sans-serif; cursor: pointer; }
.segmentos-hoja button.activo { background: #fff; color: #14161c; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.etiq-destino { margin: 0 0 6px; color: #3a4050; font-size: 13px; font-weight: 600; }
.destino { display: block; width: 100%; margin-bottom: 10px; padding: 12px; border-radius: 11px; border: 1px dashed #b9c0cf; background: #fff; color: #14161c; font: 500 14px ui-monospace, Consolas, monospace; word-break: break-all; cursor: copy; }
.destino.copiado { border-color: #0d8f76; background: #e8f7f3; }
.consejo { margin: 0 0 14px; color: #5d6474; font-size: 13.5px; }

.campo-email { display: grid; gap: 6px; margin: 18px 0 14px; }
.campo-email > span { font-size: 13.5px; font-weight: 600; }
.campo-email input { width: 100%; padding: 14px 15px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--papel); font: 500 16px 'Inter', sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.campo-email input:focus { border-color: rgba(84, 136, 255, .75); box-shadow: 0 0 0 3px rgba(84, 136, 255, .16); }
.campo-email input.mal { border-color: #ff7a7a; box-shadow: 0 0 0 3px rgba(255, 122, 122, .14); }
.campo-email small { color: var(--faint); font-size: 12.5px; }
.campo-error { color: #ff9a9a; font-size: 13px; font-weight: 500; }

/* Pago dentro de /pagar */
.pago { display: grid; gap: 14px; margin: 18px 0 6px; }
.express { min-height: 48px; }
.separador { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.separador::before, .separador::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.hueco:empty { display: none; }
.pago .cta { width: 100%; justify-content: center; margin-top: 4px; }
.p-regalo { white-space: nowrap; font-size: 10.5px !important; }

.carne { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(123, 233, 130, .28); background: rgba(123, 233, 130, .08); color: var(--verde); font-size: 13px; font-weight: 600; }
.carne::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 10px var(--verde); }

@media (max-width: 860px) {
  .cab { padding: 18px 16px; }
  .pagar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "texto" "caja" "lista"; row-gap: 28px; padding: 8px 16px 48px; }
  .lead { margin-bottom: 0; }
  .caja-plan { position: static; padding: 20px; border-radius: 22px; }
  .precio-grande b { font-size: 52px; }
  .pago-rejilla { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .resumen-precio { font-size: 40px; }
  .resumen-lista { display: none; }
  .hoja { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
