/* =========================================
   PLATANADAS - BASE CSS COMPARTIDO
   Variables, Reset, Tipografía y Utilidades
   ========================================= */

:root {
  /* === Paleta Principal Platanadas === */
  --amarillo-maduro: #fcd144;
  --banana: #FFD100;
  --banana-shadow: #E8B92F;
  
  --verde-pinton: #88af39;
  --verde-pinton-trans: rgba(136, 175, 57, 0.6);
  --plantain: #7CB518;
  --plantain-shadow: #5D893A;
  
  --salsa: #2a4c37;
  --salsa-brown: #6B3626;
  --stroke: #2A4C37;
  
  --guava-coral: #ff6f61;
  
  /* === Fondos === */
  --cream: #fffefc;
  --cream-alt: #FFF8E5;
  
  /* === Texto === */
  --text-dark: #1a1a1a;
  --text-muted: #666;
  
  /* === Sombras === */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(252, 209, 68, 0.4);
  
  /* === Espaciado === */
  --section-spacing: 4rem;
  
  /* === Tipografía === */
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

/* =========================================
   RESET UNIVERSAL
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--salsa);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* =========================================
   UTILIDADES COMUNES
   ========================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.center-text {
  text-align: center;
}

/* =========================================
   ANIMACIONES BASE
   ========================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Clases de animación (activadas por IntersectionObserver) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* =========================================
   ACCESIBILIDAD: Reducir Movimiento
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  svg animate {
    display: none;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   BOTÓN FLOTANTE WHATSAPP (Compartido)
   ========================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  fill: white;
  width: 32px;
  height: 32px;
}

