/* ============================================================
   base.css — Variables globales, reset y utilidades
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Colores */
  --purple-deep:   #1E0B4B;
  --purple-mid:    #4A2D8A;
  --purple-pale:   #C9B8E8;
  --cream:         #EDE7F6;
  --cream-warm:    #F5F0FC;
  --cream-soft:    #F0EBF8;
  --hero-bg:       #F0EDFA;
  --green-wa:      #25D366;
  --text-body:     #3D2E5C;
  --text-muted:    #7B6B9A;
  --header-bg:     #FFFFFF;

  /* Tipografía */
  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;

  /* Transición global */
  --t:    0.25s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset mínimo --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--text-body);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Utilidades --- */
.container  { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-c     { text-align: center; }
.mx-auto    { margin-left: auto; margin-right: auto; }
.divider    { width: 48px; height: 3px; background: var(--purple-mid); margin: 16px 0 28px; border-radius: 2px; }
.divider.c  { margin: 16px auto 28px; }

/* --- Secciones --- */
section { padding: 88px 0; }
.sec-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--purple-mid);
  margin-bottom: 10px;
}
.sec-title {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 14px;
  line-height: 1.25;
}
.sec-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 42px;
  line-height: 1.75;
}

/* --- Skip link (accesibilidad) --- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--purple-deep);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* --- Tamaños de fuente accesibles --- */
.font-large  html, html.font-large  { font-size: 18px; }
.font-xlarge html, html.font-xlarge { font-size: 20px; }

/* --- Alto contraste --- */
html.high-contrast {
  --purple-deep: #000;
  --text-body:   #000;
  --text-muted:  #333;
  --cream:       #fff;
  filter: contrast(1.4);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
