html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', system-ui, sans-serif; }

/* Franja de sección offset para el nav fijo */
section[id] { scroll-margin-top: 90px; }

/* Animación fade-in al hacer scroll (sin librerías) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Latido suave del botón flotante */
@keyframes softPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(76,175,80,.45), 0 0 0 0 rgba(76,175,80,.45); }
  50%      { box-shadow: 0 8px 24px rgba(76,175,80,.45), 0 0 0 14px rgba(76,175,80,0); }
}
.wa-float {
  animation: softPulse 2.6s infinite;
  /* El tamaño venía de un style="width:60px;height:60px" en el HTML.
     Se trae aquí para poder prohibir el CSS inline en la CSP. */
  width: 60px;
  height: 60px;
}

/* Mapa de Google incrustado (antes: style="border:0") */
.map-frame { border: 0; }

/* Mapa bajo demanda: mientras no se pulsa "Ver el mapa", no se pide nada a
   Google, así que la IP del visitante no sale de este dominio. */
.map-box { width: 100%; height: 100%; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
  padding: 1.75rem;
  background:
    linear-gradient(180deg, #E6F3FB 0%, #ffffff 100%);
}
.map-pin { width: 2.5rem; height: 2.5rem; color: #1E88E5; }
.map-title { font-weight: 700; color: #0D3B66; }
.map-note {
  font-size: .8125rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 30rem;
}
.map-btn {
  margin-top: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  color: #fff;
  background: #4CAF50;
  transition: background-color .2s;
}
.map-btn:hover { background: #43a047; }
.map-link { font-size: .8125rem; color: #1E88E5; text-decoration: underline; }

/* Hero overlay para legibilidad sobre la foto */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(230,243,251,.92) 0%, rgba(230,243,251,.78) 45%, rgba(255,255,255,.9) 100%);
}

/* Desplegable "Teléfono de contacto" */
.call-menu { transform-origin: top center; }
.call-menu.open {
  animation: ddIn .16s ease-out;
}
@keyframes ddIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
