/* ===========================================
   SOIC — Reset, tokens, layout global
   =========================================== */

:root {
  /* Paleta */
  --c-red: #A61C28;
  --c-cream: #F2F2F2;
  --c-olive: #888C69;
  --c-sage: #BEBF99;
  --c-brown: #594F4F;

  --c-cream-soft: #FAFAF7;
  --c-brown-soft: #6B5F5F;
  --c-text: #2A2424;
  --c-text-on-dark: #F2F2F2;
  --c-text-muted: rgba(89, 79, 79, 0.65);

  /* Tipografía */
  --f-display: 'Archivo', 'Arial Black', sans-serif;
  --f-body: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Tamaños */
  --container-w: 1280px;
  --container-narrow-w: 880px;
  --radius: 14px;
  --radius-pill: 999px;

  /* Spacing */
  --space-section: clamp(80px, 12vw, 160px);

  /* Sombras */
  --shadow-card: 0 10px 30px rgba(89, 79, 79, 0.08);
  --shadow-pill: 0 12px 40px rgba(89, 79, 79, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s ease;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { list-style: none; }

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

/* ===========================================
   Layout
   =========================================== */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container--narrow {
  max-width: var(--container-narrow-w);
}

.section {
  position: relative;
  padding: var(--space-section) 0;
  overflow: hidden;
}

/* Backgrounds por data-bg */
.section[data-bg="cream"] { background: var(--c-cream); color: var(--c-text); }
.section[data-bg="dark"]  { background: var(--c-brown); color: var(--c-text-on-dark); }
.section[data-bg="sage"]  { background: var(--c-sage); color: var(--c-text); }
.section[data-bg="red"]   { background: var(--c-red); color: var(--c-text-on-dark); }

/* ===========================================
   Tipografía utilitaria
   =========================================== */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 28px;
}
.eyebrow.center { text-align: center; }

.section__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.section__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 720px;
  opacity: 0.85;
}

/* ===========================================
   Botones
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-red);
  color: var(--c-cream);
}
.btn--primary:hover { transform: translateY(-2px); background: #8a1620; }

.btn--ghost {
  background: transparent;
  color: var(--c-brown);
  border: 1.5px solid var(--c-brown);
}
.btn--ghost:hover { background: var(--c-brown); color: var(--c-cream); }

.btn--giant {
  background: var(--c-cream);
  color: var(--c-red);
  font-size: clamp(18px, 2vw, 22px);
  padding: 24px 48px;
  font-weight: 700;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.btn--giant:hover { transform: translateY(-3px) scale(1.02); }

/* ===========================================
   WhatsApp flotante
   =========================================== */

.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  z-index: 100;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-brown);
  color: var(--c-cream);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }
