/* Variables y reset */
:root {
    --color-primary: #6c63ff;
    --color-secondary: #4c46b6;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    overflow-x: hidden;
    position: relative;
    transition: padding-right 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

/* Corregir problema de superposición de título en móvil */
h1.glitch {
    position: relative;
    z-index: 2;
    font-weight: 700;
}

/* Efecto de ruido de fondo */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmsub2830p3wO4Lw1YnL5Bn5InLPvg4XBbxUuZ/DATJFvCpU8fFOunL+JqUOckGQFKe1QvmJd5WXpAEyJLhbcD+jCwhKky9Ni65sEU4PJrXVJrhm1GHNXr84tLCeuV7yc0j/e8s6DnVaHw0ymAjp4OFz5ZdJMOTuS54YmgGRlZWBnaF6IeCo9fDXhF7v1O34EIuH85kT3KzDNlQe1+qn4ZUTyfF/dDzVvj/8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zjqOM4J4MlfN9/r9Vq/ahpmhaJREgqlbqmadprQgjLtm2YpgkCgEsSVFVFu91Go9HAysrKvw4cOFDd2NjgAwMDBABmZmbw8OHDP58/f/4vnPO1cDj8om3bd+r1+o7jOGCUQegCnAsQQsAYA2MMnU4Htm3j8ePH2NzcJPF4HIwxNJtNLC8vo1AoPLl169Yvs9lsR9M0KRwOa47jHPc8D0IIcMGhKAo8z0MoFEK9Xt+7c+fOxfX19TcZY5AkCZqmgRCCaDSKZ8+eYXt7G+Pj47h582Y7Go1+dObMmfd0XQcRAME/CCEQjAY1kkUymbxgGMZb09PTF3Rdd3zfhyRJYIzBsixwzpHP53H//n2k0+nG1atXv2q32/8oFApXdF3XJEkCCQpACAFKKVRVRaFQeL5UKi05jvOrWq2Gy5cv/2d/fx+xWOxbo6OjH7iueyUej0uO4yAajQYJkLKu60in0xBCoNls7rTb7Z1UKrWfTCbD29vbIIR8BwD/BbYiNnGSG+IeAAAAAElFTkSuQmCC');
    opacity: 0.02;
    z-index: -1;
    pointer-events: none;
}

/* Efectos de partículas con movimiento del mouse */
.mouse-particle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, rgba(108, 99, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Navegación */
header {
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-weight: 700;
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Menú de idiomas */
.idiomas {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    align-items: center;
}

.idiomas a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 8px;
    border-radius: 4px;
}

.idiomas a.idioma-activo,
.idiomas a:hover {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Menú principal */
.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-light);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sección Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--color-gray);
}

.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.blob {
    width: 400px;
    height: 400px;
    background-image: url('https://via.placeholder.com/500');
    background-size: cover;
    background-position: center;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: morph 8s ease-in-out infinite;
    border: 4px solid var(--color-primary);
    position: relative;
    z-index: 1;
}

.blob::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle at center, rgba(108, 99, 255, 0.3) 0%, rgba(76, 70, 182, 0) 70%);
    z-index: -1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Sección Servicios */
.servicios {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.servicios h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

.servicios h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.servicios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.servicio-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.servicio-card .icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.servicio-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.servicio-card p {
    color: var(--color-gray);
    line-height: 1.6;
}

.servicio-card ul {
    list-style: none;
    margin-top: 15px;
}

.servicio-card ul li {
    margin-bottom: 10px;
    color: var(--color-gray);
    display: flex;
    align-items: center;
}

.servicio-card ul li i {
    margin-right: 10px;
    color: var(--color-primary);
}

/* Idiomas disponibles en la sección de contacto */
.idiomas-disponibles {
    margin-top: 30px;
}

.idiomas-disponibles p {
    margin-bottom: 10px;
}

.idiomas-disponibles ul {
    list-style: none;
}

.idiomas-disponibles li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--color-gray);
}

.idiomas-disponibles li i {
    margin-right: 10px;
    color: var(--color-primary);
}

.idioma-link {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 2px 5px;
    border-radius: 4px;
}

.idioma-link:hover {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.idioma-link.idioma-activo {
    color: var(--color-primary);
    font-weight: 500;
}

/* Sección Contacto */
.contacto {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.contacto h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

.contacto h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.contacto-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contacto-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contacto-info p {
    color: var(--color-gray);
    margin-bottom: 30px;
}

.contacto-metodo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contacto-metodo i {
    font-size: 20px;
    color: var(--color-primary);
    margin-right: 15px;
}

.contacto-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-light);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: var(--color-gray);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--color-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 14px;
}

/* Captcha personalizado */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.captcha-question {
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

input[type="number"]#captcha_respuesta {
    width: 80px;
    padding: 10px;
    font-size: 16px;
}

/* Responsividad */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        margin: 40px auto;
    }
    
    .hero-content {
        margin-bottom: 60px;
    }
    
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 0.2;
        pointer-events: none;
    }
    
    .blob {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .glitch, .glitch::before, .glitch::after {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .hero-content h2, .hero-content p {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        padding: 15px 20px;
        position: relative;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 50px 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .menu .idiomas {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 20px;
    }
    
    .servicio-card {
        padding: 20px;
    }
    
    .contacto-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .servicios h2,
    .contacto h2 {
        font-size: 28px;
    }
    
    .blob {
        width: 250px;
        height: 250px;
        opacity: 0.6;
    }
    
    .idiomas a {
        font-size: 12px;
        padding: 3px 6px;
    }
} 