/* ── Papel · noviembre 2026 ─────────────────────────────────────────────
   Pasa las páginas con la plantilla antigua (Space Grotesk, blanco, cajas
   cuadradas) al sistema de la portada «Home con movimiento»: papel #F7F3EE,
   granate #6E1B28, titulares en Instrument Serif, texto en Manrope, etiquetas
   en JetBrains Mono, tarjetas redondeadas y botones píldora.
   Se carga DESPUÉS del <style> de cada página, así que gana a igual
   especificidad. Lo enlaza _herramientas/papel.js (idempotente). */

:root{
  --bg:#F7F3EE;--bg-card:#FFFFFF;--bg-hover:#F1E8E2;
  --text:#141010;--text-muted:#5C5352;--accent:#6E1B28;
  --border:rgba(20,16,16,.12);
  --font-main:'Manrope',system-ui,sans-serif;--font-mono:'JetBrains Mono',ui-monospace,monospace;
  --ink:#141010;--paper:#F7F3EE;--card:#FFFFFF;--muted:#5C5352;--soft:#E9B7C0;--acc:#6E1B28;--line:rgba(20,16,16,.12);
  --pp-serif:'Instrument Serif',Georgia,serif;
  --pp-ease:cubic-bezier(.2,.8,.2,1);
}
html{overflow-x:clip}
body{background:var(--paper);color:var(--ink);font-family:var(--font-main);font-size:17px;overflow-x:clip}
::selection{background:var(--acc);color:#fff}
a{color:var(--acc)}

/* ── Titulares en serif ─────────────────────────────────────────────── */
.hero-title,.section-title,.cta-title,.article-hero h1,.blog-header h1,.about-hero h1,
.article-content h2,.faq-section h2,.nl-post h2,.featured-title,.compare-title,.newsletter h2,
.prose h1,.prose h2,main > section h1,.include-title,.why-title,.process-title,.result-name,
.related-title,.post-title,.sidebar-title,.tipo-title,.platform-title,.cta h2,.legal h1,.legal h2,.story h2{
  font-family:var(--pp-serif)!important;font-weight:400!important;letter-spacing:-.015em!important}
.hero-title{font-size:clamp(3.2rem,8.2vw,7.4rem)!important;line-height:.98!important}
.section-title,.cta-title,.blog-header h1,.about-hero h1{font-size:clamp(2.6rem,5vw,4.5rem)!important;line-height:1.02!important}
.article-hero h1{font-size:clamp(2.5rem,5.4vw,4.4rem)!important;line-height:1.02!important}
.article-content h2,.faq-section h2{font-size:clamp(2rem,3.2vw,2.6rem)!important;line-height:1.08!important;margin-top:3.5rem}
.include-title,.why-title,.process-title,.result-name,.related-title,.post-title,.tipo-title,.platform-title{font-size:1.65rem!important;line-height:1.12!important}
.sidebar-title{font-size:1.45rem!important;line-height:1.15!important}
.hero-title em,.section-title em,.cta-title em,.article-hero h1 em,.blog-header h1 em,.about-hero h1 em,.article-content h2 em{font-style:italic!important;color:var(--acc)!important}
.article-content h3{font-weight:700;font-size:1.2rem}

/* Etiquetas en mono granate */
.hero-tag,.section-tag,.breadcrumb,.meta-cat,.meta-date,.meta-read,.related-cat,.sidebar-tag,.toc-title,
.cta-tag,.nl-post-tag,.newsletter-tag,.include-num,.process-num,.result-type,.post-cat,.post-date,.header-tag,.block-tag,.featured-label{
  font-family:var(--font-mono)!important}
.section-tag,.hero-tag,.cta-tag{color:var(--acc)!important}
.hero-tag::before{background:var(--acc)!important}

/* Texto */
.hero-desc,.section-desc,.article-intro,.cta-desc{color:var(--muted)!important;font-size:1.12rem!important}
.article-content > p,.article-content > ul > li,.article-content > ol > li,.article-content section > p{color:#3E3635!important;font-size:1.05rem!important}
.article-content > ul > li::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--acc);top:.72em}

/* ── Cabecera de página: foco de luz y cuadrícula granate ───────────── */
.hero,.article-hero,.blog-header,.about-hero{--mx:70%;--my:30%}
.hero::after,.article-hero::after,.blog-header::after,.about-hero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(560px circle at var(--mx) var(--my),rgba(110,27,40,.13),transparent 62%);z-index:-1}
.hero,.article-hero,.blog-header,.about-hero{isolation:isolate}
.hero-grid{opacity:.5!important;background-image:linear-gradient(rgba(110,27,40,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(110,27,40,.07) 1px,transparent 1px)!important;
  -webkit-mask-image:radial-gradient(ellipse at 70% 30%,#000 20%,transparent 75%);mask-image:radial-gradient(ellipse at 70% 30%,#000 20%,transparent 75%)}
.hero-glow{display:none}
.hero{border-bottom:0!important}
.article-hero{border-bottom:0!important}

/* ── Botones píldora con relleno al pasar ───────────────────────────── */
.btn-primary,.cta-email,.sidebar-cta,.rc-btn,.nl-form button,.ib-informe button[type=submit]{
  position:relative;overflow:hidden;isolation:isolate;border-radius:999px!important;background:var(--acc)!important;color:#fff!important;
  font-family:var(--font-main)!important;font-weight:700!important;border:0;opacity:1!important;
  transition:transform .35s var(--pp-ease),color .35s!important}
.btn-primary::before,.cta-email::before,.sidebar-cta::before,.rc-btn::before{content:"";position:absolute;inset:0;background:var(--ink);transform:translateY(101%);transition:transform .5s var(--pp-ease);z-index:-1}
.btn-primary:hover,.cta-email:hover,.sidebar-cta:hover,.rc-btn:hover{transform:translateY(-2px)}
.btn-primary:hover::before,.cta-email:hover::before,.sidebar-cta:hover::before,.rc-btn:hover::before{transform:none}
.btn-secondary,.cat-btn{border-radius:999px!important;border:1.5px solid var(--ink)!important;color:var(--ink)!important;background:transparent!important;font-family:var(--font-main)!important;font-weight:600;transition:background .35s,color .35s!important}
.btn-secondary:hover,.cat-btn:hover,.cat-btn.active{background:var(--ink)!important;color:var(--paper)!important}

/* ── Tarjetas redondeadas sobre papel ───────────────────────────────── */
.rc-lista,.services,.why-grid,.includes-grid,.results-grid,.related-grid,.posts-grid,.tipos-grid,.platforms,.cmp-grid,.principles,.include-items{
  gap:20px!important;background:transparent!important;border:0!important}
.why-card,.include-card,.result-card,.related-card,.post-card,.tipo-card,.platform-card,.cmp-col,.principle,.rc-card,.service,.story,.card{
  border-radius:24px!important;background:var(--card)!important;border:0!important;box-shadow:0 0 0 1px var(--line);
  transition:transform .5s var(--pp-ease),box-shadow .4s!important}
.why-card:hover,.include-card:hover,.result-card:hover,.related-card:hover,.post-card:hover,.tipo-card:hover,.platform-card:hover,.rc-card:hover{
  transform:translateY(-4px);box-shadow:0 0 0 1px var(--line),0 24px 48px -28px rgba(20,16,16,.45)}
.highlight-box,.sidebar-card,.toc,.author-box,.ficha,.compare,.tbl-wrap,.faq-chat{
  border-radius:20px!important;border:0!important;box-shadow:0 0 0 1px var(--line);background:var(--card)!important}
.highlight-box{border-left:0!important;box-shadow:inset 4px 0 0 var(--acc),0 0 0 1px var(--line)}
.sidebar-card:first-child{background:var(--ink)!important;color:var(--paper)}
.sidebar-card:first-child .sidebar-desc{color:#CFC6C3!important}
.sidebar-card:first-child .sidebar-tag{color:var(--soft)!important}
.portrait{border-radius:28px;overflow:hidden}
.about-lead{font-size:1.15rem!important;color:var(--muted)}
.page-banner{border-radius:28px;overflow:hidden;margin:0 2.5rem;border:0!important}
.article-image img{border-radius:24px}
.article-image{border-bottom:0!important}

/* Iconos de tarjeta (sustituyen a los emojis) */
.why-icon{display:inline-flex!important;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;
  background:#F1E2E4;color:var(--acc);font-size:0!important;margin-bottom:1.4rem!important}
.why-icon svg{width:24px;height:24px}

/* ── Cifras ─────────────────────────────────────────────────────────── */
.metrics,.stats{border-bottom:0!important;gap:20px;padding:0 2.5rem 2rem}
.metric,.stat{border:0!important;border-radius:24px;background:var(--card);box-shadow:0 0 0 1px var(--line)}
.metric-number,.stat-num,.stat-number,.result-metric{font-family:var(--pp-serif)!important;font-weight:400!important;letter-spacing:-.02em!important;color:var(--acc)!important}
.metric-number{font-size:clamp(2.8rem,5vw,4.4rem)!important}

/* ── Secciones ──────────────────────────────────────────────────────── */
.section{border-bottom:0!important}
.cta-section{background:var(--acc)!important;color:#fff;border-radius:36px;margin:2rem 2.5rem 4rem;border:0!important}
.cta-section .cta-title,.cta-section .cta-tag{color:#fff!important}
.cta-section .cta-title em{color:#F3D9DE!important}
.cta-section .cta-desc{color:#F3D9DE!important}
.cta-section .btn-primary,.cta-section .cta-email{background:var(--paper)!important;color:var(--ink)!important}
.cta-section .btn-primary:hover,.cta-section .cta-email:hover{color:var(--paper)!important}
.cta-section .btn-secondary{border-color:#fff!important;color:#fff!important}
.cta-section .btn-secondary:hover{background:#fff!important;color:var(--acc)!important}
.nl-post,.newsletter{background:var(--ink)!important;color:var(--paper);border:0!important}
.nl-post-desc,.newsletter p{color:#CFC6C3!important}
.nl-post-tag,.newsletter-tag{color:var(--soft)!important}

/* FAQ */
.faq-item{border-color:var(--line)!important}
.faq-q{font-weight:700!important}

/* ── Pie oscuro, como la portada ────────────────────────────────────── */
footer{background:var(--ink)!important;color:var(--paper);border:0!important;padding:4rem 2.5rem 2rem!important;flex-wrap:wrap;gap:2rem 3rem!important;align-items:flex-end!important}
footer .footer-logo{font-family:var(--pp-serif)!important;font-size:clamp(3rem,8vw,6.5rem)!important;line-height:.9;color:var(--paper)!important;letter-spacing:-.02em;flex:1 1 100%}
footer .footer-logo span{color:var(--soft)!important}
footer .footer-tagline{font-family:var(--pp-serif)!important;font-size:1.6rem!important;color:var(--soft)!important;opacity:1!important}
footer .footer-links a{color:#CFC6C3!important;letter-spacing:.06em!important;font-size:.74rem!important}
footer .footer-links a:hover{color:#fff!important}
footer .footer-links{flex-wrap:wrap;gap:.8rem 1.6rem!important}
footer .footer-copy{color:#9C918F!important}
.legal-bar{background:var(--ink);margin:0!important;padding:0 2.5rem 2.5rem!important}
.legal-bar a,.legal-bar button{color:#9C918F!important}
.legal-bar a:hover{color:#fff!important}

@media (max-width:900px){
  .page-banner{margin:0 1.25rem}
  .cta-section{margin:1.5rem 1rem 3rem;border-radius:28px}
  .metrics,.stats{padding:0 1.25rem 1.5rem;gap:12px}
  .metric,.stat{padding:1.4rem 1.2rem!important}
  .hero-actions{flex-direction:column;align-items:stretch!important;width:100%}
  .hero-actions a{text-align:center}
  .hero-bottom{flex-direction:column;align-items:stretch!important}
  footer{padding:3rem 1.25rem 1.5rem!important;align-items:flex-start!important;text-align:left!important}
  .legal-bar{padding:0 1.25rem 2rem!important}
}

/* Recursos: bloque de descarga oscuro, como la portada */
.rc-form-wrap{background:var(--ink)!important;border-radius:32px}
.rc-form-wrap h2{font-family:var(--pp-serif)!important;font-weight:400!important;letter-spacing:-.015em!important;font-size:clamp(2.4rem,4vw,3.4rem)!important;color:var(--paper)}
.rc-form-wrap h2 em{font-style:italic!important;color:var(--soft)!important}
.rc-form-wrap input[type=email],.rc-form-wrap input[type=text]{border-radius:14px}
.blog-search input,.blog-search{border-radius:999px}

/* Resumen «En pocas palabras» (SEO/GEO, 17 nov 2026) */
.resumen-ia{padding:28px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px))}
.resumen-in{max-width:880px;margin:0 auto;border-left:3px solid #6E1B28;padding:6px 0 6px 20px}
.resumen-eyebrow{font-size:.78rem!important;letter-spacing:.12em;text-transform:uppercase;color:#6E1B28!important;font-weight:700;margin:0 0 6px}
.resumen-texto{font-size:1.08rem!important;line-height:1.6;margin:0 0 10px;max-width:70ch}
.resumen-firma{font-size:.88rem!important;color:var(--muted,#6b625f)!important;margin:0}
.resumen-firma a{color:inherit;text-decoration:underline}
