/*
Theme Name: tuseoconIA v2
Theme URI: https://tuseoconia.com
Author: tuseoconIA
Author URI: https://tuseoconia.com
Description: Tema de tuseoconIA — rediseño de marca V2 (tinta + lima). SEO local con IA para pymes del sur de España. Capa única de CSS, sin !important, fuentes Space Grotesk + Space Mono autoalojadas. Fondo ink en portada; papel en servicios, auditoría, blog, entradas y páginas sueltas.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tuseoconia
*/

/* ============================================================
   tuseoconIA — V2.0 · rediseño de marca (HTML/CSS/JS puro)
   CAPA ÚNICA. Sistema: tinta + lima señal · Space Grotesk + Space Mono
   Fondos: ink (home/marca) + paper (servicios/auditoría). Lima = acento único.
   Reglas: cero !important · ningún título sin color declarado ·
   fuentes autoalojadas (sin peticiones externas).
   ============================================================ */

/* ============================================================
   FUENTES — autoalojadas (assets/fonts/*.woff2). Sin CDN de Google.
   ============================================================ */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('assets/fonts/space-grotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('assets/fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('assets/fonts/space-grotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('assets/fonts/space-grotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('assets/fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('assets/fonts/space-mono-700.woff2') format('woff2');
}

/* ============================================================
   RESET + TOKENS
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* neutrals — ink (fondo por defecto) */
  --bg:      #0A0B0D;
  --bg2:     #121419;
  --bg3:     #0E1014;
  --border:  #23272F;
  --border2: #2F343E;

  /* text sobre ink */
  --text:    #F4F4F0;
  --text2:   #B8BCC4;   /* aclarado vs. V2 para contraste ≥ 4.5:1 sobre ink */
  --text3:   #8A8F98;

  /* brand accent — lima señal única */
  --lime:      #CBF54A;
  --lime-deep: #5C6B2A;   /* lima oscura: para TEXTO lima sobre papel (contraste) */
  --lime-soft: rgba(203,245,74,0.12);

  /* accent de TEXTO — cambia con el fondo (ink → lima; paper → lima-deep) */
  --accent-text: var(--lime);

  /* rejilla de fondo */
  --grid-line: rgba(203,245,74,0.04);
  --grid-line-hi: rgba(203,245,74,0.12);

  /* status */
  --ok:  #CBF54A;
  --err: #FF6B5E;

  /* legacy aliases — markup heredado que aún use estas vars sigue funcionando */
  --purple: #CBF54A;
  --cyan:   #CBF54A;
  --grad:   #CBF54A;

  --paper: #ECEAE2;

  --ff:      'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius:  12px;
  --max-w:   960px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent-text); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   FONDO — rejilla lima (reemplaza al vídeo)
   ============================================================ */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 100% 55% at 50% 0%, #000 22%, transparent 95%);
          mask-image: radial-gradient(ellipse 100% 55% at 50% 0%, #000 22%, transparent 95%);
}

/* ============================================================
   TIPOGRAFÍA — helpers
   ============================================================ */
.grad { color: var(--accent-text); }

.section-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-text);
  display: inline-block;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* ============================================================
   FROST PANEL  (antes "liquid-glass" — recoloreado, sin borde Apple)
   ============================================================ */
.liquid-glass {
  background: rgba(18,20,25,0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--border2);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before { display: none; }
.liquid-glass-strong {
  background: rgba(14,16,20,0.85);
  backdrop-filter: blur(30px) saturate(130%);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  border: 1px solid var(--border2);
  box-shadow: 0 16px 50px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}
.liquid-glass-strong::before { display: none; }

/* ============================================================
   NAV FLOTANTE
   ============================================================ */
.glass-nav {
  position: fixed;
  top: 1.2rem;
  left: 0; right: 0;
  padding: 0 1.5rem;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
  animation: glass-nav-in .7s cubic-bezier(.2,.7,.2,1) both;
}
.glass-nav > * { pointer-events: auto; }
.glass-nav > .glass-logo      { justify-self: start; }
.glass-nav > .glass-pill      { justify-self: center; }
.glass-nav > .glass-cta       { justify-self: end; }
.glass-nav > .glass-hamburger { justify-self: end; }

@keyframes glass-nav-in {
  from { opacity: 0; transform: translateY(-8px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* LOGO — ruta / path */
.glass-logo {
  display: inline-flex;
  align-items: center;
  height: 48px;
  font-family: var(--ff);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity .2s;
}
.glass-logo:hover { opacity: 0.85; color: var(--text); }
.glass-logo .sep {
  color: var(--lime);
  font-weight: 400;
  margin: 0 0.12em;
  opacity: 0.9;
}
.glass-logo .dot {
  width: 0.32em; height: 0.32em;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  margin: 0 0.26em 0 0.14em;
}
.glass-logo .logo-ia { color: var(--lime); }

.glass-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 48px;
  padding: 0 6px;
  border-radius: 999px;
}
.glass-link {
  padding: 0 14px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  font-family: var(--ff);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.glass-link:hover     { color: var(--text); }
.glass-link.is-active { color: var(--accent-text); background: var(--lime-soft); }

/* CTA — lima sólido */
.glass-cta {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lime);
  color: #0A0B0D;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  transition: filter .2s, transform .15s;
}
.glass-cta:hover { filter: brightness(1.06); transform: translateY(-1px); color: #0A0B0D; }

.glass-hamburger {
  display: none;
  width: 48px; height: 48px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  background: rgba(18,20,25,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border2);
}
.glass-hamburger span {
  width: 18px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
}
.glass-mobile {
  position: absolute;
  top: 60px;
  right: 1.5rem;
  border-radius: 18px;
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}
.glass-mobile.is-open { display: flex; }
.glass-mobile a {
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 10px;
}
.glass-mobile a:hover { background: var(--lime-soft); color: var(--text); }
.glass-mobile .glass-cta { margin-top: 6px; height: 40px; justify-content: center; }

@media (max-width: 820px) {
  .glass-pill { display: none; }
  .glass-nav > .glass-cta { display: none; }
  .glass-hamburger { display: inline-flex; }
}

/* ============================================================
   CURSOR SPOTLIGHT (rejilla interactiva) — solo en ink
   ============================================================ */
.cursor-spotlight {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  --mx: 50vw; --my: 50vh;
  background-image:
    linear-gradient(var(--grid-line-hi) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-hi) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle 320px at var(--mx) var(--my), #000 0%, transparent 70%);
          mask-image: radial-gradient(circle 320px at var(--mx) var(--my), #000 0%, transparent 70%);
}
.cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  --mx: 50vw; --my: 50vh;
  background: radial-gradient(circle 400px at var(--mx) var(--my),
    rgba(203,245,74,0.08), transparent 65%);
}
@media (hover: none) {
  .cursor-spotlight, .cursor-glow { display: none; }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--lime);
  color: #0A0B0D;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: filter .2s, transform .15s;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); color: #0A0B0D; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  border: 1px solid var(--border2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--accent-text); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 11rem 2rem 4rem;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(203,245,74,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-section h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
  color: var(--text);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   ASK DEMO — "cómo te encuentran con IA" (superficie propia)
   Panel oscuro legible con scroll propio. Nombres ficticios.
   ============================================================ */
.ask-demo {
  border-radius: 18px;
  margin-top: 1.2rem;
}
.ask-scroll {
  max-height: 600px;
  overflow-y: auto;
  padding: 22px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
}
.ask-scroll::-webkit-scrollbar { width: 12px; }
.ask-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 8px; }
.ask-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.ask-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.34); background-clip: padding-box; }

.chat-q { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.chat-q[hidden], .ask-a-text[hidden], .chat-answer[hidden] { display: none; }
.chat-q-bubble {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  border-radius: 20px;
  padding: 11px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 82%;
}

.chat-map {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.chat-map-canvas {
  position: relative;
  height: 210px;
  background-image: url('assets/map-marbella.png');
  background-size: cover;
  background-position: center 58%;
  overflow: hidden;
}
.mp-pin {
  position: absolute;
  background: #202124;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px 3px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.mp-pin::before { content: '★'; color: var(--lime); font-size: 9px; }
.mp-pin1 { top: 46%; left: 29%; }
.mp-pin2 { top: 58%; left: 42%; }
.chat-map-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
}
.map-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px;
}
.map-card-thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-card-thumb svg { width: 24px; height: 24px; }
.map-thumb-a { background: #1c2b17; }
.map-thumb-a svg { fill: var(--lime); }
.map-thumb-b { background: #26241a; }
.map-thumb-b svg { fill: #cfcaa8; }
.map-card-name { font-size: 0.9rem; font-weight: 600; color: #ffffff; }
.map-card-meta { font-size: 0.75rem; color: #b9b9c6; margin: 2px 0; }
.map-card-meta .mstar { color: var(--lime); }
.map-card-status { font-size: 0.75rem; font-weight: 500; }
.map-card-status.is-open { color: #9ede4f; }
.map-card-status.is-closed { color: #ff8a7d; }

.ask-a-text {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  color: #e9e9f1;
  line-height: 1.7;
  min-height: 1.7em;
  white-space: pre-wrap;
  margin-bottom: 6px;
}
.chat-list {
  counter-reset: biz;
  margin: 6px 0 0;
  padding: 0;
}
.chat-list > li {
  counter-increment: biz;
  padding: 10px 12px 10px 40px;
  position: relative;
  border-radius: 10px;
}
.chat-list > li::before {
  content: counter(biz) ".";
  position: absolute;
  left: 14px; top: 10px;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}
.chat-list > li.is-pick { background: var(--lime-soft); }
.chat-biz {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.35);
  margin-bottom: 5px;
}
.chat-sub { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-sub li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: #c4c4d0;
  line-height: 1.45;
}
.chat-sub b { color: #ffffff; }
.ci { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: #9a9aa6; }
.ci-star { color: var(--lime); }
.ci-pin { color: #ff8a7d; }
.chat-close {
  font-size: 0.92rem;
  color: #d9d9e2;
  line-height: 1.6;
  margin-top: 14px;
}
.chat-close b { font-weight: 600; color: #ffffff; }
.chat-reco { margin: 6px 0 0; padding: 0; }
.chat-reco > li { padding: 10px 12px; border-radius: 10px; }
.chat-reco > li.is-pick { background: var(--lime-soft); }

.ask-remate {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 1.8rem;
  line-height: 1.6;
}

/* caret de tipeo */
.cm-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  vertical-align: -2px;
  background: var(--lime);
  margin-left: 2px;
  animation: cm-blink 1s steps(2) infinite;
}
@keyframes cm-blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* ============================================================
   SECCIONES
   ============================================================ */
.site-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}
.inner        { max-width: var(--max-w); margin: 0 auto; }
.inner-narrow { max-width: 680px; margin: 0 auto; }

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  perspective: 1400px;
}
.how-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  position: relative;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .3s;
  overflow: hidden;
}
.how-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx) var(--my),
    rgba(203,245,74,.14), transparent 65%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.how-card:hover::before { opacity: 1; }
.how-card:hover {
  border-color: rgba(203,245,74,.4);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(203,245,74,.12);
}
.how-card-content {
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
}
.how-step {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  margin-bottom: 0.6rem;
}
.how-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.how-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ============================================================
   DOCTRINA
   ============================================================ */
.doctrina-grid { max-width: 760px; margin: 0 auto; }
.doctrina-text p { margin-bottom: 1rem; color: var(--text2); line-height: 1.7; }
.doctrina-text strong { color: var(--text); font-weight: 600; }
.doctrina-text code {
  font-family: var(--ff-mono);
  font-size: 0.86em;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--accent-text);
}
.doctrina-quote {
  border-left: 3px solid var(--lime);
  padding: 1rem 1.3rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--text);
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}
.doctrina-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--text3);
}
.doctrina-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.doctrina-link:hover { border-bottom-color: var(--lime); color: var(--accent-text); }

/* ============================================================
   TABLA COMPARATIVA (home)
   ============================================================ */
.compare-glass {
  border-radius: 16px;
  padding: 4px;
  margin-top: 1.5rem;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text2);
}
.compare-table th {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent-text);
}
.compare-table th.th-brand { text-transform: none; letter-spacing: -0.01em; font-family: var(--ff); font-size: 0.82rem; font-weight: 600; }
.compare-table td:first-child { color: var(--text); }
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.check { color: var(--ok); font-weight: 700; }
.cross { color: var(--err); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.faq-a {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.65;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}
.cta-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border2);
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(203,245,74,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: var(--text);
}
.cta-box p {
  font-size: 0.95rem;
  color: var(--text2);
  margin-bottom: 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.cta-box .btn-primary { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text3);
}
.footer-tagline {
  color: var(--text3);
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text3); transition: color .2s; }
.footer-links a:hover { color: var(--accent-text); }

/* ============================================================
   PRICING — PLAN CARDS (plan-x)
   ============================================================ */
.plans-grid-x {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 40px auto 0;
  max-width: 900px;
  perspective: 1400px;
}
.plan-x {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 52px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .3s;
  overflow: hidden;
}
.plan-x::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  background: radial-gradient(420px circle at var(--mx) var(--my),
    rgba(203,245,74,.14), transparent 65%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.plan-x:hover::before { opacity: 1; }
.plan-x:hover {
  border-color: rgba(203,245,74,.4);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(203,245,74,.12);
}
.plan-x.feat {
  background: linear-gradient(180deg, rgba(203,245,74,.06), transparent 60%), var(--bg2);
  border-color: rgba(203,245,74,.28);
}
.plan-x.feat::before { opacity: .4; }
.plan-x.feat:hover::before { opacity: 1; }
.px-ribbon {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: #0A0B0D;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
}
.px-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  transform: translateZ(20px);
}
.px-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.px-price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 6px 0 4px;
  color: var(--accent-text);
  line-height: 1;
}
.px-price small {
  font-size: 16px;
  color: var(--text2);
  font-weight: 400;
}
.px-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 10px 0 22px;
}
.px-feats {
  padding: 18px 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.px-feats li {
  padding: 7px 0;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.px-feats li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 7px;
  width: 14px;
  height: 2px;
  background: var(--lime);
}
.px-feat { display: flex; flex-direction: column; gap: 3px; }
.px-feat-main { color: var(--text2); }
.px-feat-sub { font-size: 11px; color: var(--text3); line-height: 1.4; }
.px-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--lime);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background .2s, color .2s, transform .2s;
}
.px-btn:hover { background: var(--lime); color: #0A0B0D; }
.plan-x.feat .px-btn {
  background: var(--lime);
  border-color: var(--lime);
  color: #0A0B0D;
}
.plan-x.feat .px-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* ============================================================
   SERVICIOS — wrap + tablas
   ============================================================ */
.srv-wrap {
  padding: 11rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}
.srv-inner { max-width: 1200px; margin: 0 auto; }

.srv-hero { text-align: center; margin-bottom: 4rem; }
.srv-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.srv-hero p {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.srv-section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 2.5rem;
}
.srv-section-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text2);
  margin: -1.5rem 0 2.5rem;
}
.srv-block { margin-top: 5.5rem; }

.srv-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.srv-matrix, .srv-vs-wrap {
  border-radius: 16px;
  overflow: hidden;
}
.srv-matrix table, .srv-vs-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.srv-matrix thead th, .srv-vs-wrap thead th {
  padding: 1.1rem 1.2rem;
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--accent-text);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.srv-matrix thead th:not(:first-child),
.srv-vs-wrap thead th:not(:first-child) { text-align: center; }
.srv-matrix thead th.is-feat {
  color: var(--accent-text);
  background: var(--lime-soft);
  position: relative;
}
.srv-vs-wrap thead th.is-self {
  color: #0A0B0D;
  background: var(--lime);
  text-align: center;
}
.srv-matrix tbody td, .srv-vs-wrap tbody td {
  padding: 1rem 1.2rem;
  color: var(--text2);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.srv-matrix tbody td:first-child, .srv-vs-wrap tbody td:first-child { color: var(--text); }
.srv-matrix tbody tr:last-child td,
.srv-vs-wrap tbody tr:last-child td { border-bottom: none; }
.srv-matrix tbody td:not(:first-child) { text-align: center; }
.srv-matrix tbody td.is-feat-col {
  background: var(--lime-soft);
  color: var(--text);
}
.srv-vs-wrap tbody td.is-self-col {
  font-weight: 600;
  color: var(--text);
  background: var(--lime-soft);
  text-align: center;
}
.srv-matrix .dash { color: var(--text3); }
.srv-table-scroll .srv-matrix table  { min-width: 640px; }
.srv-table-scroll .srv-vs-wrap table { min-width: 760px; }

.srv-faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 16px;
}
.srv-mini-cta {
  margin-top: 4rem;
  text-align: center;
}
.srv-mini-cta p {
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.srv-mini-cta a.inline-link { color: var(--accent-text); }

/* ============================================================
   AUDITORÍA GRATUITA
   ============================================================ */
.aud-wrap { padding: 11rem 1.5rem 5rem; position: relative; z-index: 1; }
.aud-inner { max-width: 760px; margin: 0 auto; }
.aud-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.aud-lede {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 3rem;
  max-width: 640px;
}
.aud-block { margin-top: 2.4rem; }
.aud-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.aud-block p { font-size: 0.95rem; color: var(--text2); line-height: 1.7; margin-bottom: 0.8rem; }
.aud-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; }
.aud-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.55;
}
.aud-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.6rem;
  width: 14px; height: 2px;
  background: var(--lime);
}
.aud-form-panel {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.aud-form { display: flex; flex-direction: column; gap: 1.4rem; }
.aud-field { display: flex; flex-direction: column; gap: 0.5rem; }
.aud-field label { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.aud-field input,
.aud-field textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: var(--ff);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color .2s;
}
.aud-field input::placeholder,
.aud-field textarea::placeholder { color: var(--text3); }
.aud-field input:focus,
.aud-field textarea:focus { outline: none; border-color: var(--lime); }
.aud-field textarea { min-height: 150px; resize: vertical; }
.aud-form .btn-primary { width: 100%; text-align: center; padding: 1rem; font-size: 0.95rem; }
.aud-optional { font-family: var(--ff-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.aud-group-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.aud-group-label.is-second { margin-top: 0.6rem; }
.aud-hint { font-size: 0.8rem; color: var(--text3); line-height: 1.45; margin-top: -0.15rem; }
.aud-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
}
.aud-consent input[type="checkbox"] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--lime);
  cursor: pointer;
}
.aud-consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   TEMA PAPEL — body.paper (servicios + auditoría)
   Solo redefine tokens y el puñado de acentos-texto que
   sobre claro necesitan lima oscura. Sin !important.
   ============================================================ */
body.paper {
  --bg:      #ECEAE2;
  --bg2:     #F4F2EC;
  --bg3:     #E4E1D6;
  --border:  #D6D3C7;
  --border2: #C7C4B7;
  --text:    #16181C;
  --text2:   #4A4E56;
  --text3:   #7C808A;
  --accent-text: var(--lime-deep);
  --grid-line: rgba(92,107,42,0.05);
  --grid-line-hi: rgba(92,107,42,0.10);
}
/* logo concepto 04 · variante papel: letras tinta, separadores/punto/IA en lima oscura */
body.paper .glass-logo { color: var(--text); }
body.paper .glass-logo .sep { color: var(--accent-text); opacity: 0.95; }
body.paper .glass-logo .dot { background: var(--accent-text); }
body.paper .glass-logo .logo-ia { color: var(--accent-text); }
/* pill / hamburguesa: frost claro */
body.paper .liquid-glass {
  background: rgba(255,255,255,0.55);
  border-color: var(--border2);
}
body.paper .liquid-glass-strong {
  background: rgba(244,242,236,0.92);
  border-color: var(--border2);
  box-shadow: 0 16px 50px rgba(0,0,0,0.12);
}
body.paper .glass-hamburger { background: rgba(255,255,255,0.55); border-color: var(--border2); }
/* CTA sigue lima con texto tinta (el acento es el mismo en ambos fondos) */
body.paper .glass-cta,
body.paper .btn-primary { color: #0A0B0D; }
/* tablas: separadores oscuros ya cubiertos por rgba(0,0,0,..) arriba */
body.paper .srv-faq.liquid-glass,
body.paper .srv-matrix.liquid-glass,
body.paper .srv-vs-wrap.liquid-glass { background: rgba(255,255,255,0.5); }
/* acentos verdes legibles sobre papel: guiones, bordes, ticks → lima oscura */
body.paper .px-feats li::before { background: var(--accent-text); }
body.paper .px-btn { border-color: var(--accent-text); }
body.paper .plan-x .px-btn:hover { background: var(--accent-text); border-color: var(--accent-text); color: #ECEAE2; }
body.paper .check { color: var(--accent-text); }
body.paper .aud-list li::before { background: var(--accent-text); }
.srv-vs-wrap thead th.is-self { text-transform: none; font-family: var(--ff); font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }

/* logo-lockup inline (p.ej. en el título de la comparativa) */
.logo-lockup { font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.logo-lockup .sep { color: var(--accent-text); font-weight: 400; margin: 0 0.08em; }
.logo-lockup .dot { width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--accent-text); display: inline-block; margin: 0 0.2em 0 0.1em; vertical-align: middle; }
.logo-lockup .logo-ia { color: var(--accent-text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .plans-grid-x { grid-template-columns: 1fr; max-width: 450px; }
}
@media (max-width: 820px) {
  .how-grid { grid-template-columns: 1fr; }
  .srv-matrix table, .srv-vs-wrap table { font-size: 0.78rem; }
  .srv-matrix thead th, .srv-matrix tbody td,
  .srv-vs-wrap thead th, .srv-vs-wrap tbody td { padding: 0.8rem 0.7rem; }
  .srv-wrap { padding: 8rem 1rem 4rem; }
  .srv-block { margin-top: 4rem; }
}
@media (max-width: 768px) {
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.5rem; }
  .site-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .chat-map-cards { grid-template-columns: 1fr; }
  .ask-scroll { padding: 16px; }
}
@media (max-width: 480px) {
  .hero-section { padding: 8rem 1.2rem 3rem; }
  .site-section { padding: 3rem 1.2rem; }
  .aud-wrap { padding: 8rem 1.2rem 3rem; }
  .aud-form-panel { padding: 1.4rem; }
}

/* ============================================================
   BLOG — home.php · single · archivo (fondo ink)
   Clases del índice de entradas restyleadas al sistema v2.
   ============================================================ */
.blog-home { position: relative; z-index: 1; padding: 10rem 2rem 5rem; }
.blog-home-inner { max-width: var(--max-w); margin: 0 auto; }

.blog-hero { margin-bottom: 3rem; }
.blog-hero-left { max-width: 640px; }
.blog-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0.4rem 0 1rem;
}
.blog-hero-sub { font-size: 1.05rem; color: var(--text2); line-height: 1.6; margin: 0; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.blog-filter-btn {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--text2);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color .2s, color .2s, background .2s;
}
.blog-filter-btn:hover { border-color: var(--lime); color: var(--text); }
.blog-filter-btn.active { background: var(--lime); border-color: var(--lime); color: #0A0B0D; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  transition: border-color .2s;
}
.blog-featured:hover { border-color: rgba(203,245,74,.4); }
.blog-featured-img-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-featured-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-featured-img-wrap:hover .blog-featured-img { transform: scale(1.03); }
.blog-featured-img-placeholder,
.post-card-img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  border-bottom: 1px solid var(--border);
}
.blog-featured-body { padding: 2rem 2.4rem 2rem 0; }
.blog-featured-meta,
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 0.9rem;
}
.blog-cat-badge {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--lime-soft);
  border: 1px solid rgba(203,245,74,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.blog-cat-badge--sm { font-size: 0.62rem; padding: 0.15rem 0.5rem; }
.blog-featured-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.8rem; }
.blog-featured-title a { color: var(--text); transition: color .2s; }
.blog-featured-title a:hover { color: var(--accent-text); }
.blog-featured-excerpt { font-size: 0.95rem; color: var(--text2); line-height: 1.65; margin: 0 0 1.2rem; }
.blog-featured-link,
.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-text);
  transition: gap .2s;
}
.blog-featured-link:hover,
.post-card-link:hover { gap: 0.6rem; color: var(--accent-text); }

.posts-grid { display: grid; gap: 1.5rem; }
.posts-grid--3col { grid-template-columns: repeat(3, 1fr); }
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: rgba(203,245,74,.4); transform: translateY(-3px); }
.post-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.post-card-title a { color: var(--text); transition: color .2s; }
.post-card-title a:hover { color: var(--accent-text); }
.post-card-excerpt { font-size: 0.86rem; color: var(--text2); line-height: 1.6; margin: 0 0 1rem; flex: 1; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--text2);
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .2s, color .2s, background .2s;
}
.pagination .page-numbers:hover { border-color: var(--lime); color: var(--text); }
.pagination .page-numbers.current { background: var(--lime); border-color: var(--lime); color: #0A0B0D; }
.blog-empty { color: var(--text2); font-size: 1rem; text-align: center; padding: 3rem 0; }

/* Breadcrumb + widgets */
.breadcrumb { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--text3); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb span { color: var(--text3); }
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.8rem; }

@media (max-width: 900px) {
  .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 0 1.6rem 1.8rem; }
  .blog-featured-img-wrap { border-radius: 0; }
}
@media (max-width: 560px) {
  .posts-grid--3col { grid-template-columns: 1fr; }
  .blog-home { padding: 8rem 1.2rem 3rem; }
}

/* ============================================================
   CF7 · CASILLA DE CONSENTIMIENTO
   CF7 envuelve la casilla en tres spans anidados, así que .aud-consent
   (flex) solo tiene un hijo y su gap no separa nada. Se aplanan los spans
   y el flex se traslada al <label>, que es quien contiene casilla + texto.
   El margin:0 neutraliza el margen izquierdo de la hoja propia de CF7.
   ============================================================ */
.aud-consent .wpcf7-form-control-wrap,
.aud-consent .wpcf7-acceptance,
.aud-consent .wpcf7-list-item {
  display: block;
  margin: 0;
  width: 100%;
}
.aud-consent .wpcf7-list-item label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
}
.aud-consent .wpcf7-list-item-label { flex: 1; }
.aud-consent .wpcf7-list-item input[type="checkbox"] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--lime);
  cursor: pointer;
}
.aud-consent .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.8rem;
  color: var(--err);
  margin-top: 0.4rem;
}

/* ============================================================
   CONTENIDO EDITORIAL — .entry-content
   Estilos por defecto de the_content(): Carlos escribe en el editor con
   encabezados normales y sale con ritmo, sin tocar nada a mano.
   Medida de lectura ~68 caracteres. Ritmo vertical: margen superior mayor
   que el inferior, para que cada encabezado se agrupe con su texto.
   ============================================================ */
.entry-content {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text2);
}
.entry-content > * { max-width: 100%; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: pretty;
}
.entry-content h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  font-weight: 700;
  margin: 3.2rem 0 1rem;
}
.entry-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.32rem);
  font-weight: 600;
  margin: 2.4rem 0 0.75rem;
}
.entry-content h4 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.9rem 0 0.6rem;
}
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child { margin-top: 0; }
.entry-content h2 + h3,
.entry-content h3 + h4 { margin-top: 1.2rem; }

.entry-content p { margin: 0 0 1.35rem; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content em { font-style: italic; }
.entry-content small { font-size: 0.85em; color: var(--text3); }

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.35rem;
  padding-left: 1.5rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
  line-height: 1.7;
}
.entry-content li::marker { color: var(--accent-text); }
.entry-content li > ul,
.entry-content li > ol { margin: 0.55rem 0 0; }

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--lime);
  border-radius: 0 8px 8px 0;
  background: var(--bg2);
  color: var(--text);
  font-style: italic;
  line-height: 1.65;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--text3);
}
body.paper .entry-content blockquote { border-left-color: var(--accent-text); }

.entry-content a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
}
.entry-content a:hover { text-decoration-color: transparent; color: var(--accent-text); }

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.entry-content figure {
  max-width: 100%;
  margin: 2rem 0;
}
.entry-content figure img { width: 100%; }
.entry-content figcaption {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  color: var(--text3);
  line-height: 1.5;
  margin-top: 0.6rem;
  text-align: left;
}
.entry-content .wp-block-image { margin: 2rem 0; }
.entry-content .alignright { float: right; margin: 0.4rem 0 1.2rem 1.5rem; max-width: 45%; }
.entry-content .alignleft  { float: left;  margin: 0.4rem 1.5rem 1.2rem 0; max-width: 45%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

.entry-content code {
  font-family: var(--ff-mono);
  font-size: 0.86em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.12em 0.4em;
  color: var(--accent-text);
  overflow-wrap: break-word;
}
.entry-content pre {
  margin: 1.8rem 0;
  padding: 1.1rem 1.2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.entry-content pre code {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.8rem 0;
}
.entry-content .wp-block-table,
.entry-content figure.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table th,
.entry-content table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.entry-content table th {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.entry-content table tbody tr:last-child td { border-bottom: none; }

.entry-content hr {
  height: 0;
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.8rem 0;
}
.entry-content > *:last-child { margin-bottom: 0; }
.entry-pages {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ============================================================
   PÁGINAS SUELTAS (page.php) + ENTRADA (single.php)
   Misma medida de lectura, mismo aire que servicios/auditoría.
   ============================================================ */
.page-wrap,
.single-wrap {
  position: relative;
  z-index: 1;
  padding: 11rem 1.5rem 5rem;
}
.page-inner,
.single-inner {
  max-width: 720px;
  margin: 0 auto;
}
.entry-header { margin-bottom: 2.4rem; }
.entry-title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text);
  margin: 0.4rem 0 0.9rem;
  text-wrap: pretty;
}
.entry-updated,
.single-meta {
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  color: var(--text3);
  margin: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.single-meta-sep { color: var(--border2); }
.single-cats { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0; }
.single-cats a,
.single-tags a {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--lime-soft);
  border: 1px solid rgba(203,245,74,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  transition: border-color .2s;
}
.single-cats a:hover,
.single-tags a:hover { border-color: var(--lime); color: var(--accent-text); }
body.paper .single-cats a,
body.paper .single-tags a { border-color: rgba(92,107,42,0.28); }
body.paper .single-cats a:hover,
body.paper .single-tags a:hover { border-color: var(--accent-text); }
.single-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 2.5rem 0 0; }

.entry-hero-img {
  margin: 0 0 2.4rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.entry-hero-img img { width: 100%; height: auto; }
.entry-hero-img figcaption {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--text3);
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--border);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-nav-side.is-next { text-align: right; }
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  transition: border-color .2s, transform .2s;
}
.post-nav-link:hover { border-color: var(--lime); transform: translateY(-2px); }
body.paper .post-nav-link:hover { border-color: var(--accent-text); }
.post-nav-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.post-nav-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}
.post-back { margin-top: 2.2rem; text-align: center; }
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-text);
  transition: gap .2s;
}
.post-back-link:hover { gap: 0.6rem; color: var(--accent-text); }

@media (max-width: 820px) {
  .page-wrap, .single-wrap { padding: 8rem 1.2rem 4rem; }
}
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-side.is-next { text-align: left; }
  .entry-content .alignright,
  .entry-content .alignleft { float: none; margin: 1.5rem 0; max-width: 100%; }
}

/* ============================================================
   PAPEL — blog, entradas y páginas sueltas
   Los tokens de body.paper ya hacen casi todo. Aquí solo se recupera
   contraste en las piezas del índice pensadas para fondo oscuro:
   la tarjeta se despega del papel (blanco + hairline + sombra susurro)
   y los acentos lima pasan a lima oscura.
   ============================================================ */
body.paper .post-card,
body.paper .blog-featured {
  background: #FFFFFF;
  border-color: #D0CCBE;
  box-shadow: 0 1px 3px rgba(22,24,28,0.06);
}
body.paper .post-card:hover,
body.paper .blog-featured:hover { border-color: var(--accent-text); }
body.paper .post-card-img,
body.paper .blog-featured-img-placeholder,
body.paper .post-card-img-placeholder { border-bottom: 1px solid #E2DFD3; }
body.paper .blog-cat-badge { border-color: rgba(92,107,42,0.28); }
body.paper .blog-filter-btn:hover { border-color: var(--accent-text); color: var(--text); }
body.paper .blog-filter-btn.active,
body.paper .pagination .page-numbers.current {
  background: var(--accent-text);
  border-color: var(--accent-text);
  color: #F4F2EC;
}
body.paper .pagination .page-numbers:hover { border-color: var(--accent-text); color: var(--text); }
body.paper .entry-content code { color: var(--accent-text); }
body.paper .entry-content pre code { color: var(--text); }
