/* ===== Proceso interactivo (acordeón) ===== */
.process-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.process-card { border-radius: 16px; overflow: hidden; transition: all 0.4s ease; flex: 1 1 calc(33.333% - 24px); display: flex; flex-direction: column; }
.process-grid.is-active .process-card:not(.is-active) { opacity: .75; transform: scale(0.99); }
.process-card .card-toggle { width: 100%; padding: 24px 24px 12px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; position: relative; gap: 8px; min-height: 140px; }
.process-card .card-header { display: flex; align-items: center; gap: 14px; }
.process-card .card-number { color: #5e2ccf; font-weight: 500; font-size: 4rem; line-height: 1; font-family: 'Goodly', 'Montserrat', sans-serif; }
.process-card .card-icon { 
  width: 22px; 
  height: 22px; 
  flex-shrink: 0; 
  display: flex; align-items: center; justify-content: center; 
  background: transparent !important; 
  position: static; 
}
.process-card .card-icon svg { transition: transform .3s ease; }
.process-card.is-active .card-icon svg { transform: rotate(180deg); }

/* Título de tarjeta en lila corporativo */
.process-card .card-header h3 { color: #5e2ccf !important; }
.process-card .card-content { 
  max-height: 0 !important; 
  opacity: 0 !important; 
  overflow: hidden !important; 
  transition: max-height .5s ease, opacity .3s ease, padding .5s ease; 
  padding: 0 24px 12px 24px; 
  text-align: center;
}
.process-card .card-content p { 
  margin: 0 auto; 
  padding-bottom: 24px; 
  color: #4b5563; 
  text-align: center; 
}
.process-card.is-active .card-content { 
  max-height: 500px !important; 
  opacity: 1 !important; 
}

@media (max-width: 900px) { .process-grid { display: flex; flex-direction: column; } .process-card { flex: 1 1 100%; } }
/* Sanitizar overlays/texto accidental sobre la imagen de Confianza y Origen */
.trust-image { position: relative; }
.trust-image * { text-shadow: none !important; }
.trust-image::after { content: none !important; }
/* ===== VARIABLES CSS ===== */
:root {
  --primary-gradient: linear-gradient(135deg, #5e2ccf 0%, #98fbcb 100%);
  --primary-gradient-reverse: linear-gradient(135deg, #98fbcb 0%, #5e2ccf 100%);
  --bg-primary: #0b0b10;
  --bg-secondary: #1a1a2e;
  --text-primary: #f5f7fb;
  --text-secondary: #c7c9d1;
  --accent-primary: #5e2ccf;
  --accent-secondary: #98fbcb;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

/* ===== FUENTE GOODLY ===== */
@font-face {
  font-family: 'Goodly';
  src: url('../fonts/Goodly-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Goodly';
  src: url('../fonts/Goodly-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Goodly';
  src: url('../fonts/Goodly-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.font-goodly {
  font-family: 'Goodly', 'Montserrat', sans-serif;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== TIPOGRAFÍA FLUIDA ===== */
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== GLASSMORPHISM ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-background-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
}

.glass-button {
  background: linear-gradient(135deg, rgba(94, 44, 207, 0.8) 0%, rgba(152, 251, 203, 0.8) 100%);
  backdrop-filter: blur(16px);
  -webkit-background-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-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;
}

.glass-button:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

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

/* ===== BOTONES MEJORADOS CON GLASSMORPHISM ===== */
.btn-primary {
  background: linear-gradient(to right, #5e2ccf, #98fbcb);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(94, 44, 207, 0.3), 0 10px 10px -5px rgba(94, 44, 207, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}

.btn-primary::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;
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 40px rgba(94, 44, 207, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7fb;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}

.btn-secondary:hover {
  transform: scale(1.05) translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(255,255,255,0.2);
}

.btn-white {
  background: rgba(255, 255, 255, 0.9);
  color: #0b0b10;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.btn-white:hover {
  transform: scale(1.05) translateY(-2px);
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 40px rgba(255,255,255,0.4);
}

.btn-outline-white {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-white:hover {
  transform: scale(1.05) translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(255,255,255,0.2);
}
  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;
}

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

.glass-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(94, 44, 207, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== UTILIDADES ===== */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Bullets corporativos para listas informativas */
.list-auranai {
  list-style: none;
  padding-left: 0;
}
.list-auranai li {
  position: relative;
  padding-left: 1.5rem;
  color: #374151; /* Color gris oscuro para el texto */
}
.list-auranai li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #5e2ccf, #98fbcb);
  box-shadow: 0 0 0 2px rgba(94, 44, 207, 0.15);
}

.bg-gradient {
  background: var(--primary-gradient);
}

/* ===== Casos de Uso (Home) ===== */
.cases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start; /* Mismo comportamiento que process-grid */
}
@media (min-width: 1024px) {
  .cases-grid {
    gap: 24px; /* Mantener el mismo gap */
  }
}
.case-card p { font-size: 0.95rem; }
/* Acordeón en Casos de Uso: oculto por defecto en todos los tamaños */
.case-content { display: none !important; max-height: 0 !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; }
.case-card { 
  position: relative; 
  overflow: hidden; 
  height: auto; 
  min-height: 100px; /* Reducido a 100px para cajas más estrechas */
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 24px); /* Mismo comportamiento que process-card */
}
/* Contenido de casos de uso - expandir la tarjeta */
.case-content { 
  display: none !important; 
  max-height: 0 !important; 
  overflow: hidden !important; 
  padding: 0 !important; 
  margin: 0 !important; 
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.case-card.open .case-content { 
  display: block !important; 
  max-height: 500px !important; 
  padding: 8px !important; /* Padding reducido para contenido */
}
.case-toggle { 
  display: block; 
  width: 100%; 
  text-align: center; 
  cursor: pointer; 
  padding: 8px 6px 4px 6px; /* Padding muy compacto */
}
/* Chevron visible en todos los tamaños, centrado bajo el título */
.case-toggle .chevron { 
  display: inline-block !important; 
  margin-left: 8px; 
  color: #5e2ccf; 
  font-size: 14px; 
  line-height: 1; 
  transition: transform 0.2s ease;
  vertical-align: middle;
}

/* Estilo de flecha SVG para tarjetas de casos de uso */
.case-toggle .card-icon { 
  width: 22px; 
  height: 22px; 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: transparent !important; 
  position: static; 
  margin: 6px auto 0 auto;
}
.case-toggle .card-icon svg { 
  transition: transform .3s ease; 
}
.case-card.open .card-icon svg { 
  transform: rotate(180deg); 
}

/* Acordeón Q&A en sección Problemas */
.qa-answer { display: none; }
.qa-card.open .qa-answer { display: block; }
.qa-toggle { user-select: none; }

/* Tarjetas tipo flip */
.flip-card {
  position: relative;
  perspective: 1000px;
  overflow: visible; /* permitir sombra completa */
  height: 320px;
  cursor: pointer;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}
.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner,
.flip-card.open .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* La tarjeta completa (contenedor) es la que tiene el efecto glass */
.flip-card {
  border-radius: 1.5rem;
}
/* Desactivar animaciones de hover internas de glass para evitar saltos */
.flip-card:hover { transform: none; }

/* Compactar padding general de la tarjeta flip */
.flip-card.feature-card { padding: 1.25rem !important; }

@media (min-width: 768px) {
  .flip-card { height: 380px; }
}
.flip-back {
  transform: rotateY(180deg);
}

/* Evitar recortes de icono y solapes */
.flip-front .w-16, .flip-back .w-16 { flex: 0 0 auto; }
.flip-front h3 { margin-top: 0.5rem; }

/* Desactivar decoraciones de feature-card dentro del flip para evitar recortes/triángulos */
.flip-card .feature-card::before,
.flip-card .feature-card::after {
  display: none !important;
}
/* Chevron para acordeón - visible en todas las pantallas */
.case-card.open .chevron {
  transform: rotate(180deg);
}

.bg-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-background-filter: blur(16px);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

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

/* ===== RESPONSIVIDAD ===== */
@media (max-width: 640px) {
  .glass-card {
    margin: 1rem 0;
  }
  
  .glass-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.75rem, 6vw, 3rem);
  }
  
  h2 {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ===== FOCUS VISIBLE ===== */
.glass-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* ===== SCROLLBAR DEL VIDEO ===== */
video::-webkit-scrollbar {
  width: 10px;
}

video::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

video::-webkit-scrollbar-thumb {
  background: #5e2ccf;
  border-radius: 5px;
  transition: background 0.3s ease;
}

video::-webkit-scrollbar-thumb:hover {
  background: #98fbcb;
}

/* ===== CLASES PERSONALIZADAS DE TAILWIND ===== */
.text-auranai-muted {
  color: #374151;
}

.text-auranai-light {
  color: #111827;
}

.text-auranai-secondary {
  color: #98fbcb !important;
}

/* ===== NEGRITAS CON COLOR ORIGINAL ===== */
strong {
  color: inherit !important;
  font-weight: 600;
}

.bg-auranai-dark {
  background-color: #ffffff;
}

.bg-auranai-primary {
  background-color: #5e2ccf;
}

.bg-auranai-secondary {
  background-color: #98fbcb;
}

.text-auranai-primary {
  color: #5e2ccf;
}

.text-auranai-secondary {
  color: #98fbcb !important;
}

.from-auranai-primary {
  --tw-gradient-from: #5e2ccf;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(94, 44, 207, 0));
}

.to-auranai-secondary {
  --tw-gradient-to: #98fbcb;
}

.from-auranai-secondary {
  --tw-gradient-from: #98fbcb;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(152, 251, 203, 0));
}

.to-auranai-primary {
  --tw-gradient-to: #5e2ccf;
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

/* ===== BOTONES MEJORADOS CON GLASSMORPHISM ===== */
/* Botón secundario para páginas blancas (estilo lila) */
.bg-white .btn-secondary {
  background: transparent;
  color: #5e2ccf;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 2px solid #5e2ccf;
  box-shadow: 0 20px 25px -5px rgba(94, 44, 207, 0.1), 0 10px 10px -5px rgba(94, 44, 207, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}

.bg-white .btn-secondary:hover {
  transform: scale(1.05) translateY(-2px);
  background: #5e2ccf;
  color: white;
  border-color: #5e2ccf;
  box-shadow: 0 20px 40px rgba(94, 44, 207, 0.3);
}

/* Botón secundario verde para páginas oscuras (estilo Agente Aura) */
.bg-bg-primary .btn-secondary {
  background: transparent !important;
  color: #98fbcb !important;
  border: 2px solid #98fbcb !important;
  box-shadow: 0 20px 25px -5px rgba(152, 251, 203, 0.1), 0 10px 10px -5px rgba(152, 251, 203, 0.05) !important;
}

.bg-bg-primary .btn-secondary:hover {
  background: #98fbcb !important;
  color: #0b0b10 !important;
  border-color: #98fbcb !important;
  box-shadow: 0 20px 40px rgba(152, 251, 203, 0.3) !important;
}

/* Botón secundario verde para página Agente Aura */
.agente-aura-page .btn-secondary {
  background: transparent;
  color: #98fbcb;
  border: 2px solid #98fbcb;
  box-shadow: 0 20px 25px -5px rgba(152, 251, 203, 0.1), 0 10px 10px -5px rgba(152, 251, 203, 0.05);
}

.agente-aura-page .btn-secondary:hover {
  background: #98fbcb;
  color: #0b0b10;
  border-color: #98fbcb;
  box-shadow: 0 20px 40px rgba(152, 251, 203, 0.3);
}

/* Indicador de volteo para tarjetas flip de la Home */
.flip-card {
  position: relative;
}

.flip-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5e2ccf;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.flip-hint svg {
  width: 20px;
  height: 20px;
}

.flip-card:hover .flip-hint {
  transform: rotate(180deg);
}

.btn-white {
  background: rgba(255, 255, 255, 0.9);
  color: #0b0b10;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.btn-white:hover {
  transform: scale(1.05) translateY(-2px);
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 40px rgba(255,255,255,0.4);
}

.btn-outline-white {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.btn-outline-white:hover {
  transform: scale(1.05) translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(255,255,255,0.2);
}

/* ===== ICONOS APPLE-LIKE (Tabler) ===== */
.icon { width: 1.25rem; height: 1.25rem; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: #e5e7eb; }
@media (min-width: 768px) { .icon { width: 1.5rem; height: 1.5rem; } }
.icon--accent { color: #98fbcb !important; }

/* Contenedor glass para iconos */
.icon-glass {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.icon-glass--lg { width: 4rem; height: 4rem; }
.icon-glass svg { width: 1.5rem !important; height: 1.5rem !important; }
.icon-glass--lg svg { width: 2rem !important; height: 2rem !important; }
.icon-glass:hover { box-shadow: 0 18px 36px rgba(0,0,0,0.2); }

/* ===== CONTENEDOR DE PARTÍCULAS DEL HERO ===== */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden; /* Volver a hidden para contener las partículas */
  pointer-events: auto;
  visibility: visible !important;
  opacity: 1 !important;
  /* Forzar visibilidad */
  display: block !important;
}

#particles-js canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  overflow: hidden;
  pointer-events: auto;
  /* Forzar visibilidad */
  background: transparent !important;
}

/* ===== HERO SECTION SIMPLE ===== */
section:first-child {
  position: relative;
  overflow: hidden; /* Volver a hidden para contener las partículas */
  background: white;
  /* Hero a pantalla completa compensando header fijo, con fallbacks svh/dvh y preferencia lvh (más estable en desktop) */
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  min-height: calc(100lvh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tablet: un poco menos alto */
@media (max-width: 1024px) {
  section:first-child {
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    min-height: calc(100lvh - var(--header-height));
  }
}

@media (max-width: 640px) {
  section:first-child {
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    min-height: calc(100lvh - var(--header-height));
  }
}

/* Ajustes de tipografía del H1 del Hero (solo primera sección) */
section:first-child h1 {
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Contenedor del Hero: padding vertical explícito */
.hero-container {
  /* Aire interno controlado por gap para no alterar la altura del Hero */
  padding-top: clamp(80px, 15vh, 200px);
  padding-bottom: clamp(120px, 18vh, 250px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 7vh, 80px);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}



/* ===== ANIMACIONES DE LA SECCIÓN SOLUCIÓN ===== */

/* Animación de entrada de las tarjetas */
.solution-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto hover en las tarjetas */
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(94, 44, 207, 0.15);
}

/* Iconos de las tarjetas */
.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(94, 44, 207, 0.1), rgba(152, 251, 203, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.solution-card:hover .card-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(94, 44, 207, 0.2), rgba(152, 251, 203, 0.2));
}

/* Contenedor principal del showcase de Aura */
.aura-showcase-container {
  min-height: 640px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin-top: 1rem;
}

/* Aura protagonista en el centro */
.aura-protagonist {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(70px);
  margin-left: auto;
  margin-right: auto;
}

.aura-main-image {
  width: 260px; /* un poco más pequeña */
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  animation: auraFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; /* acompasar al nuevo tamaño */
  height: 300px;
  background: radial-gradient(circle, rgba(94, 44, 207, 0.2) 0%, rgba(152, 251, 203, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: auraGlow 4s ease-in-out infinite alternate;
}

/* CTA compacta alineada bajo Aura */
.aura-cta {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
}

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

@keyframes auraGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Contenedor de tarjetas flotantes */
.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

.floating-cards .solution-card {
  position: absolute;
  pointer-events: auto;
  width: 300px; /* horizontal necesita algo más de ancho */
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 1rem 1.25rem;
}

/* Tipografía compacta para el layout horizontal */
.floating-cards .solution-card h3 {
  margin: 0;
  font-size: 1rem;
}

.floating-cards .solution-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Icono ajustado al layout horizontal */
.floating-cards .solution-card .card-icon {
  margin: 0;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

/* Posicionamiento de las tarjetas alrededor de Aura */
.floating-card-1 {
  top: 18%;
  left: 10%;
  animation: cardFloat1 8s ease-in-out infinite;
}

.floating-card-2 {
  top: 18%;
  right: 10%;
  animation: cardFloat2 8s ease-in-out infinite;
}

.floating-card-3 {
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  animation: cardFloat3 8s ease-in-out infinite;
}

@keyframes cardFloat1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes cardFloat2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

@keyframes cardFloat3 {
  0%, 100% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(1deg);
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .aura-showcase-container {
    min-height: 520px;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .aura-main-image {
    width: 210px;
    height: 210px;
  }
  
  .aura-glow {
    width: 240px;
    height: 240px;
  }
  
  .floating-cards .solution-card {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    display: block; /* volver a vertical en móvil */
    text-align: center;
  }
  
  .floating-card-1,
  .floating-card-2,
  .floating-card-3 {
    position: static;
    transform: none;
    animation: none;
  }
}

/* ===== RESPONSIVE OVERRIDES PARA SECCIÓN SOLUCIÓN ===== */
@media (max-width: 1024px) {
  .solucion-desktop { display: none !important; }
  .solucion-mobile { display: block !important; }
  .aura-showcase-container { min-height: auto; width: 100%; overflow: hidden; }
  .aura-protagonist { position: relative !important; transform: none !important; margin: 16px auto 0 !important; }
  .floating-cards { position: relative !important; top: auto !important; height: auto !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 12px !important; margin-top: 12px; }
  .floating-cards .solution-card { position: relative !important; width: 100% !important; max-width: 420px !important; margin: 0 auto !important; justify-content: center !important; text-align: center !important; left: auto !important; right: auto !important; top: auto !important; }
  .floating-card-3 { transform: none !important; }
  .aura-video-floating { position: relative !important; top: auto !important; right: auto !important; margin: 16px auto 4px !important; width: 100%; display: flex; justify-content: center; }
  .aura-cta-bottom { position: relative !important; left: auto !important; bottom: auto !important; transform: none !important; margin: 16px auto 0 !important; }
}

@media (max-width: 640px) {
  .solucion-desktop { display: none !important; }
  .solucion-mobile { display: block !important; }
  .floating-cards .solution-card { max-width: 360px !important; }
  .aura-main-image { width: 200px; height: 200px; max-width: 90vw; }
  .aura-protagonist { width: 100%; display: flex; justify-content: center; align-items: center; }
  /* Reordenar bloques en móvil: 1) vídeo, 2) tarjetas, 3) Aura, 4) CTA */
  .aura-showcase-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .aura-video-floating { order: 1; width: 100%; display: flex; justify-content: center; margin-bottom: 8px !important; }
  .floating-cards { order: 2; width: 100%; margin-top: 16px; }
  .mobile-video { margin-bottom: 16px; }
  .mobile-cards { margin-top: 16px; margin-bottom: 20px; }
  .mobile-aura { margin-top: 20px; gap: 16px; }
  .aura-protagonist { order: 3; margin-top: 8px !important; }
  .aura-cta-bottom { order: 4; margin-top: 8px !important; }
}

/* Botón de vídeo con pulso */
.video-play-button {
  animation: videoPulse 2s ease-in-out infinite;
  position: relative;
}

.video-play-button::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, rgba(94, 44, 207, 0.3), rgba(152, 251, 203, 0.3));
  border-radius: 12px;
  z-index: -1;
  animation: videoPulseRing 2s ease-in-out infinite;
}

@keyframes videoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes videoPulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* ===== FORZAR CONTENCIÓN DE PARTÍCULAS ===== */
/* Cualquier canvas que no esté en el Hero será ocultado */
body > canvas,
section:not(:first-child) canvas,
.feature-card canvas,
footer canvas {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== EFECTOS DE SCROLL DEL HEADER ===== */
header {
  transition: transform 0.3s ease-in-out, background-color 0.3s ease;
  will-change: transform;
  transform: translateY(0);
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* Estado abierto para el menú móvil (deslizar desde la derecha) - máxima especificidad */
.mobile-menu.open,
.mobile-menu.open.xl\:hidden,
.mobile-menu.open.fixed,
.mobile-menu.open.top-0,
.mobile-menu.open.right-0,
.mobile-menu.open.h-full,
.mobile-menu.open.w-80,
.mobile-menu.open.bg-black,
.mobile-menu.open.transform,
.mobile-menu.open.translate-x-full,
.mobile-menu.open.transition-transform,
.mobile-menu.open.duration-300,
.mobile-menu.open.ease-in-out,
.mobile-menu.open.z-\[60\],
.mobile-menu.open.border-l,
.mobile-menu.open.border-white\/10 {
  transform: translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Bloqueo de scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Overlay del menú móvil visible */
.mobile-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Asegurar que el panel móvil tape el contenido en todas las vistas */
.mobile-menu {
  background-color: #000000 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #000000 !important;
}

/* Forzar opacidad completa del menú móvil */
.mobile-menu.open {
  background-color: #000000 !important;
  background: #000000 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Asegurar contraste perfecto en enlaces del menú móvil */
.mobile-menu .mobile-nav-link {
  color: #ffffff !important;
}

.mobile-menu .mobile-nav-link:hover {
  color: #98fbcb !important;
}

/* Información de contacto en menú móvil */
.mobile-menu .text-white\/70 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Bordes del menú móvil */
.mobile-menu .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}


/* Scroll en menú móvil */
.mobile-menu {
  overflow-y: auto !important;
  max-height: 100vh !important;
  transition: transform 0.3s ease-in-out !important;
}

/* Forzar override de translate-x-full cuando el menú está abierto */
.mobile-menu.open.translate-x-full {
  transform: translateX(0) !important;
}

/* Asegurar que el menú móvil se vea completo */
.mobile-menu {
  height: 100vh !important;
  top: 0 !important;
  right: 0 !important;
  width: 320px !important;
  max-width: 90vw !important;
  overflow-y: auto !important;
}

/* Cuando está abierto, asegurar visibilidad completa */
.mobile-menu.open {
  height: 100vh !important;
  top: 0 !important;
  right: 0 !important;
  transform: translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ELIMINADO: CSS automático para enlaces activos - SOLO JavaScript controla */

/* CTA primario en menú móvil */
.mobile-menu .btn-primary {
  background: linear-gradient(135deg, #5e2ccf 0%, #98fbcb 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(94, 44, 207, 0.3) !important;
}

/* Contenedor del menú móvil con distribución correcta */
.mobile-menu > div {
  min-height: 100% !important;
  display: block !important;
  padding: 24px !important;
}

/* Scroll en todo el menú móvil */
.mobile-menu {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Asegurar que el contenido llegue hasta el final */
.mobile-menu > div {
  padding-bottom: 4rem !important;
}

/* CSS específico para Safari móvil - versión ultra simplificada */
@supports (-webkit-touch-callout: none) {
  .mobile-menu {
    /* Evitar el scroll "pillado" en Safari móvil */
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }
  
  .mobile-menu > div {
    /* Padding extra solo para Safari móvil - MUCHO más espacio para la barra inferior */
    padding-bottom: 10rem !important;
  }
  
  /* Añadir espacio negro al final del menú en Safari móvil */
  .mobile-menu > div::after {
    content: "" !important;
    display: block !important;
    height: 8rem !important;
    background-color: #1a1a1a !important;
    width: 100% !important;
  }
}

/* SOLUCIÓN PROFESIONAL PARA SAFARI MÓVIL - BASADA EN INVESTIGACIÓN */

/* 1. Asegurar que el menú tenga altura correcta y scroll funcional */
.mobile-menu {
  height: 100vh !important;
  height: 100dvh !important; /* Dynamic viewport height para iOS */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  /* Asegurar que el scroll funcione en ambas direcciones */
  overscroll-behavior-y: auto !important;
}

/* 2. Contenedor del menú con espacio adecuado para la barra de Safari */
.mobile-menu > div {
  /* Eliminado min-height que puede afectar la página principal */
  padding-bottom: env(safe-area-inset-bottom, 0px) !important; /* Safe area para iPhone */
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 80px) !important; /* Extra para barra de Safari */
}

/* 3. Añadir espacio visual al final para evitar que se corte el contenido */
.mobile-menu > div::after {
  content: "" !important;
  display: block !important;
  height: 100px !important; /* Altura fija para espacio visual */
  background-color: #000000 !important; /* Color exacto del fondo del menú */
  width: 100% !important;
  flex-shrink: 0 !important; /* Evitar que se comprima */
}

/* 4. CSS específico para Safari móvil */
@supports (-webkit-touch-callout: none) {
  .mobile-menu {
    /* Altura específica para Safari */
    height: calc(100vh - env(safe-area-inset-bottom, 0px)) !important;
  }
  
  .mobile-menu > div {
    /* Padding extra específico para Safari */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px) !important;
  }
}

/* Los enlaces del menú móvil ahora usan EXACTAMENTE el mismo estilo que el selector de idioma */

/* FORZAR que Inicio NO tenga franja verde - CSS específico */
.mobile-nav-link[href="/"] .lang-indicator,
.mobile-nav-link[href="/ca/"] .lang-indicator,
.mobile-nav-link[href="/en/"] .lang-indicator {
  opacity: 0 !important;
  display: none !important;
}

/* Solo permitir franja verde cuando JavaScript la active explícitamente */
.mobile-nav-link.bg-white\/10 .lang-indicator {
  opacity: 1 !important;
  display: block !important;
}

/* FORZAR que Inicio NO tenga fondo gris */
.mobile-nav-link[href="/"],
.mobile-nav-link[href="/ca/"],
.mobile-nav-link[href="/en/"] {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* FORZAR fondo negro en menú móvil - máxima prioridad */
.mobile-menu,
.mobile-menu.open,
.xl\:hidden .mobile-menu {
  background: rgba(0, 0, 0, 0.95) !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  background-image: none !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 9999 !important;
}

/* Eliminar cualquier efecto de blur del header que afecte al menú móvil */
.bg-white\/90 .mobile-menu {
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  background: rgba(0, 0, 0, 0.95) !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
}

/* ===== FORZAR CIERRE DEL MENÚ MÓVIL EN PÁGINAS LEGALES ===== */
/* Páginas legales: forzar menú móvil cerrado */
body:has(.legal-page) .mobile-menu,
body:has(.legal-page) .mobile-menu.open,
.legal-page .mobile-menu,
.legal-page .mobile-menu.open {
  transform: translateX(100%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

/* Asegurar que el body no tenga clase menu-open en páginas legales */
body:has(.legal-page) {
  overflow: auto !important;
}

body:has(.legal-page).menu-open {
  overflow: auto !important;
}

/* ===== FORZAR FONDO BLANCO EN PÁGINAS LEGALES ===== */
body:has(.legal-page),
body.legal-page,
.legal-page {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

.legal-page section,
body:has(.legal-page) section,
body.legal-page section {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* ===== ESTILO DE CONTENIDO LEGAL ===== */
.legal-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
@media (min-width: 768px) { .legal-box { padding: 3rem 2.25rem; } }

/* Texto de contenido 100% negro en legales */
.legal-page .prose p,
.legal-page li,
.legal-page ul,
.legal-page ol {
  color: #111111 !important;
}

/* Asegurar que el título no se corte */
.legal-box h1 {
  padding-top: 0.5rem !important;
  line-height: 1.3 !important;
}

/* Mejorar legibilidad y espaciado */
.legal-page .prose p { line-height: 1.7 !important; margin-bottom: 1rem !important; }
.legal-page .prose ul, .legal-page .prose ol { margin: 0 0 1rem 1.25rem !important; }
.legal-page .prose li { line-height: 1.7 !important; margin: 0.25rem 0 !important; }
.legal-page h2 { margin-top: 1.25rem !important; margin-bottom: 0.75rem !important; }
.legal-page h3 { margin-top: 1rem !important; margin-bottom: 0.5rem !important; }

/* Footer oscuro en legales (igual que resto del sitio) */
footer.bg-gray-900 { background-color: #0b0b10 !important; background: #0b0b10 !important; }

/* Estilo unificado para imágenes circulares de Aura */
.aura-circular-image {
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(94, 44, 207, 0.4), 0 20px 40px rgba(94, 44, 207, 0.3) !important;
}

/* Forzar eliminación de borde en imagen principal de Aura */
.aura-main-image.aura-circular-image {
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(94, 44, 207, 0.4), 0 20px 40px rgba(94, 44, 207, 0.3) !important;
}

/* Regla más específica para forzar eliminación de borde */
.aura-protagonist .aura-main-image.aura-circular-image {
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(94, 44, 207, 0.4), 0 20px 40px rgba(94, 44, 207, 0.3) !important;
}

/* Sombra lila para imágenes de Aura en fondos blancos */
.aura-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 44, 207, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Compensar el header fijo */
body {
  padding-top: 80px; /* Altura aproximada del header */
  overflow-x: hidden;
}

/* TABLET - SOLUCIÓN SIMPLE SIN SCROLL INFINITO */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Solo mantener scroll normal en tablet */
  body {
    overflow-x: hidden !important;
  }
  
  footer {
    margin-bottom: 0 !important;
  }
}

/* SOLUCIÓN PARA MÓVIL - MANTENER FUNCIONALIDAD */
@media (max-width: 768px) {
  body {
    position: relative !important;
    overflow-x: hidden !important;
  }
  
  footer {
    position: relative !important;
    z-index: 10 !important;
    margin-bottom: 0 !important;
  }
}

/* MÁXIMA PRIORIDAD: Eliminar borde blanco de imagen principal de Aura */
.aura-showcase-container .aura-protagonist .aura-main-image.aura-circular-image {
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(94, 44, 207, 0.4), 0 20px 40px rgba(94, 44, 207, 0.3) !important;
}


/* Estado scrolled por defecto (se overridea en legales arriba) */
header.scrolled {
  background-color: rgba(11, 11, 16, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Header oscuro para páginas interiores (no Home) */
.header-dark {
  background-color: rgba(11, 11, 16, 0.9);
}

/* ===== NITIDEZ DEL LOGO EN HEADER (Safari/WebKit) ===== */
.logo img {
  image-rendering: -webkit-optimize-contrast; /* WebKit */
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0); /* Evitar desenfoque tras animaciones */
  transform: translateZ(0);
}

/* Asegurar que el header tenga la transición correcta */
header[style*="transform"] {
  transition: transform 0.3s ease-in-out !important;
}

/* Estados específicos del header */
header.header-hidden {
  transform: translateY(-100%) !important;
  visibility: hidden !important;
}

header.header-visible {
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* Asegurar que solo el Hero tenga partículas */
section:not(:first-child) {
  position: relative;
  z-index: 1;
  background: inherit;
}

/* ===== RESPONSIVE PARA PÁGINAS LEGALES ===== */

/* Tablets y móviles grandes */
@media (max-width: 1024px) {
  .legal-page .prose h2 {
    font-size: 1.5rem;
  }
  
  .legal-page .prose h3 {
    font-size: 1.25rem;
  }
  
  .legal-page .prose p,
  .legal-page .prose li {
    font-size: 1rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .legal-box {
    padding: 2rem 1.5rem !important;
    margin: 0 1rem !important;
  }
  
  .legal-page h1 {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    padding-top: 0.5rem !important;
  }
  
  .legal-page .prose h2 {
    font-size: 1.35rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .legal-page .prose h3 {
    font-size: 1.15rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .legal-page .prose p,
  .legal-page .prose li,
  .legal-page .prose ul,
  .legal-page .prose ol {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  .legal-page section {
    padding-top: 6rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Footer más compacto en móvil */
  footer.bg-gray-900 {
    padding: 2rem 0 !important;
  }
  
  footer .container {
    padding: 0 1rem !important;
  }
  
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  footer h4 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  footer p,
  footer a,
  footer li {
    font-size: 0.9rem !important;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .legal-box {
    padding: 1.5rem 1rem !important;
    margin: 0 0.5rem !important;
  }
  
  .legal-page h1 {
    font-size: 1.75rem !important;
    padding-top: 0.5rem !important;
  }
  
  .legal-page .prose h2 {
    font-size: 1.25rem !important;
  }
  
  .legal-page .prose h3 {
    font-size: 1.1rem !important;
  }
  
  .legal-page .prose p,
  .legal-page .prose li {
    font-size: 0.9rem !important;
  }
  
  .legal-page section {
    padding-top: 5rem !important;
  }
  
  /* Hacer el header más compacto */
  header nav {
    padding: 0.5rem 1rem !important;
  }
  
  header .logo img {
    height: 3rem !important;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.75rem !important;
    font-size: 0.9375rem !important;
    min-width: 160px !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Forzar que las partículas NO salgan del Hero */
#particles-js {
  max-height: 100vh !important;
  clip-path: inset(0) !important;
}

#particles-js canvas {
  max-height: 100vh !important;
  clip-path: inset(0) !important;
}

/* Hero section debe contener las partículas */
section:first-child {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: layout style paint;
}

/* ===== DROPDOWNS DE NAVEGACIÓN ===== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown button {
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.05rem;
}

/* Aumentar tamaño del texto del menú */
a.nav-link {
  font-size: 1.05rem;
}

.dropdown-menu {
  transform-origin: top left;
  transform: scale(0.95);
  pointer-events: none;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.nav-dropdown.open button svg {
  transform: rotate(180deg);
}

.dropdown-item {
  text-decoration: none;
  display: flex;
}

/* Indicador de página activa */
.nav-link.active,
.nav-dropdown.active > button {
  color: #5e2ccf !important;
  font-weight: 600 !important;
  position: relative;
}

/* Underline sutil para página activa (header blanco) */
.nav-link.active::after,
.nav-dropdown.active > button::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #5e2ccf 0%, #98fbcb 100%);
  border-radius: 2px;
}

/* Para header oscuro (clase header-dark en el header) */
.header-dark .nav-link.active,
.header-dark .nav-dropdown.active > button {
  color: #98fbcb !important;
}

.header-dark .nav-link.active::after,
.header-dark .nav-dropdown.active > button::after {
  background: #98fbcb !important;
}

/* Item activo dentro del dropdown (header blanco) */
.dropdown-item.active {
  background: rgba(94, 44, 207, 0.15) !important;
  font-weight: 600;
}

.dropdown-item.active span {
  color: #5e2ccf !important;
}

/* Item activo en dropdown de header oscuro */
.header-dark .dropdown-item.active {
  background: rgba(152, 251, 203, 0.15) !important;
}

.header-dark .dropdown-item.active span {
  color: #98fbcb !important;
}

/* ===== SELECTOR DE IDIOMA ===== */

.language-selector {
  position: relative;
}

.language-btn {
  cursor: pointer;
  user-select: none;
}

.language-dropdown {
  min-width: 140px;
  transform-origin: top right;
  transform: scale(0.95);
  pointer-events: none;
}

.language-selector.open .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.language-selector.open .language-btn svg {
  transform: rotate(180deg);
}

.lang-option {
  cursor: pointer;
  text-decoration: none;
  display: flex;
  position: relative;
}

.lang-option:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.lang-option:last-child {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.lang-option.active {
  background: rgba(94, 44, 207, 0.1);
}

/* Indicador de franja verde para idioma activo */
.lang-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #98fbcb;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  transition: opacity 0.3s ease;
}

.lang-option.active .lang-indicator {
  opacity: 1;
}

/* Responsive para selector de idioma */
@media (max-width: 1280px) {
  .language-selector {
    display: none;
  }
}

/* ===== TARJETAS DE CARACTERÍSTICAS CON LIQUID GLASS ===== */
.feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
  box-shadow: 
    0 8px 32px rgba(94, 44, 207, 0.1),
    0 4px 16px rgba(94, 44, 207, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(94, 44, 207, 0.08), transparent);
  transition: left 0.8s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(94, 44, 207, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: scale(1.03) translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(94, 44, 207, 0.2);
  box-shadow: 
    0 20px 40px rgba(94, 44, 207, 0.15),
    0 8px 24px rgba(94, 44, 207, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover::after {
  opacity: 1;
}

/* ===== EFECTO LIQUID GLASS PARA TÍTULOS RESALTADOS ===== */
.liquid-highlight {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.liquid-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: liquid-sweep 3s ease-in-out infinite;
}

.liquid-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0.8;
}

@keyframes liquid-sweep {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* ===== GLOBAL RESPONSIVE FIX ===== */
html, body { max-width: 100%; overflow-x: hidden; }

/* Botón play (Agente Aura) con sombra verde tipo CTA principal */
#play-aura-video {
  box-shadow: 0 20px 25px -5px rgba(152, 251, 203, 0.25), 0 10px 10px -5px rgba(152, 251, 203, 0.15);
}
#play-aura-video:hover {
  box-shadow: 0 20px 40px rgba(152, 251, 203, 0.35), 0 10px 20px rgba(152, 251, 203, 0.2);
}

/* ===== NAVEGACIÓN ===== */
.nav-link {
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #5e2ccf, #98fbcb);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Activo en verde corporativo */
.nav-link.active { color: #98fbcb !important; }

/* ===== MENÚ MÓVIL ===== */
.mobile-nav-link {
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #5e2ccf, #98fbcb);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* ===== ANIMACIONES ===== */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.section-reveal {
  opacity: 0;
  transform: translateX(100px);
}

.hero-content > * {
  opacity: 0;
  transform: translateY(100px);
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Vídeo flotante a la derecha de Aura */
.aura-video-floating {
  position: absolute;
  top: 6%;
  right: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
/* CTA inferior centrado */
.aura-cta-bottom {
  position: relative;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ajuste de tarjetas para mayor legibilidad */
.floating-card-1 { top: 28%; left: 14%; }
.floating-card-2 { top: 28%; right: 14%; }
.floating-card-3 { top: 10%; left: 50%; transform: translateX(-50%); }
/* Responsive: colocar vídeo debajo de Aura y CTA */
@media (max-width: 1024px) {
  .aura-video-floating {
    position: static;
    margin-top: 1rem;
  }
  .aura-cta-bottom { margin-top: 1.5rem; }
}

/* ===== COOKIE CONSENT BANNER - RGPD ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #5e2ccf 0%, #98fbcb 100%);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-banner.cookie-consent-hide {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.cookie-consent-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

.cookie-consent-link {
  color: #98fbcb;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-consent-link:hover {
  color: #ffffff;
}

.cookie-consent-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: rgba(255, 255, 255, 0.95);
  color: #5e2ccf;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn-accept:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
  }
  
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .cookie-consent-text {
    text-align: center;
  }
  
  .cookie-consent-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .cookie-consent-description {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .cookie-consent-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===== FIXES MENÚ MÓVIL - Octubre 2025 ===== */

/* SCROLL COMPLETO DEL MENÚ MÓVIL (no solo nav) */
.mobile-menu > div {
  height: 100vh !important; /* Garantiza altura viewport en iOS */
  display: flex !important;
  flex-direction: column !important;
  /* Permitir scroll en todo el contenido */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* Mejorar el scroll */
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  /* Añadir scrollbar estilizada */
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 44, 207, 0.5) transparent;
}

.mobile-menu > div::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu > div::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu > div::-webkit-scrollbar-thumb {
  background: rgba(94, 44, 207, 0.5);
  border-radius: 3px;
}

.mobile-menu > div::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 44, 207, 0.7);
}

/* Asegurar que el contenido del menú no se corte */
.mobile-menu nav { flex-shrink: 0; }
.mobile-menu .mt-8 { flex-shrink: 0; }

/* Bloquear el scroll del body cuando el menú está abierto */
body.menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

/* Mejorar el scroll en iOS */
@supports (-webkit-touch-callout: none) {
  .mobile-menu > div {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
}

/* CTA y secciones inferiores también sin fijación */
.mobile-menu .mt-8 {
  margin-top: 2rem !important; /* Margin normal, no auto */
  flex-shrink: 0 !important;
}

/* Portal Aura SI visible en móvil */
/* Eliminado el ocultamiento en móvil */

/* Asegurar padding inferior en el menú móvil para ver todo el contenido */
.mobile-menu > div {
  padding-bottom: 3rem !important;
}

/* Selector de idioma móvil - actualización dinámica */
.mobile-menu .space-y-2 a {
  transition: all 0.2s ease !important;
  position: relative;
}

/* ELIMINADO: CSS que marcaba automáticamente enlaces con clase active */
/* Ahora SOLO JavaScript controla el marcado de enlaces activos */

.mobile-menu .space-y-2 a:not(.active) {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.mobile-menu .space-y-2 a:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Indicador de franja para idioma activo en móvil */
.mobile-menu .lang-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #98fbcb;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  transition: opacity 0.3s ease;
}

/* Ajustar padding para que la franja no sobreponga el texto */
.mobile-menu .space-y-2 a {
  padding-left: 0.75rem !important;
}

/* Evitar que los enlaces de páginas se corten y mejorar legibilidad */
.mobile-nav-link {
  padding-left: 0.75rem !important;
}

/* ELIMINADO: CSS automático para enlaces activos - SOLO JavaScript controla */
}

/* Overlay activo bloquea interacción con la página */
.mobile-overlay { pointer-events: none; }
.mobile-overlay.active { pointer-events: auto; }

.mobile-menu .space-y-2 a .lang-indicator {
  left: 0;
  width: 4px;
  border-radius: 0.5rem 0 0 0.5rem;
}

/* ===== REGLA MÁXIMA PRIORIDAD PARA COLOR VERDE CORPORATIVO (SOLO PÁGINAS OSCURAS) ===== */
.bg-bg-primary span.text-auranai-secondary,
.bg-bg-primary .text-auranai-secondary,
.bg-bg-primary .icon--accent,
.bg-bg-primary h1 span.text-auranai-secondary,
.bg-bg-primary h2 span.text-auranai-secondary,
.bg-bg-primary h3 span.text-auranai-secondary {
  color: #98fbcb !important;
}
