/* Estilos de la página de muestra gratis (muestra.html y en/sample.html). Se carga después de base.css. */
body {
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(37, 99, 235, .12), transparent 70%),
    radial-gradient(700px 480px at -10% 30%, rgba(106, 168, 255, .12), transparent 70%),
    var(--bg-soft);
  min-height: 100vh;
}
.page {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(104px, 15vh, 140px) var(--gutter) clamp(64px, 10vh, 110px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 84px); align-items: start;
}

/* Columna de la izquierda: qué recibe */
.pitch { position: sticky; top: 108px; }
.pitch h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.04em; margin: 18px 0 18px; text-wrap: balance; }
.pitch h1 em { font-style: normal; color: var(--accent); }
.pitch .lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; max-width: 40ch; }
.gets { list-style: none; display: grid; gap: 14px; margin: 30px 0 34px; }
.gets li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.gets svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.gets b { font-weight: 700; }
.demo { position: relative; display: block; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9; color: #fff; box-shadow: 0 30px 60px -36px rgba(11, 31, 58, .5); isolation: isolate; }
.demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); z-index: -2; }
.demo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 18, 38, .72), rgba(6, 18, 38, 0) 60%); }
.demo:hover img { transform: scale(1.05); }
.demo span { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.demo small { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #cfe0ff; }
.demo b { font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; transition: background .3s, color .3s; }
.demo:hover b { background: #fff; color: var(--accent); }

/* Formulario */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -48px rgba(11, 31, 58, .45); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
fieldset { border: 0; display: grid; gap: 18px; }
fieldset + fieldset { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
legend { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-bottom: 20px; float: left; width: 100%; }
legend + * { clear: both; }
legend .step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(37, 99, 235, .1); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .group-label { font-weight: 700; font-size: 14px; }
.opt { font-weight: 500; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: #fff;
  border: 1px solid rgba(11, 31, 58, .16); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6a82' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
input::placeholder, textarea::placeholder { color: #9aa6b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
[aria-invalid="true"] { border-color: #d92d20 !important; box-shadow: 0 0 0 4px rgba(217, 45, 32, .1) !important; }
.err { display: none; font-size: 13px; font-weight: 600; color: #b42318; }
.bad .err { display: block; }

.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(11, 31, 58, .14); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { border-color: rgba(37, 99, 235, .45); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(37, 99, 235, .05); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.choice input, .check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.choice b { display: block; font-weight: 700; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.reveal-field[hidden] { display: none; }

.checks { display: grid; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check.bad { color: #b42318; }
.rgpd { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.rgpd summary { cursor: pointer; font-weight: 600; color: var(--accent); width: fit-content; }
.rgpd dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 10px; }
.rgpd dt { font-weight: 700; color: var(--fg); }
.rgpd p { margin-top: 8px; }
.rgpd a { color: var(--accent); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit { width: 100%; margin-top: 26px; font-size: 17px; padding: 18px 28px; border: 0; cursor: pointer; }
.submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-alert { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fef3f2; color: #b42318; font-size: 14px; line-height: 1.5; }
.form-alert.on { display: block; }
.form-alert a { font-weight: 700; text-decoration: underline; }
.alt { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.alt a { color: var(--accent); font-weight: 600; }

/* Enviado */
.done { text-align: center; padding: clamp(24px, 5vw, 48px) 8px; }
.done:focus { outline: none; }
.done-ico { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 99, 235, .1); color: var(--accent); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-ico svg { width: 40px; height: 40px; }
.done h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.done p { color: var(--muted); line-height: 1.65; max-width: 44ch; margin: 14px auto 28px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Entrada suave */
.pitch > *, .form-card { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.pitch > :nth-child(2) { animation-delay: .06s; } .pitch > :nth-child(3) { animation-delay: .12s; }
.pitch > :nth-child(4) { animation-delay: .18s; } .pitch > :nth-child(5) { animation-delay: .24s; }
.form-card { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; }
  .pitch { position: static; }
  .demo { display: none; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .gets { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pitch > *, .form-card, .done-ico { animation: none; }
}
