/* Variables del tema */
:root {
    /* Tema claro por defecto */
    --color-background: #f0f2f5;
    --color-text-primary: #1a202c;
    --color-text-secondary: #4a5568;
    --color-header: #ffffff;
    --color-border: #e2e8f0;
    --color-card-bg: #ffffff;
    --color-accent-purple: #7c3aed;
    --color-accent-blue: #3b82f6;
    --gradient-purple: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-blue));
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    
    /* Colores específicos para tema claro */
    --nav-bg: rgba(255, 255, 255, 0.9);
    --card-hover: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --button-hover: #f5f7fa;
    --footer-bg: #ffffff;
    --section-bg: linear-gradient(to bottom, #f0f2f5, #ffffff);
    --hero-bg: linear-gradient(135deg, #f0f2f5, #e6e9ed);
    
    /* Variables para el formulario */
    --text-color: var(--color-text-primary);
    --text-muted: var(--color-text-secondary);
    --surface-color: var(--color-surface);
    --border-color: var(--color-border);
    --primary-color: var(--color-accent-purple);
    --primary-rgb: 124, 58, 237;
    --success-color: #10b981;
    --success-rgb: 16, 185, 129;
    --error-color: #ef4444;
    --error-rgb: 239, 68, 68;
    --input-bg: var(--color-surface);
}

/* Tema oscuro */
[data-theme="dark"] {
    --color-background: #1a1c23;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e0;
    --color-header: #242731;
    --color-border: #2d303a;
    --color-card-bg: #242731;
    --color-accent-purple: #9f7aea;
    --color-accent-blue: #63b3ed;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    
    /* Colores específicos para tema oscuro */
    --nav-bg: rgba(36, 39, 49, 0.95);
    --card-hover: #2a2d37;
    --input-bg: #2a2d37;
    --input-border: #363a47;
    --button-hover: #2d303a;
    --footer-bg: #242731;
    --section-bg: linear-gradient(to bottom, #1a1c23, #242731);
    --hero-bg: linear-gradient(135deg, #1a1c23, #242731);
    
    /* Variables para el formulario en modo oscuro */
    --input-bg: #2a2d37;
}

/* Aplicación de variables */
body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1a202c;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a202c;
    font-weight: 600;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--color-text-primary);
}

.tech-font {
    font-family: 'Rajdhani', sans-serif;
}

.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.hero-section {
    background: var(--hero-bg);
}

.card {
    background: var(--color-card-bg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--card-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

input, textarea, select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--color-text-primary);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
}

footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--color-border);
}

section {
    background: var(--section-bg);
}

/* Ajustes para mejorar la legibilidad en tema oscuro */
[data-theme="dark"] {
    .card {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .btn {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    img {
        filter: brightness(0.9);
    }
    
    input:focus, textarea:focus, select:focus {
        box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.2);
    }
}

/* Transiciones suaves */
* {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
}

/* Header y Navegación */
.header {
    background-color: var(--color-header);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--color-accent-purple);
}

.logo img {
    height: 40px;
    margin-right: 0.5rem;
    animation: logoFloat 3s ease-in-out infinite,
              logoGlow 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Efecto de texto del logo */
.logo span {
    background: linear-gradient(
        45deg,
        var(--color-accent-purple),
        var(--color-accent-blue)
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    transition: width 0.3s ease;
}

.logo:hover span::after {
    width: 100%;
}

/* Animaciones del Logo */
@keyframes logoFloat {
    0% {
        transform: translateY(0) rotate(0);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(5px) rotate(-2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px var(--color-accent-purple))
               drop-shadow(0 0 5px var(--color-accent-blue));
    }
    50% {
        filter: drop-shadow(0 0 5px var(--color-accent-purple))
               drop-shadow(0 0 10px var(--color-accent-blue));
    }
}

/* Hero Section */
.hero {
    padding-top: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: var(--gradient-purple);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Orbitron', sans-serif;
    color: #1a202c;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Cards y Grid */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--card-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-accent-blue);
}

.card-content {
    color: var(--color-text-secondary);
}

/* Botones Mejorados */
.btn {
    position: relative;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        var(--color-accent-purple),
        var(--color-accent-blue)
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: scale(1);
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-accent-purple);
}

.btn-secondary:hover {
    background: var(--color-accent-purple);
    color: white;
    transform: translateY(-2px);
}

/* Efectos de Partículas en Botones */
.btn .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.btn .particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

@keyframes particle-up {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* Efectos de Brillo */
.btn.hover-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-purple);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn.hover-glow:hover::before {
    opacity: 0.5;
}

/* Efecto de Ondas */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.btn-ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Efectos de Texto */
.btn span {
    position: relative;
    z-index: 1;
}

.btn:hover span {
    animation: btnTextFloat 0.3s ease-in-out;
}

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

/* Iconos en Botones */
.btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

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

/* Efectos de Hover Avanzados */
.btn.btn-primary:hover {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efecto de Brillo en Hover */
.btn.btn-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* Estilos para el botón de cambio de tema */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-purple);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.2);
}

.theme-toggle i {
    color: white;
    font-size: 1.2rem;
}

/* Animación para el icono */
.theme-toggle .icon-transition {
    transition: transform 0.5s ease;
}

.theme-toggle:hover .icon-transition {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utilidades */
.text-gradient {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-purple) 1;
}

.bg-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Efectos de IA y Tecnología */
.ai-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--color-bg) 2px, transparent 2px),
        linear-gradient(90deg, var(--color-bg) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: -2px -2px;
    opacity: 0.1;
    z-index: -1;
}

.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-purple);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow:hover::after {
    opacity: 0.5;
}

/* Sección de Características */
.features-preview {
    padding: 4rem 0;
    background: var(--section-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

[data-theme="dark"] .section-title {
    color: var(--color-text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-purple);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
}

.feature-card h3 {
    color: #1a202c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

[data-theme="dark"] .feature-card h3 {
    color: var(--color-text-primary);
}

.feature-card p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
}

[data-theme="dark"] .feature-card p {
    color: var(--color-text-secondary);
}

/* Code block */
.code-block {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

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

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

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

/* Efectos de Hover Mejorados */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--color-accent-purple);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Navegación Mejorada */
.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

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

.nav-link.active {
    color: var(--color-accent-blue);
    background: var(--color-hover);
}

/* Footer Mejorado */
.footer {
    background: var(--color-header);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-title {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-accent-blue);
}

/* Responsive Mejorado */
@media (max-width: 1024px) {
    .container {
        padding: 3rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Modo Oscuro Automático */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0d1117;
        --color-header: #161b22;
        --color-text-primary: #c9d1d9;
        --color-text-secondary: #8b949e;
    }
}

/* Sección de Contacto */
.contact-section {
    padding: 5rem 0;
    background: var(--section-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-purple);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Sección Quiénes Somos */
.about-section {
    padding: 6rem 0;
    background: var(--color-header);
    position: relative;
    overflow: hidden;
}

.about-container {
    margin-top: 3rem;
}

.about-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Estadísticas */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.team-member {
    text-align: center;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.member-image {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(124, 58, 237, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
}

.team-member h4 {
    color: var(--color-text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--color-text-secondary);
}

/* Valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--color-accent-purple);
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--color-text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--color-text-secondary);
}

/* Animaciones */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Moderno */
.footer {
    position: relative;
    background: linear-gradient(to bottom right, var(--color-header), var(--color-bg));
    color: var(--color-text-primary);
    padding: 6rem 0 2rem;
    overflow: hidden;
}

/* Olas animadas */
.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave {
    position: absolute;
    width: 200%;
    height: 60px;
    animation: wave 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    opacity: 0.5;
}

.wave1 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" style="fill: rgba(124, 58, 237, 0.2)"/></svg>');
    z-index: 5;
    animation-delay: 0s;
}

.wave2 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" style="fill: rgba(96, 165, 250, 0.2)"/></svg>');
    z-index: 4;
    animation-delay: -5s;
}

.wave3 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" style="fill: rgba(167, 139, 250, 0.2)"/></svg>');
    z-index: 3;
    animation-delay: -2s;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.8);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* Contenido del Footer */
.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    position: relative;
}

.footer-section h3 {
    color: var(--color-text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: var(--gradient-purple);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

/* Sección de marca */
.brand .footer-logo {
    width: 100px;
    margin-bottom: 1rem;
}

.brand .tagline {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-accent-purple);
    transform: translateY(-5px);
}

/* Enlaces */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent-blue);
    padding-left: 2rem;
}

.footer-link:hover::before {
    opacity: 1;
}

/* Newsletter */
.newsletter-form {
    position: relative;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text-primary);
}

.btn-subscribe {
    padding: 0.8rem 1.2rem;
    background: var(--gradient-purple);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px var(--color-accent-purple);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    color: var(--color-text-secondary);
}

.footer-extra-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-extra-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-extra-links a:hover {
    color: var(--color-accent-purple);
}

.separator {
    color: var(--color-text-secondary);
}

/* Partículas */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-extra-links {
        justify-content: center;
    }
}

/* Sección de Aprendizaje Interactivo */
.ai-learning-section {
    padding: 4rem 0;
    background: var(--section-bg);
}

.ai-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ai-interactive-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ai-interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    color: white;
    font-size: 1.5rem;
}

.ai-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    margin: 0;
}

.ai-card-description {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ai-demo-area {
    background: var(--color-background);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--color-border);
}

.ai-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ai-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--color-text-primary);
}

.ai-submit-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-purple);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.ai-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-background);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    min-height: 100px;
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
}

.ai-loading-dots {
    display: flex;
    gap: 0.25rem;
}

.ai-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-purple);
    animation: loadingDot 1.4s infinite ease-in-out;
}

.ai-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 100% {
        transform: scale(0.3);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Estilos específicos para la card de visión por computadora */
.ai-interactive-card[data-vision-card] {
    min-height: 450px;
}

.vision-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.vision-upload-area:hover {
    border-color: var(--color-accent-purple);
    background: rgba(124, 58, 237, 0.05);
}

.vision-preview {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vision-preview img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.vision-results {
    background: var(--color-card-bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.vision-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.vision-result-item:last-child {
    border-bottom: none;
}

.vision-label {
    font-weight: 600;
    color: var(--color-text-primary);
}

.vision-confidence {
    color: var(--color-accent-purple);
    font-weight: 500;
}

.vision-file-input {
    display: none;
}

.vision-upload-button {
    background: var(--gradient-purple);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vision-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vision-upload-icon {
    font-size: 1.5rem;
}

.vision-upload-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

/* Contact Form Styles */
.contact-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    outline: none;
}

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

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(var(--success-rgb), 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-message.error {
    display: block;
    background-color: rgba(var(--error-rgb), 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.technologies-section {
    padding: 4rem 0;
    background: var(--section-bg);
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-card {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--color-border);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-purple);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-purple);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.tech-icon i {
    font-size: 2.5rem;
    color: white;
}

.tech-card h3 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tech-list li {
    color: var(--color-text-secondary);
    padding: 0.75rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li:before {
    content: '•';
    color: var(--color-accent-purple);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.5rem;
}
