/* ==========================================================================
   VM LEGAL · Sistema de marca
   Tokens extraídos del sitio oficial vmlegal.com.co (sin variación).
   Logo: #0093BD (VM) · #706F6F (Legal) — muestreados del PNG original.
   UI:   #1986AC (acento) · #DFEAF3 (azul claro) · #232323 (oscuro)
   Tipografía: Oswald (títulos) · Open Sans (texto) — las del sitio original.
   ========================================================================== */

:root {
  /* --- Color de marca (exacto) --- */
  --vm-teal:        #0093BD;   /* teal del logo: trazos, íconos, títulos grandes */
  --vm-teal-deep:   #1986AC;   /* acento UI del sitio original */
  --vm-gray:        #706F6F;   /* gris del logo ("Legal") */
  --vm-ink:         #232323;
  --vm-slate:       #545454;
  --vm-mist:        #DFEAF3;

  /* --- Derivados accesibles (misma familia, solo se oscurecen) ---
     #0093BD da 3.55:1 sobre blanco: sirve para gráficos y títulos grandes,
     pero no para texto pequeño ni para texto blanco encima (AA exige 4.5:1).
     Estos tres tonos cubren esos casos sin salirse del color de marca. */
  --vm-teal-text:    #04748f;  /* teal pequeño sobre fondo claro — 5.4:1 */
  --vm-teal-solid:   #04748f;  /* relleno con texto blanco encima — 5.4:1 */
  --vm-teal-hover:   #035c73;  /* hover del relleno — 7.6:1 */
  --vm-teal-on-dark: #5CC8E8;  /* teal sobre fondo oscuro — 8.1:1 */
  --vm-muted:        #706F6F;  /* texto secundario — 5.0:1 (gris del logo) */
  --vm-mist-soft:   #F2F7FB;
  --vm-line:        #E4E9EE;
  --vm-white:       #FFFFFF;

  /* --- Superficies --- */
  --surface:        #FFFFFF;
  --surface-alt:    var(--vm-mist-soft);
  --surface-dark:   #101820;

  /* --- Tipografía --- */
  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Escala fluida (mobile-first, sin media queries) */
  --fs-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --fs-sm:   clamp(0.82rem, 0.79rem + 0.15vw, 0.90rem);
  --fs-base: clamp(0.95rem, 0.91rem + 0.20vw, 1.05rem);
  --fs-md:   clamp(1.05rem, 0.99rem + 0.30vw, 1.20rem);
  --fs-lg:   clamp(1.25rem, 1.12rem + 0.65vw, 1.60rem);
  --fs-xl:   clamp(1.55rem, 1.30rem + 1.25vw, 2.30rem);
  --fs-2xl:  clamp(1.95rem, 1.50rem + 2.25vw, 3.25rem);
  --fs-3xl:  clamp(2.35rem, 1.65rem + 3.50vw, 4.40rem);

  /* --- Espaciado --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.75rem;  --sp-8: 3.5rem;
  --sp-9: 5rem;     --sp-10: 7rem;
  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);
  --gutter:    clamp(1.15rem, 0.7rem + 2.2vw, 2.5rem);
  --maxw: 1180px;

  /* --- Forma y profundidad --- */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  /* Sombras en dos capas: uno estrecho para el borde, otro amplio y difuso. */
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .05), 0 4px 12px rgba(16, 24, 32, .05);
  --shadow-md: 0 2px 6px rgba(16, 24, 32, .05), 0 14px 32px rgba(16, 24, 32, .08);
  --shadow-lg: 0 6px 16px rgba(16, 24, 32, .07), 0 32px 64px rgba(16, 24, 32, .12);

  /* --- Movimiento --- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .35s;
}

/* ==========================  Reset moderno  ============================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--vm-slate);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
/* <picture> es solo un contenedor de selección: no debe afectar al layout. */
picture { display: contents; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--vm-teal-text); text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--vm-ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--vm-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--vm-teal); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================  Primitivas  ================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 999;
  background: var(--vm-teal-solid); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius);
  font-weight: 600; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* Ojo de marca: etiqueta superior de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--vm-teal-text);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--vm-teal); flex: none;
}

.section-title {
  font-size: var(--fs-2xl);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 300;
}
.section-lead {
  font-size: var(--fs-md);
  color: var(--vm-slate);
  max-width: 62ch;
  margin-top: var(--sp-4);
  font-weight: 300;
}

/* ==========================  Botones  ==================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;                 /* objetivo táctil cómodo en móvil */
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: .11em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--vm-teal-solid); color: #fff;
  box-shadow: 0 6px 18px rgba(4, 116, 143, .28);
}
.btn--primary:hover { background: var(--vm-teal-hover); box-shadow: 0 10px 26px rgba(4, 116, 143, .36); }

.btn--ghost {
  background: transparent; color: var(--vm-ink);
  border: 1px solid var(--vm-line);
}
.btn--ghost:hover { border-color: var(--vm-teal); color: var(--vm-teal-text); }

.btn--light {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.32);
}
.btn--light:hover { background: #fff; color: var(--vm-ink); border-color: #fff; }

.btn--block { width: 100%; }

/* ==========================  Logo lockup  ================================ */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }
@media (min-width: 768px) { .logo img { height: 50px; } }

/* ==========================  Revelado al hacer scroll  =================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.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;
}
