/* Videartive Studios — estilos base
   Tailwind (CDN) cubre utilidades; aquí solo lo que Tailwind no resuelve:
   fuentes, animaciones, estados de foco accesibles y el facade de YouTube. */

:root {
  --color-accent: #06b6d4; /* cyan-500 */
  --color-accent-dark: #0e7490; /* cyan-700 */
  --color-ink: #111827; /* gray-900 */
}

html {
  scroll-behavior: smooth;
}

/* Deja el título de la sección visible debajo del header fijo al saltar a un ancla */
section[id] {
  scroll-margin-top: 130px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Salto de foco visible para navegación por teclado (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Enlace "saltar al contenido" — oculto hasta recibir foco */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

/* Animaciones de entrada, respetando prefers-reduced-motion */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-down { animation: fade-in-down 0.8s ease-out both; }
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out both; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-fade-in-down,
  .animate-fade-in-up,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Fondo del Hero */
.hero-overlay {
  background: linear-gradient(180deg, rgba(17,24,39,0.75) 0%, rgba(17,24,39,0.85) 100%);
}
.hero-static-bg {
  background: radial-gradient(circle at 50% 30%, #164e63 0%, #111827 70%);
}

/* Facade de video (lite-embed) para no cargar el iframe de YouTube hasta el clic:
   evita ~600KB+ de JS de terceros en la carga inicial (Core Web Vitals / LCP). */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 0;
}
.video-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.25);
  transition: background 0.2s ease;
}
.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
  background: rgba(17, 24, 39, 0.45);
}
.video-facade__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Flecha del acordeón FAQ (elemento nativo <details>) */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.25s ease;
}

/* Header: transparente sobre el hero/banner, blanco sólido al hacer scroll */
.site-header {
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header .nav-link {
  color: #fff;
  transition: color 0.2s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: #67e8f9; /* cyan-300 */
}
.site-header .menu-icon {
  color: #fff;
  transition: color 0.2s ease;
}
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}
.site-header.is-scrolled .nav-link {
  color: #1f2937; /* gray-800 */
}
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link:focus-visible {
  color: #0891b2; /* cyan-600 */
}
.site-header.is-scrolled .menu-icon {
  color: #1f2937;
}

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
