/* ════════════════════════════════════════════════════════════
   ANITA DIGITAL — DESIGN SYSTEM
   Basado en la identidad de marca WD. (invitaciones digitales)
════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de colores */
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --bg-dark: #1A1A2E;
  --primary: #DB677D;
  --primary-dark: #BC596C;
  --secondary: #2C3E50;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --card-bg: #FFFFFF;
  --success: #10B981;
  --accent: #6C63FF;

  /* Acento propio de Anita Digital (turquesa del logo) */
  --teal: #4FA8A8;
  --teal-dark: #2C7A7A;
  --teal-light: #E3F4F4;

  /* Sombras de color */
  --primary-shadow: #ff9daf;
  --primary-dark-shadow: #e78296;
  --teal-shadow: #9bd6d6;

  /* Tipografías */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  /* Layout */
  --container-w: 1200px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

/* ─── UTILIDADES ─────────────────────────────────────────── */
[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section {
  padding-block: 7rem;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-block: 4.5rem;
  }
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-label--teal {
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border-color: color-mix(in srgb, var(--teal) 45%, transparent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  /*max-width: 580px;*/
  margin-bottom: 3rem;
  line-height: 1.7;
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-sub {
  color: rgba(255, 255, 255, 0.6);
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--teal {
  background: var(--teal);
  color: #fff;
}

.btn--teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 15px 32px;
  font-size: 0.95rem;
}

.btn--xl {
  padding: 18px 44px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn--block {
  width: 100%;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

/* ─── SCROLL REVEAL (estado inicial) ────────────────────────
   Las animaciones reales se aplican vía JS (scrollReveal.js),
   acá solo dejamos el estado base por si JS no carga.
─────────────────────────────────────────────────────────── */
[data-motion] {
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-motion] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
