/**
 * Cerewro 2026/27 - Design System Futurista
 * Tema: Neural Dark / AI Interface
 * Paleta: Cyber Mint (#00f5d4) + Neon Magenta (#ff006e) + Deep Space (#0a0a0f)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   VARIABLES CSS - Sistema de Diseño
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Colores Primarios */
  --neon-mint: #00f5d4;
  --neon-magenta: #ff006e;
  --neon-cyan: #00bbf9;
  --neon-purple: #9b5de5;
  --neon-yellow: #fee440;
  
  /* Colores de Fondo */
  --bg-deep: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: rgba(15, 15, 25, 0.7);
  --bg-glass: rgba(20, 20, 35, 0.4);
  --bg-elevated: rgba(25, 25, 40, 0.8);
  
  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #707080;
  --text-accent: var(--neon-mint);
  
  /* Bordes y Líneas */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 245, 212, 0.3);
  --border-magenta: rgba(255, 0, 110, 0.3);
  
  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0f1a2e 100%);
  --gradient-accent: linear-gradient(135deg, var(--neon-mint) 0%, var(--neon-cyan) 100%);
  --gradient-magenta: linear-gradient(135deg, var(--neon-magenta) 0%, var(--neon-purple) 100%);
  --gradient-dual: linear-gradient(135deg, var(--neon-mint) 0%, var(--neon-magenta) 100%);
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow-mint: 0 0 40px rgba(0, 245, 212, 0.3);
  --shadow-glow-magenta: 0 0 40px rgba(255, 0, 110, 0.3);
  
  /* Radios */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Tipografía */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transiciones */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET Y BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

img,
picture,
video {
  max-width: 100%;
  height: auto;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Background con grid neural */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Glow orbs de fondo */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 600px 600px at 20% 20%, rgba(0, 245, 212, 0.08), transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 80%, rgba(255, 0, 110, 0.06), transparent 60%);
  animation: ambientPulse 8s ease-in-out infinite;
}

body[data-page="index"]::before {
  background-image:
    linear-gradient(rgba(183, 255, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 10, 138, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
}

body[data-page="index"]::after {
  background:
    radial-gradient(ellipse 760px 580px at 18% 18%, rgba(255, 10, 138, 0.16), transparent 68%),
    radial-gradient(ellipse 720px 560px at 82% 78%, rgba(183, 255, 42, 0.14), transparent 64%),
    radial-gradient(circle at 50% 50%, rgba(255, 10, 138, 0.05), transparent 42%);
  animation-duration: 10s;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════════════
   UTILIDADES
   ═══════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gradient {
  background: var(--gradient-dual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-mint {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-magenta {
  background: var(--gradient-magenta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--font-mono); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT - Page Shell
   ═══════════════════════════════════════════════════════════════ */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - var(--space-lg) * 2), var(--max-width));
  margin: 0 auto;
  padding: var(--space-lg) 0 var(--space-3xl);
}

@media (max-width: 768px) {
  .page-shell {
    width: calc(100% - var(--space-md) * 2);
    padding: var(--space-md) 0 var(--space-2xl);
  }
}

/* Panel de administrador (panel.php): container-fluid, ancho completo / pantalla completa */
body.admin-panel-fluid {
  min-height: 100vh;
}

body.admin-panel-fluid .page-shell.admin-panel-page-shell {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(0.75rem, 2.5vw, 2rem);
  padding-right: clamp(0.75rem, 2.5vw, 2rem);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-3xl);
  box-sizing: border-box;
}

body.admin-panel-fluid .admin-panel-main-fluid {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  body.admin-panel-fluid .page-shell.admin-panel-page-shell {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER - Navegación Futurista
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: var(--space-md);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-glow);
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-dual);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
  animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 110, 0.4); }
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-deep);
  border-radius: calc(var(--radius-md) - 2px);
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::before {
  opacity: 0.1;
}

.nav-link.active {
  color: var(--neon-mint);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid var(--border-glow);
}

.nav-link.nav-link-free-download {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-green), #8b5cf6);
  border: 1px solid rgba(132, 204, 22, 0.32);
  box-shadow: 0 14px 32px rgba(132, 204, 22, 0.18);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link.nav-link-free-download > * {
  position: relative;
  z-index: 1;
}

.nav-link.nav-link-free-download::before {
  background: rgba(12, 16, 36, 0.16);
}

.nav-link.nav-link-free-download:hover,
.nav-link.nav-link-free-download.active {
  color: var(--text-primary);
  border-color: rgba(132, 204, 22, 0.4);
  box-shadow: 0 18px 38px rgba(132, 204, 22, 0.24);
}

/* Language Switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch:hover {
  border-color: var(--border-glow);
  color: var(--neon-mint);
}

.lang-switch svg {
  width: 16px;
  height: 16px;
}

/* Account Chip */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-magenta);
  color: var(--neon-magenta);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.account-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-magenta);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER - Diseño Moderno
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-dual);
  opacity: 0.5;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
  max-width: 100%;
}

.footer-pro {
  min-width: 11rem;
}

.footer-pro-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--neon-mint);
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
}

.footer-pro-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: stretch;
}

.button-footer-pro {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.15rem;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
}

.button-footer-pro.button-primary .footer-pro-domain {
  opacity: 0.82;
  font-size: 0.72rem;
  font-weight: 500;
}

.button-footer-pro.button-secondary {
  border-color: rgba(0, 245, 212, 0.25);
}

.button-footer-pro.button-secondary:hover {
  border-color: var(--neon-mint);
  color: var(--neon-mint);
}

.footer-pro-divider {
  width: 100%;
  max-width: 280px;
  height: 1px;
  margin: var(--space-md) 0;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.25), transparent);
  border: none;
  align-self: center;
}

@media (min-width: 1025px) {
  .footer-pro-divider {
    align-self: flex-start;
    margin-left: 0;
  }
}

.footer-pro-cta-row {
  margin-top: 0;
}

.footer-pro-domain {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-accent);
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--neon-mint);
}

.footer-legal a:hover::after {
  width: 100%;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neon-magenta);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - Impacto Visual
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-width: 0;
}

/* Index: titular principal a ancho completo; debajo, badge + texto + CTAs | vídeo */
.hero-section .hero-grid > .hero-title-lead {
  grid-column: 1 / -1;
  margin-bottom: 0;
  max-width: 100%;
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw + 0.2rem, 2rem);
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-inline: var(--space-xs);
}

@media (min-width: 1100px) {
  .hero-section .hero-grid > .hero-title-lead {
    white-space: nowrap;
  }
}

.product-hero .hero-grid {
  grid-template-columns: 1fr 1.5fr;
}

.product-hero .hero-video-wrap {
  min-width: 0;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--neon-mint);
  margin-bottom: var(--space-lg);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 245, 212, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.4); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-mint);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: min(540px, 100%);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  max-width: 100%;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 
    var(--shadow-lg),
    0 0 60px rgba(0, 245, 212, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.hero-video-wrap:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(255, 0, 110, 0.1));
  pointer-events: none;
  z-index: 1;
}

.hero-video-wrap video {
  display: block;
  width: 100%;
  max-width: min(560px, 100%);
}

/* Botón audio del vídeo hero */
.hero-video-audio-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.hero-video-audio-btn:hover {
  background: rgba(0, 245, 212, 0.3);
  color: var(--color-primary);
}
.hero-video-audio-btn.is-unmuted {
  background: rgba(0, 245, 212, 0.25);
  color: var(--color-primary);
}

/* Pantalla completa (reproductor nativo: play/pausa, tiempo, volumen) */
.video-inline-fs-btn {
  position: absolute;
  bottom: 12px;
  right: 64px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.video-inline-fs-btn:hover {
  background: rgba(0, 245, 212, 0.3);
  color: var(--color-primary);
}

.hero-video-wrap:fullscreen,
.hero-video-wrap:-webkit-full-screen,
.demo1-video-wrap:fullscreen,
.demo1-video-wrap:-webkit-full-screen {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.hero-video-wrap:fullscreen video,
.hero-video-wrap:-webkit-full-screen video,
.demo1-video-wrap:fullscreen video,
.demo1-video-wrap:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-video-wrap:fullscreen .video-overlay,
.hero-video-wrap:-webkit-full-screen .video-overlay,
.demo1-video-wrap:fullscreen .video-overlay,
.demo1-video-wrap:-webkit-full-screen .video-overlay {
  display: none;
}
.hero-video-wrap:fullscreen .video-inline-fs-btn,
.hero-video-wrap:fullscreen .hero-video-audio-btn,
.hero-video-wrap:-webkit-full-screen .video-inline-fs-btn,
.hero-video-wrap:-webkit-full-screen .hero-video-audio-btn,
.demo1-video-wrap:fullscreen .video-inline-fs-btn,
.demo1-video-wrap:fullscreen .hero-video-audio-btn,
.demo1-video-wrap:-webkit-full-screen .video-inline-fs-btn,
.demo1-video-wrap:-webkit-full-screen .hero-video-audio-btn {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR - Métricas Animadas
   ═══════════════════════════════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-dual);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.8rem;
  color: #fff;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   BOTONES - Sistema Completo
   ═══════════════════════════════════════════════════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  border: none;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.button:hover::before {
  left: 100%;
}

.button-primary {
  background: var(--gradient-accent);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 245, 212, 0.4);
}

.button-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.button-secondary:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.15);
}

.button-magenta {
  background: var(--gradient-magenta);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
}

.button-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 110, 0.4);
}

.button.is-disabled,
.button[aria-disabled="true"],
button.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  filter: grayscale(0.15);
}

/* Botón con icono */
.button-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS Y PANELES - Glassmorphism 2.0
   ═══════════════════════════════════════════════════════════════ */
/* Producto: vídeo hero más grande */
.product-hero .hero-grid {
  grid-template-columns: 1fr 1.5fr;
}
.product-hero .hero-video-wrap {
  min-width: 0;
}

.panel-shell {
  padding: var(--space-2xl);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Producto: video más grande */
.product-hero .hero-grid {
  grid-template-columns: 1fr 1.5fr;
}
.product-hero .hero-video-wrap {
  min-width: 0;
}
.product-hero .hero-video-wrap video {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.panel-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card-panel {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.card-panel:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-mint);
}

/* ═══════════════════════════════════════════════════════════════
   SECCIONES - Títulos y Subtítulos
   ═══════════════════════════════════════════════════════════════ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--neon-mint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-eyebrow::before {
  content: '//';
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: min(600px, 100%);
  margin-bottom: var(--space-xl);
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES GRID - Tarjetas de Características
   ═══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-mint);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid var(--border-glow);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
  transition: var(--transition-base);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--neon-mint);
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: rgba(0, 245, 212, 0.2);
  transform: scale(1.1);
}

.feature-icon.magenta {
  background: rgba(255, 0, 110, 0.1);
  border-color: var(--border-magenta);
}

.feature-icon.magenta svg {
  color: var(--neon-magenta);
}

.feature-card:hover .feature-icon.magenta {
  background: rgba(255, 0, 110, 0.2);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
}

/* Casos de uso (index): 2 columnas en escritorio, 1 en móvil */
.usecases-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .usecases-grid {
    grid-template-columns: 1fr;
  }
}

.feature-tag {
  display: inline-flex;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--neon-mint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-tag.magenta {
  background: rgba(255, 0, 110, 0.1);
  border-color: var(--border-magenta);
  color: var(--neon-magenta);
}

/* ═══════════════════════════════════════════════════════════════
   PROVEEDORES - Pills Animados
   ═══════════════════════════════════════════════════════════════ */
.providers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  max-width: 1100px;
  width: 100%;
  margin: var(--space-xl) auto 0;
  box-sizing: border-box;
  padding-inline: 0;
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
  animation: floatPill 3s ease-in-out infinite;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.provider-pill:nth-child(2) { animation-delay: 0.2s; }
.provider-pill:nth-child(3) { animation-delay: 0.4s; }
.provider-pill:nth-child(4) { animation-delay: 0.6s; }
.provider-pill:nth-child(5) { animation-delay: 0.8s; }
.provider-pill:nth-child(6) { animation-delay: 1s; }
.provider-pill:nth-child(7) { animation-delay: 1.2s; }
.provider-pill:nth-child(8) { animation-delay: 1.4s; }
.provider-pill:nth-child(9) { animation-delay: 1.6s; }
.provider-pill:nth-child(10) { animation-delay: 1.8s; }
.provider-pill:nth-child(11) { animation-delay: 2s; }
.provider-pill:nth-child(12) { animation-delay: 2.2s; }
.provider-pill:nth-child(13) { animation-delay: 2.4s; }

@keyframes floatPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.provider-pill:hover {
  border-color: var(--border-glow);
  color: var(--neon-mint);
  transform: translateY(-2px) scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════
   TWO COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-width: 0;
}

.two-col > * {
  min-width: 0;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

.two-col img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}

.two-col img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-mint);
}

/* Check List */
.check-list {
  list-style: none;
  display: grid;
  gap: var(--space-md);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
  position: relative;
}

.check-list li::after {
  content: '✓';
  position: absolute;
  left: 6px;
  color: var(--bg-deep);
  font-size: 12px;
  font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.video-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-xl);
}

.video-showcase > .video-card:nth-child(2) {
  max-width: 100%;
}

.video-showcase > .video-card:nth-child(2) .video-card-info h4 {
  font-size: 1rem;
}

.video-showcase > .video-card:nth-child(2) .video-card-info p {
  font-size: 0.85rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}

.video-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-mint);
}

.demo1-video-wrap {
  position: relative;
}

.demo1-video-wrap .hero-video-audio-btn {
  z-index: 2;
}

.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-card-info {
  padding: var(--space-lg);
}

.video-card-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.video-card-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FLOW STEPS - Pasos de Proceso
   ═══════════════════════════════════════════════════════════════ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-mint), var(--neon-magenta));
  opacity: 0.3;
}

.flow-step {
  text-align: center;
  position: relative;
}

.step-number {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--bg-elevated);
  border: 2px solid var(--border-glow);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--neon-mint);
  position: relative;
  z-index: 1;
  transition: var(--transition-base);
}

.flow-step:hover .step-number {
  background: var(--gradient-accent);
  color: var(--bg-deep);
  transform: scale(1.1);
}

.flow-step h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY - Carrusel Mejorado
   ═══════════════════════════════════════════════════════════════ */
.gallery-section {
  position: relative;
}

.gallery-carousel {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.gallery-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.gallery-img {
  min-width: 100%;
  height: 400px;
  object-fit: contain;
  cursor: zoom-in;
  padding: var(--space-md);
  background: var(--bg-darker);
}

.gallery-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.gallery-arrow:hover {
  border-color: var(--border-glow);
  background: rgba(0, 245, 212, 0.1);
  color: var(--neon-mint);
  transform: scale(1.1);
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--neon-mint);
}

/* Zoom Modal */
.gallery-zoom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 8, 0.98);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.gallery-zoom.active {
  display: flex;
  animation: zoomIn 300ms ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-zoom img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.zoom-close,
.zoom-prev,
.zoom-next {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
}

.zoom-close:hover,
.zoom-prev:hover,
.zoom-next:hover {
  border-color: var(--border-glow);
  background: rgba(0, 245, 212, 0.2);
}

.zoom-close { top: var(--space-lg); right: var(--space-lg); }
.zoom-prev { left: var(--space-lg); top: 50%; transform: translateY(-50%); }
.zoom-next { right: var(--space-lg); top: 50%; transform: translateY(-50%); }

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION - Llamada a la Acción
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--space-3xl);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-2xl);
  max-width: 100%;
  box-sizing: border-box;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-dual);
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 400px 400px at 20% 50%, rgba(0, 245, 212, 0.1), transparent),
    radial-gradient(ellipse 400px 400px at 80% 50%, rgba(255, 0, 110, 0.08), transparent);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   FORMULARIOS - Inputs Modernos
   ═══════════════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-lg);
}

.form-field {
  display: grid;
  gap: var(--space-sm);
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Register acceptance checks */
.register-checks .check-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.register-checks .check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.register-checks .check-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--neon-magenta);
}

.register-checks .check-label a {
  color: var(--neon-mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.register-checks .check-label a:hover {
  color: var(--neon-magenta);
}

.input-control,
.textarea-control,
.select-control {
  width: 100%;
  min-height: 52px;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.textarea-control {
  min-height: 140px;
  resize: vertical;
}

.input-control:focus,
.textarea-control:focus,
.select-control:focus {
  border-color: var(--neon-mint);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.1);
}

.input-control::placeholder,
.textarea-control::placeholder {
  color: var(--text-muted);
}

/* Password field with show/hide toggle */
.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap .input-control {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.password-toggle:hover {
  color: var(--neon-mint);
  background: rgba(0, 245, 212, 0.1);
}

.password-toggle svg {
  display: block;
}

.input-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Status Boxes */
.status-box {
  display: none;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status-box.is-visible { display: block; }
.status-box.is-success {
  color: var(--neon-mint);
  border: 1px solid var(--border-glow);
  background: rgba(0, 245, 212, 0.1);
}
.status-box.is-error {
  color: var(--neon-magenta);
  border: 1px solid var(--border-magenta);
  background: rgba(255, 0, 110, 0.1);
}
.status-box.is-info {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 187, 249, 0.3);
  background: rgba(0, 187, 249, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   TABLAS - Data Tables
   ═══════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.history-table th,
.history-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.history-table th {
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.history-table td {
  color: var(--text-secondary);
}

.history-table tr:hover td {
  background: rgba(0, 245, 212, 0.03);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   PILLS Y BADGES
   ═══════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.pill.is-success {
  background: rgba(0, 245, 212, 0.15);
  color: var(--neon-mint);
  border: 1px solid var(--border-glow);
}

.pill.is-error {
  background: rgba(255, 0, 110, 0.15);
  color: var(--neon-magenta);
  border: 1px solid var(--border-magenta);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES SCROLL
   ═══════════════════════════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════════
   CONTACTO - Layout form + imagen
   ═══════════════════════════════════════════════════════════════ */
.contact-section .contact-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-section .contact-form-wrap {
  flex: 1 1 400px;
  min-width: 0;
}

.contact-section .contact-image-wrap {
  flex: 0 0 320px;
}

.contact-section .contact-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-section .contact-image-wrap.visible .contact-img {
  animation: contactImgFadeIn 0.8s ease forwards;
}

.contact-section .contact-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-mint);
}

@keyframes contactImgFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .contact-section .contact-layout {
    flex-direction: column;
  }
  .contact-section .contact-image-wrap {
    flex: 1 1 auto;
    order: -1;
  }
  .contact-section .contact-img {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRECIOS - Pricing Cards
   ═══════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.pricing-grid.pricing-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing-card.demo-card {
  border-color: rgba(0, 245, 212, 0.18);
}

.pricing-card.featured {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-mint);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-accent);
  color: var(--bg-deep);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.pricing-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-8px);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-dual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.pricing-features.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-lg);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features.pricing-features-grid li {
  align-items: flex-start;
  min-width: 0;
}

@media (max-width: 520px) {
  .pricing-features.pricing-features-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.2);
  color: var(--neon-mint);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.pricing-features.pricing-features-grid li::before {
  margin-top: 2px;
}

/* Precios: mismo color «gratis/demo» en lo heredado; color de nivel solo en novedades del plan */
.pricing-features.pricing-features-grid li.pricing-feature-dot--gratis::before {
  background: rgba(0, 187, 249, 0.4);
  color: #7dd3fc;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.45);
}

.pricing-features.pricing-features-grid li.pricing-feature-dot--tier-student::before {
  background: rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.45);
}

.pricing-features.pricing-features-grid li.pricing-feature-dot--tier-user::before {
  background: rgba(155, 93, 229, 0.42);
  color: #d8b4fe;
  box-shadow: inset 0 0 0 1px rgba(216, 180, 254, 0.45);
}

.pricing-features.pricing-features-grid li.pricing-feature-dot--tier-pro::before {
  background: rgba(254, 228, 64, 0.32);
  color: var(--neon-yellow);
  box-shadow: inset 0 0 0 1px rgba(254, 228, 64, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   ACCESO - Auth Forms
   ═══════════════════════════════════════════════════════════════ */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: min(900px, 100%);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.auth-container > * {
  min-width: 0;
}

.auth-box {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.auth-box h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.auth-box h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--neon-mint);
}

/* CAPTCHA - diseño acorde a la web */
.captcha-field {
  margin-top: var(--space-sm);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.captcha-box:focus-within {
  border-color: var(--neon-mint);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.15);
}

.captcha-accent {
  border-left: 3px solid var(--neon-mint);
}

.captcha-magenta {
  border-left: 3px solid var(--neon-magenta);
}

.captcha-question {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.captcha-input {
  width: 80px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
}

.captcha-input::placeholder {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .captcha-question {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .captcha-box {
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PANEL DE CLIENTE
   ═══════════════════════════════════════════════════════════════ */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.account-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
}

.account-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.info-list {
  display: grid;
  gap: var(--space-sm);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-child {
  border-bottom: none;
}

/* Licencia: comprobar activación + vídeos (usuarios logueados) */
.license-check-layout--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.license-setup-video-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0a0a12;
}

.license-setup-video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .license-check-layout--grid {
    grid-template-columns: 1fr;
  }
}

.info-row span:first-child {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-row span:last-child {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════════ */
.legal-prose {
  max-width: min(800px, 100%);
  margin: 0 auto;
  overflow-wrap: break-word;
}

.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-prose p,
.legal-prose li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-prose ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-prose li {
  margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Mobile First
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-section .hero-grid > .hero-title-lead {
    font-size: clamp(1rem, 3.2vw + 0.15rem, 1.65rem);
  }

  /* Tres filas: titular → texto/CTA → vídeo (sin subir el vídeo encima del titular) */
  .hero-section .hero-visual {
    order: 1;
  }
  
  .hero-video-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:nth-child(2)::after { display: none; }
  
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .flow-steps::before {
    display: none;
  }
  
  .video-showcase {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.demo-card {
    order: -2;
  }
  
  .auth-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 2.5rem;
  }
  
  .site-header {
    flex-wrap: wrap;
    padding: var(--space-sm);
  }
  
  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
  }
  
  .header-nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .brand-copy span {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .button {
    width: 100%;
  }
  
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-lg);
    gap: var(--space-sm);
  }
  
  .stat-item::after { display: none; }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .providers-row {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-pill {
    justify-content: center;
    text-align: center;
  }
  
  .flow-steps {
    grid-template-columns: 1fr;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  
  .gallery-img {
    height: 250px;
  }

  .footer-pro {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-pro-actions {
    align-items: center;
  }

  .button-footer-pro {
    max-width: min(320px, 100%);
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-brand p {
    max-width: none;
  }
  
  .panel-shell {
    padding: var(--space-lg);
  }

  .hero-video-wrap,
  .hero-video-wrap:hover {
    transform: none;
  }

  .hero-video-wrap video {
    max-width: 100%;
  }
  
  .cta-section {
    padding: var(--space-xl);
  }
  
  .video-card-info h4 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }
  
  .brand-mark img {
    width: 26px;
    height: 26px;
  }
  
  .brand-copy strong {
    font-size: 1.1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    padding: var(--space-sm);
  }
  
  .feature-card {
    padding: var(--space-lg);
  }
  
  .pricing-card {
    padding: var(--space-lg);
  }
  
  .pricing-price {
    font-size: 2.5rem;
  }
  
  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  .gallery-thumbs img {
    width: 50px;
    height: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES ADICIONALES - Hover Effects
   ═══════════════════════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 245, 212, 0.5); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Neural Network Background Effect */
.neural-bg {
  position: relative;
}

.neural-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 245, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: neuralPulse 4s ease-in-out infinite;
}

body[data-page="index"] .neural-bg::before {
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 10, 138, 0.1) 0%, transparent 52%),
    radial-gradient(circle at 82% 72%, rgba(183, 255, 42, 0.1) 0%, transparent 50%);
}

@keyframes neuralPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-glow);
}

/* Selection */
::selection {
  background: rgba(0, 245, 212, 0.3);
  color: var(--text-primary);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--neon-mint);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO VISUAL ENHANCEMENTS - Neural Elements
   ═══════════════════════════════════════════════════════════════ */
.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, rgba(255, 0, 110, 0.05) 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* Neural Nodes Decoration */
.neural-nodes {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-mint);
  box-shadow: 0 0 20px var(--neon-mint);
  animation: nodePulse 2s ease-in-out infinite;
}

.node-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.node-2 {
  top: 20%;
  right: 15%;
  background: var(--neon-magenta);
  box-shadow: 0 0 20px var(--neon-magenta);
  animation-delay: 0.5s;
}

.node-3 {
  bottom: 25%;
  left: 5%;
  background: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan);
  animation-delay: 1s;
}

@keyframes nodePulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: scale(1.3); 
    opacity: 1; 
  }
}

.connection-line {
  position: absolute;
  top: 30%;
  left: -10%;
  width: 120%;
  height: 100px;
  opacity: 0.6;
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Shimmer Effect for buttons */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL DESCARGAR
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 245, 212, 0.08);
}

.modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-dual);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-right: 40px;
}

.modal-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════ */
body.is-loading {
  overflow: hidden;
}

/* Oculta solo el texto del hero durante la carga; el vídeo queda visible para que autoplay funcione */
body.is-loading .hero-content .hero-badge,
body.is-loading .hero-grid > .hero-title,
body.is-loading .hero-content .hero-subtitle,
body.is-loading .hero-content .hero-actions {
  opacity: 0;
  transform: translateY(30px);
}

body.is-loaded .hero-section,
body.is-loaded .hero-content .hero-badge,
body.is-loaded .hero-grid > .hero-title,
body.is-loaded .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.is-loaded .hero-grid > .hero-title {
  transition-delay: 0.1s;
}

body.is-loaded .hero-subtitle {
  transition-delay: 0.2s;
}

body.is-loaded .hero-actions {
  transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   CURSOR GLOW (agregado por JS)
   ═══════════════════════════════════════════════════════════════ */
.cursor-glow {
  mix-blend-mode: screen;
  filter: blur(40px);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO - Layout formulario + imagen
   ═══════════════════════════════════════════════════════════════ */
.contact-section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-form-wrap {
  flex: 1 1 400px;
  min-width: 0;
}

.contact-image-wrap {
  flex: 0 0 340px;
}

.contact-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-image-wrap.visible .contact-img,
.contact-img:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-mint);
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }
  .contact-image-wrap {
    flex: 1 1 auto;
    order: -1;
  }
  .contact-img {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO - Layout con imagen (columnas iguales)
   ═══════════════════════════════════════════════════════════════ */
.contact-section .contact-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section .contact-form-wrap,
.contact-section .contact-image-wrap {
  flex: 1 1 0;
  min-width: 0;
}

.contact-section .contact-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-section .contact-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-mint);
}

@media (max-width: 768px) {
  .contact-section .contact-image-wrap {
    flex: 1 1 100%;
    order: -1;
    text-align: center;
  }
  .contact-section .contact-img {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO - Layout formulario + imagen
   ═══════════════════════════════════════════════════════════════ */
.contact-section .contact-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-wrap {
  flex: 1 1 400px;
  min-width: 0;
}

.contact-image-wrap {
  flex: 0 0 320px;
}

.contact-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-glow-mint);
}

@media (max-width: 768px) {
  .contact-section .contact-layout {
    flex-direction: column;
  }
  .contact-image-wrap {
    flex: 1 1 auto;
    order: -1;
  }
  .contact-img {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO - Layout formulario + imagen
   ═══════════════════════════════════════════════════════════════ */
.contact-section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-form-wrap {
  flex: 1 1 400px;
  min-width: 0;
}

.contact-image-wrap {
  flex: 0 0 340px;
}

.contact-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-glow-mint);
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }
  .contact-image-wrap {
    flex: 1 1 auto;
    order: -1;
  }
  .contact-img {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY - Focus States
   ═══════════════════════════════════════════════════════════════ */
.nav-link:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--neon-mint);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .gallery-carousel,
  .gallery-zoom {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .panel-shell {
    border: 1px solid #ccc;
    background: white !important;
    break-inside: avoid;
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .float-animation,
  .pulse-dot,
  .node,
  .connection-line {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO - Layout formulario + imagen
   ═══════════════════════════════════════════════════════════════ */
.contact-section .contact-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-wrap {
  flex: 1 1 400px;
  min-width: 0;
}

.contact-image-wrap {
  flex: 0 0 320px;
}

.contact-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-mint);
}

@media (max-width: 768px) {
  .contact-section .contact-layout {
    flex-direction: column;
  }
  .contact-image-wrap {
    flex: 1 1 auto;
    order: -1;
  }
  .contact-img {
    max-width: 100%;
  }
}
