/* BrainNova components — mínimo, sin dependencias */
:root{--bn-radius:8px;--bn-radius-md:16px;--bn-t:180ms ease}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
p,li{max-width:68ch}
.has-text-align-center p,.has-text-align-center{margin-inline:auto}
:focus-visible{outline:3px solid var(--wp--preset--color--accent);outline-offset:3px}
.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:16px;top:16px;z-index:999;background:#fff;padding:8px 16px}

/* Eyebrow */
.bn-eyebrow{font-size:var(--wp--preset--font-size--small);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--accent-text);margin-bottom:.5rem}

/* Header */
.bn-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--wp--preset--color--border)}
.bn-header .wp-block-site-logo img{max-height:40px;width:auto}

/* Cards */
.bn-card{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);padding:var(--wp--preset--spacing--40);height:100%;transition:border-color var(--bn-t),box-shadow var(--bn-t)}
.bn-card:hover{border-color:var(--wp--preset--color--primary);box-shadow:0 8px 24px rgba(21,18,28,.08)}
.bn-card h3{font-size:1.25rem;margin-top:.5rem}
.bn-card .bn-card__link a{font-weight:600;text-decoration:none}
.bn-card .bn-card__link a::after{content:" →"}
.bn-card--link{position:relative}
.bn-icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--wp--preset--color--primary) 10%,#fff);color:var(--wp--preset--color--primary)}
.bn-icon svg{width:22px;height:22px}

/* Problem list */
.bn-problems{list-style:none;padding:0;display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.bn-problems li{padding:1rem 1.25rem;border-left:3px solid var(--wp--preset--color--accent);background:var(--wp--preset--color--surface);border-radius:0 var(--bn-radius) var(--bn-radius) 0}

/* System diagram */
.bn-system{display:grid;gap:.75rem}
.bn-system__steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(5,1fr);gap:.75rem;counter-reset:s}
.bn-system__steps li{counter-increment:s;position:relative;background:#fff;border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);padding:1.25rem 1rem;max-width:none}
.bn-system__steps li::before{content:"0" counter(s);display:block;font-size:.8rem;font-weight:700;color:var(--wp--preset--color--accent-text);margin-bottom:.25rem}
.bn-system__steps li:not(:last-child)::after{content:"";position:absolute;right:-.6rem;top:50%;width:.5rem;height:.5rem;border-top:2px solid var(--wp--preset--color--primary);border-right:2px solid var(--wp--preset--color--primary);transform:translateY(-50%) rotate(45deg)}
.bn-system__steps strong{display:block;font-size:1.05rem}
.bn-system__steps span{font-size:.9rem;color:var(--wp--preset--color--ink-muted)}
.bn-system__layer{border-radius:var(--bn-radius-md);padding:1rem 1.25rem;background:var(--wp--preset--color--primary);color:#fff;text-align:center;font-weight:600}
.bn-system__layer span{font-weight:400;opacity:.85}
@media (max-width:900px){.bn-system__steps{grid-template-columns:1fr}.bn-system__steps li:not(:last-child)::after{right:auto;left:50%;top:auto;bottom:-.6rem;transform:translateX(-50%) rotate(135deg)}}

/* Pillars */
.bn-pillars{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;counter-reset:p}
.bn-pillars li{counter-increment:p;max-width:none;border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);padding:1.5rem;background:#fff}
.bn-pillars li::before{content:counter(p);display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:var(--wp--preset--color--primary);color:#fff;font-weight:700;margin-bottom:.75rem}
.bn-placeholder{outline:2px dashed var(--wp--preset--color--accent);outline-offset:4px}
.bn-pillars h3{font-size:1.25rem;margin:.25rem 0 .5rem}.bn-pillars p{margin:0;color:var(--wp--preset--color--ink-muted)}
.bn-pillar__tag{font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--accent-text)}

/* Process */
.bn-process{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.5rem;counter-reset:c}
.bn-process li{counter-increment:c;flex:1 1 150px;max-width:none;padding:1rem;border-top:3px solid var(--wp--preset--color--primary);background:#fff;border-radius:0 0 var(--bn-radius) var(--bn-radius)}
.bn-process li::before{content:counter(c) ". ";font-weight:700;color:var(--wp--preset--color--primary)}

/* Draft (no publicar) */
.bn-draft{display:none!important}
.logged-in .bn-draft{display:block!important;outline:2px dashed #B42318;position:relative}
.logged-in .bn-draft::before{content:"DRAFT — no visible al público hasta tener datos autorizados";display:block;font:600 .8rem/1 Inter,sans-serif;color:#B42318;margin-bottom:.75rem}

/* Notice */
.bn-notice{font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--ink-muted);border-left:3px solid var(--wp--preset--color--border);padding-left:1rem}

/* FAQ */
.bn-faq details{border-bottom:1px solid var(--wp--preset--color--border);padding:1rem 0}
.bn-faq summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.bn-faq summary::after{content:"+";font-weight:400;font-size:1.25rem;line-height:1}
.bn-faq details[open] summary::after{content:"–"}
.bn-faq summary::-webkit-details-marker{display:none}

/* Diagnostic form */
.bn-form{background:#fff;border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);padding:clamp(1.25rem,4vw,2.5rem);max-width:720px;margin-inline:auto}
.bn-form__progress{height:4px;background:var(--wp--preset--color--border);border-radius:4px;overflow:hidden;margin-bottom:1.5rem}
.bn-form__progress span{display:block;height:100%;width:25%;background:var(--wp--preset--color--primary);transition:width var(--bn-t)}
.bn-form fieldset{border:0;padding:0;margin:0}
.bn-form fieldset[hidden]{display:none}
.bn-form legend{font-size:1.375rem;font-weight:650;margin-bottom:1rem}
.bn-form label{display:block;font-weight:500;margin:1rem 0 .375rem}
.bn-form input[type=text],.bn-form input[type=email],.bn-form input[type=tel],.bn-form select,.bn-form textarea{width:100%;min-height:48px;padding:.75rem 1rem;border:1px solid #CFC9D9;border-radius:var(--bn-radius);font:inherit;background:#fff;color:inherit}
.bn-form textarea{min-height:110px}
.bn-form input:focus,.bn-form select:focus,.bn-form textarea:focus{outline:3px solid color-mix(in srgb,var(--wp--preset--color--primary) 35%,transparent);border-color:var(--wp--preset--color--primary)}
.bn-form .bn-choices{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.bn-form .bn-choices label{margin:0;display:flex;gap:.625rem;align-items:center;min-height:48px;padding:.75rem 1rem;border:1px solid #CFC9D9;border-radius:var(--bn-radius);cursor:pointer;font-weight:400}
.bn-form .bn-choices label:has(input:checked){border-color:var(--wp--preset--color--primary);background:color-mix(in srgb,var(--wp--preset--color--primary) 6%,#fff)}
.bn-form .bn-consent{display:flex;gap:.625rem;align-items:flex-start;font-weight:400;font-size:.95rem}
.bn-form .bn-consent input{margin-top:.3rem}
.bn-form__nav{display:flex;justify-content:space-between;gap:1rem;margin-top:1.75rem}
.bn-form button{min-height:48px;padding:.75rem 1.5rem;border-radius:var(--bn-radius);font:600 1rem/1 Inter,sans-serif;cursor:pointer;border:1.5px solid var(--wp--preset--color--primary)}
.bn-form .bn-next,.bn-form .bn-submit{background:var(--wp--preset--color--primary);color:#fff;margin-left:auto}
.bn-form .bn-prev{background:transparent;color:var(--wp--preset--color--primary)}
.bn-form .bn-error{color:#B42318;font-size:.9rem;margin-top:.5rem}
.bn-form .bn-hp{position:absolute;left:-9999px}
.bn-form [aria-invalid=true]{border-color:#B42318}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Stats */
.bn-stats{list-style:none;padding:0;margin:1.5rem 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.bn-stats li{max-width:none;text-align:center;padding:1.75rem 1rem;border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md)}
.bn-stats strong{display:block;font-size:clamp(2.25rem,5vw,3.25rem);line-height:1;color:var(--wp--preset--color--primary);letter-spacing:-.02em}
.bn-stats span{display:block;margin-top:.5rem;color:var(--wp--preset--color--ink-muted);font-size:.95rem}

/* Contenido heredado (convertido desde Divi) */
img,video,iframe,embed,object{max-width:100%;height:auto}
.wp-block-post-content figure{margin:1.5rem 0}
.wp-block-post-content > p > a.wp-element-button{display:inline-block;margin:.25rem 0}
html,body{overflow-x:clip}

/* Breadcrumbs */
.bn-breadcrumbs{font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--ink-muted);border-bottom:1px solid var(--wp--preset--color--border)}
.bn-breadcrumbs .rank-math-breadcrumb p{margin:0}
.bn-breadcrumbs a{color:inherit;text-decoration:none}.bn-breadcrumbs a:hover{color:var(--wp--preset--color--primary)}
.bn-breadcrumbs:not(:has(.rank-math-breadcrumb)){display:none}
.bn-clusters{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0 2.5rem}
.bn-clusters li{max-width:none}
.bn-clusters a{display:inline-block;padding:.5rem 1rem;border:1px solid var(--wp--preset--color--border);border-radius:999px;text-decoration:none;font-weight:500}
.bn-clusters a:hover{border-color:var(--wp--preset--color--primary)}

/* Media */
.bn-media img{border-radius:var(--bn-radius-md);width:100%;height:auto;object-fit:cover;display:block}
.bn-card .bn-card__img img{border-radius:10px;aspect-ratio:3/2;object-fit:cover;width:100%;margin-bottom:.75rem}
.bn-hero-media{margin-top:var(--wp--preset--spacing--60)}
.bn-hero-media img{border-radius:20px;box-shadow:0 24px 48px rgba(61,31,94,.18);aspect-ratio:16/9;object-fit:cover;width:100%}

/* ===== Dark editorial sections ===== */
.bn-dark{position:relative;overflow:hidden;background:radial-gradient(60% 80% at 85% 20%,rgba(255,59,130,.18),transparent 60%),radial-gradient(50% 70% at 10% 90%,rgba(85,46,127,.45),transparent 60%),var(--wp--preset--color--night)}
.bn-dark h1,.bn-dark h2,.bn-dark h3{color:#fff}
.bn-dark .bn-eyebrow{color:#FF7FB0}
.bn-dark .bn-lead{color:#D9D1E6}
.bn-dark a:not(.wp-element-button){color:#FFB3CF}
.bn-hl{background:linear-gradient(90deg,#FF3B82,#C28BFF);-webkit-background-clip:text;background-clip:text;color:transparent}
.bn-hero h1{font-size:clamp(2.5rem,5.2vw,4.25rem);line-height:1.05}
.bn-btn-glow .wp-block-button__link{background:#FF3B82;color:#160B22;box-shadow:0 10px 30px rgba(255,59,130,.35)}
.bn-btn-glow .wp-block-button__link:hover{background:#ff5c97}
.bn-btn-ghost .wp-block-button__link{color:#fff!important;border-color:rgba(255,255,255,.5)!important}
.bn-chips{list-style:none;padding:0;margin:1.5rem 0 0;display:flex;flex-wrap:wrap;gap:.5rem}
.bn-chips li{max-width:none;font-size:.85rem;padding:.4rem .85rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#E9E3F2;background:rgba(255,255,255,.05)}
.bn-hero-media{margin:0}
.bn-hero-media img{border-radius:24px;aspect-ratio:4/3;object-fit:cover;width:100%;height:auto;box-shadow:0 30px 60px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.08)}
.bn-media--wide img{aspect-ratio:21/9;object-fit:cover;margin-bottom:1.5rem}
/* Manifesto */
.bn-paradox{list-style:none;padding:0;margin:1rem 0 2rem;counter-reset:x}
.bn-paradox li{max-width:none;font-size:clamp(1.6rem,3.6vw,2.75rem);line-height:1.15;letter-spacing:-.02em;padding:1.25rem 0;border-bottom:1px solid rgba(255,255,255,.12);color:#fff}
.bn-paradox strong{font-weight:700}
.bn-paradox em{font-style:normal;color:#FF7FB0}
/* Timeline */
.bn-timeline{list-style:none;padding:0;margin:2rem 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}
.bn-timeline li{max-width:none;position:relative;padding:1.5rem;border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);background:#fff}
.bn-timeline span{display:inline-block;font-size:.8rem;font-weight:700;color:var(--wp--preset--color--accent-text);letter-spacing:.04em;margin-bottom:.5rem}
.bn-timeline strong{display:block;font-size:1.2rem;margin-bottom:.35rem}
.bn-timeline p{margin:0;color:var(--wp--preset--color--ink-muted);font-size:.95rem}
/* Example PAE */
.bn-example{border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);overflow:hidden;background:#fff}
.bn-example__head{background:var(--wp--preset--color--night);color:#fff;padding:1.25rem 1.5rem}
.bn-example__head strong{display:block;font-size:1.2rem}.bn-example__head span{color:#D9D1E6;font-size:.95rem}
.bn-example dl{margin:0;padding:1.5rem;display:grid;grid-template-columns:minmax(160px,220px) 1fr;gap:.75rem 1.5rem}
.bn-example dt{font-weight:600}.bn-example dd{margin:0;color:var(--wp--preset--color--ink-muted)}
@media (max-width:640px){.bn-example dl{grid-template-columns:1fr}.bn-example dd{margin-bottom:.5rem}}
.bn-story p{font-size:1.15rem;line-height:1.7}
@media (min-width:900px){.bn-pillars{grid-template-columns:repeat(3,1fr)}}
/* Compare */
.bn-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1.5rem}
.bn-compare__col{border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);padding:1.5rem;background:#fff}
.bn-compare__col strong{display:block;font-size:1.15rem;margin-bottom:.75rem}
.bn-compare__col ul{margin:0;padding-left:1.1rem;color:var(--wp--preset--color--ink-muted)}
.bn-compare__col li{margin:.4rem 0}
.bn-compare__col--win{border:2px solid var(--wp--preset--color--primary);box-shadow:0 12px 30px rgba(85,46,127,.12)}
.bn-compare__col--win strong{color:var(--wp--preset--color--primary)}
.bn-quiz{background:#fff;border:1px solid var(--wp--preset--color--border);border-radius:var(--bn-radius-md);overflow:hidden;box-shadow:0 16px 40px rgba(61,31,94,.10)}
