/* ============================================================
   OnDock · web corporativa
   Paleta oficial (OnDock UI System) · DM Sans · mobile-first
   ============================================================ */

:root {
  /* Marca */
  --navy:        #0B2C35;
  --navy-2:      #16404B;
  --cyan:        #85D2DF;
  --cyan-d:      #2E96A8;
  --cyan-bg:     #F2FBFD;
  --ice:         #EEF3F4;
  --white:       #FFFFFF;
  --muted:       #7A8B91;
  --border:      #DDE5E7;
  --success:     #38B46A;
  --warning:     #F2B84B;
  --danger:      #E25C5C;

  /* Tipografía */
  --font:        'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radios + sombras */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(11,44,53,.06);
  --shadow-md: 0 8px 28px rgba(11,44,53,.08);
  --shadow-lg: 0 24px 60px rgba(11,44,53,.18);

  /* Layout */
  --max: 1180px;
  --pad: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan-d); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cyan-d);
  margin-bottom: 12px;
}
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p  { margin: 0 0 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: #1A4451; max-width: 640px; }

/* ---- Botones --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border: 0; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 6px 16px rgba(133,210,223,.45); }
.btn-primary:hover { background: #6EC6D5; }
.btn-dark    { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost   { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-d); }
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   Header sticky
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 20px; }
.brand svg { width: 32px; height: 32px; }
.brand .accent { color: var(--cyan-d); }
.nav-links {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--navy); font-weight: 500; font-size: 15px;
}
.nav-links a:hover { color: var(--cyan-d); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; color: var(--navy);
}
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
body.menu-open .nav-links {
  display: flex; flex-direction: column; gap: 16px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); padding: 22px var(--pad);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(133,210,223,.32), transparent 60%),
    linear-gradient(180deg, #F7FBFC 0%, var(--white) 100%);
  padding: 72px 0 80px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 strong { color: var(--cyan-d); font-weight: 700; }
.hero .lead { margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-mini {
  display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.hero-mini span { display: inline-flex; align-items: center; gap: 6px; }
.hero-mini svg { width: 14px; height: 14px; color: var(--success); }

/* Mockup del cronómetro a la derecha */
.mock {
  background: var(--navy);
  border-radius: 32px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
  position: relative;
}
.mock-screen {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 20px;
  color: var(--navy);
}
.mock-pill {
  display: inline-flex; gap: 6px; align-items: center;
  background: #FDF3E0; color: #8B5A00; padding: 4px 12px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700;
}
.mock-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.mock-time {
  font-variant-numeric: tabular-nums;
  font-size: 56px; font-weight: 700; letter-spacing: -0.04em;
  text-align: center; margin: 14px 0 4px;
}
.mock-label { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-kpi { background: var(--ice); border-radius: var(--r-md); padding: 12px; }
.mock-kpi .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.mock-kpi .v { font-size: 22px; font-weight: 700; }
.mock-banner {
  background: var(--cyan-bg); border: 1px solid var(--cyan); border-radius: var(--r-md);
  padding: 10px 12px; margin-top: 14px; font-size: 12px; color: var(--navy);
}
.mock-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mock-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600;
}
.mock-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.mock-chip.muted { color: var(--muted); }
.mock-chip.muted .dot { background: var(--border); }

/* ============================================================
   Trust strip
   ============================================================ */
.trust {
  background: var(--navy); color: var(--white);
  padding: 18px 0;
}
.trust-row {
  display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
  font-size: 13px; color: #B6C7CC;
}
.trust-row strong { color: var(--white); font-weight: 600; }
.trust-row .sep { color: #345862; }

/* ============================================================
   Sections genérico
   ============================================================ */
section.section {
  padding: 92px 0;
}
section.section.alt { background: var(--ice); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin: 0 auto; }

/* ============================================================
   Servicios
   ============================================================ */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.service:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service .ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--cyan-bg); color: var(--cyan-d);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service .ico svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 10px; }
.service p { color: #3C5B65; font-size: 14.5px; }
.service ul {
  list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px;
}
.service li {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 4px 0; color: #3C5B65;
}
.service li::before {
  content: ""; flex-shrink: 0; margin-top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
}

/* ============================================================
   Cómo funciona (3 pasos)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px 26px;
  border: 1px solid var(--border);
}
.step .num {
  position: absolute; top: -20px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Pilares (qué respalda el certificado)
   ============================================================ */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--white);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.pillar h4 { margin: 0 0 6px; font-size: 16px; }
.pillar p { margin: 0; font-size: 13.5px; color: #3C5B65; }
.pillar code { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-d); }

/* ============================================================
   Para quién
   ============================================================ */
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .targets { grid-template-columns: 1fr; } }
.target {
  background: var(--navy); color: var(--white);
  border-radius: var(--r-lg); padding: 32px 26px;
  position: relative; overflow: hidden;
}
.target.alt { background: linear-gradient(160deg, var(--navy) 0%, var(--cyan-d) 130%); }
.target h3 { color: var(--white); }
.target p { color: #B6C7CC; font-size: 14.5px; }
.target ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.target li { padding: 4px 0; color: #D5E2E6; display: flex; gap: 8px; }
.target li::before { content: "✓"; color: var(--cyan); font-weight: 700; }

/* ============================================================
   Cumplimiento legal
   ============================================================ */
.legal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
@media (max-width: 820px) { .legal-grid { grid-template-columns: 1fr; } }
.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.legal-card h3 { display: flex; align-items: center; gap: 10px; }
.legal-card h3 svg { width: 22px; height: 22px; color: var(--cyan-d); }
.legal-card p { color: #3C5B65; }

/* ============================================================
   Pricing
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  position: relative;
}
.plan.featured {
  border: 2px solid var(--cyan); transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.plan .ribbon {
  position: absolute; top: -14px; right: 22px;
  background: var(--cyan); color: var(--navy);
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.plan h3 { margin-bottom: 4px; }
.plan .price {
  font-size: 32px; font-weight: 700; margin: 12px 0 4px;
}
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .price-note { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li {
  display: flex; gap: 8px; padding: 6px 0; font-size: 14.5px; color: #3C5B65;
  border-bottom: 1px solid var(--border);
}
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "✓"; color: var(--cyan-d); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0;
  margin-bottom: 12px; transition: border-color .15s;
}
.faq details[open] { border-color: var(--cyan); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--cyan-d); font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq details > div {
  padding: 0 22px 18px; color: #3C5B65; font-size: 15px;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0E3D49 100%);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 56px 40px;
  text-align: center;
  margin: 60px 0;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(133,210,223,.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(133,210,223,.12), transparent 50%);
}
.final-cta > * { position: relative; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: #C9D6DB; max-width: 580px; margin: 0 auto 26px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy); color: #B6C7CC;
  padding: 56px 0 28px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h5 {
  color: var(--white); font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  margin: 0 0 14px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; font-size: 14px; }
.foot-grid a { color: #B6C7CC; }
.foot-grid a:hover { color: var(--cyan); }
.foot-brand .brand { color: var(--white); margin-bottom: 14px; }
.foot-brand .brand .accent { color: var(--cyan); }
.foot-brand p { color: #94A8AE; font-size: 14px; max-width: 320px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  padding-top: 22px; font-size: 13px; color: #7A8B91;
}

/* ============================================================
   Utilidades
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
