/* --- VARIABLES Y RESET (Paleta Oficial ACTIVATE - MODO CLARO) --- */
:root {
    /* FONDO: Blanco humo muy tecnológico */
    --bg-color: #f4f7fa;      
    
    /* TEXTO PRINCIPAL: Azul Marino Profundo (Color oficial del logo) */
    --text-primary: #050a19;
    --text-secondary: #5e6d82; /* Gris azulado para párrafos */
    
    /* ACENTOS DE MARCA */
    --brand-cyan: #00c3ff;    
    --brand-magenta: #d600ff; 
    
    /* DEGRADADO DE MARCA (Para botones y detalles) */
    --brand-gradient: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-cyan) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- FONDO DE PARTÍCULAS --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-color); /* Fondo sólido claro */
}

/* --- NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95); /* Blanco casi sólido */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(5, 10, 25, 0.05); /* Línea divisoria muy sutil */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Texto degradado para "MEDIA" o palabras clave */
.brand-text, .gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { 
    color: var(--brand-cyan); 
}

.btn-nav {
    border: 1px solid var(--brand-magenta);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--brand-magenta) !important; /* Texto magenta */
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--brand-magenta);
    color: white !important;
    box-shadow: 0 5px 15px rgba(214, 0, 255, 0.3);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.badge-tech {
    background: rgba(214, 0, 255, 0.08); /* Fondo magenta muy suave */
    color: var(--brand-magenta);
    padding: 5px 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    border-left: 3px solid var(--brand-magenta);
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    border-left: 2px solid rgba(0, 195, 255, 0.3); /* Línea cian sutil */
    padding-left: 20px;
}

/* BOTÓN PRINCIPAL */
.btn-primary {
    text-decoration: none;
    background: var(--brand-gradient);
    color: white;
    padding: 15px 40px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 195, 255, 0.2); /* Sombra suave cian */
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(214, 0, 255, 0.3); /* Sombra magenta al hover */
}

/* BOTÓN SECUNDARIO (Outline Oscuro) */
.btn-secondary {
    text-decoration: none;
    color: var(--text-primary);
    padding: 15px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 20px;
    border: 1px solid rgba(5, 10, 25, 0.2);
    border-radius: 5px;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background: white;
}

/* --- DECORACIÓN: RADAR DUAL --- */
.radar-container {
    width: 450px;
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8; /* Un poco de transparencia para mezclar con el blanco */
}

/* Radar Externo (Cian) */
.radar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 195, 255, 0.2);
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 195, 255, 0.1) 60deg, transparent 60deg);
    animation: scan 6s infinite linear;
    position: absolute;
}

/* Radar Interno (Magenta) */
.radar::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 1px solid rgba(214, 0, 255, 0.2);
    background: conic-gradient(from 180deg, transparent 0deg, rgba(214, 0, 255, 0.1) 60deg, transparent 60deg);
    animation: scan-reverse 4s infinite linear;
}

@keyframes scan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scan-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
/* --- SECCIÓN PORTAFOLIO (NUEVA) --- */
.portfolio-section {
    padding: 80px 5%;
    background-color: white;
}

/* BARRA DE FILTROS */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(5, 10, 25, 0.1);
    padding: 8px 25px;
    border-radius: 50px; /* Botones redondos tipo cápsula */
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.3);
}

/* GRID DEL PORTAFOLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* TARJETA INDIVIDUAL */
.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* --- CORRECCIÓN FINAL DE IMÁGENES (Proporción 3:2) --- */
.image-box {
  width: 100%;
    /* Usamos una proporción más rectangular (3:2) que se adapta mejor a los vehículos sin ser muy alta */
    aspect-ratio: 3 / 2; 
    position: relative;
    overflow: hidden; /* Esconde la tarjeta cuando está abajo */
    border-radius: 12px 12px 0 0; /* Redondeamos solo arriba */
    background-color: #fff; /* Fondo blanco por si la imagen no llena el espacio */
    /* Centramos la imagen perfectamente */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 3D push */
    transform: translateZ(20px);
}

.image-box img {
   width: 100%;
    height: 100%;
    /* --- LA CORRECCIÓN CLAVE --- */
    /* 'contain' asegura que la imagen se vea ENTERA sin recortarse nunca */
    object-fit: contain; 
    transition: transform 0.6s ease;
    /* Quitamos cualquier padding para aprovechar el espacio */
    padding: 0;
}

/* EL OVERLAY TÉCNICO (Oculto por defecto) */
.tech-overlay {
  position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* La altura se ajusta al contenido del texto */
    height: auto; 
    
    /* Fondo oscuro sólido para que se lea bien */
    background: rgba(10, 15, 30, 0.95); 
    
    /* Borde superior decorativo color Cian */
    border-top: 3px solid var(--brand-cyan);
    
    padding: 20px 15px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* ESTADO INICIAL: Escondida abajo (fuera de la vista) */
    transform: translateY(100%);
    
    /* Animación suave al entrar/salir */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    
    /* ESTO PERMITE DAR CLIC A LA IMAGEN A TRAVÉS DE LA CAPA OSCURA */
    pointer-events: none;
}

/* Efecto al pasar el mouse */
.portfolio-item:hover .tech-overlay {
    opacity: 1; /* Se hace visible */
    transform: translateY(0); /* Vuelve a su posición visible */
}

/* Efecto hover */
.portfolio-item:hover .image-box img {
  transform: scale(1.05);
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: 0.4s;
    
    /* REACTIVAMOS LOS CLICS PARA LOS BOTONES Y TEXTO */
    pointer-events: auto;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
   font-family: 'Rajdhani', sans-serif;
    color: var(--brand-cyan);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.overlay-content p {
  font-size: 0.85rem;
    margin-bottom: 4px;
    color: #e0e0e0; /* Texto claro */
    line-height: 1.4;
}

/* BOTÓN MINI DENTRO DEL OVERLAY */
.btn-mini {
   display: inline-block;
    margin-top: 12px;
    padding: 6px 20px;
    background: white;
    color: #050a19;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-mini:hover {
   background: var(--brand-cyan);
    color: white;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.5);
}

/* INFO DEBAJO DE LA FOTO */
.item-info {
  padding: 15px;
    background: white;
    border-radius: 0 0 12px 12px;
    position: relative;
    z-index: 11; /* Asegura que quede por encima de la tarjeta al deslizar */
}

/* Pequeña línea decorativa de gradiente */
.item-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--brand-gradient);
    transition: 0.4s;
}

.portfolio-item:hover .item-info::before {
    width: 100%;
}

.item-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.item-info .category {
    font-size: 0.85rem;
    color: var(--brand-magenta);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* --- SECCIÓN IMPACTO SOCIAL --- */
.social-impact-section {
    padding: 100px 5%;
    background-color: #f8fafc; /* Un gris muy muy suave para diferenciar */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.impact-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.impact-text {
    flex: 1;
    min-width: 300px;
}

.impact-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 20px 0;
    line-height: 1.1;
}

.impact-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ESTADÍSTICAS SIMPLES */
.stats-row {
    display: flex;
    gap: 40px;
}

.stat-number {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-cyan);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* IMAGEN CON MARCO TECH */
.impact-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.impact-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* El borde decorativo detrás de la foto */
.tech-border {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brand-magenta);
    border-radius: 10px;
    z-index: 1;
    opacity: 0.3;
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-primary); /* Fondo oscuro para el cierre */
    color: white;
    padding: 80px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-logo h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #a0aab5;
    max-width: 300px;
}

.footer-links h3, .footer-contact h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--brand-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: #a0aab5;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px; /* Pequeño movimiento al hover */
}

/* BOTÓN WHATSAPP */
.contact-btn {
    display: inline-block;
    background: #25D366; /* Color oficial WhatsApp */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
    transition: 0.3s;
}

.contact-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.footer-contact p {
    color: #a0aab5;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--brand-magenta);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #5e6d82;
    font-size: 0.9rem;
}

/* CINTA DE INDUSTRIAS */
.clients-section {
    padding: 40px 0;
    background: var(--brand-gradient); 
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.3); /* Resplandor tecnológico */
    border-top: none;
    margin-top: 0;
}

.clients-title {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    color: rgba(255, 255, 255, 0.9); /* Blanco semitransparente */
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: calc(250px * 14); 
    animation: scroll 20s linear infinite;
}

.client-logo {
    width: 250px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s;
    cursor: default;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.client-logo:hover {
    color: #ffffff;
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* SECCIÓN SOLICITUD DE CATÁLOGO */
.catalog-cta {
    padding: 80px 5%;
    background-color: #050a19;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 195, 255, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.catalog-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.catalog-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.catalog-content p {
    font-size: 1.1rem;
    color: #a0aab5;
    margin-bottom: 15px;
    line-height: 1.6;
}

.restricted-note {
    font-size: 0.95rem !important;
    color: var(--brand-magenta) !important;
    font-weight: bold;
    margin-bottom: 35px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #050a19;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-catalog:hover {
    transform: scale(1.05);
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 0 40px rgba(0, 195, 255, 0.6);
    border: none;
}

.btn-catalog i {
    font-size: 1.4rem;
}

/* --- RESPONSIVE / MÓVIL --- */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 140px 5% 60px 5%;
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        border-left: none;
        padding-left: 0;
        margin-bottom: 30px;
        font-size: 1rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .btn-secondary, .btn-primary {
        margin-left: 0;
        width: 100%;
        max-width: 300px;
    }

    .radar-container {
        display: none; 
    }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh; 
        top: 0;
        background-color: var(--text-primary); 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%; 
        transform: translateX(100%); 
        transition: transform 0.5s ease-in;
        z-index: 998; 
    }

    .nav-links li {
        margin: 30px 0;
        opacity: 0; 
    }

    .nav-links a {
        color: white; 
        font-size: 1.2rem;
    }

    .mobile-menu-icon {
        display: block !important;
        cursor: pointer;
        z-index: 999; 
        font-size: 1.8rem;
        color: var(--text-primary); 
        transition: all 0.3s ease;
    }

    .nav-active {
        transform: translateX(0%); 
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    
    .toggle-icon {
        transform: rotate(90deg);
        color: var(--brand-cyan);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* =========================================
   NUEVOS ESTILOS (Preloader, Typewriter, Counters)
   ========================================= */

/* --- 1. PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary); /* Fondo azul oscuro */
    z-index: 9999; /* Encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Clase para ocultarlo con JS */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.radar-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 195, 255, 0.2);
    border-top: 3px solid var(--brand-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-family: 'Rajdhani', sans-serif;
    color: white;
    letter-spacing: 3px;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- 2. CURSOR TYPEWRITER --- */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--brand-magenta);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* =========================================
   EFECTOS FINALES (Barra Scroll + Tilt 3D)
   ========================================= */

/* 1. BARRA DE PROGRESO SUPERIOR */
.scroll-line {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--brand-gradient); /* Usa tu degradado oficial */
    width: 0%; /* Empieza vacía */
    z-index: 10001; /* Encima del menú incluso */
    box-shadow: 0 0 10px var(--brand-cyan);
    transition: width 0.1s;
}

/* 2. AJUSTE PARA EL TILT 3D */
/* Esto ayuda a que el efecto 3D se vea profundo */
.portfolio-item {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Hacemos que la imagen y el texto "floten" un poco separados del fondo */
.image-box, .item-info {
    transform: translateZ(20px); /* Los empuja hacia afuera en 3D */
}

