/* ==========================================================================
   J&J — fundamentos visuales
   Variables de marca, reset moderno y escalas fluidas (clamp).
   Nada de tamaños fijos por breakpoint: todo se calcula por proporción.
   ========================================================================== */

:root {
  /* ---- Paleta navy / gold de la experiencia visual original ---- */
  --navy-950: #050d1e;
  --navy-900: #071429;
  --navy-800: #0b1c3a;
  --navy-700: #122a52;
  --navy-600: #1b3a6b;

  --gold-300: #ecd694;
  --gold-400: #ddbb56;
  --gold-500: #c9a227;
  --gold-600: #a6821c;

  --white: #ffffff;
  --ink: #16233d;
  --ink-muted: #566180;
  --ink-soft: rgba(255, 255, 255, 0.78);
  --ink-faint: rgba(255, 255, 255, 0.5);

  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --border: #e2e6f0;
  --border-dark: rgba(217, 187, 86, 0.22);

  --success: #16a34a;
  --info: #2563eb;
  --warning: #b45309;
  --danger: #b91c1c;
  --disabled: #94a3b8;
  --whatsapp: #25d366;

  /* Capas compartidas: contenido < navegación < overlays */
  --z-content: 1;
  --z-header: 40;
  --z-floating: 60;
  --z-overlay: 100;

  /* ---- Elevación ---- */
  --shadow-sm: 0 2px 10px rgba(7, 20, 41, 0.08);
  --shadow-md: 0 10px 28px rgba(7, 20, 41, 0.14);
  --shadow-lg: 0 24px 56px rgba(7, 20, 41, 0.22);
  --shadow-gold: 0 0 0 1px rgba(221, 187, 86, 0.4), 0 18px 40px -14px rgba(0, 0, 0, 0.55);

  /* ---- Radio ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* ---- Tipografía ---- */
  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Escala fluida: crece con el viewport sin saltos por breakpoint */
  --fs-xs: clamp(0.78rem, 0.4vw + 0.7rem, 0.86rem);
  --fs-sm: clamp(0.88rem, 0.45vw + 0.78rem, 0.98rem);
  --fs-base: clamp(1rem, 0.5vw + 0.88rem, 1.1rem);
  --fs-md: clamp(1.1rem, 0.8vw + 0.92rem, 1.3rem);
  --fs-lg: clamp(1.35rem, 1.4vw + 1rem, 1.75rem);
  --fs-xl: clamp(1.7rem, 2.4vw + 1rem, 2.4rem);
  --fs-2xl: clamp(2.1rem, 3.6vw + 1rem, 3.4rem);
  --fs-3xl: clamp(2.5rem, 5vw + 1rem, 4.4rem);

  /* Espaciado fluido */
  --space-2xs: clamp(0.35rem, 0.4vw, 0.5rem);
  --space-xs: clamp(0.55rem, 0.8vw, 0.8rem);
  --space-sm: clamp(0.85rem, 1.2vw, 1.15rem);
  --space-md: clamp(1.25rem, 2vw, 1.9rem);
  --space-lg: clamp(2rem, 3.4vw, 3.2rem);
  --space-xl: clamp(3rem, 5.5vw, 5.5rem);
  --space-2xl: clamp(4rem, 8vw, 8rem);

  /* Contenedor fluido */
  --container-max: 1320px;
  --container-pad: clamp(1.1rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.35s var(--ease);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  height: 100%;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-lg);
}

p {
  color: var(--ink-muted);
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* ---- Utilidades ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-2xl);
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-xs);
}

.eyebrow--light {
  color: var(--gold-400);
}

.text-muted {
  color: var(--ink-muted);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 999;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-sm);
}
