/* =====================================================
   ROCAFORN — ESTILOS PERSONALIZADOS
   No necesitas tocar este archivo para editar contenido.
   ===================================================== */

/* ─── Base ─────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #fff9ec;
  margin: 0;
}

.font-serif {
  font-family: 'Noto Serif', serif;
}

/* ─── Material Symbols config ──────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Animaciones de scroll (reveal) ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delays para elementos escalonados */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Fade-up para el hero (inmediato, sin observer) ─ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* ─── WhatsApp FAB ─────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  animation: fabPulse 2.5s ease-in-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-fab:active {
  transform: scale(0.95);
}

.whatsapp-fab svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

/* Tooltip */
.whatsapp-fab .fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e1c10;
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.whatsapp-fab:hover .fab-tooltip {
  opacity: 1;
}

/* Pulse sutil */
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35); }
  50%      { box-shadow: 0 4px 36px rgba(37, 211, 102, 0.55); }
}

/* ─── Selección de texto ───────────────────────────── */
::selection {
  background-color: #ffd9e0;
  color: #3b061a;
}

/* ─── Responsive: FAB más pequeño en móvil ─────────── */
@media (max-width: 640px) {
  .whatsapp-fab {
    width: 56px;
    height: 56px;
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-fab .fab-tooltip {
    display: none;
  }
}
