/* ======================================================
   GOUT · BASE.CSS
   ====================================================== */

/* ======================================================
   TOKENS
   ====================================================== */
:root {
  /* Marca */
  --color-primary:        #004a48;
  --color-primary-dark:   #013b39;
  --color-primary-deep:   #002523;
  --color-primary-soft:   rgba(0, 74, 72, .06);
  --color-secondary:      #ebff8c;
  --color-secondary-deep: #dcf45f;
  --color-secondary-pink: #e1bacf;

  /* Neutros */
  --color-ink:            #01312f;
  --color-text:           #44514f;
  --color-muted:          #6a7977;
  --color-line:           #e6ebe8;
  --color-white:          #ffffff;
  --color-surface:        #f3f6f3;
  --color-lila:           #f6f8f4;
  --color-on-dark:        #eef4f0;
  --color-on-dark-muted:  rgba(238, 244, 240, .74);

  /* Radios */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm:     0 2px 10px rgba(2, 37, 35, .06);
  --shadow-md:     0 18px 44px -20px rgba(2, 37, 35, .24);
  --shadow-lg:     0 44px 90px -34px rgba(2, 37, 35, .40);
  --shadow-accent: 0 16px 34px -12px rgba(220, 244, 95, .55);

  /* Tipografía */
  --font-base: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --section-y: 112px;

  /* Movimiento */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --transition: all .3s var(--ease);
}

/* ======================================================
   RESET / BASE
   ====================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
}

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

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

::selection {
  background: var(--color-secondary);
  color: var(--color-primary-deep);
}

/* ======================================================
   TIPOGRAFÍA & UTILIDADES GLOBALES
   (eyebrow, títulos, lead y fondos reutilizables)
   ====================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 22px;
}

.eyebrow.on-dark {
  background: rgba(235, 255, 140, .14);
  color: var(--color-secondary);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.title-xl {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
}

.title-lg {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
}

.lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-top: 18px;
}

.lead.on-dark { color: var(--color-on-dark-muted); }

.bg-lila    { background: var(--color-lila); }
.bg-surface { background: var(--color-surface); }
.bg-white   { background: var(--color-white); }

/* ======================================================
   SCROLL REVEAL (utilidad de animación global)
   ====================================================== */
.fade-in,
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up    { transform: translateY(38px); }
.fade-left  { transform: translateX(-38px); }
.fade-right { transform: translateX(38px); }

.fade-in.is-visible,
.fade-up.is-visible,
.fade-left.is-visible,
.fade-right.is-visible {
  opacity: 1;
  transform: none;
}

/* ======================================================
   ACCESIBILIDAD · MOVIMIENTO REDUCIDO
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .fade-up,
  .fade-left,
  .fade-right { opacity: 1; transform: none; }
}

/* ======================================================
   RESPONSIVE · TOKENS Y BODY GLOBAL
   (los overrides de tokens y del body viven con lo global)
   ====================================================== */
@media (max-width: 992px) {
  :root { --section-y: 88px; }
}

@media (max-width: 768px) {
  :root { --section-y: 64px; }

  html, body { overflow-x: hidden; }
  body.menu-open { overflow: hidden; }
}