:root {
    --primary-color: #050505;
    --secondary-color: #121212;
    --accent-color: #00f2ea;
    --text-color: #e0e0e0;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-head: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background-color: rgba(5, 5, 5, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 8px;
    font-weight: 800;
    text-transform: uppercase;
}
.dot { color: var(--accent-color); font-size: 2rem; line-height: 0; }
.slash { color: var(--accent-color); font-weight: bold;}

.nav-links { display: flex; list-style: none; }
.nav-links li a {
    color: #aaa;
    text-decoration: none;
    margin-left: 40px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    font-weight: 500;
}
.nav-links li a:hover { color: var(--accent-color); }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 2px; background-color: var(--white); margin: 6px; transition: 0.3s; }

/* --- HERO --- */

.hero {
    height: 100vh;
    /* PUEDES CAMBIAR ESTA URL POR TU IMAGEN LOCAL */
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Importante para que no genere scrollbars */
    /* Mantenemos tu fondo de imagen como respaldo, pero lo oscurecemos más */
    background: #000; 
}

/* El Canvas ocupa todo el espacio */
#neuroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nivel 1: Fondo animado */
    opacity: 0.6; /* Sutil, para no molestar la lectura */
}


.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; /* Nivel 0: Fondo base */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%); /* Nuevo gradiente más premium */
}

.hero-content { position: relative; z-index: 3; padding: 20px; max-width: 900px; }
.overline {
    color: var(--accent-color);
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.hero h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 30px;
    font-weight: 900;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}
.hero p { 
    font-size: 1.3rem; 
    margin-bottom: 40px; 
    font-weight: 400; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.highlight { color: var(--accent-color); }

.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    padding: 15px 40px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(0, 5, 10, 0.7);
    backdrop-filter: blur(5px);
}
.btn-primary:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 242, 234, 0.6);
}

.btn-secondary {
    padding: 15px 40px;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
}
.btn-secondary:hover { background: var(--white); color: #000; }

.insight-box {
    margin-top: 40px;
    padding: 20px;
    border-left: 2px solid var(--accent-color);
    background: rgba(0,0,0,0.8);
    color: var(--white);
    font-size: 1rem;
    text-align: left;
    display: inline-block;
    max-width: 600px;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
}
.hidden { display: none; }

/* --- SECTION: About --- */
.section-dark { 
    background-color: var(--primary-color);
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}
.container { max-width: 1100px; margin: 0 auto; padding: 100px 20px; }
.centered-section { text-align: center; }

h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 70px;
    text-align: center;
    letter-spacing: -1px;
    font-weight: 800;
}

.big-text { font-size: 1.6rem; color: var(--white); margin-bottom: 30px; font-weight: 300; }
.text-col p { font-size: 1.1rem; color: #aaa; }

.img-container { margin-top: 50px; }
.img-container img {
    width: 100%;
    max-width: 900px;
    filter: grayscale(100%) contrast(1.2);
    border: 1px solid rgba(255,255,255,0.1);
    transition: filter 0.5s;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.img-container img:hover { filter: grayscale(0%); }

/* --- SECTION: Visualización (Mejorada) --- */
.parallax-divider {
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&q=80&w=2000');
    min-height: 800px; 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
}
.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); /* Un poco más oscuro para que resalten las fotos */
}
.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.dashboard-gallery {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Más ancho */
    gap: 40px;
    width: 100%;
    max-width: 1300px;
}

.dash-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
    background: #000;
    cursor: pointer;
}

/* Efecto Zoom y Brillo al Hover */
.dash-item:hover {
    transform: scale(1.05); /* Zoom al contenedor */
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.2);
    z-index: 10;
}

.dash-item img {
    width: 100%;
    height: 250px; /* Más alto para que se vea bien */
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 0.5s, opacity 0.5s;
}

.dash-item:hover img { 
    opacity: 1; 
    transform: scale(1.1); /* Zoom interno a la imagen */
}

.dash-caption {
    padding: 15px;
    background: #0a0a0a;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid #222;
}

/* --- SECTION: Capabilities (FLIP CARDS 3D) --- */
.section-light {
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

/* Contenedor principal de la tarjeta */
.flip-card-wrapper {
    background-color: transparent;
    height: 400px; /* Altura fija para el giro */
    perspective: 1000px; /* Clave para el 3D */
    cursor: pointer;
}

/* Contenedor interno que se mueve */
.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Clase para girar (se agrega con JS) */
.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Estilos comunes Frente y Dorso */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden; /* Para el brillo */
}

/* FRENTE */
.flip-card-front {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

/* Hover suave en frente (ilumina bordes y agranda ícono) */
.flip-card-wrapper:hover .flip-card-front {
    border-color: var(--accent-color);
    transform: scale(1.02); /* Pequeño pop */
}
.flip-card-front i { color: var(--accent-color); margin-bottom: 25px; transition: 0.3s; }
.flip-card-wrapper:hover .flip-card-front i { transform: scale(1.1); text-shadow: 0 0 15px var(--accent-color); }

.flip-card-front h3 { 
    font-family: var(--font-head); 
    font-size: 1.4rem; margin-bottom: 15px; 
    text-transform: uppercase; letter-spacing: 1px; color: var(--white); 
}
.flip-card-front p { font-size: 0.95rem; color: #777; }

/* DORSO */
.flip-card-back {
    background: #000;
    color: white;
    transform: rotateY(180deg);
    border: 2px solid var(--accent-color);
    box-shadow: inset 0 0 50px rgba(0, 242, 234, 0.1);
}
.flip-card-back h3 { color: var(--accent-color); margin-bottom: 20px; font-size: 1.5rem; text-transform: uppercase; }
.flip-card-back p { font-size: 1.1rem; line-height: 1.6; }

/* ANIMACIÓN SHINE (LUZ QUE PASA) */
.shine {
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(0, 242, 234, 0.1) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: shineAnim 4s infinite;
    pointer-events: none;
}

@keyframes shineAnim {
    0% { left: -150%; }
    20% { left: 150%; } /* Pasa rápido */
    100% { left: 150%; } /* Espera */
}

/* --- CONTACTO --- */
.section-contact {
    position: relative;
    background: url('https://images.unsplash.com/photo-1510511459019-5dda7724fd87?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    padding: 100px 20px;
}
.contact-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5,5,5,0.9);
}
.relative-z { position: relative; z-index: 2; }

.contact-container { text-align: center; padding: 0; }
.contact-intro { margin-bottom: 50px; color: #aaa; font-size: 1.2rem; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.6);
    border: 1px solid #333;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
    backdrop-filter: blur(5px);
}
.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0,0,0,0.8);
}
.full-width { width: 100%; margin-top: 10px; }

/* Footer */
.main-footer {
    background-color: #000;
    padding: 80px 20px 30px 20px;
    border-top: 2px solid var(--accent-color);
    text-align: center;
}
.footer-logo {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 5px;
    margin-bottom: 40px;
    font-weight: 800;
}
.footer-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-item i { color: var(--accent-color); font-size: 1.2rem; }
.footer-item p { color: #888; font-size: 0.9rem; letter-spacing: 1px; }
.copyright {
    border-top: 1px solid #111;
    padding-top: 20px;
    font-size: 0.7rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; top: 8vh; height: 92vh;
        background: #000; display: flex; flex-direction: column;
        align-items: center; width: 80%; transform: translateX(100%);
        transition: 0.5s ease-in; border-left: 1px solid var(--accent-color);
        padding-top: 50px;
    }
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }
    .hero h1 { font-size: 2.5rem; }
    .parallax-divider { background-attachment: scroll; }
    .flip-card-wrapper { height: 350px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
