/* Cintrón Seguros · estilos comunes (botones animados, contacto flotante, aviso legal) */
:root {
  --cs-peach: #F2A07B;
  --cs-peach-dark: #D97B4F;
  --cs-ink: #1A1108;
  --cs-cream: #FFFAF6;
  --cs-wa: #25D366;
  --cs-ms: #0A7CFF;
}

/* ---------- Botones: brillo que cruza y elevación ---------- */
.button, .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, color .25s ease !important;
}
.button::after, .btn::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  animation: cs-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.button:hover, .btn:hover { transform: translateY(-3px) !important; box-shadow: 0 14px 30px -12px rgba(217,123,79,.65); }
.button:active, .btn:active { transform: translateY(0) scale(.98) !important; }
@keyframes cs-shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }

/* ---------- Fondos animados en los encabezados de las páginas internas ---------- */
.hero, .legal-hero { position: relative; isolation: isolate; }
.hero::before, .legal-hero::before { animation: cs-drift 14s ease-in-out infinite alternate; }
.hero::after, .legal-hero::after { animation: cs-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes cs-drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-30px,24px,0) scale(1.12); }
  100% { transform: translate3d(24px,-18px,0) scale(.95); }
}

/* ---------- Contacto flotante ---------- */
.whatsapp-float { display: none !important; }
.cs-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Jost", Arial, sans-serif;
}
.cs-dock svg { width: 22px; height: 22px; flex: none; }
.cs-dock-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cs-wa);
  color: #fff;
  font: 600 1rem/1 "Jost", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s ease, background .25s ease;
}
.cs-dock-toggle:hover { transform: translateY(-3px); }
.cs-dock.open .cs-dock-toggle { background: var(--cs-ink); box-shadow: 0 12px 30px -8px rgba(26,17,8,.5); }
.cs-dock-pulse {
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: cs-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.cs-dock.open .cs-dock-pulse { animation: none; }
@keyframes cs-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
.cs-dock-menu { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cs-dock-menu[hidden] { display: none; }
.cs-dock-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
  animation: cs-pop .28s cubic-bezier(.2,.9,.3,1.3) both;
  transition: transform .2s ease;
}
.cs-dock-item:hover { transform: translateX(-4px); }
.cs-dock-item:nth-child(2) { animation-delay: .05s; }
.cs-dock-item:nth-child(3) { animation-delay: .1s; }
.cs-dock-item.wa { background: var(--cs-wa); }
.cs-dock-item.ms { background: linear-gradient(135deg, #0A7CFF, #A033FF 70%, #FF5280); }
.cs-dock-item.mail { background: var(--cs-peach-dark); }
@keyframes cs-pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .cs-dock { right: 14px; bottom: 14px; }
  .cs-dock-label { display: none; }
  .cs-dock-toggle { width: 58px; padding: 0; justify-content: center; }
}

/* ---------- Aviso legal del pie ---------- */
.cs-legal {
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(138,126,118,.3);
  font-size: .78rem;
  line-height: 1.6;
  opacity: .82;
  text-align: center;
}
.cs-legal p { margin: 0 0 10px !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Pie de las páginas legales: el texto quedaba oscuro sobre fondo oscuro */
footer.legal-footer p, footer.legal-footer .cs-legal p { color: rgba(255, 250, 246, .72) !important; opacity: 1 !important; transform: none !important; }
