/* Carcasa v2 sobre las páginas de base_home.html (vista previa ?diseno=nuevo, 29/11/2026).
   El menú y el pie del v2 van dentro de un .v2; aquí se recolorea la página de siempre
   con la paleta nueva (morado #280F62, violeta #5318EB, lima #C4EE87, lavanda #C6A5FF). */
:root {
  --primary: #5318EB;
  --primary-dark: #280F62;
  --nb-primary: #5318EB;
}
body.is-v2-shell { background: #fff; font-family: 'Figtree', system-ui, sans-serif; }
body.is-v2-shell :where(h1, h2, h3) { font-family: 'Outfit', 'Figtree', system-ui, sans-serif; letter-spacing: -.025em; }
.v2-shell-nav { margin: 0; background: transparent; }
.v2-shell-foot { margin: 0; padding-top: 2rem; }
/* El menú v2 es fijo y transparente arriba: sobre páginas claras va siempre sólido */
body.is-v2-shell .v2-nav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }

/* ---------- Portadas de recursos: los tonos azules pasan a la gama morada ---------- */
body.is-v2-shell .nb-tone--azul { --nb-cover-from: #7b4df5; --nb-cover-to: #5318eb; }
body.is-v2-shell .nb-tone--cielo { --nb-cover-from: #a78bfa; --nb-cover-to: #6d28d9; }
body.is-v2-shell .nb-tone--indigo { --nb-cover-from: #8b5cf6; --nb-cover-to: #4c1d95; }
body.is-v2-shell .nb-tone--marino { --nb-cover-from: #3b1a8f; --nb-cover-to: #1a0845; }
body.is-v2-shell .nb-tone--cian { --nb-cover-from: #9f7aea; --nb-cover-to: #5b21b6; }
body.is-v2-shell .nb-tone--real { --nb-cover-from: #5318eb; --nb-cover-to: #280f62; }
body.is-v2-shell .nb-tone--pizarra { --nb-cover-from: #6b5b8a; --nb-cover-to: #24133f; }

/* ---------- Página de recursos (/recursos/) ---------- */
body.is-v2-shell .rh-hero { position: relative; padding: 9.5rem 1.25rem 4.5rem; border-radius: 0 0 48px 48px; background: radial-gradient(120% 90% at 15% 100%, rgba(83, 24, 235, .95), rgba(83, 24, 235, 0) 60%), radial-gradient(60% 60% at 85% 10%, rgba(198, 165, 255, .35), transparent 70%), #280f62; }
body.is-v2-shell .rh-eyebrow { color: #c6a5ff; font-family: 'Space Mono', monospace; font-weight: 400; }
body.is-v2-shell .rh-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
body.is-v2-shell .rh-hero p { color: rgba(255, 255, 255, .8); font-size: 1.12rem; }
body.is-v2-shell .rh-groups { padding-top: 3rem; }
body.is-v2-shell .rh-tab { border-radius: 16px; box-shadow: 0 0 0 1px #ebe5f5; }
body.is-v2-shell .rh-tab:hover { box-shadow: 0 0 0 1px #d9cff0, 0 12px 26px -14px rgba(40, 15, 98, .35); color: #0c021c; }
body.is-v2-shell .rh-tab.is-active { border-color: #5318eb; color: #5318eb; background: #f5f1fc; }
body.is-v2-shell .rh-tab.is-active i { color: #5318eb; }
body.is-v2-shell .rh-chip-filter { background: #f5f1fc; color: #24133f; }
body.is-v2-shell .rh-chip-filter:hover { background: #ece4fb; }
body.is-v2-shell .rh-chip-filter.is-active { background: #5318eb; color: #fff; }
body.is-v2-shell .rh-chip-filter.is-active .rh-chip-count { color: #5318eb; }
body.is-v2-shell .rh-faq-item, body.is-v2-shell .rh-audience-list li, body.is-v2-shell .rh-steps > * { border-color: #ebe5f5; }
body.is-v2-shell .rh-step-num { background: #c4ee87; color: #0c021c; }

/* «Para quién son estos recursos»: banda morada redondeada con las tres situaciones en tarjetas */
body.is-v2-shell .rh-audience { margin: 1rem 16px 4rem; padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-radius: 48px; background: radial-gradient(70% 90% at 100% 0%, rgba(83, 24, 235, .7), transparent 65%), radial-gradient(50% 60% at 0% 100%, rgba(198, 165, 255, .22), transparent 70%), #280f62; color: #fff; }
body.is-v2-shell .rh-audience .rh-split { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); }
body.is-v2-shell .rh-audience .rh-split-text { max-width: 760px; margin: 0 auto; text-align: center; }
body.is-v2-shell .rh-audience .rh-split-text h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
body.is-v2-shell .rh-audience .rh-split-text p { color: rgba(255, 255, 255, .78); }
body.is-v2-shell .rh-audience-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; }
body.is-v2-shell .rh-audience-list li { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 28px 26px 26px; border: 0; border-radius: 28px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .45s cubic-bezier(.16, 1, .3, 1), background .3s, box-shadow .3s; }
body.is-v2-shell .rh-audience-list li:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(198, 165, 255, .45), 0 30px 60px -30px rgba(0, 0, 0, .6); }
body.is-v2-shell .rh-audience-list li > div { display: flex; flex-direction: column; flex: 1; }
body.is-v2-shell .rh-audience-icon { width: 52px; height: 52px; border-radius: 16px; background: #c4ee87; color: #280f62; font-size: 1.45rem; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
body.is-v2-shell .rh-audience-list li:hover .rh-audience-icon { transform: rotate(-8deg) scale(1.06); }
body.is-v2-shell .rh-audience-list h3 { margin-bottom: .55rem; color: #fff; font-family: 'Outfit', 'Figtree', sans-serif; font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
body.is-v2-shell .rh-audience-list p { color: rgba(255, 255, 255, .74); font-size: .98rem; line-height: 1.6; }
body.is-v2-shell .rh-audience-link { align-self: flex-start; margin-top: auto; padding: .6rem 1.05rem; border-radius: 999px; background: #fff; color: #280f62; font-weight: 600; font-size: .92rem; transition: background .25s, color .25s; }
body.is-v2-shell .rh-audience-list li > div > p { margin-bottom: 1.3rem; }
body.is-v2-shell .rh-audience-link:hover { background: #c4ee87; color: #0c021c; text-decoration: none; }
body.is-v2-shell .rh-audience-link i { transition: transform .3s; }
body.is-v2-shell .rh-audience-link:hover i { transform: translateX(3px); }
@media (max-width: 900px) { body.is-v2-shell .rh-audience-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { body.is-v2-shell .rh-audience { margin: .5rem 8px 3rem; border-radius: 32px; } body.is-v2-shell .rh-audience-list li { padding: 24px 20px; } }
@media (max-width: 760px) { body.is-v2-shell .rh-hero { border-radius: 0 0 28px 28px; padding: 7.5rem 1rem 3rem; } }

/* ---------- Bloque «Recursos gratuitos» de las páginas de siempre (contacto, planes…) ---------- */
body.is-v2-shell .nb-rec-kicker { color: #5318eb; font-family: 'Space Mono', monospace; font-weight: 400; }
body.is-v2-shell .nb-rec-list a > i:first-child, body.is-v2-shell .nb-rec-all a, body.is-v2-shell .nb-rec-list a:hover strong, body.is-v2-shell .nb-rec-list a:hover .nb-rec-arrow { color: #5318eb; }

/* El blog propio (/blog/) va como lo configuraría cualquier cuenta: sin estilos a mano,
   solo con los colores de su paleta (nuestro_blog._v2_palette). */

/* ---------- Solicitud de partner (/partners/apply) ---------- */
body.is-v2-shell .apply-hero { padding: 9.5rem 1.25rem 4rem; border-radius: 0 0 48px 48px; background: radial-gradient(120% 90% at 15% 100%, rgba(83, 24, 235, .95), rgba(83, 24, 235, 0) 60%), radial-gradient(60% 60% at 85% 10%, rgba(198, 165, 255, .35), transparent 70%), #280f62; }
body.is-v2-shell .apply-hero h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.035em; }
body.is-v2-shell .apply-form-section { background: #fff; }
body.is-v2-shell .form-card { border-radius: 28px; box-shadow: 0 0 0 1px #ebe5f5, 0 40px 80px -50px rgba(40, 15, 98, .45); }
body.is-v2-shell .form-section-title { border-bottom-color: #f5f1fc; font-family: 'Outfit', sans-serif; }
body.is-v2-shell .form-control, body.is-v2-shell .form-select { border-color: #ebe5f5; background-color: #faf8fe; }
body.is-v2-shell .form-control:focus, body.is-v2-shell .form-select:focus { border-color: #5318eb; box-shadow: 0 0 0 4px rgba(83, 24, 235, .12); background-color: #fff; }
body.is-v2-shell .btn-submit { background: #c4ee87; color: #0c021c; box-shadow: none; border-radius: 12px; }
body.is-v2-shell .btn-submit:hover { background: #b5e46f; color: #0c021c; }
body.is-v2-shell .apply-form-section a { color: #5318eb; }
@media (max-width: 760px) { body.is-v2-shell .apply-hero { border-radius: 0 0 28px 28px; padding-top: 7.5rem; } }

/* Artículo del blog de nextblog.es: la carcasa v2 tiene la barra fija de 60px; el artículo
   traía 160px de margen + 140px de relleno pensados para la cabecera antigua. Solo aquí. */
body.is-v2-shell .flask-embed .page-wrapper { margin-top: 0 !important; padding-top: 112px !important; }
@media (max-width: 576px) { body.is-v2-shell .flask-embed .page-wrapper { padding-top: 80px !important; } }
