/* ============================================
   BASE.CSS - Variables, Reset y @keyframes
   CENTRALIZA: todas las animaciones del sitio
   ============================================ */

/* ── Variables ── */
:root {
  --color-primary:    #8B6BAF;
  --color-secondary:  #36A6A0;
  --color-accent:     #F6D365;
  --color-dark:       #4C3A5A;

  --text-primary:     #4C3A5A;
  --text-secondary:   #6c757d;   /* ← NUEVO: faltaba, usada en styles.css */

  --bg-white:         #ffffff;
  --bg-light:         #f8f9fa;

  --gradient-primary: linear-gradient(135deg, #8B6BAF 0%, #36A6A0 100%);

  --shadow-md:        0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg:        0 8px 25px rgba(0, 0, 0, 0.15);

  --spacing-sm:       1rem;      /* ← NUEVO */
  --spacing-md:       2rem;
  --spacing-lg:       3rem;
  --spacing-xl:       5rem;

  --font-primary:     'Nunito', sans-serif;
  --font-heading:     'Poppins', sans-serif;
  --font-script:      'Caveat', cursive;   /* ← NUEVO: usada en hero */

  --transition-base:  0.3s ease;

  --radius-sm:        8px;       /* ← NUEVO */
  --radius-lg:        15px;
  --radius-full:      50px;

  --nav-height:       80px;      /* ← NUEVO: para promo-bar dinámica */
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: var(--transition-base);
}

::selection {
  background-color: var(--color-primary);
  color: white;
}

/* ── @keyframes centralizados ──────────────────
   IMPORTANTE: elimina estas mismas definiciones
   de components.css y styles.css para evitar
   duplicados y comportamientos inesperados.
   ─────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); box-shadow: 0 6px 20px rgba(139, 107, 175, 0.6); }
}

@keyframes pulse-whatsapp {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 1); }
}

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-100px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);      opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(0);      opacity: 1; }
  to   { transform: translateX(-50%) translateY(-100px); opacity: 0; }
}
