/* ==================================================================
   BASE — tokens de diseño, reset, tipografía, layout y botones
   ================================================================== */

:root {
  /* Colores de marca */
  --sea: #0e5a66;
  --sea-700: #0a4650;
  --sea-900: #08272c;
  --sea-50: #e9f3f3;
  --coral: #e07a5f;
  --wa: #1a9e50;
  --wa-700: #14843f;

  /* Neutros */
  --ink: #1c2426;
  --ink-2: #455154;
  --muted: #6b7678;
  --line: #e7e3dc;
  --bg: #ffffff;
  --tint: #f8f6f2;
  --sand: #f3ece1;

  /* Tipografía */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Forma */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(16 24 26 / 0.06), 0 2px 8px rgb(16 24 26 / 0.05);
  --shadow: 0 6px 24px rgb(16 24 26 / 0.10);
  --shadow-lg: 0 18px 50px rgb(16 24 26 / 0.18);

  /* Layout */
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: 64px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 960px) {
  :root { --gutter: 40px; --header-h: 76px; --section-y: 96px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

/* ---------- Tipografía ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 10px;
}
.eyebrow--light { color: rgb(255 255 255 / 0.9); }
.muted { color: var(--muted); }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head__lead { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: grid; gap: 16px; align-items: end; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .section-head--split .section-head__lead { margin-top: 0; }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

.noscript { padding: 24px; text-align: center; background: #fff7e6; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sea); color: #fff; }
.btn--primary:hover { background: var(--sea-700); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: var(--wa-700); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--tint); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.88rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--sea); border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.link-arrow .icon { width: 1em; height: 1em; }
