/* ============================================================
   PatrolCheck — hoja de marca para PÁGINAS INTERIORES
   Tokens y componentes tomados de la landing v3 (index.html).
   La landing NO usa este archivo: sigue con su CSS propio.
   Creado 2026-08-31 para las páginas de contenido.
   ============================================================ */

:root {
  color-scheme: light;

  --ink:        #15161a;
  --ink-2:      #1a1c21;
  --ink-line:   rgba(240, 236, 223, 0.10);
  --ink-line-2: rgba(240, 236, 223, 0.18);

  --paper:      #f0ecdf;
  --paper-dim:  rgba(240, 236, 223, 0.72);
  --paper-mute: rgba(240, 236, 223, 0.52);

  --bg:         #ffffff;
  --bg-2:       #f6f7f4;
  --bg-3:       #eef1ec;

  --text:       #15161a;
  --text-2:     #3a4046;
  --muted:      #5d6570;

  --card:        #5d7a5e;
  --card-deep:   #3f5540;
  --card-bright: #8fb591;
  --card-soft:   #e8efe6;
  --card-wash:   #f3f7f1;

  --check:       #16a34a;
  --gold:        #e8a33d;
  --gold-deep:   #b97a1e;
  --gold-soft:   #fdf3e0;

  --line:        rgba(21, 22, 26, 0.10);
  --line-2:      rgba(21, 22, 26, 0.20);

  --font-display: "Sora", system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;

  --shadow-sm: 0 1px 3px rgba(21, 22, 26, 0.07);
  --shadow-md: 0 8px 24px -6px rgba(21, 22, 26, 0.12);
  --glow-card: 0 12px 34px -8px rgba(93, 122, 94, 0.50);

  --wrap: 1160px;
  --prose: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--card-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}
p { margin: 0; color: var(--text-2); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose-wrap { max-width: var(--prose); margin: 0 auto; padding: 0 24px; }
.label {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--card-deep);
}

/* — Navegación (idéntica a la landing; anclas absolutas a "/") — */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px 24px; max-width: var(--wrap); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 18.5px;
  color: var(--text); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(140deg, #6c8c6d, var(--card-deep));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; box-shadow: 0 4px 12px rgba(93, 122, 94, 0.45); flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name span { color: var(--card-deep); }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-2); font-size: 14.5px; font-weight: 600;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--card); border-radius: 2px;
  transition: right 220ms ease;
}
.nav-links a:hover { color: var(--card-deep); text-decoration: none; }
.nav-links a:hover::after { right: 0; }
@media (min-width: 900px) { .nav-links { display: inline-flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: var(--r-md);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 140ms ease, box-shadow 200ms ease, filter 160ms ease;
  border: 1px solid transparent; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(140deg, #6c8c6d 0%, var(--card) 45%, var(--card-deep) 100%);
  color: #ffffff;
  box-shadow: var(--glow-card), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  text-decoration: none; transform: translateY(-2px); filter: brightness(1.07);
}
.btn svg { width: 19px; height: 19px; }
.nav-cta { padding: 11px 18px; font-size: 14px; }

/* — Encabezado de página interior — */
.page-head {
  background: linear-gradient(168deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper); padding: 56px 0 60px;
}
.page-head .prose-wrap { max-width: 900px; }
.page-head .label { color: var(--card-bright); }
.page-head h1 {
  color: var(--paper); font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12; margin: 14px 0 0;
}
.page-head .lede {
  color: var(--paper-dim); font-size: clamp(16.5px, 2vw, 19px);
  margin-top: 18px; line-height: 1.6;
}
.page-head .lede strong { color: var(--paper); }
.crumbs { font-size: 13px; color: var(--paper-mute); margin-bottom: 4px; }
.crumbs a { color: var(--paper-mute); text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--card-bright); }

/* — Cuerpo de prosa — */
.page-body { padding: 52px 0 20px; }
.page-body h2 {
  font-size: clamp(22px, 3vw, 28px); margin: 46px 0 4px; line-height: 1.25;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-size: clamp(18px, 2.2vw, 21px); margin: 32px 0 2px;
  color: var(--card-deep); line-height: 1.3;
}
.page-body p { margin: 14px 0; font-size: 16.5px; }
.page-body ul.bullets { margin: 14px 0; padding-left: 0; }
.page-body ul.bullets li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  color: var(--text-2); font-size: 16.5px;
}
.page-body ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--card);
}
.page-body strong { color: var(--text); font-weight: 700; }

.callout {
  background: var(--card-wash); border: 1px solid var(--card-soft);
  border-left: 3px solid var(--card);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px; margin: 24px 0;
}
.callout p { margin: 0; font-size: 15.5px; }

/* — Planes — */
.plans-section { background: var(--bg-2); padding: 46px 0 52px; margin: 0 0 44px; border-bottom: 1px solid var(--line); }
.plans-grid {
  display: grid; gap: 16px; margin-top: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm); position: relative;
}
.plan-card--featured {
  border-color: var(--card); box-shadow: var(--glow-card);
}
.plan-flag {
  position: absolute; top: -11px; left: 20px;
  background: var(--card); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}
.plan-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.plan-range { font-size: 13.5px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price-amount { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.plan-price-unit { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.plan-price-suffix { font-size: 12.5px; color: var(--muted); }
.plan-price-clp { font-size: 13.5px; color: var(--card-deep); font-weight: 600; margin-top: 2px; }
.plan-actions { margin-top: auto; padding-top: 16px; }
.btn-contratar {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; background: transparent; color: var(--card-deep);
  font-weight: 700; font-size: 15px;
  border: 1.5px solid rgba(93, 122, 94, 0.55); border-radius: var(--r-md);
  transition: background 160ms ease, color 160ms ease, transform 140ms ease, box-shadow 200ms ease;
}
.btn-contratar:hover {
  background: var(--card); color: #ffffff; text-decoration: none;
  transform: translateY(-1px); box-shadow: var(--glow-card);
}
.btn-contratar svg { width: 16px; height: 16px; }
.plan-card--custom { background: var(--card-wash); border-color: var(--card-soft); }
.plan-custom-benefit {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--card-deep); margin-bottom: 6px;
}
.plan-custom-copy { font-size: 14px; }
.btn-cotizacion {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; background: var(--bg); color: var(--card-deep);
  font-weight: 700; font-size: 14.5px;
  border: 1.5px solid var(--card); border-radius: var(--r-md);
  transition: background 160ms ease, color 160ms ease, box-shadow 200ms ease;
}
.btn-cotizacion:hover { background: var(--card); color: #fff; text-decoration: none; box-shadow: var(--glow-card); }
.btn-cotizacion svg { width: 16px; height: 16px; }

.plans-included {
  margin-top: 26px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 22px;
}
.plans-included-title {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--card-deep);
  margin-bottom: 12px;
}
.plans-included-list {
  display: grid; gap: 9px 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.plans-included-list li {
  position: relative; padding-left: 26px; font-size: 15px; color: var(--text-2);
}
.plans-included-list li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 13px; height: 8px; border-left: 2.4px solid var(--check);
  border-bottom: 2.4px solid var(--check); transform: rotate(-45deg);
}
.pricing-notes { margin-top: 22px; }
.pricing-notes p { font-size: 13.5px; color: var(--muted); margin: 7px 0; }

/* — Preguntas frecuentes — */
.faq { margin: 44px 0 8px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0; margin-bottom: 10px; background: var(--bg);
  transition: border-color 160ms ease, box-shadow 200ms ease;
}
.faq details[open] { border-color: var(--card-soft); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 16px 20px; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px;
  color: var(--text); display: flex; justify-content: space-between;
  align-items: center; gap: 14px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2.2px solid var(--card); border-bottom: 2.2px solid var(--card);
  transform: rotate(45deg) translateY(-2px); transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq-body { padding: 0 20px 18px; }
.faq .faq-body p { margin: 0; font-size: 16px; }

/* — Cierre / llamada a la acción — */
.page-cta {
  background: linear-gradient(168deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper); padding: 52px 0; margin-top: 56px; text-align: center;
}
.page-cta h2 { color: var(--paper); font-size: clamp(23px, 3.2vw, 31px); }
.page-cta p { color: var(--paper-dim); margin: 14px auto 26px; max-width: 560px; }
.page-cta .btn-primary { box-shadow: var(--glow-card); }

/* — Pie — */
footer {
  background: var(--ink); border-top: 1px solid var(--ink-line);
  padding: 52px 0 34px; color: var(--paper-dim);
}
footer .brand { color: var(--paper); }
footer .brand-name span { color: var(--card-bright); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 44px; } }
.foot-brand p { margin-top: 12px; font-size: 14px; color: var(--paper-mute); max-width: 380px; }
.foot-col h4 {
  font-family: var(--font-mono); text-transform: uppercase; font-size: 11px;
  letter-spacing: 1.8px; color: var(--paper-mute); margin-bottom: 14px; font-weight: 700;
}
.foot-col a, .foot-col span { display: block; color: var(--paper-dim); font-size: 14px; margin-bottom: 9px; }
.foot-col a:hover { color: var(--card-bright); text-decoration: none; }
.foot-bar {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 12.5px; color: var(--paper-mute);
}

/* — Tablas de contenido (p. ej. multas de la Ley 21.659) — */
.tabla-wrap { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table.datos {
  border-collapse: collapse; width: 100%; min-width: 520px;
  font-size: 15px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
table.datos th, table.datos td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.datos thead th {
  background: var(--bg-2); font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--card-deep); font-weight: 700;
}
table.datos tbody tr:last-child td { border-bottom: 0; }
table.datos td:first-child { font-weight: 600; color: var(--text); }

/* — Enlace de cierre hacia precios — */
.page-cta .btn + .btn { margin-left: 10px; }
.page-cta .btn-ghost-dark {
  background: transparent; color: var(--paper);
  border: 1.5px solid var(--ink-line-2);
}
.page-cta .btn-ghost-dark:hover { background: rgba(240,236,223,.08); text-decoration: none; }

/* — Foto de contexto en el encabezado (mismo tratamiento que la portada) — */
.page-head { position: relative; overflow: hidden; }
.page-head > .prose-wrap { position: relative; z-index: 1; }
.page-head-photo { position: absolute; inset: 0; pointer-events: none; }
.page-head-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 34%;
  filter: brightness(0.52) saturate(0.85);
}
.page-head-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,22,26,0.55) 0%, rgba(21,22,26,0.30) 45%, rgba(21,22,26,0.80) 100%);
}

/* — Foto de respiro dentro del cuerpo — */
.figura { margin: 34px 0 10px; }
.figura img {
  width: 100%; height: auto; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 9; object-fit: cover; object-position: center 38%;
}
.figura figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: .02em;
}
