/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    --neon-blue: #00f3ff;    /* Cian Eléctrico */
    --neon-purple: #bc13fe;  /* Violeta Gamer */
    --neon-green: #0aff00;   /* Verde Matrix */
    --bg-dark: #05070a;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}


* { margin: 0; padding: 0; box-sizing: border-box; }


body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

/* =========================================
   FONDO GAMER (BACKGROUND)
   ========================================= */
.cyber-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    
    background-image: 
        /* Capa oscura para leer el texto (85% a 95%) */
        linear-gradient(rgba(5, 7, 10, 0.85), rgba(5, 7, 10, 0.95)),
        /* Imagen de fondo */
        url('https://images.unsplash.com/photo-1598550476439-cce1a6dc419c?q=80&w=2070&auto=format&fit=crop');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.glow-center {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, transparent 70%);
    filter: blur(80px); z-index: -1;
}

/* =========================================
   NAVBAR (MENÚ SUPERIOR)
   ========================================= */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: fixed; width: 100%; top: 0; z-index: 1000;
}

.brand {
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-btn {
    background: transparent; border: 1px solid var(--neon-blue); color: var(--neon-blue);
    padding: 8px 20px; font-family: 'Orbitron', sans-serif; text-transform: uppercase;
    font-size: 0.8rem; cursor: pointer; transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    text-decoration: none;
}
.nav-btn:hover {
    background: var(--neon-blue); color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.brand-link {
    text-decoration: none; /* Sin subrayado */
    color: white;          /* Color del texto principal */
    font-weight: bold;     /* Asegura que se vea grueso */
    cursor: pointer;       /* Manito al pasar el mouse */
}

/* =========================================
   HERO SECTION (ENCABEZADO PRINCIPAL)
   ========================================= */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: space-between;
    padding: 120px 10% 50px 10%; position: relative;
}

.hero-text { max-width: 600px; z-index: 2; }

h1 {
    font-family: 'Orbitron', sans-serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px;
    text-transform: uppercase;
}

/* Efecto de energía en el texto "Soluciones Tecnológicas" */
h1 span {
    background: linear-gradient(90deg, var(--neon-blue) 0%, #ffffff 25%, var(--neon-purple) 50%, #ffffff 75%, var(--neon-blue) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    animation: holographic-flow 3s linear infinite;
    font-weight: 900;
}

.hero-p { 
    color: var(--text-gray); font-size: 1.1rem; margin-bottom: 40px; 
    border-left: 3px solid var(--neon-purple); padding-left: 20px; 
}

.cta-button {
    padding: 15px 40px; background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: white; border: none; font-weight: bold; font-family: 'Orbitron', sans-serif; letter-spacing: 1px;
    cursor: pointer; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s; text-decoration: none; display: inline-block;
}
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 0 30px rgba(188, 19, 254, 0.6); }

/* =========================================
   REACTOR CIBERNÉTICO (ANIMACIÓN 3D)
   ========================================= */
.reactor-container {
    width: 450px; height: 450px;
    position: relative; display: flex; justify-content: center; align-items: center;
    animation: float-reactor 6s ease-in-out infinite;
}

.reactor-ring {
    position: absolute; border-radius: 50%;
    border: 2px solid transparent; 
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.ring-1 {
    width: 100%; height: 100%;
    border-top: 4px solid var(--neon-blue); border-bottom: 4px solid var(--neon-purple);
    animation: spin-right 10s linear infinite; filter: drop-shadow(0 0 10px var(--neon-blue));
}
.ring-2 {
    width: 80%; height: 80%;
    border-left: 4px solid var(--neon-green); border-right: 4px solid var(--neon-blue);
    animation: spin-left 7s linear infinite;
}
.ring-3 {
    width: 60%; height: 60%;
    border-top: 2px solid #fff; border-bottom: 2px solid #fff; opacity: 0.5;
    animation: spin-right 4s linear infinite;
}
.ring-4 {
    width: 120%; height: 120%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: spin-left 20s linear infinite;
}

/* NÚCLEO CON IMAGEN OSCURECIDA */
.reactor-core {
    width: 220px; height: 220px;
    background: transparent; border-radius: 0; box-shadow: none; 
    display: flex; justify-content: center; align-items: center; z-index: 10;
    animation: float-img 4s ease-in-out infinite;
}

/* Selector específico para oscurecer la imagen a la fuerza */
.reactor-core img {
    width: 100%; height: auto; max-height: 250px; object-fit: contain;
    /* Oscurece al 30%, quita saturación y agrega brillo externo */
    filter: brightness(0.3) grayscale(0.4) drop-shadow(0 0 15px #00f3ff) !important;
    position: relative; z-index: 5; transition: 0.5s;
}

/* Al pasar el mouse, la imagen se ilumina */
.reactor-container:hover .reactor-core img {
    filter: brightness(1) grayscale(0) drop-shadow(0 0 25px #bc13fe) !important;
}

/* =========================================
   BARRA DE ESTADÍSTICAS (HUD FUTURISTA)
   ========================================= */
.stats-bar {
    background: rgba(10, 10, 16, 0.8);
    padding: 40px 5%; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px;
    border-top: 1px solid rgba(0, 243, 255, 0.3); border-bottom: 1px solid rgba(188, 19, 254, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}

/* Efecto de luz de escáner pasando */
.stats-bar::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: light-sweep 4s linear infinite;
}

.stat-item { text-align: center; width: 200px; position: relative; z-index: 2; }

.stat-number { 
    font-family: 'Orbitron', sans-serif; font-size: 3rem; color: white; font-weight: 900; 
    text-shadow: 0 0 10px var(--neon-blue); animation: pulse-number 2s ease-in-out infinite;
}
.stat-label { 
    color: var(--text-gray); text-transform: uppercase; letter-spacing: 2px; 
    font-size: 0.8rem; margin-top: 10px; font-weight: bold;
}

/* Barras de progreso */
.tech-progress-track {
    width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1);
    margin: 10px 0; border-radius: 3px; overflow: hidden; position: relative;
}
.tech-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-blue); border-radius: 3px; width: 0;
    animation: load-bar 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1) forwards;
}

/* =========================================
   IMÁGENES AL FONDO DE LAS TARJETAS
   ========================================= */

/* 1. Ajuste a la tarjeta padre */
.tech-card {
    /* Esto es VITAL para que la imagen no se salga de las esquinas redondas */
    overflow: hidden !important; 
    display: flex;
    flex-direction: column; /* Asegura que la imagen se vaya al fondo */
}

/* 2. El contenedor de la imagen */
.card-image-bottom {
    margin-top: auto;   /* Empuja la imagen al fondo si hay poco texto */
    
    /* TRUCO DE MAGIA: Márgenes negativos para anular el padding de la tarjeta */
    /* Como tu tarjeta tiene padding: 50px 40px, restamos eso: */
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -50px; /* Pega la imagen al borde inferior */
    
    height: 160px;      /* Altura fija para que todas se vean iguales */
    position: relative;
    border-top: 1px solid rgba(0, 243, 255, 0.2); /* Una línea de neón sutil arriba */
}

.card-image-bottom img {
    width: 100%;
    height: 100%;
    
    /* CAMBIO CLAVE: De 'cover' a 'contain' */
    object-fit: contain !important; 
    
    background-color: rgba(0,0,0,0.5); /* Color de fondo para rellenar los huecos vacíos */
    opacity: 0.8;
    transition: 0.4s ease;
}

/* 4. Efecto al pasar el mouse sobre la tarjeta */
.tech-card:hover .card-image-bottom img {
    opacity: 1;            /* Se ilumina */
    filter: grayscale(0);  /* Se pone a todo color */
    transform: scale(1.1); /* Se acerca un poco */
}





/* =========================================
   SECCIÓN DE SERVICIOS (GRID 3x3)
   ========================================= */
.services { padding: 100px 5%; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--neon-purple); letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }

.cards-grid {
    display: grid;
    /* Grid optimizado para 3 tarjetas grandes por fila */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px; max-width: 1400px; margin: 0 auto;
}

.tech-card {
    background: var(--bg-panel); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05); padding: 50px 40px; 
    border-radius: 15px; transition: 0.4s; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-start; min-height: 320px;
}

.tech-card:hover {
    transform: translateY(-10px); border-color: var(--neon-blue);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
}
.tech-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s; pointer-events: none;
}
.tech-card:hover::before { left: 100%; }

.icon-box { font-size: 3rem; margin-bottom: 25px; transition: 0.3s; }
.tech-card:hover .icon-box { transform: scale(1.2); }
.icon-blue { color: var(--neon-blue); } .icon-purple { color: var(--neon-purple); } .icon-green { color: var(--neon-green); }

.tech-card h3 { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; margin-bottom: 20px; }
.tech-card p { color: var(--text-gray); font-size: 1.05rem; line-height: 1.7; }



/* =========================================
   KEYFRAMES (ANIMACIONES)
   ========================================= */
@keyframes holographic-flow { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
@keyframes spin-right { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-left { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes float-reactor { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
@keyframes float-img { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.02); } }
@keyframes load-bar { from { width: 0; opacity: 0; } to { opacity: 1; } }
@keyframes pulse-number { 0%, 100% { transform: scale(1); text-shadow: 0 0 10px var(--neon-blue); } 50% { transform: scale(1.05); text-shadow: 0 0 20px var(--neon-blue), 0 0 10px white; } }
@keyframes light-sweep { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }

/* =========================================
   RESPONSIVE (MOVIL)
   ========================================= */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; height: auto; padding-top: 120px; }
    .hero-text { margin-bottom: 50px; }
    .reactor-container { width: 300px; height: 300px; margin: 0 auto 50px auto; }
    h1 { font-size: 2.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
}

/* =========================================
/* =========================================
   NUEVO BANNER ESTÁTICO CON GLOW INDIVIDUAL
   ========================================= */
.static-banner {
    width: 100%;
    background: rgba(10, 10, 16, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px 0; /* Un poco más de espacio vertical */
    margin: 60px 0;
    border-top: 2px solid var(--neon-blue);
    border-bottom: 2px solid var(--neon-purple);
    box-shadow: 0 -10px 20px rgba(0, 243, 255, 0.1), 0 10px 20px rgba(188, 19, 254, 0.1);
    /* Centrado del contenedor principal */
    display: flex;
    justify-content: center;
}

.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px; /* Más espacio entre logos para que se vea la luz */
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* =========================================
   CORRECCIÓN DE LUZ (INTENSIDAD ALTA)
   ========================================= */

/* 1. EL CONTENEDOR (La Caja) */
.logo-wrapper {
    position: relative; /* OBLIGATORIO para que lo de adentro se posicione bien */
    width: 140px;       /* Un poco más grande para que quepa la luz */
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px;       /* Separación extra */
}

/* 2. LA LUZ (El Fondo Brillante) */
.logo-wrapper::before {
    content: '';        /* SIN ESTO NO APARECE NADA */
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 100%;        /* Ocupa todo el espacio de la caja */
    height: 100%;
    border-radius: 50%;
    
    /* COLOR FUERTE DIRECTO (Sin variables para probar) */
    background: radial-gradient(circle, #bc13fe 0%, transparent 70%);
    
    filter: blur(20px); /* Difuminado */
    opacity: 0.8;       /* ¡ALTA VISIBILIDAD! (Antes era 0.3) */
    z-index: 0;         /* Nivel 0 (Fondo) */
    
    transition: 0.4s ease;
}

/* 3. LA IMAGEN (El Logo) */
.brand-logo {
    position: relative;
    z-index: 10;        /* Nivel 10 (Encima de la luz) */
    
    width: 90px;        /* Un poco más pequeña que la caja para ver la luz alrededor */
    height: 90px;
    object-fit: contain;
    
    filter: grayscale(1) brightness(1); /* Quitamos oscuridad para probar */
    transition: 0.4s ease;
}

/* 4. EFECTO AL PASAR EL MOUSE */
.logo-wrapper:hover::before {
    background: radial-gradient(circle, #00f3ff 0%, transparent 70%); /* Cambia a Azul Cian */
    opacity: 1;         /* Brillo máximo */
    filter: blur(25px); /* Más expansión */
    transform: translate(-50%, -50%) scale(1.2); /* Crece la luz */
}

.logo-wrapper:hover .brand-logo {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .banner-container { gap: 40px; }
    .logo-wrapper { width: 90px; height: 90px; }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 50px 10%; text-align: center; border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem; color: var(--text-gray); margin-top: 50px;
}
.socials { margin-top: 20px; }
.socials i { margin: 0 10px; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.socials i:hover { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }

/* =========================================
   LÍNEAS DIVISORIAS (GRIS CLARO)
   ========================================= */

/* 1. Header (Barra de Navegación) - Línea Abajo */
nav {
    border-bottom: 1px solid #595959 !important; /* Gris claro */
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05); /* Un brillo suave extra */
}

/* 2. Footer (Pie de página) - Línea Arriba */
footer {
    border-top: 1px solid #595959 !important; /* Gris claro */
}

/* 3. Tarjetas de Servicios - Línea Abajo */
.tech-card {
    /* Agregamos la línea abajo */
    border-bottom: 4px solid #dcdcdc !important; 
    
    /* Opcional: Si quieres que toda la tarjeta tenga borde gris, usa esta línea en su lugar:
       border: 1px solid #dcdcdc !important; 
    */
}

/* PEQUEÑO AJUSTE PARA QUE SE VEA LA LÍNEA DE LA TARJETA */
/* Como pusimos una imagen al fondo de la tarjeta, necesitamos que la línea quede POR ENCIMA */
.tech-card {
    position: relative;
    z-index: 1;
}

/* =========================================
   SCROLLBAR GAMER (BARRA DE DESPLAZAMIENTO)
   ========================================= */

/* 1. Configuración para Firefox (Navegadores Mozilla) */
html {
    scrollbar-width: thin; /* Barra delgada */
    scrollbar-color: var(--neon-blue) var(--bg-dark); /* Color del "dedo" y del fondo */
}

/* 2. Configuración para Chrome, Edge, Safari (Webkit) */

/* El ancho de la barra vertical */
::-webkit-scrollbar {
    width: 12px; 
}

/* El "Carril" (Fondo de la barra) */
::-webkit-scrollbar-track {
    background: #0a0a0f; /* Un negro un poco más claro que el fondo */
    border-left: 1px solid rgba(255, 255, 255, 0.05); /* Línea sutil a la izquierda */
}

/* El "Pulgar" (La parte que mueves) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple)); /* Degradado Azul a Morado */
    border-radius: 6px; /* Bordes redondos */
    border: 3px solid #0a0a0f; /* Borde oscuro para efecto "flotante" */
}

/* Efecto cuando pones el mouse encima de la barra */
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue); /* Se pone azul sólido */
    box-shadow: 0 0 15px var(--neon-blue); /* ¡Brilla como un sable de luz! */
}

/* =========================================
   BOTÓN WHATSAPP NEÓN
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Verde WhatsApp Original */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 0 10px #25d366; /* Brillo inicial */
    z-index: 1000; /* Siempre encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    
    /* Animación de latido */
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Verde más oscuro al tocar */
    transform: scale(1.1); /* Crece un poco */
    box-shadow: 0 0 30px #25d366; /* ¡Super Brillo! */
}

/* Animación del Latido */
@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);
    }
}

/* Ajuste para celulares (para que no tape contenido) */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}

/* =========================================
   SECCIÓN SAP BUSINESS ONE (GOLD EDITION)
   ========================================= */
:root {
    --neon-gold: #ffb700; /* Nuevo color para SAP */
}

.sap-section {
    padding: 100px 10%;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* Fondo de Hexágonos (Efecto Base de Datos) */
.hex-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(var(--neon-gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    z-index: 0;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.sap-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    background: rgba(10, 10, 16, 0.8);
    border: 1px solid rgba(255, 183, 0, 0.2); /* Borde dorado sutil */
    border-radius: 20px;
    padding: 60px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(255, 183, 0, 0.05);
}

/* --- LADO IZQUIERDO: TEXTO --- */
.sap-content { width: 55%; }

.sap-badge {
    display: inline-block;
    background: rgba(255, 183, 0, 0.1);
    color: var(--neon-gold);
    padding: 5px 12px;
    border-radius: 4px;
    font-family: 'Orbitron';
    font-size: 0.8rem;
    letter-spacing: 2px;
    border: 1px solid var(--neon-gold);
    margin-bottom: 20px;
}

.sap-container h2 {
    font-family: 'Orbitron';
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
}

.sap-desc {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    border-left: 3px solid var(--neon-gold);
    padding-left: 20px;
}

/* Grid de Características */
.sap-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--neon-gold);
    font-size: 1.2rem;
    margin-right: 15px;
    text-shadow: 0 0 10px var(--neon-gold);
}

/* Botón Dorado */
.sap-btn {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    color: var(--neon-gold);
    border: 1px solid var(--neon-gold);
    font-family: 'Orbitron';
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.sap-btn:hover {
    background: var(--neon-gold);
    color: black;
    box-shadow: 0 0 30px var(--neon-gold);
}


/* --- LADO DERECHO: VISUALIZACIÓN --- */
.sap-visual {
    width: 40%;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Círculos Giratorios */
.holo-circle-outer {
    position: absolute; width: 250px; height: 250px;
    border: 2px dashed rgba(255, 183, 0, 0.3);
    border-radius: 50%;
    animation: spin-right 20s linear infinite;
}
.holo-circle-inner {
    position: absolute; width: 180px; height: 180px;
    border-top: 4px solid var(--neon-gold);
    border-bottom: 4px solid var(--neon-gold);
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-radius: 50%;
    animation: spin-left 10s linear infinite;
    box-shadow: 0 0 20px rgba(255, 183, 0, 0.2);
}

/* EL CONTENEDOR (La caja invisible central) */
.sap-icon-center {
    /* Definimos un tamaño cuadrado fijo que quepa dentro de los círculos */
    width: 140px;
    height: 140px;
    
    /* Centramos la imagen dentro de esta caja */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Aseguramos que esté por encima de los círculos giratorios */
    z-index: 10;
    position: relative; /* Necesario para el z-index */
}

/* LA IMAGEN (El logo) */
.sap-core-logo {
    /* Ocupa todo el espacio disponible en el contenedor */
    width: 100%;
    height: 100%;
    
    /* LA CLAVE: Ajusta la imagen dentro sin deformarla */
    object-fit: contain;
    
    /* Efectos de brillo dorado y animación */
    /* Si tu logo NO es blanco, descomenta la siguiente línea para forzarlo a blanco: */
    /* filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--neon-gold)); */
    
    /* Si tu logo YA es blanco, usa solo esta línea: */
    filter: drop-shadow(0 0 15px var(--neon-gold));
    
    animation: pulse-logo 3s infinite;
}

/* Animación de latido (se mantiene igual) */
@keyframes pulse-logo {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 10px var(--neon-gold)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px var(--neon-gold)); }
    100% { transform: scale(0.95); filter: drop-shadow(0 0 10px var(--neon-gold)); }
}

/* Tarjetas Flotantes */
.float-card {
    position: absolute;
    background: black;
    border: 1px solid var(--neon-gold);
    color: var(--neon-gold);
    padding: 5px 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 183, 0, 0.3);
}
.card-1 { top: 20px; right: 0; animation: floatIcon 4s infinite; }
.card-2 { bottom: 40px; left: 0; animation: floatIcon 5s infinite reverse; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .sap-container { flex-direction: column; padding: 40px 20px; }
    .sap-content { width: 100%; text-align: center; }
    .sap-visual { width: 100%; margin-top: 50px; }
    .sap-desc { border-left: none; border-bottom: 3px solid var(--neon-gold); padding-bottom: 20px; padding-left: 0; }
    .sap-features { grid-template-columns: 1fr; text-align: left; }
}

/* =========================================
   AJUSTE DE ESPACIOS (QUITA HUECOS VACÍOS)
   ========================================= */

/* 1. Quitamos espacio abajo de la sección SAP */
.sap-section {
    padding-bottom: 20px !important; /* Antes tenía 100px */
    margin-bottom: 0 !important;
}

/* 2. Quitamos espacio arriba de la barra de logos */
.static-banner {
    margin-top: 0 !important;    /* Antes tenía 60px */
    padding-top: 30px !important; /* Ajuste suave */
}


/* =========================================
   REPARACIÓN URGENTE MÓVIL (SAP)
   ========================================= */
@media only screen and (max-width: 900px) {

    /* 1. CONTENEDOR PRINCIPAL */
    .sap-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 30px 15px !important;
        background: #050505 !important; /* Fondo negro puro para que mezcle bien */
        border: 1px solid var(--neon-gold) !important;
        width: 90% !important;
        margin: 20px auto !important;
    }

    /* 2. EL ÁREA VISUAL (Holograma) */
    .sap-visual {
        width: 100% !important;
        height: 150px !important; /* Altura controlada */
        margin-top: 20px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* 3. FORZAR TAMAÑO DEL LOGO (Lo más importante) */
    .sap-icon-center {
        width: 80px !important;      /* Tamaño fijo PEQUEÑO */
        height: 80px !important;
        min-width: 80px !important;
        border-radius: 50%;          /* Asegura que sea redondo */
        overflow: hidden;            /* Recorta lo que sobre */
        margin: 0 auto !important;
        background: black !important;
    }

    /* 4. ARREGLAR LA IMAGEN (Quitar el fondo blanco con CSS) */
    .sap-core-logo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Ajuste para llenar el círculo */
        
        /* MAGIA: Invierte colores (Blanco->Negro, Azul->Dorado) */
        filter: invert(1) hue-rotate(180deg) brightness(1.5) !important; 
    }

    /* 5. CÍRCULOS DECORATIVOS (Más pequeños) */
    .holo-circle-outer, .holo-circle-inner {
        display: none !important; /* Los ocultamos en móvil para limpiar el diseño */
    }

    /* 6. TEXTO */
    .sap-desc {
        font-size: 0.9rem !important;
        color: #ccc !important;
        padding: 0 !important;
        border: none !important;
    }
}

