/* ==========================================================
   Verum Data — estilos
   Paleta de marca (Manual de Marca v1.0):
   primario #0D1B2A · secundario #1B365D · acento #14BBA6
   suave #E6F4F1 · neutro #F3F4F6
   Tipografía: Poppins en todo
   ========================================================== */

:root {
  --ink: #0D1B2A;          /* primario — azul profundo */
  --ink-soft: #16283C;
  --verum-blue: #1B365D;   /* secundario — azul Verum */
  --accent: #14BBA6;       /* acento — verde teal */
  --accent-ink: #06322C;
  --soft: #E6F4F1;         /* suave — verde claro */
  --neutral: #F3F4F6;      /* neutro — gris claro */
  --paper: #FFFFFF;

  --text: #12181F;
  --text-muted: #59636E;
  --text-on-ink: #E9ECEF;
  --text-on-ink-muted: #9AA9B8;
  --line: #DFE3E6;
  --line-on-ink: rgba(233, 236, 239, 0.16);

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 2.4vw, 2.25rem); color: var(--verum-blue); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--verum-blue);
  outline-offset: 3px;
}

/* Sobre fondos oscuros, el azul Verum se pierde: usar el acento teal,
   que sobre #0D1B2A rinde ~7:1 de contraste (ver revisión de accesibilidad). */
.hero :focus-visible,
.benefits :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: var(--text-on-ink); }
.btn-primary:hover { background: var(--ink-soft); }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #1CD1BA; }

.btn-ghost {
  background: transparent;
  color: var(--text-on-ink);
  border-color: var(--line-on-ink);
}
.btn-ghost:hover { border-color: var(--text-on-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-right: auto;
}
.brand em { font-style: normal; color: var(--accent); }
.brand-mark { color: var(--ink); }

.main-nav { display: flex; gap: 20px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 6px 2px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 28px 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; align-self: stretch; text-align: center; padding: 13px 18px; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--text-on-ink); overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 84px;
  padding-bottom: 84px;
  min-height: 620px;
}

.hero-copy h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); max-width: 16ch; color: #fff; }
.hero-sub { color: var(--text-on-ink-muted); font-size: 1.08rem; max-width: 48ch; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-slogan {
  margin-top: 28px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-visual { position: relative; }
.hero-svg { width: 100%; height: auto; display: block; }

.scatter circle { fill: var(--text-on-ink-muted); opacity: 0.55; animation: drift 6s ease-in-out infinite; }
.scatter circle:nth-child(odd) { animation-delay: -2s; }
.scatter circle:nth-child(3n) { animation-delay: -4s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.flow-line { fill: none; stroke: var(--verum-blue); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.7; }

.bars rect { fill: var(--accent); }
.bars rect:nth-child(2) { fill: #0E9686; }
.bars rect:nth-child(3) { fill: var(--accent); }
.bars rect:nth-child(4) { fill: #0E9686; }
.bars rect:nth-child(5) { fill: var(--accent); }
.bars rect:nth-child(6) { fill: #0E9686; }

.baseline { stroke: var(--line-on-ink); stroke-width: 1; }

/* ---------- Problema ---------- */
.problem { padding: 96px 0; }
.problem-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.problem-before h2 { max-width: 16ch; margin-bottom: 28px; }
.plain-list li {
  list-style: none;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.problem-after { padding-top: 8px; }
.problem-lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Soluciones ---------- */
.solutions { background: var(--neutral); padding: 96px 0; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 50ch; margin-bottom: 48px; }

.solutions-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.solution-item { display: flex; gap: 20px; padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.solution-item:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.solution-item:nth-child(even) { padding-left: 32px; }

.sol-icon { width: 34px; height: 34px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.solution-item h3 { margin-bottom: 6px; color: var(--ink); }
.solution-item p { color: var(--text-muted); margin: 0; }

/* ---------- Cómo trabajamos ---------- */
.process { padding: 96px 0; }

.process-list { max-width: 900px; margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process-list li {
  list-style: none;
  padding: 28px 28px;
  border-right: 1px solid var(--line);
}
.process-list li:first-child { padding-left: 0; }
.process-list li:last-child { border-right: none; padding-right: 0; }

.process-num { font-family: var(--font-display); color: var(--verum-blue); font-weight: 600; font-size: 1rem; display: block; margin-bottom: 10px; }
.process-list h3 { margin-bottom: 6px; color: var(--ink); }
.process-list p { color: var(--text-muted); margin: 0; }

.process-note { margin-top: 28px; color: var(--text-muted); font-size: 0.9rem; max-width: 60ch; }

/* ---------- Beneficios ---------- */
.benefits { background: var(--ink); color: var(--text-on-ink); padding: 96px 0; }
.benefits h2 { color: #fff; }
.benefits-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.benefits-intro p { color: var(--text-on-ink-muted); }

.benefits-list { display: grid; gap: 0; }
.benefits-list li {
  list-style: none;
  padding: 16px 0 16px 22px;
  border-top: 1px solid var(--line-on-ink);
  color: var(--text-on-ink);
  position: relative;
}
.benefits-list li:last-child { border-bottom: 1px solid var(--line-on-ink); }
.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Caso de uso ---------- */
.case-study { padding: 96px 0; background: var(--soft); }
.case-grid { display: grid; grid-template-columns: 0.35fr 0.65fr; gap: 48px; align-items: center; }
.case-visual { color: var(--accent); }
.case-visual svg { width: 100%; max-width: 200px; height: auto; }
.case-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.case-study h2 { max-width: 20ch; }
.case-study p { color: var(--text-muted); }
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}
.case-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

/* ---------- Para quién ---------- */
.audience { padding: 96px 0; }
.audience-wrap { max-width: 720px; }
.audience p { color: var(--text-muted); }

/* ---------- Nosotros ---------- */
.about { padding: 96px 0; background: var(--neutral); }
.about-wrap { max-width: 900px; }
.about-intro { color: var(--text-muted); max-width: 70ch; }

.about-body { margin: 28px 0; }
.about-body p { color: var(--text-muted); max-width: 70ch; }
.about-body p + p { margin-top: 16px; }

.about-close { color: var(--text-muted); max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-copy p { color: var(--text-muted); }
.contact-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; }
.contact-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--verum-blue);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E6F4F1;
  color: #06322C;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--accent);
}
.btn-whatsapp:hover { background: var(--soft); transform: translateY(-1px); }
.btn-whatsapp svg { color: #0E9686; flex-shrink: 0; }

/* Trampa anti-spam: nunca visible para personas */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.contact-form {
  background: var(--neutral);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--text-muted); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.privacy-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.privacy-notice a { color: var(--verum-blue); border-bottom: 1px solid var(--line); }

.field-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.field-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.field-checkbox label {
  font-size: 0.88rem;
  color: var(--text);
}
.field-checkbox label a { color: var(--verum-blue); border-bottom: 1px solid var(--line); }

.form-note { margin: 14px 0 0; font-size: 0.9rem; color: var(--verum-blue); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-ink-muted); padding: 40px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
}
.brand-footer { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.05rem; }
.footer-inner p { margin: 4px 0 0; font-size: 0.9rem; }
.footer-right { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.footer-right a { font-size: 0.9rem; color: var(--text-on-ink-muted); }
.footer-right a:hover { color: #fff; }

.footer-legal {
  border-top: 1px solid var(--line-on-ink);
  padding: 16px 28px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal p { margin: 0; font-size: 0.78rem; color: var(--text-on-ink-muted); }
.footer-legal a { border-bottom: 1px solid var(--line-on-ink); }
.footer-legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
/* El header (logo + 6 enlaces + boton) necesita ~1070px reales para no desbordar:
   se probo en pantalla real a 1024px y el nav de escritorio no cabia. Por eso el
   toggle de menu usa un quiebre mas ancho que el resto del layout. */
@media (max-width: 1100px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; min-height: auto; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }

  .problem-grid,
  .benefits-grid,
  .contact-grid,
  .case-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-visual { max-width: 120px; }
  .case-visual svg { max-width: 120px; }

  .solutions-list { grid-template-columns: 1fr; }
  .solution-item:nth-child(odd) { border-right: none; padding-left: 0; }
  .solution-item:nth-child(even) { padding-left: 0; }

  .process-list { grid-template-columns: 1fr; }
  .process-list li { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .process-list li:last-child { border-bottom: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  .footer-legal { flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .problem, .solutions, .process, .benefits, .about, .contact, .case-study, .audience {
    padding: 64px 0;
  }
  .contact-form { padding: 24px; }
}

/* ---------- Página de política de privacidad ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-content { max-width: 760px; }
.legal-page h1 { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.1rem); }
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal-intro {
  font-size: 1.05rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  background: var(--soft);
  padding: 18px 22px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 8px;
}
.legal-placeholder {
  border-left: 3px solid var(--accent);
  background: var(--soft);
  padding: 20px 24px;
  color: var(--text);
  font-size: 0.95rem;
  border-radius: 0 4px 4px 0;
}
.legal-content h2 {
  color: var(--ink);
  font-size: 1.2rem;
  margin-top: 2.4em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
}
.legal-content h3 {
  color: var(--verum-blue);
  font-size: 1rem;
  margin-top: 1.4em;
}
.legal-content p { color: var(--text-muted); }
.legal-content p a,
.legal-content .legal-closing a { color: var(--verum-blue); border-bottom: 1px solid var(--line); }
.legal-entity {
  background: var(--neutral);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.95rem;
}
.legal-list { margin: 0 0 1em; padding-left: 0; }
.legal-list li {
  list-style: none;
  padding: 10px 0 10px 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  position: relative;
}
.legal-list li:last-child { border-bottom: 1px solid var(--line); }
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-list li strong { color: var(--ink); }

.legal-table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.legal-table th {
  text-align: left;
  background: var(--neutral);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.legal-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  vertical-align: top;
}
.legal-table tr:first-child td:first-child,
.legal-table th:first-child { white-space: nowrap; }

.legal-closing {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-back { display: inline-block; margin-top: 32px; color: var(--verum-blue); border-bottom: 1px solid var(--line); }
