/* Base compartida de las páginas de venta (inicio, diagnóstico, informe, planes, privacidad). */
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
    --ink: #0b0b12;
    --text: #2b2b36;
    --muted: #6b6b78;
    --line: #ececf2;
    --soft: #f7f6fb;
    --navy: #0a0d1f;
    --violet: #8b5cf6;
    --violet-ink: #5b3fd6;
    --grad: linear-gradient(180deg, #3b5bfd 0%, #8b5cf6 38%, #e0328a 72%, #f0423c 100%);
    --grad-d: linear-gradient(135deg, #3b5bfd 0%, #8b5cf6 45%, #e0328a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s; white-space: nowrap; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,11,18,.18); }
.pill:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.pill.grad { background: var(--grad-d); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.btn-line:hover { border-color: var(--ink); }

.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--violet); margin-bottom: 16px; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); background: #f3efff; padding: 6px 10px; border-radius: 999px; margin-bottom: 16px; }
.sec { padding: 110px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-head h2, .h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -1.4px; line-height: 1.06; }
.sec-head p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 16px; }

.frame { background: var(--grad); border-radius: 26px; padding: 10px 10px 30px; box-shadow: 0 40px 80px -30px rgba(139,92,246,.45); }
.frame-inner { background: #fff; border-radius: 18px; overflow: hidden; }

.dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.dark::after { content: ''; position: absolute; left: 50%; bottom: -200px; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(59,91,253,.35), transparent 65%); pointer-events: none; }
.dark .wrap { position: relative; z-index: 1; }
.dark .sec-head p { color: rgba(255,255,255,.6); }

/* Tarjetas de oferta */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.offer { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .2s, box-shadow .2s; scroll-margin-top: 90px; }
.offer:hover { border-color: #d9ccff; box-shadow: 0 24px 50px -30px rgba(91,63,214,.35); }
.offer.featured { border: 2px solid var(--violet); }
.offer.target { box-shadow: 0 0 0 4px #e9e1ff; border-color: var(--violet); }
.offer small { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--violet); }
.offer h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin: 8px 0 8px; }
.offer .desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price b { font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.price span { font-size: 13px; color: var(--muted); }
.price-extra { font-size: 12px; color: var(--muted); min-height: 18px; }
.offer ul { list-style: none; margin: 16px 0 22px; }
.offer li { font-size: 13px; line-height: 1.5; color: var(--text); padding-left: 18px; position: relative; margin-bottom: 7px; }
.offer li::before { content: ''; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.offer .note { font-size: 11px; color: var(--muted); margin: -10px 0 16px; line-height: 1.5; }
.offer .pill, .offer .btn-line { margin-top: auto; width: 100%; }

/* Formularios */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 15px; color: var(--ink); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px #efe9ff; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #e0328a; }
/* En pantallas táctiles, 16 px como mínimo: con menos, el iPhone hace zoom al tocar el campo. */
@media (pointer: coarse) { .field input, .field select, .field textarea { font-size: 16px; } }
.field small { display: block; font-size: 12px; color: var(--muted); margin: -2px 0 6px; line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--violet); flex-shrink: 0; }
.check a { color: var(--violet-ink); font-weight: 600; }
.check.bad { color: #c2185b; }
.form-msg { font-size: 13px; color: #c2185b; min-height: 18px; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10,13,31,.55); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 30px 26px 26px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.4); animation: pop .25s ease; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted); }
.modal h3 { font-size: 20px; letter-spacing: -.4px; margin-bottom: 6px; padding-right: 30px; }
.modal p.sub { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 26px 24px; font-size: 12px; color: var(--muted); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 22px; }
footer.site a:hover { color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 860px) {
    .sec { padding: 80px 0; }
    .sec-head { margin-bottom: 40px; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    footer.site .wrap { flex-direction: column; }
}
