/* Sistema visual 2026 — pantallas fuera de la lección.
   Fondo azul marino / índigo oscuro con rejilla sutil, tarjeta central
   clara y redondeada con sombra profunda, tipografía grande y amigable.
   Nada de cabeceras con degradado morado a verde: la cabecera es azul
   marino sólido y el morado solo aparece en el botón principal y en
   detalles pequeños. El aviso de pantalla pequeña es una píldora
   discreta, nunca una caja grande. */

:root {
    --navy: #1e1b4b;
    --navy-2: #312e81;
    --ink: #1e1b4b;
    --body: #312e81;
    --muted: #64748b;
    --line: #e2e8f0;
    --violet: #6c5ce7;
    --violet-dark: #4834d4;
    --violet-deep: #3d2f9e;
    --teal: #00b894;
    --teal-dark: #00705a;
    --amber: #fdcb6e;
    --amber-dark: #b97a14;
    --red: #d63031;
    --red-dark: #a71e1e;
}

* { box-sizing: border-box; }

body.pp-body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        radial-gradient(60rem 30rem at 85% -10%, rgba(108, 92, 231, 0.45), transparent 60%),
        radial-gradient(50rem 26rem at -10% 20%, rgba(0, 184, 148, 0.18), transparent 60%);
    background-size: 44px 44px, 44px 44px, auto, auto;
}

/* Cabecera: azul marino sólido, sin degradados llamativos. */
.pp-header {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.1rem 1.25rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.pp-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}
.pp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background: var(--violet);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 0 var(--violet-deep), 0 10px 18px rgba(0, 0, 0, 0.3);
}
.pp-lang {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}
.pp-lang span { color: rgba(255, 255, 255, 0.75); padding: 0.35rem 0.7rem; border-radius: 999px; }
.pp-lang span.active { background: #fff; color: var(--navy); }
.pp-lang span.soon { opacity: 0.65; }

.pp-main { max-width: 46rem; margin: 0 auto; padding: 0.75rem 1.25rem 2.5rem; }
/* Títulos y entradillas fuera de tarjeta (p. ej. Dispositivos) van sobre
   el fondo azul marino: si quedaran en tinta oscura serían invisibles. */
.pp-main > h1 { color: #ffffff; }
.pp-main > p { color: rgba(255, 255, 255, 0.85); }
/* Opciones de radio: las dos exactamente iguales, alineadas a la
   izquierda, sin márgenes distintos que desplacen una respecto a otra. */
.radio-option { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0; }
.radio-option input[type="radio"] { width: auto; margin: 0; flex: none; }

/* Pasos de progreso, como en un registro guiado. */
.steps { max-width: 34rem; margin: 0.5rem auto 1.25rem; color: #fff; }
.steps-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.steps-head span:last-child { color: rgba(255, 255, 255, 0.8); font-weight: 600; }
.steps-bar {
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}
.steps-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 0 2px rgba(253, 203, 110, 0.25);
}

/* Tarjeta central clara. */
.card {
    background: #fff;
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    margin: 1rem 0;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 4px 0 rgba(255, 255, 255, 0.08);
}
.card h1 {
    font-size: clamp(2rem, 7vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    color: var(--navy);
}
.card h2 { font-size: 1.5rem; margin: 1.75rem 0 0.5rem; color: var(--navy); }
.card h3 { font-size: 1.2rem; margin: 1.25rem 0 0.4rem; color: var(--navy); }
.card p, .card li { font-size: 1.12rem; line-height: 1.55; color: var(--body); }
.card p.lead { font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.card a { color: var(--violet); font-weight: 700; }

/* Panel de portada con personalidad: ilustración hecha solo con CSS
   (fichas de números y letras que flotan), sin imágenes copiadas. */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    padding: clamp(1.75rem, 6vw, 2.75rem);
    margin: 1rem 0;
    color: #fff;
    background: linear-gradient(160deg, #312e81, #1e1b4b 65%);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
.hero p { font-size: 1.25rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 34rem; }
.hero-art {
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 0 0.25rem;
    flex-wrap: wrap;
}
.hero-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    height: 3.4rem;
    padding: 0 0.9rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
    background: #fff;
    box-shadow: 0 5px 0 rgba(255, 255, 255, 0.35), 0 12px 20px rgba(0, 0, 0, 0.25);
    transform: rotate(-3deg);
}
.hero-tile:nth-child(2) { background: var(--amber); transform: rotate(3deg) translateY(0.35rem); }
.hero-tile:nth-child(3) { background: #a5f3dc; transform: rotate(-2deg); }
.hero-tile:nth-child(4) { background: #ddd6fe; transform: rotate(2deg) translateY(0.3rem); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.hero-chips span {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Botón principal morado con relieve 3D: se hunde al pulsar. */
.btn-3d {
    display: inline-block;
    background: linear-gradient(180deg, var(--violet), #5746c9);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.9rem;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 0 var(--violet-deep), 0 14px 22px rgba(0, 0, 0, 0.25);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
.btn-3d:hover { filter: brightness(1.07); }
.btn-3d:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--violet-deep), 0 4px 8px rgba(0, 0, 0, 0.25); }
.btn-3d.secondary { background: linear-gradient(180deg, var(--teal), #00997a); box-shadow: 0 6px 0 var(--teal-dark), 0 14px 22px rgba(0, 0, 0, 0.25); }
.btn-3d.secondary:active { box-shadow: 0 1px 0 var(--teal-dark), 0 4px 8px rgba(0, 0, 0, 0.25); }
.btn-3d.accent { background: linear-gradient(180deg, var(--amber), #f0a93e); color: var(--navy) !important; box-shadow: 0 6px 0 var(--amber-dark), 0 14px 22px rgba(0, 0, 0, 0.25); }
.btn-3d.accent:active { box-shadow: 0 1px 0 var(--amber-dark), 0 4px 8px rgba(0, 0, 0, 0.25); }
.btn-3d.danger { background: linear-gradient(180deg, #ff7675, var(--red)); box-shadow: 0 6px 0 var(--red-dark), 0 14px 22px rgba(0, 0, 0, 0.25); }
.btn-3d.danger:active { box-shadow: 0 1px 0 var(--red-dark), 0 4px 8px rgba(0, 0, 0, 0.25); }
.btn-3d.wide { width: 100%; font-size: 1.3rem; padding: 1.05rem 1.9rem; }

/* Formularios con jerarquía y aire. */
.field-group {
    border: none;
    border-top: 2px solid #f1f5f9;
    padding: 1.25rem 0 0.25rem;
    margin: 1.5rem 0 0;
}
.field-group legend {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--navy);
    padding: 0 0.6rem 0 0;
}
label { display: block; margin: 1rem 0 0.35rem; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
input, select {
    width: 100%;
    padding: 0.95rem 1.1rem;
    font-size: 1.12rem;
    border: 2px solid var(--line);
    border-radius: 1rem;
    background: #f8fafc;
    color: var(--ink);
}
input:focus, select:focus {
    outline: none;
    border-color: var(--violet);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.18);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--violet); }
/* Teléfono con prefijo visible delante (+34, España). */
.phone-field { display: flex; align-items: stretch; gap: 0; }
.phone-field input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0.95rem 1rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--navy);
    background: #eef2ff;
    border: 2px solid var(--line);
    border-right: none;
    border-radius: 1rem 0 0 1rem;
}
.field-hint { font-size: 0.98rem; line-height: 1.45; color: var(--muted); margin: 0.4rem 0 0; }
.error { color: var(--red); font-weight: 700; }
.notice {
    background: #fffbeb;
    border: 2px solid var(--amber);
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 1.05rem;
    line-height: 1.5;
}
.trust {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
    margin: 1rem 0 0;
}

/* Baldosas de niños y paneles. */
.tile {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 1.4rem;
    padding: 1.1rem 1.35rem;
    margin: 0.75rem 0;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    box-shadow: 0 5px 0 #cbd5e1, 0 12px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.tile:active { transform: translateY(4px); box-shadow: 0 1px 0 #cbd5e1, 0 4px 8px rgba(0, 0, 0, 0.12); }
.tile.selected { background: #fef3c7; border-color: var(--amber); }
.tile span { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* Precios: tarjetas, no una tabla pelada. */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.price-card {
    background: #f8f7ff;
    border: 2px solid var(--line);
    border-radius: 1.4rem;
    padding: 1.35rem;
    box-shadow: 0 5px 0 #ddd6fe;
}
.price-card.featured { background: #fffbeb; border-color: var(--amber); box-shadow: 0 5px 0 var(--amber); }
.price-card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.price-amount { font-size: 2.1rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.price-amount small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-card p { font-size: 1rem; margin: 0.5rem 0 0; }
.price-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.price-row strong { color: var(--navy); }

/* Aviso de pantalla pequeña: píldora discreta, solo en pantallas
   pequeñas, nunca una caja grande. En escritorio no se muestra. */
.small-screen-notice { display: none; }
@media (max-width: 700px) {
    .small-screen-notice {
        display: block;
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        padding: 0.5rem 1rem;
        margin: 1.25rem auto 0;
        max-width: 30rem;
    }
    .pp-brand { font-size: 1.25rem; }
    .pp-lang span.soon { display: none; }
}

.pp-footer { text-align: center; color: rgba(255, 255, 255, 0.7); padding: 0.5rem 1.25rem 2rem; font-size: 0.9rem; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 0.6rem 0.25rem; border-bottom: 1px solid #eee; vertical-align: top; }
code.token-box { display: block; word-break: break-all; background: #f1f5f9; border-radius: 0.9rem; padding: 1rem; margin: 0.75rem 0; }
.qr-box { text-align: center; }
.qr-box img { background: #fff; padding: 0.75rem; border-radius: 1rem; max-width: 100%; height: auto; }
fieldset { border: 2px solid var(--line); border-radius: 1rem; padding: 0.5rem 1.1rem 1rem; margin: 1rem 0; }
fieldset legend { font-weight: 800; color: var(--navy); padding: 0 0.5rem; }
