/* ============================================================
   SIRHU — sirhu.com · Hoja de estilos
   Paleta: docs/SIRHU_paleta_cromatica.md
   ============================================================ */
:root {
  /* Primarios */
  --brand-primary: #00634F;
  --brand-accent: #00D37F;
  /* Escala Bosque */
  --brand-50: #E6F2EF;
  --brand-200: #9FCFC4;
  --brand-400: #3D9B87;
  --brand-600: #00634F;
  --brand-800: #003D31;
  /* Escala Menta */
  --accent-50: #E0FBF0;
  --accent-200: #7AEABD;
  --accent-400: #00D37F;
  --accent-600: #00A563;
  --accent-800: #007347;
  /* Neutros */
  --n-0: #FFFFFF;
  --n-50: #F5F6F5;
  --n-200: #E2E6E5;
  --n-400: #8A9B97;
  --n-800: #2D3B38;
  --n-950: #131A18;
  /* Semánticos */
  --info: #3B82F6;
  --warning: #F59E0B;
  /* Tipografía */
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  /* Misceláneos */
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(0, 61, 49, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(0, 61, 49, 0.14);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--n-800);
  background: var(--n-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-400);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--brand-800); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-800);
  background: var(--accent-50);
  border: 1px solid var(--accent-200);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-400);
}

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--n-800); max-width: 46ch; }
.muted { color: var(--n-400); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-400); color: var(--brand-800); box-shadow: 0 4px 14px rgba(0, 211, 127, .35); }
.btn-primary:hover { background: var(--accent-200); }
.btn-outline { background: transparent; color: var(--n-0); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-forest { background: var(--brand-600); color: var(--n-0); }
.btn-forest:hover { background: var(--brand-400); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-600);
  box-shadow: 0 2px 12px rgba(0, 61, 49, .25);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--n-0); letter-spacing: 0.04em;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--brand-50); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s;
}
.nav-links a:hover { border-bottom-color: var(--accent-400); color: var(--n-0); }
.nav-cta { background: var(--accent-400); color: var(--brand-800) !important; padding: 10px 20px !important; border-radius: var(--radius-pill); font-weight: 700; border-bottom: none !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { stroke: var(--n-0); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--brand-800);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 480px; box-shadow: 0 16px 24px rgba(0,0,0,.3); }
  .nav-links li { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-cta { margin: 16px 24px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--brand-600);
  color: var(--n-0);
  overflow: hidden;
}
.hero .circuit-bg {
  position: absolute; inset: 0;
  opacity: .14; pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 110px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 { color: var(--n-0); }
.hero h1 .mint { color: var(--accent-400); }
.hero p.lead { color: var(--brand-50); margin: 22px 0 34px; }
.hero .eyebrow { background: rgba(224,251,240,.12); border-color: rgba(122,234,189,.4); color: var(--accent-200); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent-400); display: block; line-height: 1; }
.hero-stats .stat span { font-size: .85rem; color: var(--brand-200); }

.hero-card {
  background: var(--n-0); border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  padding: 26px; color: var(--n-800);
}
.hero-card .hc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-card .hc-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-card .hc-title { font-family: var(--font-mono); font-size: .78rem; color: var(--n-400); margin-left: auto; }
.hc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); margin-bottom: 10px; }
.hc-row .name { font-weight: 600; font-size: .92rem; }
.hc-row .test { font-family: var(--font-mono); font-size: .72rem; color: var(--n-400); display: block; }
.badge { font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.badge-ok { background: var(--accent-50); color: var(--accent-800); }
.badge-progress { background: #FEF3C7; color: #92400E; }
.hc-bar { height: 10px; border-radius: var(--radius-pill); background: var(--n-200); overflow: hidden; margin-top: 16px; }
.hc-bar > i { display: block; height: 100%; width: 78%; border-radius: var(--radius-pill); background: linear-gradient(90deg, #00634F, #00D37F); }
.hc-bar-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--n-400); margin-top: 6px; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 80px; }
}

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { margin-top: 14px; color: var(--n-800); }
.section.alt { background: var(--n-0); }
.section.forest { background: var(--brand-800); color: var(--brand-50); }
.section.forest h2 { color: var(--n-0); }

/* Conector de circuito entre secciones */
.circuit-divider { display: flex; justify-content: center; background: var(--n-50); }
.circuit-divider svg { height: 56px; }

/* ---------- Grid de tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--n-0); border: 1px solid var(--n-200);
  border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--brand-200); }
.section.alt .card { background: var(--brand-50); border-color: transparent; box-shadow: none; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--n-800); }
.card .mono-tag { font-family: var(--font-mono); font-size: .72rem; color: var(--n-400); display: block; margin-top: 14px; }

/* ---------- Chips de pruebas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  background: var(--n-0); border: 1.5px solid var(--brand-200); color: var(--brand-600);
  padding: 10px 20px; border-radius: var(--radius-pill);
  transition: background .15s, border-color .15s;
}
.chip:hover { background: var(--accent-50); border-color: var(--accent-400); }
.chip.more { background: var(--brand-600); color: var(--n-0); border-color: var(--brand-600); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--n-0); border-radius: var(--radius-card); padding: 32px 28px 28px; border: 1px solid var(--n-200); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  color: var(--accent-800); background: var(--accent-50); border: 1px solid var(--accent-200);
  border-radius: var(--radius-pill); padding: 4px 12px;
  position: absolute; top: -14px; left: 24px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  background: var(--n-0); border: 1px solid var(--n-200); border-radius: 16px;
  padding: 0; margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--brand-800);
  padding: 20px 56px 20px 24px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-600);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 22px; color: var(--n-800); font-size: .96rem; }

/* ---------- CTA final ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--brand-600); border-radius: 28px;
  padding: 64px 48px; text-align: center; color: var(--n-0);
}
.cta .circuit-bg { position: absolute; inset: 0; opacity: .12; pointer-events: none; }
.cta h2 { color: var(--n-0); position: relative; }
.cta p { color: var(--brand-50); margin: 16px auto 32px; max-width: 52ch; position: relative; }
.cta .hero-actions { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
footer { background: var(--brand-800); color: var(--brand-200); padding: 56px 0 28px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--font-display); color: var(--n-0); font-size: 1rem; margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--brand-200); text-decoration: none; font-size: .92rem; }
footer a:hover { color: var(--accent-400); }
.footer-brand p { font-size: .9rem; max-width: 34ch; margin-top: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo span { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--n-0); letter-spacing: .04em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--n-400);
}
.footer-bottom a { font-size: .82rem; }

/* ---------- Páginas legales ---------- */
.legal-hero { background: var(--brand-600); color: var(--n-0); padding: 64px 0 48px; }
.legal-hero h1 { color: var(--n-0); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-hero .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--brand-200); margin-top: 12px; }
.legal-body { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; background: var(--n-0); }
.legal-wrap { background: var(--n-0); }
.legal-body h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal-body p, .legal-body li { font-size: .97rem; margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 16px; }
.legal-body .notice {
  background: var(--accent-50); border: 1px solid var(--accent-200);
  border-radius: 14px; padding: 18px 20px; font-size: .92rem; margin: 24px 0;
}
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
.legal-body th { background: var(--brand-50); color: var(--brand-800); text-align: left; }
.legal-body th, .legal-body td { border: 1px solid var(--n-200); padding: 10px 12px; }

/* ---------- Animaciones de entrada ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .6s ease forwards; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-400); color: var(--brand-800);
  padding: 10px 18px; border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Tabla comparativa ---------- */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--n-0); border: 1px solid var(--n-200);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); min-width: 640px;
}
.compare th, .compare td { padding: 16px 20px; text-align: center; font-size: .95rem; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th {
  font-family: var(--font-display); font-size: 1.05rem;
  background: var(--brand-50); color: var(--brand-800);
  border-bottom: 2px solid var(--n-200);
}
.compare thead th.col-sirhu {
  background: var(--brand-600); color: var(--n-0);
}
.compare tbody tr:nth-child(even) { background: var(--n-50); }
.compare tbody td { border-bottom: 1px solid var(--n-200); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.col-sirhu { background: var(--accent-50); font-weight: 600; color: var(--brand-800); }
.compare .feature { font-weight: 600; color: var(--n-800); }
.compare .feature small { display: block; font-weight: 400; color: var(--n-400); font-size: .82rem; }
.mark { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; }
.mark-yes { background: var(--accent-400); color: var(--brand-800); }
.mark-no { background: var(--n-200); color: var(--n-400); }
.mark-partial { background: #FEF3C7; color: #92400E; font-size: .8rem; }
.compare-note { font-size: .85rem; color: var(--n-400); margin-top: 14px; }

/* ---------- Catálogo de pruebas ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .test-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .test-grid { grid-template-columns: 1fr; } }
.test-card {
  background: var(--brand-50); border: 1px solid transparent;
  border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.test-card:hover { transform: translateY(-3px); border-color: var(--accent-400); background: var(--accent-50); }
.test-card h3 { font-size: 1.08rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.test-card .tc-alias { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--accent-800); background: var(--accent-50); border: 1px solid var(--accent-200); border-radius: var(--radius-pill); padding: 2px 10px; }
.test-card p { font-size: .9rem; color: var(--n-800); flex: 1; }
.test-card .tc-cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--n-400); }

/* ---------- Precios ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.price-card {
  background: var(--n-0); border: 1px solid var(--n-200);
  border-radius: var(--radius-card); padding: 34px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card); position: relative;
}
.price-card.featured { border: 2px solid var(--accent-400); box-shadow: 0 16px 40px rgba(0, 211, 127, .22); }
.price-card .pc-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-400); color: var(--brand-800);
  border-radius: var(--radius-pill); padding: 5px 16px; white-space: nowrap;
}
.price-card h3 { font-size: 1.35rem; }
.price-card .pc-for { font-size: .88rem; color: var(--n-400); margin: 4px 0 20px; min-height: 42px; }
.price-card .pc-price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--brand-600); line-height: 1; }
.price-card .pc-price small { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--n-400); }
.price-card .pc-note { font-size: .78rem; color: var(--n-400); margin-top: 6px; }
.price-card ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.price-card li::before { content: "✓"; font-weight: 800; color: var(--accent-600); flex-shrink: 0; }
.price-card li.pc-plus::before { content: "＋"; color: var(--brand-400); }
.price-card .btn { justify-content: center; }
.pricing-note { text-align: center; font-size: .85rem; color: var(--n-400); margin-top: 28px; }
