/* DDL Agencia Interactiva — sistema visual compartido (home + landings por vertical)
   Regla: el color identifica el sector; la composición identifica a DDL. */

:root {
  /* Paleta por vertical (aprox. del logotipo; validar contra el vectorial) */
  --salud: #1537a0;
  --salud-2: #1b6fcd;
  --hoteles: #2cb3e9;
  --educacion: #f0c010;
  --fitness: #9e3199;
  --wellness: #82bb51;
  --restaurantes: #fda91b;
  --brand-gradient: linear-gradient(115deg, #fd5a0e 0%, #fda91b 22%, #e0207a 42%, #9e3199 58%, #1b6fcd 76%, #2cb3e9 100%);

  /* Neutros */
  --ink: #0d1333;
  --ink-2: #3c4263;
  --ink-3: #6b7090;
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --line: #e3e0d7;
  --white: #ffffff;

  /* Acento de la página (cada landing lo redefine) */
  --accent: var(--salud);
  --accent-ink: #ffffff;

  --font-display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --font-body: "DM Sans", "Avenir Next", system-ui, sans-serif;
  --font-logo: "Quicksand", "Avenir Next", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --shadow: 0 1px 2px rgba(13, 19, 51, .06), 0 12px 32px -12px rgba(13, 19, 51, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--hoteles); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[id] { scroll-margin-top: 72px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; }
.h-xl { font-size: clamp(44px, 7.4vw, 96px); }
.h-lg { font-size: clamp(36px, 5vw, 64px); }
.h-md { font-size: clamp(26px, 3vw, 36px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 10px 24px -10px rgba(13, 19, 51, .6); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(13, 19, 51, .7); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-wa { background: #1fa855; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo span { font: 600 15px/1 var(--font-logo); color: var(--salud); letter-spacing: .01em; white-space: nowrap; }
.logo--light span { color: rgba(255, 255, 255, .85); }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.is-open .nav-links a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
}

/* El aro: trazo orgánico inspirado en el logo */
.ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 3px solid currentColor; opacity: .55;
}

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* CTA fijo móvil: la siguiente acción siempre visible */
.sticky-cta {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  gap: 8px; padding: 8px; border-radius: 999px;
  background: var(--ink); box-shadow: 0 14px 40px -10px rgba(13, 19, 51, .55);
  transform: translateY(140%); transition: transform .35s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: 15px; }
.sticky-cta .btn-wa { flex: 0 0 48px; padding: 0; }
@media (max-width: 900px) { .sticky-cta { display: flex; } body { padding-bottom: 84px; } }

/* Formularios */
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  font: 400 16px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(44, 179, 233, .25); }
.field [aria-invalid="true"], .check input[aria-invalid="true"] { border-color: #e0207a; box-shadow: 0 0 0 4px rgba(224, 32, 122, .15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }

/* Pie */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 40px; font-size: 15px; }
.footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.footer-bar { height: 6px; background: var(--brand-gradient); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
