/* ==========================================================
   Operativa Digital — hoja de estilos principal
   Paleta y tipografía definidas en la guía de marca (marca.html)
   ========================================================== */

:root {
  /* Colores de marca */
  --navy-900: #0F2340;   /* Azul Operativo — color principal */
  --navy-700: #1B3A63;
  --navy-100: #E6ECF4;
  --green-600: #12A16B;  /* Verde Planilla — acento / acciones */
  --green-700: #0D8257;
  --green-100: #E3F5EC;
  --amber-500: #F2A93B;  /* Ámbar — destacados puntuales */

  /* Neutros */
  --ink: #0F172A;
  --text: #334155;
  --muted: #5B6677;
  --line: #E3E7ED;
  --surface: #FFFFFF;
  --bg-soft: #F4F6F9;

  /* Tipografía */
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Escala */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 35, 64, .06), 0 8px 24px rgba(15, 35, 64, .08);
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-700); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-900); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--green-700); }
.nav .btn { padding: 10px 18px; font-size: .95rem; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy-900);
}

/* Hero */
.hero { padding: 80px 0 96px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--muted); }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.check-icon { width: 18px; height: 18px; flex: none; color: var(--green-600); }

/* Mockup de planilla en el hero */
.sheet {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: .85rem;
}
.sheet__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.sheet__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.sheet__title { margin-left: 10px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.sheet th { font-weight: 600; color: var(--muted); background: #FAFBFC; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.sheet td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.sheet tfoot td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.pill--ok { background: var(--green-100); color: var(--green-700); }
.pill--wait { background: #FDF1DC; color: #9A5B00; }

/* Beneficios */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-900); margin-bottom: 18px;
}
.feature p { color: var(--muted); margin: 0; }

/* Catálogo de kits */
.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kit {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.kit__top { padding: 26px 24px 0; }
.kit h3 { min-height: 2.3em; }
.kit__tag {
  display: inline-block; font-size: .78rem; font-weight: 600; color: var(--navy-700);
  background: var(--navy-100); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px;
}
.kit__desc { color: var(--muted); }
.kit__list { list-style: none; padding: 0; margin: 0 0 8px; }
.kit__list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kit__list li:last-child { border-bottom: 0; }
.kit__bottom {
  margin-top: auto; padding: 20px 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); background: #FAFBFC;
}
.price { font-family: var(--font-head); color: var(--ink); }
.price strong { font-size: 2rem; font-weight: 800; }
.price span { display: block; font-size: .8rem; color: var(--muted); font-family: var(--font-body); }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-900); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green-600); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* CTA final */
.cta { background: var(--navy-900); color: #C9D4E3; border-radius: 20px; padding: 56px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 560px; margin: 0 auto 28px; }

/* Footer */
.footer { background: var(--navy-900); color: #A9B7CB; padding: 56px 0 32px; margin-top: 88px; font-size: .95rem; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__logo img { height: 36px; width: auto; margin-bottom: 14px; }
.footer a { color: #DCE4EF; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer h4 { color: #fff; font-size: .95rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* Responsive */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr; }
  .kits { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .header__logo img { height: 34px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .sheet { overflow-x: auto; }
  .kit__bottom { flex-direction: column; align-items: stretch; }
  .cta { padding: 40px 22px; }
}

/* Planilla del hero en pantallas chicas: ocultar columna "Concepto" */
@media (max-width: 480px) {
  .sheet th:nth-child(2), .sheet td:nth-child(2) { display: none; }
  .sheet th, .sheet td { padding: 10px 12px; }
}

/* Plantilla gratis */
.freebie { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--green-100); border-radius: 20px; padding: 48px; }
.freebie__img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.freebie .kit__list { margin-bottom: 24px; }
.freebie .kit__list li { border-bottom-color: rgba(13,130,87,.2); }
@media (max-width: 860px) {
  .freebie { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
}
