/* =============================================
   SPLENDOR — Estilos Globales
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Cormorant+Garamond:wght@300;400;500&display=swap');

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

html {
  font-size: 16px;
}
/* Lenis maneja el smooth scroll — evitar conflicto */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Contenedor global */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Sección estándar */
.section {
  padding: var(--space-4xl) 0;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* Utilidades */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* WhatsApp flotante */
#whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 85;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.45s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow 0.45s ease,
              opacity 0.25s ease;
}
#whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}
#whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: #25d366;
  opacity: 0;
  z-index: -1;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}
@keyframes whatsapp-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(1.25); }
}

body.menu-open #whatsapp-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(0.94);
  box-shadow: none;
}
