/* ============================================================
   global.css — Estilos globales compartidos
   ============================================================ */

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,800;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/* ── Utilidades de layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--gutter); }
}

/* ── Tipografía ── */
.font-headline { font-family: var(--font-headline); }
.font-body     { font-family: var(--font-body); }

/* ── Sombras especiales ── */
.glow-shadow { box-shadow: var(--shadow-glow); }
.glow-gold   { box-shadow: var(--shadow-glow-gold); }

/* ── Glassmorphism (navbar) ── */
.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Clip path reveal ── */
.clip-reveal {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ── Sección padding genérica ── */
.section-pad {
  padding-block: var(--section-padding);
}

/* ── Formulario base ── */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-outline-variant);
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition-base);
  background: white;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

/* ── Botón primario ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.4);
}

/* ── Badge / etiqueta ── */
.badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Botón flotante WhatsApp ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waPulse 2.5s ease-in-out infinite;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
  animation: none;
}

/* Tooltip */
.whatsapp-fab-tooltip {
  position: absolute;
  right: 70px;
  background: #111;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #111;
}

.whatsapp-fab:hover .whatsapp-fab-tooltip { opacity: 1; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
  50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.85), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}
