/* Sistema de diseño fundamental basado en tokens - Theme System */
:root {
    /* 
    * PALETA DE COLORES OFICIAL XPECTRA.AI CON COMPLEMENTARIOS
    * Mantiene la identidad de marca con acentos complementarios
    */
    
    /* Colores principales de la marca */
    --xpectra-darkblue: #000F18;    /* Color base oscuro */
    --xpectra-purple: #401B3B;      /* Púrpura oscuro */
    --xpectra-magenta: #80285E;     /* Magenta medio */
    --xpectra-pink: #BF3481;        /* Rosa intenso */
    --xpectra-bright-pink: #FF40A4; /* Rosa brillante */

    /* Colores complementarios (uso limitado como acentos) */
    --xpectra-teal: #00B8A9;        /* Complementario del magenta/rosa */
    --xpectra-mint: #AAFFEE;        /* Versión clara del teal para efectos sutiles */
    --xpectra-amber: #FFBE0B;       /* Complementario cálido para destacados */
    --xpectra-neon-green: #14E668;  /* Para destacados y CTA secundarios */

    /* Asignación a variables funcionales */
    --primary-color: var(--xpectra-magenta);     /* Color principal */
    --primary-dark: var(--xpectra-purple);       /* Variación oscura */
    --primary-light: var(--xpectra-pink);        /* Variación clara */
    --accent-color: var(--xpectra-teal);         /* Color de acento complementario */
    --accent-secondary: var(--xpectra-amber);    /* Acento secundario */
    --primary-transparent: rgba(128, 40, 94, 0.1); /* Versión transparente */
    
    /* Colores de estado y feedback que mantienen consistencia */
    --error-color: #cf6679;
    --success-color: #00c853;
    --warning-color: #ffab00;
    
    /* Escala de grises para fondos - compatible con la identidad oscura */
    --gray-950: #121212;          /* Fondo principal - basado en --xpectra-darkblue */
    --gray-900: #1a1a1a;          /* Fondo secundario */
    --gray-850: #222222;          /* Tarjetas y componentes */
    --gray-800: #282828;          /* Tarjetas hover */
    --gray-750: #2c2c2c;          /* Componentes interactivos */
    --gray-700: #333333;          /* Bordes sutiles */
    --gray-600: #444444; 
    --gray-500: #666666;
    
    /* Texto */
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.38);
    --text-on-primary: #ffffff;
    --text-on-accent: #000000;
    --text-light: #ffffff;
    --bg-dark: var(--gray-900);
    
    /* Bordes y separadores */
    --divider: rgba(255, 255, 255, 0.12);
    --outline: rgba(255, 255, 255, 0.12);
    --overlay: rgba(255, 255, 255, 0.05);
    
    /* Sistema de sombras */
    --shadow-ambient: 0 0 10px rgba(0, 0, 0, 0.1);
    --shadow-key: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-primary: 0 8px 25px rgba(156, 39, 176, 0.25);
    --shadow-accent: 0 8px 25px rgba(3, 218, 198, 0.25);
    
    /* Elevaciones de Material Design adaptadas */
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --elevation-2: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --elevation-3: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
    --elevation-4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    --elevation-5: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    
    /* Curvas de animación - Bezier */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-accelerate: cubic-bezier(0.4, 0.0, 1, 1);
    --ease-emphasized: cubic-bezier(0.4, 0.0, 0.0, 1);
    
    /* Duración de animaciones */
    --duration-xs: 100ms;
    --duration-sm: 200ms;
    --duration-md: 300ms;
    --duration-lg: 400ms;
    --duration-xl: 500ms;
    
    /* Sistema de espaciado */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;
    
    /* Radios de borde */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 24px;
    --radius-circle: 50%;
    
    /* Variables de layout */
    --container-width: 1200px;
    --header-height: 64px;
    --header-height-scroll: 56px;
    
    /* Z-index */
    --z-drawer: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-dropdown: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* Reseteo y configuración base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Updated base font */
    line-height: 1.6; /* Increased default body line-height slightly for Helvetica */
    color: var(--text-primary);
    background-color: var(--gray-950);
    overflow-x: hidden;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Fondo con efecto de partículas */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(156, 39, 176, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 184, 169, 0.04) 0%, transparent 50%); /* Updated with complementary */
    background-size: 100% 100%;
    pointer-events: none;
    z-index: -1;
}

/* Partículas animadas CSS-only */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(5deg); opacity: 0.4; }
    100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
}

.particle {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: var(--radius-circle);
    background: var(--primary-color);
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
    filter: blur(1px);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 15s infinite var(--ease-standard);
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: float 20s infinite var(--ease-standard);
    animation-delay: 2s;
    background: var(--xpectra-teal); /* Updated */
}

.particle:nth-child(3) {
    top: 30%;
    left: 40%;
    animation: float 18s infinite var(--ease-standard);
    animation-delay: 4s;
    background: var(--xpectra-neon-green); /* Updated */
}

.particle:nth-child(4) {
    top: 80%;
    left: 30%;
    animation: float 12s infinite var(--ease-standard);
    animation-delay: 7s;
    background: var(--xpectra-purple-light); /* Assuming this exists or use --primary-light */
}

.particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation: float 16s infinite var(--ease-standard);
    animation-delay: 5s;
    background: var(--xpectra-amber); /* Updated */
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

/* Sistema tipográfico */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif; /* Updated heading font */
    font-weight: 600;
    letter-spacing: -0.015em;
    /* line-height: 1.2; Removed default, will be set below or individually */
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3; /* Keep specific line-height for h1 */
}

/* Apply increased line-height to other headings */
h2, h3, h4, h5, h6 {
    line-height: 1.4; /* Increased line-height for other headings */
}

/* Styles for h2 and h3 remain as they were, inheriting the new line-height */
h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
}

p {
    /* Inherits body font-family (Helvetica) and base line-height (1.6) */
    font-size: 1.125rem;
    /* line-height: 1.6; (Redundant, inherits from body) */
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--duration-md) var(--ease-standard);
}

a:hover {
    color: var(--accent-color); /* Updated to complementary */
}

/* Sistema de componentes UI */
/* Header y Navegación */
header {
    padding: var(--space-sm) 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: all var(--duration-md) var(--ease-standard);
    border-bottom: 1px solid var(--divider);
    height: var(--header-height);
}

header.scrolled {
    padding: var(--space-xs) 0;
    background-color: rgba(18, 18, 18, 0.95);
    height: var(--header-height-scroll);
    box-shadow: var(--shadow-ambient);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    max-height: 32px;
    transition: transform var(--duration-md) var(--ease-standard);
}

header.scrolled .nav-logo img {
    transform: scale(0.9);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--duration-md) var(--ease-decelerate);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--xpectra-pink), var(--xpectra-teal)); /* Updated gradient */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration-md) var(--ease-emphasized);
    border-radius: var(--radius-sm);
}

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

.nav-links a:hover::after {
    transform: scaleX(0.8);
}

.auth-buttons {
    display: flex;
    gap: var(--space-md);
}

/* Mobile menu trigger */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

/* Sistema de botones */
.btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--duration-md) var(--ease-standard);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2), rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
    transition: all 0.9s var(--ease-emphasized);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
    position: relative;
    z-index: 1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-transparent);
    transition: height var(--duration-md) var(--ease-standard);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline:hover::after {
    height: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--xpectra-magenta), var(--xpectra-purple));
    color: var(--text-on-primary);
    box-shadow: var(--shadow-ambient);
    position: relative;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--xpectra-purple), var(--xpectra-magenta)); /* Kept primary */
    opacity: 0;
    transition: opacity var(--duration-md) var(--ease-standard);
    z-index: -1;
    border-radius: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover::after {
    opacity: 0.9; /* Adjusted from 1 */
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Buttons with complementary hover states */
.btn-accent {
    background: linear-gradient(135deg, var(--xpectra-teal), color-mix(in srgb, var(--xpectra-teal) 80%, #000)); /* Updated */
    color: var(--text-on-primary);
}

.btn-large {
    padding: var(--space-md) var(--space-xxl);
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-round {
    border-radius: 50px;
}

.btn-icon {
    gap: var(--space-sm);
}

.btn-icon i {
    transition: transform var(--duration-md) var(--ease-standard);
}

.btn-icon:hover i {
    transform: translateX(3px);
}

/* Hero Section - Optimizado para todas las resoluciones */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    position: relative; /* Ensure positioning context for children like .hero-glow */
    overflow: hidden; /* Prevent .hero-glow or other elements from spilling out */
    /* Keep existing hero styles */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(156, 39, 176, 0.3) 0%, rgba(18, 18, 18, 0) 50%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Crear keyframes para la animación del gradiente */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Aplicar la animación al h1 de la sección hero */
.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    background: linear-gradient(90deg, #ffffff, #FF40A4, #9969FF, #ffffff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: gradientMove 8s ease infinite;
    margin-top: 0;
}

.hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto var(--space-xl);
}

.hero-buttons {
    margin-top: var(--space-xl);
}

.hero-img-container {
    position: relative;
    margin-top: 2vh;
    width: 100%;
    max-width: min(800px, 90%);
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    overflow: visible;
    height: auto;
    /* Asegurarse de que el contenedor tenga suficiente espacio para la imagen */
    min-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 45vh;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: none;
    transition: all var(--duration-lg) var(--ease-standard);
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.hero-img-container::before,
.hero-img-container::after {
    display: none;
}

/* Efecto de integración mejorado */
.hero-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle at center, rgba(191, 52, 129, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

/* Secciones comunes */
section {
    padding: var(--space-xxxl) 0;
    position: relative; /* Ensure sections can contain positioned pseudo-elements */
    overflow: hidden; /* Prevent children/effects from overflowing */
}

section.alternate-bg {
    background-color: var(--gray-900);
}

section.with-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xxxl);
    position: relative;
}

/* Section highlights with complementary gradients */
.section-title h2 {
    margin-bottom: var(--space-md);
    /* Reverted to primary gradient for stronger brand identity in titles */
    background: linear-gradient(90deg, var(--primary-light), var(--xpectra-bright-pink)); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

/* Alinear 4 tarjetas en una sola línea en escritorio */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    background-color: var(--gray-850);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--elevation-1);
    transition: all var(--duration-md) var(--ease-standard);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
}

/* Feature item hover effect with complementary colors */
.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color)); /* Updated */
    opacity: 0;
    transition: opacity var(--duration-md) var(--ease-standard);
}

.feature-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05), rgba(0, 184, 169, 0.05)); /* Updated */
    z-index: 0;
    opacity: 0;
    transition: opacity var(--duration-md) var(--ease-standard);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--elevation-3);
    background-color: var(--gray-800);
}

.feature-item:hover::before {
    opacity: 1;
}

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

.feature-item > * {
    position: relative;
    z-index: 1;
}

/* Feature icons with complementary colors */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, rgba(128, 40, 94, 0.15), rgba(0, 184, 169, 0.1)); /* Updated */
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    color: var(--primary-light); /* Base color remains primary */
    position: relative;
    transition: all var(--duration-md) var(--ease-standard);
}

/* Use accent color for icons on even items for visual variation */
.feature-item:nth-child(even) .feature-icon {
    background: linear-gradient(135deg, rgba(0, 184, 169, 0.15), rgba(128, 40, 94, 0.1));
    color: var(--accent-color); /* Use accent color here */
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--duration-md) var(--ease-standard);
}

.feature-item:hover .feature-icon {
    transform: scale(1.05);
    color: var(--text-on-primary);
    /* Keep primary gradient for main hover state, but adjust if needed */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); 
}

/* Specific hover state for even items if different style desired */
.feature-item:nth-child(even):hover .feature-icon {
     background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color) 80%, #000));
     color: var(--text-on-primary);
}

.feature-item:hover .feature-icon::before {
    opacity: 0.7;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.feature-item h3 {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.feature-item p {
    margin-bottom: var(--space-xl);
    font-size: 1rem;
    flex-grow: 1;
}

.feature-item .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Estilos para el flujo de trabajo agéntico con dialogo entre agentes */
.agent-workflow {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    overflow: hidden;
}

.workflow-timeline {
    display: none !important;
}

.workflow-steps {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.timeline-dot {
    position: relative;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 20px 0;
    z-index: 2;
    transition: all 0.5s ease;
}

.timeline-dot.active {
    background-color: #FF40A4;
    box-shadow: 0 0 15px rgba(255, 64, 164, 0.7);
    transform: scale(1.2);
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 64, 164, 0.5), 
        #F6AE17, 
        rgba(255, 255, 255, 0.1)
    );
    transform: translateX(-50%);
    z-index: 1;
}

.workflow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 18%;
    z-index: 3;
}

.step-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    margin: 1rem 0;
    background-color: rgba(255, 64, 164, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workflow-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    min-height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.workflow-step p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    max-width: 95%;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .workflow-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
    
    .timeline-line, .timeline-dot, .agent-connector, .agent-dialogue {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .workflow-steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .workflow-step h3 {
        min-height: auto;
    }
}

/* Pricing */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xxl);
    background-color: var(--gray-850);
    border-radius: 50px;
    padding: var(--space-xs);
    width: fit-content;
    margin: 0 auto var(--space-xxl);
    position: relative;
    box-shadow: var(--elevation-1);
}

.pricing-tab {
    padding: var(--space-sm) var(--space-xl);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--duration-md) var(--ease-decelerate);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.pricing-tab.active {
    color: var(--text-on-primary);
}

.pricing-slider {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    height: calc(100% - var(--space-xs) * 2);
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: all var(--duration-md) var(--ease-emphasized);
    z-index: 0;
}

/* Contenedor conmutado de precios */
.pricing-content { display: none; }
.pricing-content.active { display: block; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.pricing-card {
    padding: var(--space-xxl);
    border-radius: var(--radius-xl);
    background-color: var(--gray-850);
    transition: all var(--duration-md) var(--ease-standard);
    text-align: center;
    border: 1px solid var(--divider);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent; /* Prepare for hover */
}

.pricing-card::before {
    /* Removed original top border */
    display: none; 
}

/* Cards with subtle complementary highlights on hover */
.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--elevation-3);
    border-color: var(--divider); /* Keep side/bottom border subtle */
    border-top-color: var(--accent-color); /* Use accent for top border highlight */
    background-color: var(--gray-800);
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.pricing-card .price {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card .price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: -10px;
    display: block;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: var(--space-xl);
    text-align: left;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--divider);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: all var(--duration-md) var(--ease-standard);
}

.pricing-card:hover ul li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    margin-right: var(--space-sm);
    font-size: 0.8rem;
}

.pricing-card .btn {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    border-radius: var(--radius-lg);
    margin-top: var(--space-md);
}

/* FAQs */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--gray-850);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-md) var(--ease-standard);
    border: 1px solid var(--divider);
}

.faq-item:hover {
    background-color: var(--gray-800);
    transform: translateX(3px);
    border-left-color: var(--accent-color); /* Subtle complementary highlight */
}

.faq-question {
    padding: var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--duration-md) var(--ease-standard);
    user-select: none;
}

.faq-question i {
    color: var(--primary-light);
    transition: transform var(--duration-md) var(--ease-emphasized);
    opacity: 0.8;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    background-color: var(--primary-transparent);
}

.faq-question:hover i {
    opacity: 1;
    transform: rotate(45deg);
    background-color: rgba(0, 184, 169, 0.2); /* Complementary background */
    color: var(--accent-color);
}

.faq-question.active i {
    transform: rotate(180deg);
    background-color: var(--primary-color);
    color: var(--text-on-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-emphasized);
    padding: 0 var(--space-lg);
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: var(--space-lg);
    color: var(--text-secondary);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background-color: var(--gray-850);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--elevation-1);
    transition: all var(--duration-md) var(--ease-standard);
    border: 1px solid var(--divider);
    position: relative;
    border-top: 4px solid transparent; /* Prepare for hover */
}

/* Cards with subtle complementary highlights on hover */
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--elevation-3);
    background-color: var(--gray-800);
    border-color: var(--divider); /* Keep side/bottom border subtle */
    border-top-color: var(--accent-color); /* Use accent for top border highlight */
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-circle);
    margin-right: var(--space-md);
    border: 2px solid var(--primary-light);
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.testimonial-author p {
    font-size: 0.9rem;
    margin: 4px 0 0;
    color: var(--primary-light);
}

/* CTA Section */
.cta {
    padding: var(--space-xxxl) 0;
    text-align: center;
    background-color: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(156, 39, 176, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta .btn {
    padding: var(--space-md) var(--space-xxl);
    font-size: 1.2rem;
    margin-top: var(--space-xl);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: all var(--duration-md) var(--ease-standard);
}

.cta .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.3);
}

/* Important Note */
.important-note {
    background-color: rgba(207, 102, 121, 0.1);
    border-left: 4px solid var(--error-color);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.important-note p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.important-note p:last-child {
    margin-bottom: 0;
}

.important-note strong {
    color: var(--error-color);
}

/* Footer */
footer {
    background-color: var(--gray-900);
    color: var(--text-primary);
    padding: var(--space-xl) 0 var(--space-xl);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: var(--space-md);
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--duration-md) var(--ease-standard);
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-md) var(--ease-standard);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copyright {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--divider);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Floating scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background-color: var(--gray-850);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    box-shadow: var(--elevation-2);
    transition: var(--duration-md) var(--ease-standard);
    border: 1px solid var(--divider);
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-indicator i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Media queries optimizados para diferentes resoluciones */
/* 4K Screens */
@media screen and (min-width: 2560px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-img-container {
        max-width: 1000px;
        min-height: 50vh;
    }
    
    .hero-img {
        max-height: 55vh;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .hero p {
        font-size: 1.5rem;
        max-width: 900px;
    }
}

/* 2K / QHD Screens */
@media screen and (min-width: 1440px) and (max-width: 2559px) {
    .hero-img-container {
        max-width: 800px;
    }
    
    .hero-img {
        max-height: 50vh;
    }
}

/* Laptops & Small Desktops */
@media screen and (min-width: 992px) and (max-width: 1439px) {
    .hero-img-container {
        max-width: 700px;
    }
    
    .hero-img {
        max-height: 45vh;
    }
}

/* Tablets & Small Laptops */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .hero {
        min-height: auto;
        padding-bottom: 5vh;
    }
    
    .hero-img-container {
        max-width: 90%;
        min-height: 30vh;
    }
    
    .hero-img {
        max-height: 40vh;
    }
}

/* Mobile Devices */
@media screen and (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 2vh) 0 2vh;
    }
    
    .hero-img-container {
        max-width: 95%;
        min-height: auto;
        margin-top: 1vh;
        margin-bottom: 1vh;
    }
    
    .hero-img {
        max-height: 280px;
        width: auto;
    }
    
    .hero h1 {
        font-size: clamp(1.7rem, 5vw, 2.2rem);
        margin-bottom: var(--space-md);
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-buttons {
        margin-top: var(--space-md);
    }
    
    /* Mobile Nav styles */
    .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        position: absolute;
        top: var(--header-height); /* Adjust if header height changes */
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98); /* Slightly more opaque */
        backdrop-filter: blur(10px);
        padding: var(--space-lg) 0;
        gap: 0; /* Reset gap for vertical layout */
        border-top: 1px solid var(--divider);
        transform: translateY(-100%);
        transition: transform 0.3s var(--ease-standard);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex; /* Show when active */
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: var(--space-md) var(--space-lg);
        width: 100%;
        text-align: center;
    }

    .nav-links a::after {
       display: none; /* Remove underline effect on mobile */
    }

    .auth-buttons {
        display: none; /* Hide original auth buttons */
    }

    /* Optional: Show auth buttons inside mobile menu */
    .auth-buttons.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: var(--space-lg) var(--space-lg) 0;
        width: 100%;
        position: absolute;
        top: calc(var(--header-height) + 0px /* Height of nav-links when open */);
        left: 0;
        background-color: rgba(18, 18, 18, 0.98);
        gap: var(--space-md);
        transform: translateY(-100%);
        transition: transform 0.3s var(--ease-standard);
        opacity: 0;
        pointer-events: none;
    }
     /* Need JS to calculate nav-links height for correct positioning */
     /* Simpler approach: include auth buttons within .nav-links */

    .menu-trigger {
        display: block;
    }
    
    .feature-item, .pricing-card, .testimonial-card {
        padding: var(--space-lg);
    }

    /* Adjust steps container for mobile */
     .steps-container {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
     }
     .steps-container::after {
         display: none; /* Hide connecting line on mobile */
     }
     .step {
         max-width: 90%;
     }
}

/* Specific tweaks for very small screens */
@media screen and (max-width: 380px) {
    .hero-img {
        max-height: 220px;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }
    
    .auth-buttons .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.9rem;
    }
    /* Adjust footer grid for very small screens */
     .footer-grid {
         grid-template-columns: 1fr; /* Stack columns */
         text-align: center;
     }
     .footer-links h4 {
         margin-top: var(--space-lg);
     }
     .footer-logo img {
         margin-left: auto;
         margin-right: auto;
     }
}

/* Animation Enhancements */
[data-aos] {
    will-change: transform, opacity;
}

/* Animaciones de trabajo en equipo para el flujo agéntico */

/* Animación del flujo de datos entre agentes */
@keyframes dataFlow {
    0% { width: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { width: 100%; opacity: 0.7; }
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 0.7; box-shadow: 0 0 0 0 rgba(255, 64, 164, 0.4); }
    50% { transform: translateY(-50%) scale(1.2); opacity: 1; box-shadow: 0 0 0 10px rgba(255, 64, 164, 0); }
    100% { transform: translateY(-50%) scale(1); opacity: 0.7; box-shadow: 0 0 0 0 rgba(255, 64, 164, 0); }
}

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

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

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

/* Mejoras en la línea de tiempo */
.timeline-line {
    overflow: hidden;
    position: relative;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(255, 64, 164, 0.7),
        rgba(255, 64, 164, 0.3) 50%,
        rgba(246, 174, 23, 0.7)
    );
    animation: dataFlow 5s var(--ease-emphasized) infinite;
    box-shadow: 0 0 10px rgba(255, 64, 164, 0.4);
    border-radius: var(--radius-circle);
}

/* Conexiones entre agentes */
.workflow-steps {
    position: relative;
}

.agent-connection {
    position: absolute;
    top: 90px; /* Ajustar según la posición de las imágenes */
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 64, 164, 0.3), rgba(246, 174, 23, 0.3));
    opacity: 0;
    z-index: 0;
}

.agent-connection:nth-child(1) { left: 18%; width: 14%; animation: dataFlow 3s var(--ease-emphasized) infinite; animation-delay: 0.5s; }
.agent-connection:nth-child(2) { left: 38%; width: 14%; animation: dataFlow 3s var(--ease-emphasized) infinite; animation-delay: 1s; }
.agent-connection:nth-child(3) { left: 58%; width: 14%; animation: dataFlow 3s var(--ease-emphasized) infinite; animation-delay: 1.5s; }
.agent-connection:nth-child(4) { left: 78%; width: 14%; animation: dataFlow 3s var(--ease-emphasized) infinite; animation-delay: 2s; }

/* Mejoras en las imágenes de agentes */
.step-image-container {
    position: relative;
    overflow: visible;
}

.step-image-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: var(--radius-circle);
    background: conic-gradient(
        from 0deg,
        rgba(255, 64, 164, 0),
        rgba(255, 64, 164, 0.3),
        rgba(246, 174, 23, 0.3),
        rgba(255, 64, 164, 0)
    );
    z-index: -1;
    animation: rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.workflow-step:hover .step-image-container::before {
    opacity: 1;
}

/* Indicadores de actividad de los agentes */
.agent-activity {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 64, 164, 0.2);
    z-index: 2;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.workflow-step:hover .agent-activity {
    transform: scale(1);
    opacity: 1;
    animation: collaboration 2s ease-in-out infinite;
}

.agent-activity:nth-child(1) { top: 20px; right: 20px; animation-delay: 0.2s; }
.agent-activity:nth-child(2) { top: 20px; left: 20px; animation-delay: 0.4s; }
.agent-activity:nth-child(3) { bottom: 20px; right: 20px; animation-delay: 0.6s; }
.agent-activity:nth-child(4) { bottom: 20px; left: 20px; animation-delay: 0.8s; }

/* Animación de flotación para agentes */
.step-image {
    animation: float 6s ease-in-out infinite;
}

.workflow-step:nth-child(1) .step-image { animation-delay: 0s; }
.workflow-step:nth-child(2) .step-image { animation-delay: 1s; }
.workflow-step:nth-child(3) .step-image { animation-delay: 2s; }
.workflow-step:nth-child(4) .step-image { animation-delay: 3s; }
.workflow-step:nth-child(5) .step-image { animation-delay: 4s; }

/* Efecto de enfoque en hover */
.workflow-step {
    transition: transform 0.3s ease, z-index 0.3s ease;
    z-index: 1;
}

.workflow-step:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Indicador de trabajo en equipo */
.workflow-team-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--xpectra-bright-pink);
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    white-space: nowrap;
}

.workflow-step:hover .workflow-team-indicator {
    opacity: 1;
}

.workflow-team-indicator i {
    margin-right: 5px;
}

/* Estilos mejorados para los bocadillos de diálogo */
.agent-dialogue {
    position: fixed !important;
    z-index: 9999 !important;
    background-color: white;
    color: #121212;
    border-radius: 16px;
    padding: 12px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    max-width: 300px;
    opacity: 0;
    border: 2px solid #121212;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    display: none;
}

/* Punta del bocadillo tipo cómic */
.agent-dialogue::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-right: 2px solid #121212;
    border-bottom: 2px solid #121212;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* Estilos específicos para mensajes dirigidos */
.agent-dialogue.has-direction {
    background-color: #FFECF5;
    border-color: #FF40A4;
    color: #222;
    font-weight: 600;
}

.agent-dialogue.has-direction::after {
    background-color: #FFECF5;
    border-color: #FF40A4;
}

/* Animaciones para los bocadillos */
@keyframes dialogueAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.8);
    }
    70% {
        transform: translateX(-50%) translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes dialogueDisappear {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.9);
    }
}

/* Estados de los bocadillos */
.agent-dialogue.active {
    opacity: 1;
    animation: dialogueAppear 0.5s forwards;
}

.agent-dialogue.inactive {
    animation: dialogueDisappear 0.4s forwards;
}

/* Estilos para los agentes activos */
.step-image-container.active {
    box-shadow: 0 0 20px rgba(255, 64, 164, 0.6);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Agente que habla */
.step-image-container.talking {
    box-shadow: 0 0 20px rgba(246, 174, 23, 0.8);
    animation: pulseTalking 1.5s infinite;
}

/* Agente que escucha */
.step-image-container.listening {
    box-shadow: 0 0 20px rgba(64, 186, 255, 0.8);
    animation: pulseListening 1.5s infinite;
}

@keyframes pulseTalking {
    0% {
        box-shadow: 0 0 20px rgba(246, 174, 23, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(246, 174, 23, 0.9);
    }
    100% {
        box-shadow: 0 0 20px rgba(246, 174, 23, 0.6);
    }
}

@keyframes pulseListening {
    0% {
        box-shadow: 0 0 20px rgba(64, 186, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(64, 186, 255, 0.9);
    }
    100% {
        box-shadow: 0 0 20px rgba(64, 186, 255, 0.6);
    }
}

/* Desactivar animaciones completas en móvil pero mantener efectos de línea de tiempo */
@media (max-width: 767px) {
    .agent-dialogue {
        display: none !important;
    }
    
    .step-image-container.active,
    .step-image-container.talking,
    .step-image-container.listening {
        animation: none;
        transform: none;
        box-shadow: none;
    }
    
    .timeline-dot.active {
        background-color: #FF40A4;
        box-shadow: 0 0 15px rgba(255, 64, 164, 0.7);
    }
    
    /* Simplificación de la línea para móviles */
    .workflow-timeline {
        width: 5px;
    }
}

/* Estilos actualizados para la sección de análisis de vulnerabilidades - más integrada */
.vulnerability-analysis {
    padding: var(--space-xxl) 0;
    background-color: var(--xpectra-bg);
    position: relative;
    overflow: hidden;
}

.vulnerability-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 64, 164, 0.08), transparent 60%);
    z-index: 1;
}

.vulnerability-analysis .container {
    position: relative;
    z-index: 2;
}

.vuln-header {
    text-align: left;
    margin-bottom: var(--space-xl);
}

/* Variante: título alineado a la derecha para secciones alternadas */
.vuln-header.align-right {
    text-align: right;
}

/* Variante: título centrado */
.vuln-header.align-center {
    text-align: center;
}

.vuln-header h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    background: linear-gradient(90deg, #FFFFFF, #FF40A4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    color: var(--xpectra-primary);
    font-weight: 600;
}

.vuln-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.vuln-text {
    max-width: 600px;
}

.vuln-subtitle {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.vuln-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
}

.vuln-reports {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.vuln-reports li {
    position: relative;
    padding-left: 32px;
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

.vuln-reports li i {
    color: var(--xpectra-primary);
    position: absolute;
    left: 0;
    top: 3px;
}

.vuln-closing {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.vuln-cta {
    margin-top: var(--space-lg);
}

.vuln-cta .btn-primary {
    background: linear-gradient(45deg, #8e2de2, #FF40A4);
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}

.vuln-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(142, 45, 226, 0.5);
}

.vuln-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vuln-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

/* Efecto de resplandor detrás de la imagen */
.vuln-image::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 64, 164, 0.3) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 1;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .vuln-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .vuln-text {
        max-width: 100%;
    }
    
    .vuln-header {
        text-align: center;
    }
    
    .vuln-header h2 {
        font-size: 2.5rem;
    }
    
    .vuln-reports li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .vulnerability-analysis {
        padding: var(--space-xl) 0;
    }
    
    .vuln-header h2 {
        font-size: 2rem;
    }
    
    .vuln-subtitle {
        font-size: 1.5rem;
    }
    
    .vuln-reports li {
        font-size: 1rem;
    }
}

/* Estilos para la sección de ventajas */
.advantages {
    padding: var(--space-xxl) 0;
    background-color: var(--xpectra-bg);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 25%, rgba(255, 64, 164, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.advantages .container {
    position: relative;
    z-index: 2;
}

.advantages .section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    background: linear-gradient(90deg, #FFFFFF, #FF40A4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 64, 164, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF40A4, #8e2de2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    box-shadow: 0 4px 15px rgba(255, 64, 164, 0.3);
}

.advantage-icon i {
    color: white;
    font-size: 1.5rem;
}

.advantage-content {
    flex-grow: 1;
}

.advantage-content h3 {
    color: #FF40A4;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.advantage-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Estilo para palabras clave destacadas en el texto */
.keyword {
    color: #FF40A4;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.keyword:hover {
    color: #ff73b9;
}

/* Versión para tablet y escritorio */
@media (min-width: 768px) {
    .advantage-item {
        padding: var(--space-lg) 0;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-content h3 {
        font-size: 1.5rem;
    }
    
    .advantage-content p {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
    }
    
    .advantage-content h3 {
        font-size: 1.6rem;
    }
}

/* Estilos actualizados para la sección de precios (ajustados a la imagen) */
.pricing {
    padding: var(--space-xxl) 0;
    background-color: var(--xpectra-bg);
    position: relative;
    overflow: hidden;
}

.pricing .container {
    position: relative;
    z-index: 2;
}

.pricing .section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: #fff;
}

.pricing .section-title h2 .highlight-text {
    color: #FF40A4;
}

.pricing .section-title p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
    font-weight: 300;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.pricing-card {
    background-color: rgba(18, 18, 18, 0.4);
    border-radius: 12px;
    padding: var(--space-lg) var(--space-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    border: 1px solid rgba(255, 64, 164, 0.5);
    background-color: rgba(30, 20, 30, 0.4);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: #ffffff;
}

.pricing-card .price {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card .currency {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 1;
    margin-left: 8px;
    color: #FF40A4;
    background-color: rgba(255, 64, 164, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.pricing-card .price-period {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
    margin-top: 0;
}

.price-description {
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
}

.price-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.pricing-features .check-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #FF40A4;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features .check-icon:before {
    content: '✓';
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pricing-limit {
    background-color: rgba(255, 64, 164, 0.2);
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: var(--space-md);
    margin-top: 10px;
    border: 1px solid rgba(255, 64, 164, 0.2);
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-limit {
    background-color: rgba(255, 64, 164, 0.3);
    border-color: rgba(255, 64, 164, 0.4);
    transform: translateY(-3px);
}

.pricing-limit p {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 2.6rem;
    font-weight: 700;
    margin-top: var(--space-md);
    margin-bottom: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card .price-period {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
    margin-top: 0;
    text-align: center;
}

.pricing-card .btn-primary {
    width: 100%;
    margin-top: auto;
    padding: 12px 0;
    font-weight: 600;
    border-radius: 5px;
    background-color: #FF40A4;
    border: none;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pricing-card .btn-primary:hover {
    background-color: #ff64b8;
}

.pricing-card .btn-consult {
    width: 100%;
    margin-top: auto;
    padding: 12px 0;
    font-weight: 600;
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid rgba(255, 64, 164, 0.4);
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.pricing-card .btn-consult:hover {
    background-color: rgba(255, 64, 164, 0.1);
    border-color: rgba(255, 64, 164, 0.7);
}

/* Versiones de pantalla más grande */
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .pricing-card {
        padding: 30px 25px;
    }
}

/* Forzar 5 columnas en la pestaña de Infraestructura en pantallas grandes */
@media (min-width: 1200px) {
    .pricing-content[data-tab="infra"] .pricing-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* Compactar tarjetas en pestaña Web para igualar a Infraestructura */
.pricing-content[data-tab="web"] .pricing-card {
    padding: var(--space-lg) var(--space-lg);
}

.pricing-content[data-tab="web"] .pricing-limit {
    margin-top: 6px;
    margin-bottom: var(--space-sm);
}

.pricing-content[data-tab="web"] .price-description {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.pricing-content[data-tab="web"] .pricing-features {
    margin-bottom: var(--space-sm);
}

.pricing-content[data-tab="web"] .pricing-features li {
    padding: 6px 0;
}

.pricing-content[data-tab="web"] .price {
    margin-top: var(--space-sm);
}

.pricing-content[data-tab="web"] .price-period {
    margin-bottom: var(--space-sm);
}

.pricing-content[data-tab="web"] .btn {
    padding: 10px 0;
}

/* Estilos para la sección de requerimientos */
.requirements {
    padding: var(--space-xxl) 0;
    background-color: var(--xpectra-bg);
    position: relative;
    overflow: hidden;
}

.requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 70%, rgba(255, 64, 164, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.requirements .container {
    position: relative;
    z-index: 2;
}

.requirements .section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.requirements .section-title h2 .highlight-text {
    color: #FF40A4;
}

.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.requirements-text {
    max-width: 600px;
}

.requirements-subtitle {
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.requirements-list .check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    margin-top: 5px;
}

.requirements-list .check-circle::before {
    content: '✓';
    color: #FF40A4;
    font-size: 14px;
    font-weight: bold;
}

.requirements-list p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.requirements-list .highlight-text {
    color: #FF40A4;
}

.requirements-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.requirements-image .req-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Versiones responsivas */
@media (max-width: 992px) {
    .requirements-content {
        grid-template-columns: 1fr;
    }
    
    .requirements-text {
        max-width: 100%;
        order: 1;
    }
    
    .requirements-image {
        order: 0;
        margin-bottom: var(--space-lg);
    }
    
    .requirements .section-title h2 {
        font-size: 2.5rem;
    }
    
    .requirements-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .requirements .section-title h2 {
        font-size: 2rem;
    }
    
    .requirements-subtitle {
        font-size: 1.3rem;
    }
    
    .requirements-list p {
        font-size: 1rem;
    }
    
    .requirements-list .check-circle {
        width: 20px;
        height: 20px;
    }
}

/* Estilos para la sección de respaldo técnico */
.technical-support {
    padding: var(--space-xxl) 0;
    background-color: var(--xpectra-bg);
    position: relative;
    overflow: hidden;
}

.technical-support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 25% 40%, rgba(255, 64, 164, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.technical-support .container {
    position: relative;
    z-index: 2;
}

.technical-support .section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.tech-support-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: center;
}

.founder-info {
    max-width: 650px;
}

.founder-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.founder-position {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.founder-bio {
    margin-bottom: var(--space-lg);
}

.founder-bio p {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-text {
    color: #FF40A4;
    font-weight: 600;
}

.founder-contact {
    margin-top: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #fff;
}

.contact-icon.linkedin {
    background-color: #0077B5;
}

.contact-icon.twitter {
    background-color: #000000;
}

.contact-icon.email {
    background-color: #FF40A4;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.contact-item a:hover {
    color: #FF40A4;
    text-decoration: underline;
}

/* Contenedor mejorado para la imagen de perfil y logo */
.founder-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.founder-img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.company-logo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    height: auto;
    z-index: 2;
    transform: translate(10%, 10%);
}

.ns-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

/* Responsive styles */
@media (max-width: 992px) {
    .tech-support-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .founder-info {
        max-width: 100%;
        order: 2;
    }
    
    .founder-image {
        order: 1;
        margin-bottom: var(--space-md);
    }
    
    .profile-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .company-logo {
        width: 40%;
    }
    
    .technical-support .section-title h2 {
        font-size: 2.5rem;
    }
    
    .founder-name {
        font-size: 2rem;
        text-align: center;
    }
    
    .founder-position {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .technical-support .section-title h2 {
        font-size: 2rem;
    }
    
    .founder-name {
        font-size: 1.8rem;
    }
    
    .founder-bio p {
        font-size: 1rem;
    }
    
    .profile-container {
        max-width: 250px;
    }
    
    .company-logo {
        width: 45%;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
}

/* Mejoras adicionales para responsividad */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .advantage-item {
        padding: var(--space-lg);
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }
}

@media screen and (max-width: 767px) {
    /* ... existing code ... */
    
    /* Mejoras adicionales para navegación móvil */
    .menu-trigger {
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        display: block;
        cursor: pointer;
        padding: var(--space-xs);
        z-index: 100;
        transition: all var(--duration-md) var(--ease-standard);
    }
    
    .menu-trigger.active i {
        transform: rotate(90deg);
    }
    
    /* Mejora para secciones con grids en móvil */
    .features-grid,
    .advantages-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Mejora para el hero en móvil */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Ajustes para secciones con dos columnas */
    .vuln-content,
    .requirements-content,
    .tech-support-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .vuln-image,
    .requirements-image,
    .founder-image {
        order: -1;
        margin-bottom: var(--space-md);
    }
    
    /* Mejoras para tarjetas de precios */
    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.3rem, 3vw, 1.5rem);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero {
        padding: calc(var(--header-height) + 2vh) 0 1vh;
    }
    
    .founder-bio p {
        font-size: 0.95rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: var(--space-md);
    }
    
    .contact-icon {
        margin-bottom: var(--space-xs);
    }
    
    .contact-item a {
        font-size: 0.9rem;
    }
}

/* Clases de utilidad para responsividad */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Modificaciones específicas para la versión móvil del flujo de trabajo */
    .how-it-works .section-title {
        margin-bottom: 1rem;
    }
    
    .mobile-workflow-card {
        max-width: 85%;
        margin: 0 auto;
    }
    
    .mobile-workflow-card:hover {
        transform: none; /* Elimina la animación de hover en móvil */
    }
    
    /* ... existing code ... */
} 

/* Estilos para la versión móvil del flujo de trabajo */
.mobile-agent-workflow {
    margin: 2rem 0;
    width: 100%;
}

.mobile-workflow-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.mobile-workflow-card {
    background: rgba(30, 30, 40, 0.8);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 64, 164, 0.15);
}

.mobile-workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.card-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 64, 164, 0.4);
}

.card-image-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 64, 164, 0.3);
    background: rgba(255, 64, 164, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
}

.mobile-workflow-card h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.mobile-workflow-card p {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Flechas conectoras entre tarjetas para móvil */
.mobile-workflow-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 18px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(255, 255, 255, 0.2));
    z-index: 1;
}

.mobile-workflow-card:last-child::after {
    display: none;
}

/* Clases de utilidad para responsividad */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Modificaciones específicas para la versión móvil del flujo de trabajo */
    .how-it-works .section-title {
        margin-bottom: 1rem;
    }
    
    .mobile-workflow-card {
        max-width: 85%;
        margin: 0 auto;
    }
    
    .mobile-workflow-card:hover {
        transform: none; /* Elimina la animación de hover en móvil */
    }
} 

/* Para pantallas muy pequeñas */
@media screen and (max-width: 380px) {
    .mobile-workflow-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .card-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: -10px;
        left: -10px;
    }
    
    .card-image-container {
        width: 80px;
        height: 80px;
    }
    
    .mobile-workflow-card h3 {
        font-size: 1.1rem;
    }
    
    .mobile-workflow-card p {
        font-size: 0.9rem;
    }
}

/* Estilos para la sección de video */
.video-section {
    padding: var(--space-xxl) 0;
    background-color: var(--xpectra-bg);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 30%, rgba(255, 64, 164, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.video-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

/* Layout de dos columnas para video + tarjeta GoFest */
.video-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Centrar el video y hacerlo ocupar todo el ancho de la grilla */
.video-content .video-container {
    grid-column: 1 / -1;
    justify-self: center;
}

.gofest-card {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--elevation-2);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-md) var(--ease-standard), box-shadow var(--duration-md) var(--ease-standard);
}

.ambassador-card {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--elevation-2);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-md) var(--ease-standard), box-shadow var(--duration-md) var(--ease-standard);
}

.ambassador-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Forzar mismo tamaño visual para ambas imágenes (16:9) */
.gofest-image, .ambassador-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gofest-image img, .ambassador-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.ambassador-description {
    padding: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.ambassador-description a { color: #FF40A4; text-decoration: underline; }

/* Estilos genéricos para tarjetas multimedia (comparten gofest/ambassador) */
.gofest-card:hover, .ambassador-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--elevation-3);
}

.media-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.media-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #FF40A4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.media-cta {
    margin-top: auto;
}

.media-cta .btn {
    width: 100%;
}

/* Ajustes del contenedor del video: borde y radios para coherencia visual */
.video-container {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.video-wrapper iframe {
    border: none;
}

.gofest-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gofest-description {
    padding: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.gofest-description a {
    color: #FF40A4;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .video-content {
        grid-template-columns: 1fr;
    }
}

.video-section .section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.video-section .section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: #fff;
}

.video-section .section-title p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 64, 164, 0.7), transparent);
    z-index: 2;
}

.video-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 64, 164, 0.7), transparent);
    z-index: 2;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .video-section .section-title h2 {
        font-size: 2.2rem;
    }
    
    .video-section .section-title p {
        font-size: 1rem;
    }
    
    .video-container {
        max-width: 95%;
    }
    
    .video-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* ... existing code ... */

/* Selector de idioma */
.language-selector {
    margin-right: 18px;
    display: flex;
    align-items: center;
    position: relative;
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 8px 32px 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 85px;
    text-align: center;
    background-color: var(--bg-dark); /* Asegurar fondo oscuro */
}

.language-selector::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.language-selector:hover::after {
    color: var(--accent-color);
    transform: translateY(-50%) rotate(180deg);
}

.language-selector select:hover {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.25);
}

/* Estilos para opciones del select */
.language-selector select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-weight: 500;
    padding: 15px;
}

/* Ajustes específicos para Chrome, Safari, Edge, etc. */
_::-webkit-full-page-media, _:future, :root .language-selector select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Estilos para Firefox */
@-moz-document url-prefix() {
    .language-selector select {
        background-color: var(--bg-dark);
        color: var(--text-light);
    }
    
    .language-selector select option {
        background-color: var(--bg-dark);
        color: var(--text-light);
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        margin-right: 10px;
    }
    
    .language-selector select {
        padding: 6px 25px 6px 10px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .language-selector::after {
        right: 10px;
        font-size: 0.6rem;
    }
}

/* ... existing code ... */

/* Selector de idioma */
.language-switcher {
    margin-right: 18px;
    position: relative;
    user-select: none;
}

.selected-lang {
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 60px;
    text-align: center;
    justify-content: center;
}

.selected-lang i {
    margin-left: 6px;
    color: var(--primary-color);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switcher:hover .selected-lang {
    border-color: var(--primary-color);
    background-color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.language-switcher:hover .selected-lang i {
    color: var(--accent-color);
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 6px 0;
    min-width: 80px;
    z-index: 1000;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}

.lang-option {
    display: block;
    padding: 8px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-option:hover {
    background-color: var(--gray-850);
    color: var(--accent-color);
}

.lang-option.active {
    color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb), 0.1);
    font-weight: 600;
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .language-switcher {
        margin-right: 10px;
    }
    
    .selected-lang {
        padding: 5px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .selected-lang i {
        margin-left: 4px;
        font-size: 0.6rem;
    }
    
    .lang-option {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* Formulario de contacto */
.contact-form-section {
    background-color: #121212;
    color: #ffffff;
    padding: 80px 0;
    background-image: url('../img/matrix-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.contact-form-section .container {
    position: relative;
    z-index: 2;
}

.contact-form-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-section .section-title h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-form-section .section-title p {
    max-width: 800px;
    margin: 0 auto;
    color: #f0f0f0;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Add a flex layout for the form */
.contact-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f0f0f0;
}

.form-group .required {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Special styling for select dropdown */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Styling for dropdown options */
.form-group select option {
    background-color: #1e1e1e; 
    color: #ffffff;
    padding: 12px;
}

/* Firefox specific styling */
@-moz-document url-prefix() {
    .form-group select {
        text-indent: 0.01px;
        text-overflow: '';
        padding-right: 30px;
    }
    
    .form-group select option {
        background-color: #1e1e1e;
        color: #ffffff;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(242, 219, 0, 0.3);
}

/* Language selector specific styling */
.language-selector select option {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 8px 12px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: #121212;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
    
    .contact-form-section {
        padding: 60px 20px;
    }
    
    .contact-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form-row .form-group {
        margin-bottom: 0;
    }
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

.form-group select option {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 12px;
    font-size: 16px;
}

/* Override option styling for Chrome and Safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .form-group select option {
        background-color: #1e1e1e !important;
        color: #ffffff !important;
    }
}

/* Override for Firefox */
@-moz-document url-prefix() {
    .form-group select {
        text-indent: 0;
        text-overflow: '';
        padding-right: 40px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .form-group select option {
        background-color: #1e1e1e;
        color: #ffffff;
        padding: 12px;
    }
}

/* Fix for IE and Edge */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .form-group select {
        padding-right: 40px;
    }
    
    .form-group select option {
        background-color: #1e1e1e;
        color: #ffffff;
    }
}

/* Ensure language selector follows the same styling */
.language-selector select option {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 16px;
}

.captcha-container {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    user-select: none;
    position: relative;
    transform: rotate(2deg);
}

.captcha-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    transform: rotate(-3deg);
}

.captcha-refresh {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.captcha-refresh:hover {
    opacity: 1;
}

.captcha-input {
    display: flex;
    gap: 10px;
}

.captcha-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
}

.captcha-input input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(242, 219, 0, 0.3);
}

.captcha-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}