/* ===================================================================
   PAROLAND — Sitio público
   =================================================================== */

:root {
    --p-pink: #ec4899;
    --p-blue: #3b82f6;
    --p-purple: #8b5cf6;
    --p-yellow: #fbbf24;
    --p-green: #22c55e;
    --p-bg: #fafbff;
    --p-text: #1e2530;
    --p-text-soft: #64748b;
    --p-border: #e4e8ed;
    --p-radius: 14px;
    --p-shadow: 0 4px 16px rgba(20, 30, 60, .06);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif; background: var(--p-bg); color: var(--p-text); -webkit-font-smoothing: antialiased; }
a { color: var(--p-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.p-nav { background: #fff; border-bottom: 1px solid var(--p-border); position: sticky; top: 0; z-index: 100; }
.p-nav-inner { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; }
.p-logo { display: inline-flex; align-items: center; text-decoration: none !important; flex-shrink: 0; }
.p-logo img { display: block; height: 38px; width: auto; }
.p-menu { display: flex; align-items: center; gap: 14px; }
.p-menu a { color: var(--p-text); font-weight: 500; font-size: 14px; }
.p-menu .btn-paroland { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff !important; padding: 8px 16px; border-radius: 22px; font-weight: 600; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.p-menu .btn-paroland:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(59,130,246,.25); }
.p-user-pill { display: inline-flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 4px 12px 4px 4px; border-radius: 22px; font-weight: 600; font-size: 13px; color: var(--p-text) !important; text-decoration: none !important; }
.p-user-pill .p-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--p-pink), var(--p-blue)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.p-user-pill .p-xp { color: var(--p-blue); }
.p-user-pill .p-streak { color: var(--p-pink); }

/* Hamburguesa (sólo móvil) */
.p-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; transition: background .15s; }
.p-nav-toggle:hover { background: #f1f5f9; }
.p-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--p-text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.p-nav-toggle.activo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.p-nav-toggle.activo span:nth-child(2) { opacity: 0; }
.p-nav-toggle.activo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.p-user-mobile { display: none; }

@media (max-width: 820px){
    .p-nav-inner { padding: 10px 16px; gap: 8px; }
    .p-logo img { height: 32px; }
    .p-nav-toggle { display: inline-flex; }
    .p-user-mobile { display: inline-flex; margin-left: auto; padding: 3px 10px 3px 3px; font-size: 12px; }
    .p-user-mobile .p-avatar { width: 26px; height: 26px; font-size: 12px; }
    .p-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--p-border);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 16px; box-shadow: 0 8px 18px rgba(20,30,60,.08);
        max-height: calc(100vh - 60px); overflow-y: auto;
        transform: translateY(-10px); opacity: 0; visibility: hidden;
        transition: transform .2s, opacity .2s, visibility .2s;
    }
    .p-menu.abierto { transform: translateY(0); opacity: 1; visibility: visible; }
    .p-menu > a { padding: 14px 4px; border-bottom: 1px solid var(--p-border); font-size: 16px; }
    .p-menu > a:last-child { border-bottom: 0; }
    .p-menu .btn-paroland { margin-top: 10px; text-align: center; padding: 12px 16px; }
    .p-menu .p-user-desktop { margin-top: 10px; justify-content: center; padding: 8px 16px 8px 6px; }
    .p-menu .p-user-desktop .p-avatar { width: 34px; height: 34px; }
}
@media (max-width: 400px){
    .p-logo img { height: 28px; }
    .p-user-mobile .p-xp, .p-user-mobile .p-streak { display: none; }
}

/* Layout */
.p-main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; min-height: calc(100vh - 200px); }

/* Hero clásico (mantengo por compatibilidad) */
.p-hero { text-align: center; padding: 50px 20px 40px; }
.p-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; background: linear-gradient(90deg, var(--p-pink), var(--p-blue), var(--p-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero .lead { font-size: 18px; color: var(--p-text-soft); margin: 0 auto 28px; max-width: 600px; }
.p-hero .badges { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.p-hero .badges span { background: #fff; border: 1px solid var(--p-border); padding: 6px 14px; border-radius: 18px; font-size: 13px; color: var(--p-text-soft); }

/* ===== HERO grande con imagen ===== */
.p-hero-grande { position: relative; margin: -28px -20px 50px; padding: 80px 24px 90px; overflow: hidden; border-radius: 0 0 28px 28px; isolation: isolate; }
.p-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.55) saturate(1.1); z-index: -2; }
.p-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(236,72,153,.45) 0%, rgba(59,130,246,.55) 60%, rgba(139,92,246,.5) 100%); z-index: -1; }
.p-hero-contenido { max-width: 900px; margin: 0 auto; text-align: center; color: #fff; }
.p-hero-badge { display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.25); }
.p-hero-grande h1 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.p-hero-grande h1 span { background: linear-gradient(90deg, #fbbf24, #fde047); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero-lead { font-size: 19px; max-width: 680px; margin: 0 auto 32px; opacity: .95; line-height: 1.5; }
.p-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.p-btn-primary { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff !important; padding: 12px 24px; border-radius: 24px; font-weight: 600; text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, box-shadow .15s; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; }
.p-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(236,72,153,.35); }
.p-btn-grande { padding: 16px 32px; font-size: 17px; border-radius: 28px; }
.p-btn-outline { background: rgba(255,255,255,.15); color: #fff !important; padding: 12px 22px; border-radius: 22px; border: 2px solid rgba(255,255,255,.4); font-weight: 600; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); transition: background .15s; }
.p-btn-outline:hover { background: rgba(255,255,255,.25); }
.p-seccion .p-btn-outline { background: #fff; color: var(--p-text) !important; border-color: var(--p-border); }
.p-seccion .p-btn-outline:hover { background: var(--p-bg); border-color: var(--p-pink); color: var(--p-pink) !important; }
.p-btn-blanco { background: #fff; color: var(--p-text) !important; padding: 12px 24px; border-radius: 24px; font-weight: 600; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; transition: transform .15s; }
.p-btn-blanco:hover { transform: translateY(-2px); }
.p-hero-stats { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.p-hero-stats > div { font-size: 14px; opacity: .9; }
.p-hero-stats strong { display: block; font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 4px; color: #fde047; }

/* ===== Secciones ===== */
.p-seccion { margin: 70px 0; }
.p-seccion-cabecera { margin-bottom: 36px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.p-seccion-cabecera.text-center { display: block; }
.p-seccion-cabecera h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.p-seccion-sub { color: var(--p-text-soft); font-size: 17px; max-width: 600px; margin: 0; line-height: 1.5; }
.p-seccion-cabecera.text-center .p-seccion-sub { margin: 0 auto; }

/* ===== Idiomas grid grande ===== */
.p-idiomas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.p-idioma-card-grande { display: block; background: #fff; border-radius: 18px; padding: 32px 28px; text-decoration: none !important; color: inherit !important; border: 2px solid var(--p-border); transition: all .2s; position: relative; overflow: hidden; }
.p-idioma-card-grande::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--c, var(--p-pink)); }
.p-idioma-card-grande:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(20,30,60,.1); border-color: var(--c, var(--p-pink)); }
.p-idioma-card-grande .bandera-grande { font-size: 70px; line-height: 1; margin-bottom: 14px; }
.p-idioma-card-grande h3 { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.p-idioma-card-grande .propio { color: var(--p-text-soft); font-size: 15px; margin-bottom: 16px; }
.p-idioma-card-grande .meta { display: flex; gap: 16px; font-size: 13px; color: var(--p-text-soft); margin-bottom: 18px; flex-wrap: wrap; }
.p-idioma-card-grande .meta i { color: var(--c, var(--p-pink)); }
.p-idioma-card-grande .cta-idi { display: inline-flex; align-items: center; gap: 6px; background: var(--c, var(--p-pink)); color: #fff; padding: 9px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; }

/* ===== Pasos "Cómo funciona" ===== */
.p-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.p-paso { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--p-border); transition: transform .2s, box-shadow .2s; position: relative; }
.p-paso:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,30,60,.08); }
.p-paso-img { height: 180px; background-size: cover; background-position: center; }
.p-paso-num { position: absolute; top: 16px; left: 16px; background: linear-gradient(135deg, var(--p-pink), var(--p-blue)); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.p-paso h3 { padding: 22px 24px 6px; font-size: 21px; font-weight: 700; margin: 0; }
.p-paso p { padding: 0 24px 24px; color: var(--p-text-soft); margin: 0; line-height: 1.55; font-size: 15px; }

/* ===== Claim grid ===== */
.p-seccion-claim { background: linear-gradient(135deg, #fdf2f8, #eff6ff); padding: 60px 32px; border-radius: 22px; margin-left: -8px; margin-right: -8px; }
.p-claim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; max-width: 1000px; margin: 0 auto; }
.p-claim-item { text-align: center; }
.p-claim-item span { font-size: 42px; display: block; margin-bottom: 10px; }
.p-claim-item h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.p-claim-item p { color: var(--p-text-soft); font-size: 14px; margin: 0; line-height: 1.45; }

/* ===== Testimonios ===== */
.p-seccion-testimonios { background: #fff; padding: 50px 32px; border-radius: 22px; border: 1px solid var(--p-border); }
.p-testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.p-testi-card { background: #fafbff; border: 1px solid var(--p-border); border-radius: 16px; padding: 26px 24px; position: relative; transition: transform .15s, box-shadow .15s; }
.p-testi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,30,60,.06); }
.p-testi-card::before { content: '"'; position: absolute; top: 8px; right: 18px; font-size: 70px; line-height: 1; color: var(--p-pink); opacity: .15; font-family: Georgia, serif; }
.p-testi-estrellas { color: #fbbf24; font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.p-testi-estrellas .off { color: #d1d5db; }
.p-testi-titulo { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.p-testi-texto { font-size: 14.5px; line-height: 1.55; color: var(--p-text); margin: 0 0 18px; font-style: italic; }
.p-testi-autor { display: flex; gap: 12px; align-items: center; }
.p-testi-avatar { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.p-testi-autor strong { font-size: 14px; display: block; }
.p-testi-meta { font-size: 12.5px; color: var(--p-text-soft); }

/* ===== Blog en home ===== */
.p-blog-home-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.p-blog-home-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--p-border); text-decoration: none !important; color: inherit !important; transition: transform .15s, box-shadow .15s; }
.p-blog-home-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,30,60,.1); }
.p-blog-home-card.destacado { grid-row: span 2; grid-column: 1; }
.p-blog-home-img { aspect-ratio: 16 / 9; min-height: 140px; flex-shrink: 0; }
.p-blog-home-card.destacado .p-blog-home-img { aspect-ratio: 16 / 10; }
.p-blog-home-body { padding: 18px 20px; flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.p-blog-home-card h3 { font-size: 17px; font-weight: 700; margin: 8px 0 4px; line-height: 1.3; }
.p-blog-home-card.destacado h3 { font-size: 24px; }
.p-blog-home-card p { font-size: 13.5px; color: var(--p-text-soft); margin: 0; line-height: 1.5; flex-grow: 1; }
.p-blog-home-card.destacado p { font-size: 15px; }
.p-blog-home-meta { font-size: 12px; color: var(--p-text-soft); margin-top: 10px; }

/* ===== CTA final ===== */
.p-cta-final { position: relative; margin: 80px -20px -60px; padding: 80px 24px 90px; text-align: center; background-size: cover; background-position: center; isolation: isolate; }
.p-cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,.75), rgba(76,29,149,.65)); z-index: -1; }
.p-cta-contenido { color: #fff; max-width: 700px; margin: 0 auto; }
.p-cta-final h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; color: #fff; }
.p-cta-final p { font-size: 18px; opacity: .9; margin-bottom: 28px; }
.p-cta-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 800px){
    .p-hero-grande { padding: 56px 20px 60px; border-radius: 0 0 18px 18px; }
    .p-hero-stats { gap: 22px; }
    .p-hero-stats strong { font-size: 22px; }
    .p-blog-home-grid { grid-template-columns: 1fr; }
    .p-blog-home-card.destacado { grid-row: auto; grid-column: auto; }
    .p-cta-final { margin: 60px -20px -60px; padding: 60px 20px 70px; }
    .p-seccion { margin: 50px 0; }
}

/* Idiomas / cursos selector */
.p-idiomas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 30px 0; }
.p-idioma-card { background: #fff; border: 1px solid var(--p-border); border-radius: var(--p-radius); padding: 24px; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; text-decoration: none !important; color: inherit !important; display: block; position: relative; overflow: hidden; }
.p-idioma-card:hover { transform: translateY(-4px); box-shadow: var(--p-shadow); border-color: var(--p-pink); }
.p-idioma-card .bandera { font-size: 50px; line-height: 1; }
.p-idioma-card h3 { font-size: 20px; font-weight: 700; margin: 12px 0 4px; }
.p-idioma-card .nombre-propio { color: var(--p-text-soft); font-size: 14px; }
.p-idioma-card .meta { margin-top: 12px; font-size: 13px; color: var(--p-text-soft); }
.p-idioma-card .accion { display: inline-block; margin-top: 14px; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff; padding: 8px 18px; border-radius: 18px; font-size: 13px; font-weight: 600; }

/* Niveles map (tipo Duolingo) */
.p-niveles-map { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.p-nivel-card { background: #fff; border-radius: var(--p-radius); padding: 18px 20px; border: 1px solid var(--p-border); display: flex; align-items: center; gap: 16px; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.p-nivel-card:hover { transform: translateX(4px); box-shadow: var(--p-shadow); }
.p-nivel-card .badge-cefr { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 18px; flex-shrink: 0; }
.p-nivel-card h4 { margin: 0 0 2px; font-size: 17px; font-weight: 700; }
.p-nivel-card .desc { font-size: 13.5px; color: var(--p-text-soft); margin: 0; }
.p-nivel-card .progreso { font-size: 12px; color: var(--p-text-soft); margin-top: 4px; }

/* Lecciones grid */
.p-lecciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.p-leccion-card { background: #fff; border-radius: var(--p-radius); padding: 18px; border: 1px solid var(--p-border); cursor: pointer; transition: transform .15s, box-shadow .15s; position: relative; }
.p-leccion-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow); }
.p-leccion-card.completada { background: linear-gradient(135deg, #f0fdf4, #fff); border-color: #bbf7d0; }
.p-leccion-card .icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--p-pink) 0%, var(--p-blue) 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 10px; }
.p-leccion-card h5 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.p-leccion-card .meta { font-size: 12px; color: var(--p-text-soft); }
.p-leccion-card .check { position: absolute; top: 12px; right: 14px; color: var(--p-green); font-size: 22px; display: none; }
.p-leccion-card.completada .check { display: block; }

/* Ejercicios (interfaz lección) */
.p-ej { max-width: 700px; margin: 30px auto; background: #fff; border-radius: var(--p-radius); padding: 28px; border: 1px solid var(--p-border); }
.p-ej-progreso { height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; margin-bottom: 24px; }
.p-ej-progreso > div { height: 100%; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); width: 0; transition: width .3s; }
.p-ej-pregunta { font-size: 22px; font-weight: 700; margin: 0 0 22px; line-height: 1.35; flex-grow: 1; }
.p-ej-pregunta-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.p-ej-pregunta-row .p-ej-pregunta { margin-bottom: 0; }
.p-ej-explica-btn { background: #fef3c7; border: 2px solid #fbbf24; color: #92400e; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; flex-shrink: 0; transition: transform .15s, background .15s; }
.p-ej-explica-btn:hover { background: #fde68a; transform: scale(1.08); }
.p-ej-explica-btn.activo { background: #fbbf24; color: #fff; }
.p-ej-explica { background: #fffbeb; border-left: 4px solid #fbbf24; border-radius: 0 10px 10px 0; padding: 14px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.55; color: #78350f; animation: explicaIn .25s ease; }
.p-ej-explica strong { color: #92400e; }
@keyframes explicaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.p-ej-opciones { display: grid; gap: 10px; }
.p-ej-opciones button { background: #fff; border: 2px solid var(--p-border); padding: 14px 18px; border-radius: 12px; font-size: 16px; cursor: pointer; text-align: left; font-weight: 500; transition: border-color .12s, transform .1s; font-family: inherit; }
.p-ej-opciones button:hover { border-color: var(--p-blue); }
.p-ej-opciones button.sel { border-color: var(--p-blue); background: #eff6ff; }
.p-ej-opciones button.ok { border-color: var(--p-green); background: #f0fdf4; }
.p-ej-opciones button.bad { border-color: #ef4444; background: #fef2f2; }
.p-ej-opciones button:disabled { cursor: not-allowed; }
.p-ej-feedback { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.p-ej-feedback.ok { background: #f0fdf4; color: #166534; display: block; }
.p-ej-feedback.bad { background: #fef2f2; color: #991b1b; display: block; }
.p-ej-acciones { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px; }
.p-ej-acciones .btn-paroland { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff !important; border: 0; padding: 10px 22px; border-radius: 22px; font-weight: 600; cursor: pointer; font-size: 14px; }
.p-ej-acciones .btn-paroland:disabled { opacity: .4; cursor: not-allowed; }

/* Botón escuchar (audio ElevenLabs) */
.p-audio-btn { background: #eff6ff; border: 1.5px solid #3b82f6; color: #1e40af; width: 30px; height: 30px; border-radius: 50%; padding: 0; font-size: 14px; cursor: pointer; transition: all .12s; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.p-audio-btn:hover { background: #3b82f6; color: #fff; transform: scale(1.1); }
.p-ej-opciones button { display: flex; align-items: center; gap: 8px; }
.p-ej-opciones button > span:first-child { flex-grow: 1; }
.p-match button { display: flex; align-items: center; gap: 8px; }
.p-match button > span:first-child { flex-grow: 1; text-align: left; }

/* Match pairs */
.p-match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-match-col { display: flex; flex-direction: column; gap: 8px; }
.p-match button { background: #fff; border: 2px solid var(--p-border); padding: 12px 14px; border-radius: 10px; font-size: 15px; cursor: pointer; font-family: inherit; font-weight: 500; transition: all .12s; }
.p-match button:hover:not(:disabled) { border-color: var(--p-blue); }
.p-match button.sel { border-color: var(--p-blue); background: #eff6ff; }
.p-match button.matched { opacity: .7; cursor: default; font-weight: 600; }
.p-match button.p-match-c0 { background: #fce7f3; border-color: #ec4899; color: #831843; }
.p-match button.p-match-c1 { background: #dbeafe; border-color: #3b82f6; color: #1e3a8a; }
.p-match button.p-match-c2 { background: #d1fae5; border-color: #22c55e; color: #14532d; }
.p-match button.p-match-c3 { background: #fef3c7; border-color: #fbbf24; color: #78350f; }
.p-match button.p-match-c4 { background: #ede9fe; border-color: #8b5cf6; color: #4c1d95; }
.p-match button.p-match-c5 { background: #ffe4e6; border-color: #f97316; color: #7c2d12; }

/* Conjugar verbo */
.p-conjugar { display: grid; gap: 10px; }
.p-conjugar-cabecera { background: #f8fafc; padding: 12px 16px; border-radius: 10px; font-size: 16px; margin-bottom: 6px; }
.p-conjugar-fila { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; }
.p-conjugar-fila label { font-weight: 600; color: var(--p-text); }
.p-conjugar-input { padding: 10px 14px; border: 2px solid var(--p-border); border-radius: 8px; font-size: 15px; font-family: inherit; }
.p-conjugar-input:focus { outline: none; border-color: var(--p-pink); box-shadow: 0 0 0 3px rgba(236,72,153,.12); }
@media (max-width: 600px){ .p-conjugar-fila { grid-template-columns: 100px 1fr; } }

/* Encuentra el error */
.p-error-frase { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; background: #f8fafc; border-radius: 10px; font-size: 17px; line-height: 2; }
.p-error-palabra { background: #fff; border: 1.5px solid var(--p-border); padding: 6px 12px; border-radius: 8px; font-size: 16px; cursor: pointer; font-family: inherit; transition: all .12s; }
.p-error-palabra:hover:not(:disabled) { border-color: var(--p-blue); background: #eff6ff; }
.p-error-palabra.sel { border-color: var(--p-pink); background: #fdf2f8; font-weight: 600; }

/* Lectura */
.p-lectura-texto { background: #f8fafc; padding: 18px 22px; border-radius: 12px; line-height: 1.65; font-size: 15.5px; color: #2d3748; margin-bottom: 22px; border-left: 4px solid var(--p-blue); }
.p-lectura-pregunta { margin-bottom: 16px; padding: 12px 16px; background: #fff; border: 1px solid var(--p-border); border-radius: 10px; }
.p-lectura-pregunta .pq-titulo { font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.p-lectura-pregunta .pq-opciones label { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 14.5px; }
.p-lectura-pregunta .pq-opciones input[type=radio] { margin-top: 4px; accent-color: var(--p-pink); }
.p-lectura-pregunta .pq-opciones label:hover { color: var(--p-pink); }

/* Construir frase */
.p-construir-bolsa { display: flex; flex-wrap: wrap; gap: 8px; }
.p-construir-bolsa button { background: #fff; border: 2px solid var(--p-border); padding: 10px 16px; border-radius: 10px; font-size: 15px; cursor: pointer; font-family: inherit; font-weight: 500; transition: all .12s; }
.p-construir-bolsa button:hover:not(:disabled) { border-color: var(--p-pink); }
.p-construir-bolsa button.usada { opacity: .25; cursor: not-allowed; }
.p-construir-pal { display: inline-block; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff; padding: 6px 14px; border-radius: 14px; font-weight: 600; margin-right: 4px; }

/* Introducción/ayuda de lección */
.p-leccion-intro { padding: 8px 4px; }
.p-leccion-intro-cabecera { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--p-border); }
.p-leccion-intro-cabecera .ico { font-size: 36px; line-height: 1; }
.p-leccion-intro-cabecera h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.p-leccion-intro-cont { font-size: 16px; line-height: 1.65; color: #2d3748; }
.p-leccion-intro-cont h2, .p-leccion-intro-cont h3 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; color: var(--p-pink); }
.p-leccion-intro-cont ul, .p-leccion-intro-cont ol { padding-left: 24px; margin: 8px 0 16px; }
.p-leccion-intro-cont li { margin-bottom: 6px; }
.p-leccion-intro-cont strong { color: var(--p-text); }
.p-leccion-intro-cont em { color: var(--p-blue); font-style: normal; font-weight: 600; }
.p-leccion-intro-cont code { background: #f1f5f9; padding: 2px 8px; border-radius: 4px; font-size: .9em; }
.p-leccion-intro-cont blockquote { border-left: 4px solid var(--p-pink); margin: 16px 0; padding: 4px 16px; color: var(--p-text-soft); font-style: italic; background: #fdf2f8; border-radius: 0 8px 8px 0; }
.p-leccion-intro-cont table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.p-leccion-intro-cont th, .p-leccion-intro-cont td { padding: 6px 12px; border: 1px solid var(--p-border); text-align: left; }
.p-leccion-intro-cont th { background: #f8fafc; font-weight: 700; }
.p-leccion-intro-cta { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--p-border); }

/* Estilo base de .btn-paroland (para usos sueltos sin contexto, ej. dentro de la intro) */
button.btn-paroland, a.btn-paroland.std { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff !important; border: 0; padding: 12px 26px; border-radius: 24px; font-weight: 600; cursor: pointer; font-size: 15px; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; transition: transform .15s, box-shadow .15s; font-family: inherit; }
button.btn-paroland:hover, a.btn-paroland.std:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(236,72,153,.3); }
button.btn-paroland:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.p-leccion-ayuda-btn { background: #fef3c7; border: 1.5px solid #fbbf24; color: #92400e; padding: 8px 14px; border-radius: 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.p-leccion-ayuda-btn:hover { background: #fde68a; }

/* Pantalla de fin de lección */
.p-leccion-fin { text-align: center; padding: 20px 10px; }
.p-leccion-fin-emoji { font-size: 70px; margin-bottom: 10px; }
.p-leccion-fin h2 { font-size: 28px; font-weight: 800; margin: 0 0 8px; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-leccion-fin-stat { font-size: 18px; color: var(--p-text); margin: 0 0 24px; }
.p-leccion-fin-rec { display: inline-block; background: #f0fdf4; color: #166534; padding: 8px 18px; border-radius: 20px; font-weight: 600; font-size: 14px; margin-bottom: 24px; }
.p-leccion-cta-registro { background: linear-gradient(135deg, #fdf2f8, #eff6ff); border-radius: 16px; padding: 28px 24px; margin: 16px 0 28px; text-align: center; border: 2px dashed rgba(236,72,153,.25); }
.p-leccion-cta-registro .cta-icon { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.p-leccion-cta-registro h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.p-leccion-cta-registro p { color: var(--p-text-soft); font-size: 14.5px; margin: 0 0 18px; line-height: 1.5; }
.p-leccion-cta-registro .cta-botones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-paroland-reg { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff !important; padding: 12px 24px; border-radius: 22px; font-weight: 600; text-decoration: none !important; transition: transform .15s, box-shadow .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-paroland-reg:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(236,72,153,.3); }
.btn-paroland-login { color: var(--p-pink) !important; padding: 12px 22px; border-radius: 22px; font-weight: 600; text-decoration: none !important; border: 2px solid rgba(236,72,153,.3); }
.btn-paroland-login:hover { background: rgba(236,72,153,.06); }
.p-leccion-fin-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.p-btn-outline-leccion { color: var(--p-text-soft) !important; padding: 12px 22px; border-radius: 22px; font-weight: 500; text-decoration: none !important; border: 1px solid var(--p-border); transition: background .15s; }
.p-btn-outline-leccion:hover { background: var(--p-bg); }

/* Login / Registro */
.p-auth { max-width: 420px; margin: 40px auto; background: #fff; border-radius: var(--p-radius); padding: 36px 32px; border: 1px solid var(--p-border); box-shadow: var(--p-shadow); }
.p-auth h2 { font-size: 24px; font-weight: 700; text-align: center; margin: 0 0 6px; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-auth .lead { text-align: center; color: var(--p-text-soft); font-size: 14px; margin-bottom: 24px; }
.p-auth label { font-size: 13px; font-weight: 600; color: var(--p-text-soft); margin-bottom: 4px; display: block; }
.p-auth .form-control { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--p-border); font-size: 14px; margin-bottom: 14px; }
.p-auth .form-control:focus { outline: none; border-color: var(--p-pink); box-shadow: 0 0 0 3px rgba(236,72,153,.12); }
.p-auth .btn-paroland { width: 100%; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff !important; border: 0; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.p-auth .alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--p-text-soft); }
.p-auth .alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.p-auth .alert.error { background: #fef2f2; color: #991b1b; }
.p-auth .alert.ok { background: #f0fdf4; color: #166534; }

/* Blog */
.p-blog-card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--p-border); border-radius: var(--p-radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.p-blog-card:hover { transform: translateY(-2px); box-shadow: var(--p-shadow); }
.p-blog-card.featured { grid-template-columns: 1fr; }
.p-blog-card .p-blog-img { display: block; width: 100%; aspect-ratio: 21 / 9; position: relative; }
.p-blog-card.featured .p-blog-img { aspect-ratio: 16 / 7; }
.p-blog-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.p-blog-card .p-blog-body { padding: 22px 26px 26px; }
.p-blog-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.p-blog-card h2 a { color: inherit; text-decoration: none; }
.p-blog-card h2 a:hover { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-blog-card.featured h2 { font-size: 28px; }
.p-blog-meta { display: flex; gap: 14px; font-size: 12px; color: var(--p-text-soft); margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.p-blog-cat { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.p-blog-sub { color: var(--p-text-soft); font-size: 15px; margin: 0 0 10px; font-weight: 500; }
.p-blog-resumen { color: var(--p-text-soft); margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; }
.p-blog-mas { font-weight: 600; color: var(--p-pink); font-size: 14px; }

/* Post individual */
.p-post { max-width: 760px; margin: 0 auto; }
.p-post-meta-top { margin-bottom: 12px; }
.p-post-titulo { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 8px; }
.p-post-sub { font-size: 19px; color: var(--p-text-soft); margin: 0 0 16px; line-height: 1.4; }
.p-post-meta { display: flex; gap: 18px; color: var(--p-text-soft); font-size: 13px; margin-bottom: 28px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--p-border); }
.p-post-img { margin: 24px 0; border-radius: var(--p-radius); overflow: hidden; }
.p-post-img img { width: 100%; height: auto; display: block; }
.p-post-img-placeholder { aspect-ratio: 16 / 8; border-radius: var(--p-radius); display: flex; align-items: center; justify-content: center; font-size: 100px; margin: 24px 0; }
.p-post-contenido { font-size: 17px; line-height: 1.75; color: #2d3748; }
.p-post-contenido h2 { font-size: 26px; font-weight: 700; margin: 36px 0 14px; letter-spacing: -.01em; }
.p-post-contenido h3 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; letter-spacing: -.01em; }
.p-post-contenido p { margin: 0 0 18px; }
.p-post-contenido ul, .p-post-contenido ol { margin: 0 0 20px; padding-left: 26px; }
.p-post-contenido li { margin-bottom: 8px; }
.p-post-contenido blockquote { border-left: 4px solid var(--p-pink); margin: 22px 0; padding: 6px 18px; color: var(--p-text-soft); font-style: italic; background: #fdf2f8; border-radius: 0 8px 8px 0; }
.p-post-contenido strong { color: var(--p-text); }
.p-post-contenido code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.p-post-contenido a { color: var(--p-pink); font-weight: 500; }
.p-post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0; padding-top: 20px; border-top: 1px solid var(--p-border); }
.p-post-tags span { background: #f1f5f9; color: var(--p-text-soft); padding: 4px 12px; border-radius: 14px; font-size: 12.5px; }

/* Paginación */
.p-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 8px; flex-wrap: wrap; }
.p-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.p-pagination li a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--p-border); background: #fff; color: var(--p-text); text-decoration: none; font-weight: 600; font-size: 14px; transition: all .15s; }
.p-pagination li a:hover { border-color: var(--p-pink); color: var(--p-pink); }
.p-pagination li.activa a { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff; border-color: transparent; }
.p-pagination li.elipsis { display: inline-flex; align-items: center; padding: 0 6px; color: var(--p-text-soft); }
.p-pagination .p-pag-prev, .p-pagination .p-pag-next { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--p-border); background: #fff; color: var(--p-text); text-decoration: none; font-weight: 600; font-size: 14px; transition: all .15s; }
.p-pagination .p-pag-prev:hover, .p-pagination .p-pag-next:hover { border-color: var(--p-pink); color: var(--p-pink); }
.p-pagination .disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 600px){
    .p-pagination .p-pag-prev, .p-pagination .p-pag-next { font-size: 12.5px; padding: 6px 10px; }
    .p-pagination li a { min-width: 32px; height: 32px; font-size: 13px; }
}

/* === Exámenes (página pública) === */
.p-examenes-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 8px; }
.p-examenes-hero .lead { font-size: 17px; color: var(--p-text-soft); }
.p-examenes-filtros { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.p-filtro-pill { padding: 6px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--p-border); color: var(--p-text); font-size: 13px; font-weight: 500; text-decoration: none !important; transition: all .15s; }
.p-filtro-pill:hover { border-color: var(--p-pink); color: var(--p-pink); }
.p-filtro-pill.activo { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff; border-color: transparent; }
.p-examenes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.p-examen-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--p-border); border-radius: 14px; padding: 20px; text-decoration: none !important; color: inherit !important; transition: all .18s; }
.p-examen-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,30,60,.08); border-color: var(--p-pink); }
.p-examen-bandera { font-size: 44px; line-height: 1; flex-shrink: 0; }
.p-examen-contenido { flex-grow: 1; }
.p-examen-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.p-examen-nivel { background: linear-gradient(90deg, #3b82f6, #8b5cf6); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.p-examen-nivel.general { background: linear-gradient(90deg, #ec4899, #f97316); }
.p-examen-idioma { color: var(--p-text-soft); font-size: 12.5px; }
.p-examen-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.p-examen-card p { color: var(--p-text-soft); font-size: 13.5px; margin: 0 0 12px; line-height: 1.5; }
.p-examen-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--p-text-soft); margin-bottom: 10px; }
.p-examen-stats i { color: var(--p-pink); margin-right: 3px; }
.p-examen-cta { color: var(--p-pink); font-weight: 600; font-size: 13px; }

/* Historial */
.p-historial { background: #fff; border-radius: 12px; border: 1px solid var(--p-border); padding: 6px 0; }
.p-historial-fila { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #f1f5f9; }
.p-historial-fila:last-child { border-bottom: 0; }
.p-historial-fila .bandera { font-size: 24px; }
.p-historial-fila .info { flex-grow: 1; }
.p-historial-fila .titulo { font-weight: 600; font-size: 14.5px; }
.p-historial-fila .meta { font-size: 12px; color: var(--p-text-soft); }
.p-historial-fila .resultado { text-align: right; }
.p-historial-fila .resultado strong { font-size: 22px; font-weight: 800; }
.p-historial-fila .resultado.aprobado strong { color: #22c55e; }
.p-historial-fila .resultado.medio strong { color: #f59e0b; }
.p-historial-fila .resultado.fallado strong { color: #ef4444; }

/* === Página individual de examen === */
.p-examen-intro { background: #fff; border: 1px solid var(--p-border); border-radius: 16px; padding: 32px; max-width: 720px; margin: 20px auto; text-align: center; }
.p-examen-bandera-grande { font-size: 60px; margin-bottom: 8px; }
.p-examen-intro h1 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.p-examen-intro .lead { font-size: 16px; color: var(--p-text-soft); margin-bottom: 24px; }
.p-examen-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.p-examen-info-grid > div { background: #f8fafc; border-radius: 10px; padding: 14px 8px; }
.p-examen-info-grid span { font-size: 26px; display: block; }
.p-examen-info-grid strong { display: block; font-size: 15px; color: var(--p-text); margin-top: 4px; }
.p-examen-info-grid small { font-size: 11.5px; color: var(--p-text-soft); }
.p-examen-aviso { background: #fef3c7; border-left: 4px solid #fbbf24; padding: 14px 18px; border-radius: 0 10px 10px 0; text-align: left; margin: 22px 0; font-size: 14px; }
.p-examen-aviso ul { margin: 6px 0 0; padding-left: 22px; }
.p-examen-aviso li { margin-bottom: 4px; color: #78350f; }
.p-examen-cta-arranque { margin-top: 18px; }
@media (max-width: 600px){ .p-examen-info-grid { grid-template-columns: repeat(2, 1fr); } }

/* === Modo examen (preguntas) === */
.p-examen-modo { max-width: 800px; margin: 0 auto; }
.p-examen-barra { position: sticky; top: 64px; z-index: 10; background: #fff; border: 1px solid var(--p-border); border-radius: 12px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 12px; }
.p-examen-timer { background: #eff6ff; color: #1e40af; padding: 6px 14px; border-radius: 18px; font-weight: 700; font-size: 14px; transition: all .3s; }
.p-examen-timer.alerta { background: #fef2f2; color: #991b1b; animation: pulseAlerta 1s infinite; }
@keyframes pulseAlerta { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.p-examen-progreso { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.p-examen-progreso > div { height: 100%; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); transition: width .25s; }
.p-examen-aviso-progreso { font-size: 12px; color: var(--p-text-soft); text-align: right; margin-bottom: 18px; }
.p-examen-pregunta { background: #fff; border: 1px solid var(--p-border); border-radius: 12px; padding: 18px 22px; margin-bottom: 14px; transition: border-color .15s; }
.p-examen-pregunta.contestada { border-color: #bbf7d0; background: #f0fdf4; }
.p-examen-pregunta-num { font-size: 12px; color: var(--p-text-soft); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.p-examen-nivel-tag { background: #eff6ff; color: #1e40af; padding: 1px 8px; border-radius: 8px; font-size: 11px; }
.p-examen-pregunta-texto { font-size: 16px; font-weight: 600; margin-bottom: 14px; line-height: 1.4; }
.p-examen-frase { font-size: 17px; font-weight: 600; margin-bottom: 10px; padding: 10px 14px; background: #f8fafc; border-radius: 8px; }
.p-examen-opciones { display: grid; gap: 6px; }
.p-examen-opciones label { display: flex; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--p-border); border-radius: 8px; cursor: pointer; font-size: 14.5px; transition: all .12s; align-items: flex-start; }
.p-examen-opciones label:hover { border-color: var(--p-blue); background: #eff6ff; }
.p-examen-opciones input[type=radio] { margin-top: 4px; accent-color: var(--p-pink); flex-shrink: 0; }
.p-examen-opciones input[type=radio]:checked + span { font-weight: 600; color: var(--p-pink); }
.p-examen-opciones label:has(input:checked) { border-color: var(--p-pink); background: #fdf2f8; }
.p-examen-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--p-border); border-radius: 8px; font-size: 15px; font-family: inherit; }
.p-examen-input:focus { outline: none; border-color: var(--p-pink); box-shadow: 0 0 0 3px rgba(236,72,153,.12); }
.p-examen-final { text-align: center; margin: 32px 0 20px; }

/* === Resultados === */
.p-examen-resultado { max-width: 720px; margin: 0 auto; }
.p-examen-resultado-header { background: #fff; border-radius: 16px; padding: 32px 28px; text-align: center; border: 2px solid var(--p-border); margin-bottom: 20px; }
.p-examen-resultado-header.aprobado { border-color: #22c55e; background: linear-gradient(135deg, #f0fdf4, #fff); }
.p-examen-resultado-header.medio { border-color: #f59e0b; background: linear-gradient(135deg, #fffbeb, #fff); }
.p-examen-resultado-header.fallado { border-color: #ef4444; background: linear-gradient(135deg, #fef2f2, #fff); }
.p-examen-resultado .emoji { font-size: 60px; }
.p-examen-puntuacion strong { font-size: 60px; font-weight: 800; display: block; line-height: 1; letter-spacing: -.03em; }
.aprobado .p-examen-puntuacion strong { color: #22c55e; }
.medio .p-examen-puntuacion strong { color: #f59e0b; }
.fallado .p-examen-puntuacion strong { color: #ef4444; }
.p-examen-puntuacion span { font-size: 14px; color: var(--p-text-soft); }
.p-examen-nivel-obtenido { margin-top: 14px; font-size: 16px; }
.p-examen-nivel-obtenido strong { color: var(--p-pink); font-size: 22px; }
.p-examen-nivel-obtenido.pendiente { background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.45); color: #92400e; padding: 12px 16px; border-radius: 10px; font-size: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
.p-examen-niveles { background: #fff; border: 1px solid var(--p-border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.p-examen-niveles h4 { font-size: 15px; margin: 0 0 12px; font-weight: 700; }
.p-nivel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.p-nivel-row .badge { background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; min-width: 38px; text-align: center; }
.p-nivel-row .bar { flex-grow: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.p-nivel-row .bar > div { height: 100%; background: linear-gradient(90deg, var(--p-pink), var(--p-blue)); transition: width .3s; }
.p-nivel-row .num { font-size: 12.5px; color: var(--p-text-soft); min-width: 50px; text-align: right; font-weight: 600; }
.p-examen-detalle summary { cursor: pointer; padding: 12px 16px; background: #f8fafc; border-radius: 8px; font-weight: 600; }
.p-examen-detalle summary:hover { background: #eef2f7; }
.p-detalle-fila { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.p-detalle-fila .d-num { font-weight: 600; min-width: 40px; }
.p-detalle-fila .d-cont { flex-grow: 1; font-size: 14px; }
.p-detalle-fila .d-preg { font-weight: 500; }
.p-detalle-fila .d-sol { font-size: 13px; color: #166534; margin-top: 4px; }
.p-detalle-fila.bad .d-sol { color: #991b1b; }

/* Footer */
.p-footer { background: #1e2530; color: #cbd5e1; margin-top: 60px; padding: 0; }
.p-footer .container { max-width: 1100px; padding: 40px 20px 20px; }
.p-footer-grid { display: grid; grid-template-columns: 1.5fr 2fr; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid #334155; }
.p-footer-brand img { display: block; width: 220px; height: auto; max-width: 100%; margin-bottom: 14px; image-rendering: -webkit-optimize-contrast; }
.p-footer-brand p { font-size: 14px; color: #94a3b8; margin: 0; line-height: 1.55; max-width: 280px; }
.p-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-footer-cols h6 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.p-footer-cols a { display: block; color: #cbd5e1; text-decoration: none; font-size: 13.5px; padding: 4px 0; transition: color .15s; }
.p-footer-cols a:hover { color: var(--p-pink); }
.p-footer-base { padding-top: 18px; font-size: 12.5px; color: #94a3b8; text-align: center; }
@media (max-width: 700px){
    .p-footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .p-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* Utilidades */
.p-card { background: #fff; border-radius: var(--p-radius); padding: 22px; border: 1px solid var(--p-border); }
.p-h-section { font-size: 22px; font-weight: 700; margin: 30px 0 14px; }
.p-skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e5e7eb 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: 8px; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
