/* ==========================================================================
   Juan Bruno · ODP externo — estilos base
   La mayor parte del diseño está en estilos en línea del index.html;
   aquí van tokens, base, accesibilidad, FAQ, botón flotante y animaciones.
   ========================================================================== */

:root {
  --accent: #D4FF5A;
  --ink: #0A0F1A;
  --paper: #F5F6F8;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--ink); }
a:hover { color: #3A4456; }
a, button, summary { transition: opacity .2s ease, transform .2s ease, background-color .2s ease; }
a[style*="border-radius: 999px"]:hover { transform: translateY(-1px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

/* Saltar al contenido */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* FAQ nativo (funciona sin JavaScript) */
.faq { border-bottom: 1px solid #E2E5EA; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 44px;
  padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 20px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-sign {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #C9CED6;
  position: relative;
}
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s ease;
}
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq[open] .faq-sign { background: var(--accent); border-color: var(--accent); }
.faq p { margin: 0; padding: 0 60px 28px 0; color: #3A4456; font-size: 16px; line-height: 1.6; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* Aparición suave al hacer scroll (solo si JS marca .js-reveal) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* Pulso del punto "en vivo" */
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(212,255,90,.15); } 50% { box-shadow: 0 0 0 8px rgba(212,255,90,.05); } }
.live-dot { animation: pulse 2.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
}

/* Móvil */
@media (max-width: 640px) {
  nav[aria-label="Principal"] > div { gap: 18px !important; font-size: 14px !important; }
  section, header > div, footer > div, nav { padding-left: 20px !important; padding-right: 20px !important; }
  .faq p { padding-right: 0; }
  .faq summary { font-size: 18px; }
}
