/* Variables de colores y fuentes */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --tech-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --glass-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 250px; /* Ajusta el tamaño de la imagen según sea necesario */
    height: auto;
    margin-right: 10px; /* Espacio entre la imagen y el texto */
}

.logo-3d {
    font-size: 24px;
    font-weight: bold;
}

.logo-subtitle {
    font-size: 14px;
    color: #666;
}
/* Cursor personalizado */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Estilos del encabezado */
.glass-nav {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-3d {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    transform: perspective(500px) rotateX(10deg);
    transition: var(--transition);
}

.logo-3d.small {
    font-size: 1.5rem;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--dark-color);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.hover-effect:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Estilos del héroe */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem 5% 5rem;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.tech-text {
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.floating-brain {
    position: absolute;
    width: 400px;
    height: 400px;
    background: url('https://cdn-icons-png.flaticon.com/512/2725/2725278.png') center/contain no-repeat;
    filter: drop-shadow(0 10px 20px rgba(108, 92, 231, 0.3));
    animation: float 6s ease-in-out infinite;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-20px); }
}

/* Estilos de botones */
.cta-button, .test-button, .submit-button, .newsletter-button {
    background: var(--tech-gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.hover-3d:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.hover-3d:active {
    transform: translateY(0) scale(0.98);
}

/* Estilos de secciones */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--dark-color);
    opacity: 0.7;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Tarjetas 3D */
.card-3d {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg);
    pointer-events: none;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Sección de servicios */
.services-section {
    padding: 5rem 5%;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--dark-color);
    opacity: 0.7;
    line-height: 1.6;
}

.card-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.1;
    top: -30px;
    right: -30px;
    z-index: -1;
}

/* Sección de tests */
.tests-section {
    padding: 5rem 5%;
    background-color: #f9f9ff;
}

.test-carousel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.test-carousel::-webkit-scrollbar {
    height: 8px;
}

.test-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.test-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.test-slide {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.test-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.test-icon {
    width: 80px;
    height: 80px;
    background: var(--tech-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.test-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.test-card p {
    margin-bottom: 2rem;
    color: var(--dark-color);
    opacity: 0.7;
}

/* Sección del equipo */
.team-section {
    padding: 5rem 5%;
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(20%);
    transition: var(--transition);
}

.image-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--tech-gradient);
    z-index: -1;
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.bio {
    color: var(--dark-color);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Sección de contacto */
.contact-section {
    padding: 5rem 5%;
    background-color: #f9f9ff;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
}

.contact-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* Estilos del footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    opacity: 0.7;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-newsletter p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-newsletter input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal de tests */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.test-progress {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--tech-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.test-nav-button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: #f0f0f0;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.test-nav-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .floating-brain {
        position: relative;
        top: 150px;
        right: auto;
        transform: none;
        margin: 0 auto;
    }
    .logo-icon{
        width: 100px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 130px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    .logo-icon{
        width: 100px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .floating-brain {
        width: 300px;
        height: 300px;
    }
    
    .test-slide {
        flex: 0 0 85%;
    }
    .logo-icon{
        width: 100px;
    }
}