/* --- Configuración Global --- */
:root {
    --color-bg-dark: #0a0f1d;
    --color-primary: #3b82f6; /* Azul eléctrico */
    --color-secondary: #60a5fa;
    --color-text-light: #e2e8f0;
    --color-text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    margin: 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* --- Fondo de Partículas --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #0a0f1d 100%); /* Gradiente sutil */
    z-index: -1; /* Detrás de todo */
}

/* --- Barra de Navegación --- */
.navbar-crorazor {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.8); /* Fondo semitransparente */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}
.logo img { margin-right: 10px; }

.nav-links button {
    background: none;
    border: none;
    color: var(--color-text-muted);
    margin-left: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links button:hover,
.nav-links button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.btn-user {
    background: var(--color-primary) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    border: none !important;
}
.btn-user:hover {
    background: var(--color-secondary) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* --- Estructura del Barrido (AJUSTADA) --- */
.viewport { 
    width: 100vw; 
    height: 100vh; 
    overflow: hidden; /* Mantenemos oculto el exceso horizontal */
    position: relative;
}

.wrapper {
    display: flex;
    width: 400vw;
    height: 100%; /* Asegura que ocupe el alto del viewport */
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.section {
    width: 100vw;
    height: 100vh; /* Cada sección mide exactamente la pantalla */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* CAMBIO: Alineamos arriba para que el scroll sea natural */
    padding: 100px 20px 40px; /* Más espacio arriba por el navbar */
    overflow-y: auto; /* CLAVE: Permite scroll vertical interno si el contenido es largo */
    overflow-x: hidden; /* Evita rebotes horizontales raros */
}

/* --- Ajuste opcional para mejorar la vista --- */
.content-container {
    text-align: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* Personaliza la barra de scroll para que no se vea fea y tecnológica */
.section::-webkit-scrollbar {
    width: 6px;
}
.section::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}
.section::-webkit-scrollbar-track {
    background: transparent;
}


.title-typing {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    /* Animación de "escritura" simple */
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(30, end);
}
.text-highlight { color: var(--color-primary); }

.subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
}

/* --- Tarjetas Tecnológicas (Glassmorphism) --- */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tech-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    width: 280px;
    backdrop-filter: blur(12px); /* Efecto vidrio */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Efecto Hover Increíble */
.tech-card:hover {
    transform: translateY(-15px); /* Levantar */
    border-color: var(--color-primary); /* Borde brillante */
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3); /* Sombra de color */
}
.tech-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg); /* Movimiento del icono */
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.card-icon-container {
    margin-bottom: 25px;
}
.card-icon {
    width: 60px;
    height: 60px;
    transition: all 0.4s ease;
    /* Puedes usar filtros CSS para colorear SVGs negros si es necesario */
    /* filter: invert(1) sepia(1) saturate(5) hue-rotate(190deg); */
}

.tech-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --- Estilos para el Login Glassmorphism --- */
.glass-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: var(--glass-shadow) !important;
}
.glass-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
}
.glass-input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
}
.glass-button {
    background: var(--color-primary) !important;
    border: none !important;
    font-weight: 600;
}
.glass-button:hover {
    background: var(--color-secondary) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
}

/* --- Animaciones Keyframes --- */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* --- Responsividad Básica --- */
@media (max-width: 768px) {
    .title-typing { font-size: 2.5rem; }
    .cards-container { flex-direction: column; align-items: center; }
    .tech-card { width: 90%; max-width: 320px; }
    .navbar-crorazor { padding: 0.8rem 1rem; }
    .nav-links button { margin-left: 10px; font-size: 0.9rem; }
    .btn-user { padding: 0.4rem 0.8rem !important; }
}




/* --- Grid de Productos --- */
.products-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card.flagship {
    border: 1px solid var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: scale(1.03);
    border-color: var(--color-primary);
}

.product-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    min-height: 80px;
}

.product-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* --- Botón "Conoce más" --- */
.btn-conoce {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: white;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-conoce:hover {
    background: var(--color-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.plus-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.product-card.locked {
    opacity: 0.6;
    filter: grayscale(0.8);
    cursor: not-allowed;
}