:root {
  --navy: #0f2340;
  --navy-2: #162a4a;
  --blue: #2f6fed;
  --blue-soft: #e9f0fe;
  --ink: #1b2430;
  --muted: #5b6776;
  --line: #e3e8ef;
  --bg-soft: #f6f8fb;
  --ok: #2e8b57;
  --warn: #e6a014;
  --high: #dc5a1e;
  --crit: #be1e2d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 35, 64, .06), 0 8px 24px rgba(15, 35, 64, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* --- Navegación --- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--navy);
  display: grid; place-items: center; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }

/* --- Botones --- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600;
  font-size: 15px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(47, 111, 237, .3); }
.btn-primary:hover { background: #255fd6; }
.btn-ghost { color: var(--navy); border: 1px solid var(--line); background: #fff; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav-links .btn-primary { color: #fff; }

/* --- Hero --- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #1f4a8a 0%, transparent 60%), var(--navy);
  color: #fff; padding: 96px 0 104px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #9fc0ff; background: rgba(159, 192, 255, .12);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 span { color: #9fc0ff; }
.hero p.lead { font-size: 19px; color: #c9d6ea; max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero-note { margin-top: 18px; font-size: 14px; color: #9fb1cc; }

/* Tarjeta de informe de ejemplo */
.report-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  padding: 24px; transform: rotate(1.5deg); }
.report-card header { display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.report-card header small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.report-card h3 { font-size: 18px; color: var(--navy); }
.risk-row { display: flex; gap: 10px; margin-bottom: 14px; }
.pill { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px; color: #fff; }
.pill.crit { background: var(--crit); } .pill.high { background: var(--high); }
.pill.mid { background: var(--warn); } .pill.low { background: var(--ok); }
.pill.soft { background: var(--bg-soft); color: var(--navy); }
.bar { height: 6px; background: var(--line); border-radius: 3px; margin-bottom: 18px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 92%; background: var(--crit); }
.flag { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 8px 0;
  border-top: 1px dashed var(--line); }
.flag .pill { font-size: 10px; padding: 3px 7px; flex-shrink: 0; margin-top: 2px; }

/* --- Secciones --- */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 38px); color: var(--navy); letter-spacing: -.01em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -56px; position: relative; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft);
  display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.sources span { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--navy); }

/* --- Precios --- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: "Más elegido"; position: absolute; top: -13px; left: 32px; background: var(--blue);
  color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { color: var(--navy); font-size: 20px; }
.plan .desc { color: var(--muted); font-size: 15px; margin: 6px 0 20px; }
.price { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232f6fed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { text-align: center; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* --- FAQ --- */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 10px; }

/* --- CTA y footer --- */
.cta { background: var(--navy); color: #fff; text-align: center; border-radius: 20px; padding: 56px 32px; }
.cta h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 12px; }
.cta p { color: #c9d6ea; margin-bottom: 28px; font-size: 17px; }

footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer h4 { color: var(--navy); font-size: 14px; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { padding: 3px 0; }
footer a { color: var(--muted); }
.legal-line { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }

/* --- Páginas legales --- */
.legal { max-width: 780px; margin: 0 auto; padding: 64px 0 88px; }
.legal h1 { color: var(--navy); font-size: 36px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { color: var(--navy); font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: #333d4a; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero .container, .grid-3, .pricing, .footer-grid { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .report-card { transform: none; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 96px; }
}
@media (max-width: 520px) {
  .steps, .stats { grid-template-columns: 1fr; }
}

/* --- Formulario de Auditoría Express --- */
.express-form{max-width:760px;margin:0 auto;background:#fff;border:1px solid #e3e8ef;border-radius:14px;padding:24px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.express-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:#1b2430}
.express-form label.full{grid-column:1 / -1}
.express-form input{font:inherit;font-weight:400;padding:11px 12px;border:1px solid #cfd6e0;border-radius:8px;background:#fff;color:#1b2430}
.express-form input:focus{outline:2px solid #2f6fed;outline-offset:1px;border-color:#2f6fed}
.express-form .hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.express-form .consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;margin:16px 0}
.express-form .consent input{margin-top:3px}
.form-msg{min-height:1.4em;margin:12px 0 0;font-weight:600}
.form-note{font-size:13px;color:#667085;margin:8px 0 0}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}

/* Cuatro planes: 4 columnas en escritorio, 2 en tableta, 1 en móvil */
.pricing.pricing-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.pricing.pricing-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.pricing.pricing-4{grid-template-columns:1fr}}

/* Cinco planes */
.pricing.pricing-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
@media (max-width:1250px){.pricing.pricing-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.pricing.pricing-5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.pricing.pricing-5{grid-template-columns:1fr}}
.plan{position:relative}.plan-tag{position:absolute;top:-11px;left:16px;background:#2f6fed;color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:10px}
.pricing.pricing-5 .plan{padding:24px 20px}
.pricing.pricing-5 .price{font-size:32px;white-space:nowrap}
.pricing.pricing-5 .price small{font-size:14px}
.pricing.pricing-5 .btn{white-space:nowrap;padding-left:12px;padding-right:12px}

.feature-plan{display:inline-block;margin-top:10px;font-size:12px;font-weight:700;color:#2f6fed;background:#eef4ff;border-radius:999px;padding:3px 10px}
.card.soon{opacity:.85;border-style:dashed}
.express-form textarea,.express-form select{font:inherit;font-weight:400;padding:11px 12px;border:1px solid #cfd6e0;border-radius:8px;background:#fff;color:#1b2430;width:100%;box-sizing:border-box}
.express-form textarea{min-height:130px;resize:vertical}
.express-form textarea:focus,.express-form select:focus{outline:2px solid #2f6fed;outline-offset:1px;border-color:#2f6fed}

/* Tabla de precios por volumen */
.tiers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:980px;margin:0 auto}
.tier{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px 18px;text-align:center}
.tier.best{border:2px solid var(--blue);box-shadow:var(--shadow)}
.tier .qty{color:var(--muted);font-size:14px;font-weight:600}
.tier .price{font-size:34px;margin:6px 0 2px}
.tier .each{color:var(--muted);font-size:13px}
.price-points{max-width:780px;margin:26px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}
.price-points li{list-style:none;padding-left:26px;position:relative;font-size:15px}
.price-points li::before{content:"✓";position:absolute;left:0;color:var(--ok);font-weight:800}
.example{max-width:780px;margin:22px auto 0;background:var(--blue-soft);border-radius:12px;padding:14px 18px;color:var(--navy);text-align:center;font-weight:600}
@media (max-width:820px){.tiers{grid-template-columns:repeat(2,minmax(0,1fr))}.price-points{grid-template-columns:1fr}}
/* Estimado en vivo del formulario */
.estimate{margin:16px 0 0;background:#fff;border:1px dashed #b8c6dc;border-radius:10px;padding:12px 14px;color:var(--navy);font-weight:600}
.estimate small{display:block;color:var(--muted);font-weight:400}
.hiring-box{display:none;margin:12px 0 0;background:#fff8e6;border:1px solid #f1d58a;border-radius:10px;padding:12px 14px;font-size:14px}
.hiring-box.on{display:block}
.hiring-box .consent{margin:8px 0 0}
.grid-3.six{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.grid-3.six{grid-template-columns:1fr}}
