/* CNI — Páginas de servicio (BORRADOR)
   Tokens: mismos valores del CNI Design System ya usados en 02_Web/index.html
   (01_Marca/CNI-Design-System/tokens.css). No introduce colores nuevos. */

:root {
  --bg-dark: #2A0C19;          /* surface-page */
  --bg-dark-alt: #1E0811;      /* surface-sunken */
  --surface-nav: #1E0811;      /* surface-nav */
  --surface-glow: #4A1326;     /* surface-glow */
  --panel-bg: #3A1424;         /* surface-raised */
  --panel-border: #5A2A3C;     /* border-subtle */
  --panel-border-hover: rgba(230,207,162, 0.45);

  --orange-primary: #E6CFA2;   /* accent-orange */
  --orange-hover: #F2E2BC;     /* accent-orange-deep */
  --gold-accent: #E6CFA2;      /* gold */
  --green-wa: #25D366;         /* whatsapp */
  --on-accent: #2A0C19;        /* on-accent */
  --focus-ring: #E6CFA2;       /* focus-ring */

  --text-white: #FBF6EC;       /* ink */
  --text-muted: #D9C9B8;       /* ink-muted */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
::selection { background: var(--orange-primary); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: var(--surface-nav); border-bottom: 1px solid var(--panel-border); }
nav.site-nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { width: 130px; height: auto; max-height: 70px; object-fit: contain; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-white); }
.nav-links a.btn-nav {
  background: var(--orange-primary); color: var(--on-accent);
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-links a.btn-nav:hover { background: var(--orange-hover); color: var(--on-accent); }
.mobile-nav-toggle { display: none; background: none; border: none; padding: 9px; cursor: pointer; color: var(--text-white); border-radius: var(--radius-sm); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius-md); font-weight: 700; font-size: 1rem;
  font-family: var(--font-sans); cursor: pointer; border: none; text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--orange-primary); color: var(--on-accent); box-shadow: 0 8px 24px rgba(230,207,162, 0.35); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-whatsapp { background: var(--green-wa); color: var(--on-accent); }
.btn-whatsapp:hover { box-shadow: inset 0 0 0 3px var(--on-accent); }

/* Breadcrumb */
.breadcrumb { padding: 22px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--text-white); }

/* Hero */
.page-hero {
  padding: 28px 0 56px;
  background-image: radial-gradient(circle at 20% 0%, rgba(230,207,162, 0.07) 0%, transparent 60%);
  border-bottom: 1px solid var(--panel-border);
}
.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-accent);
  margin: 18px 0 14px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.18;
  letter-spacing: -0.8px; margin-bottom: 24px; max-width: 820px;
}

/* Respuesta rápida (bloque AEO) */
.answer-box {
  background: var(--panel-bg);
  border: 1px solid rgba(230,207,162, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  max-width: 820px;
  margin-bottom: 28px;
}
.answer-label {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--orange-primary); color: var(--on-accent);
  padding: 4px 10px; border-radius: var(--radius-sm); margin-bottom: 12px;
}
.answer-box p { font-size: 1.12rem; line-height: 1.6; color: var(--text-white); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-microcopy { font-size: 0.84rem; color: var(--text-muted); margin-top: 14px; font-weight: 500; }
.byline { font-size: 0.9rem; color: var(--text-muted); margin: -4px 0 20px; font-weight: 500; }
.byline strong { color: inherit; font-weight: 700; }
.byline a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.byline a:hover, .byline a:focus-visible { color: var(--orange-primary); }

/* Secciones de contenido */
.content-section { padding: 64px 0 0; }
.content-section:last-of-type { padding-bottom: 64px; }
.content-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.25;
  letter-spacing: -0.4px; margin-bottom: 16px;
}
.content-section h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.content-section p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; }
.content-section p strong, .content-section li strong { color: var(--text-white); }
.content-section a.inline-link { color: var(--orange-primary); text-decoration: underline; text-underline-offset: 3px; }
.content-section a.inline-link:hover { color: var(--gold-accent); }

.check-list { list-style: none; display: grid; gap: 12px; margin: 8px 0 16px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-accent);
  font-family: var(--font-mono); font-weight: 900;
}
.limit-list li::before { content: "–"; color: var(--text-muted); }

.step-list { list-style: none; counter-reset: paso; display: grid; gap: 14px; margin: 8px 0 16px; }
.step-list li {
  counter-increment: paso; background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: var(--radius-md); padding: 18px 20px 18px 64px; position: relative;
  color: var(--text-muted); font-size: 1rem; line-height: 1.55;
}
.step-list li::before {
  content: counter(paso, decimal-leading-zero); position: absolute; left: 20px; top: 18px;
  font-family: var(--font-mono); font-weight: 900; color: var(--orange-primary); font-size: 1.1rem;
}
.step-list li strong { display: block; color: var(--text-white); margin-bottom: 2px; }

.note-box {
  background: rgba(230,207,162, 0.06); border: 1px solid rgba(230,207,162, 0.25);
  border-radius: var(--radius-md); padding: 18px 22px; margin: 8px 0 16px;
}
.note-box p { margin: 0; font-size: 0.98rem; }

/* Tarjetas de opción (precio) */
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.option-grid.two { grid-template-columns: repeat(2, 1fr); }
.option-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border); border-top: 3px solid var(--orange-primary);
  border-radius: var(--radius-md); padding: 26px 22px; display: flex; flex-direction: column; transition: border-color 0.2s;
}
.option-card:hover { border-color: var(--panel-border-hover); border-top-color: var(--orange-primary); }
.option-tag { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--gold-accent); margin-bottom: 8px; }
.option-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.option-price { font-size: 1.6rem; font-weight: 800; color: var(--text-white); margin: 6px 0 14px; }
.option-price small { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.option-card .check-list { gap: 8px; }
.option-card .check-list li { font-size: 0.93rem; }
.option-card p.option-for { margin: 10px 0 0; font-size: 0.92rem; }

/* Tabla de datos clave (bloque GEO) */
.facts { display: grid; grid-template-columns: 1fr; border: 1px solid var(--panel-border); border-radius: var(--radius-md); overflow: hidden; margin-top: 12px; }
.facts-row { display: grid; grid-template-columns: 210px 1fr; background: var(--panel-bg); border-bottom: 1px solid var(--panel-border); }
.facts-row:last-child { border-bottom: none; }
.facts dt { padding: 14px 18px; font-weight: 700; font-size: 0.92rem; color: var(--text-white); border-right: 1px solid var(--panel-border); }
.facts dd { padding: 14px 18px; font-size: 0.98rem; color: var(--text-muted); line-height: 1.55; }
.facts dd a { color: var(--orange-primary); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin-top: 12px; }
.faq-item { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-md); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; font-size: 1.05rem;
  color: var(--text-white); position: relative; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.4rem; color: var(--orange-primary);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] { border-color: var(--panel-border-hover); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* Relacionados */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 12px; }
.related-card {
  display: block; background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: var(--radius-md); padding: 22px; transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--panel-border-hover); }
.related-card strong { display: block; font-size: 1.05rem; margin-bottom: 6px; color: var(--text-white); }
.related-card span { font-size: 0.93rem; color: var(--text-muted); line-height: 1.5; display: block; }

/* CTA final */
.cta-final { padding: 72px 0 80px; text-align: center; border-top: 1px solid var(--panel-border); margin-top: 64px; background: var(--bg-dark-alt); }
.cta-final-card {
  background: var(--panel-bg); border: 1px solid rgba(230,207,162, 0.35); border-radius: var(--radius-lg);
  padding: 52px 32px; max-width: 820px; margin: 0 auto;
}
.cta-final-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.cta-final-card p { font-size: 1.08rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; line-height: 1.6; }
.cta-final-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { background: var(--bg-dark-alt); color: var(--text-muted); padding: 56px 0 48px; font-size: 0.9rem; border-top: 1px solid var(--panel-border); text-align: center; }
.footer-logo { width: 260px; max-width: 85%; height: auto; object-fit: contain; margin: 0 auto 20px; display: block; }
.footer-label { font-family: var(--font-mono); font-size: 0.88rem; letter-spacing: 1.2px; color: var(--text-white); font-weight: 700; margin-bottom: 16px; text-transform: uppercase; }
.footer-legal { font-size: 0.85rem; max-width: 750px; margin: 0 auto 22px; line-height: 1.6; }
.footer-contact { margin-bottom: 8px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 960px) {
  .option-grid, .option-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--bg-dark-alt); padding: 24px; border-bottom: 1px solid var(--panel-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); gap: 4px; align-items: stretch;
  }
  .nav-links.active a { display: flex; align-items: center; min-height: 44px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-logo img { width: 90px; max-height: 52px; }
  .facts-row { grid-template-columns: 1fr; }
  .facts dt { border-right: none; border-bottom: 1px solid var(--panel-border); padding-bottom: 10px; }
  .facts dd { padding-top: 10px; }
  .answer-box { padding: 22px 20px; }
  .btn { width: 100%; }
  .hero-actions, .cta-final-btns { flex-direction: column; }
  .cta-final-card { padding: 38px 20px; }
  .content-section { padding-top: 48px; }
}

/* Aviso de cookies: mismo vino y papel que la portada (los estilos base los inyecta cni-consent.js; la lógica no se toca) */
body #cni-cookies{background:#F8F4EB;color:#351321;border:1px solid #C7A776;box-shadow:0 18px 55px rgba(50,14,29,.24)}
body #cni-cookies h2{color:#4A162C}
body #cni-cookies p{color:#53424A}
body #cni-cookies a{color:#6A1A37}
body #cni-cookies .cni-accept{background:#5A1428;color:#FFF9EB;border:2px solid #5A1428}
body #cni-cookies .cni-accept:hover{background:#721F3C;border-color:#721F3C}
body #cni-cookies .cni-reject{background:#FFFDF8;color:#5A1428;border:2px solid #5A1428}
body #cni-cookies .cni-reject:hover{background:#EFE0CD;border-color:#5A1428}
body #cni-cookies button:focus-visible,body #cni-cookies a:focus-visible{outline:3px solid #A67A4A;outline-offset:3px}
