/* Importamos las variables globales */
@import url('variables.css');

body {
    background-color: var(--color-fondo, #ffffff);
    color: var(--color-texto, #333333);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================================
   1. NAVBAR DINÁMICO (Premium)
========================================= */
.navbar-custom {
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
    transition: all 0.4s ease;
}
.navbar-custom .navbar-brand { color: white; font-weight: 800; letter-spacing: 2px; font-size: 1.4rem; }
.navbar-custom .nav-link {
    color: rgba(255,255,255,0.8); font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 1px; padding: 8px 16px !important; position: relative; transition: 0.3s;
}
.navbar-custom .nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
    background-color: var(--color-primario, #FF6B00); transition: all 0.3s ease; transform: translateX(-50%);
}
.navbar-custom .nav-link:hover { color: white; }
.navbar-custom .nav-link:hover::after { width: 80%; }

/* =========================================
   2. HERO SECTION
========================================= */
.hero-section {
    background-color: var(--color-secundario, #0a0f14);
    color: white; padding: 120px 0; text-align: center;
    border-bottom: 6px solid var(--color-primario, #FF6B00);
}
.cifra-poder { color: var(--color-primario, #FF6B00); font-weight: bold; font-size: 3.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

/* --- LÁSER Y HUD --- */
.red-laser-scan {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, #FF3E3E, transparent);
    box-shadow: 0 0 15px #FF3E3E; opacity: 0; z-index: 2;
}
.hud-corner { position: absolute; width: 30px; height: 30px; border: 2px solid rgba(255,255,255,0.1); z-index: 5; }
.tl { top: 40px; left: 40px; border-right: 0; border-bottom: 0; }
.tr { top: 40px; right: 40px; border-left: 0; border-bottom: 0; }
.bl { bottom: 40px; left: 40px; border-right: 0; border-top: 0; }
.br { bottom: 40px; right: 40px; border-left: 0; border-top: 0; }
.pulse-red {
    display: inline-block; width: 8px; height: 8px; background: #FF3E3E; border-radius: 50%;
    margin-right: 10px; box-shadow: 0 0 10px #FF3E3E; animation: blink-red 0.8s infinite;
}
@keyframes blink-red { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.float-data {
    position: absolute; font-family: monospace; font-size: 0.7rem; color: #FF6B00;
    background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 3px; opacity: 0;
}
.d1 { top: 20%; right: 0; }
.d2 { bottom: 10%; left: 0; }

/* =========================================
   3. BOTONES GLOBALES
========================================= */
.btn-naranja {
    background-color: var(--color-primario, #FF6B00) !important;
    color: white !important; font-weight: bold; border: none; padding: 12px 30px;
    border-radius: 5px; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-naranja:hover {
    background-color: #e65c00 !important; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* =========================================
   4. NUEVOS PROYECTOS PREMIUM (Tech UI)
========================================= */
.seccion-proyectos {
    background-color: #0a0f14; 
    padding: 100px 0;
}

.header-proyectos { text-align: center; margin-bottom: 60px; }
.subtitulo-tech { color: var(--color-primario, #FF6B00); letter-spacing: 4px; font-size: 0.75rem; font-weight: 800; margin-bottom: 10px; }
.titulo-seccion { color: #ffffff; font-size: 2.8rem; font-weight: 800; letter-spacing: -1.5px; }
.decoracion-naranja { width: 45px; height: 3px; background: var(--color-primario, #FF6B00); margin: 15px auto 0; border-radius: 10px; }

.card-proyecto-pro {
    background: rgba(20, 25, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-proyecto-pro:hover {
    transform: translateY(-10px);
    border-color: var(--color-primario, #FF6B00);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255, 107, 0, 0.15);
}

.img-wrapper { position: relative; height: 250px; overflow: hidden; background: #ffffff; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card-proyecto-pro:hover .img-wrapper img { transform: scale(1.08); }

.overlay-img-oscuro {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(10, 15, 20, 0.4));
    pointer-events: none;
}

.cliente-tag {
    position: absolute; top: 20px; right: 20px;
    background: rgba(10, 15, 20, 0.85); backdrop-filter: blur(8px); color: var(--color-primario, #FF6B00);
    padding: 7px 15px; border-radius: 10px; font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
    border: 1px solid rgba(255, 107, 0, 0.3); z-index: 2;
}

.contenido-proyecto { padding: 30px; }
.meta-data { display: flex; align-items: center; margin-bottom: 12px; }
.linea-indicadora { width: 20px; height: 2px; background: var(--color-primario, #FF6B00); margin-right: 12px; }
.meta-data span { color: rgba(255, 255, 255, 0.4); font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; }
.nombre-proyecto { color: #ffffff; font-weight: 700; font-size: 1.3rem; margin-bottom: 15px; letter-spacing: -0.5px; }
.resumen-proyecto { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }

.placeholder-img {
    width: 100%; height: 100%; background: #161b22; display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.05);
}

.footer-proyectos { text-align: center; margin-top: 60px; }
.btn-explorar {
    color: #94a3b8; text-decoration: none; font-size: 0.75rem; font-weight: 800; letter-spacing: 2px;
    padding: 14px 35px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; transition: 0.3s; display: inline-block;
}
.btn-explorar:hover { color: #ffffff; border-color: var(--color-primario, #FF6B00); background: rgba(255, 107, 0, 0.05); }
.msg-vacio { color: rgba(255, 255, 255, 0.3); font-size: 0.9rem; }

/* =========================================
   5. FOOTER
========================================= */
.footer-custom { background-color: #1a252f; border-top: 4px solid var(--color-primario, #FF6B00); padding-top: 60px; padding-bottom: 20px; }
.footer-custom p, .footer-custom span { color: #adb5bd !important; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #adb5bd; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--color-primario, #FF6B00); transform: translateX(5px); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.05); color: white; border-radius: 50%; transition: 0.3s; text-decoration: none; font-size: 1.2rem; }
.social-links a:hover { background-color: var(--color-primario, #FF6B00); transform: translateY(-3px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.contact-info i { color: var(--color-primario, #FF6B00); width: 25px; }


/* =========================================
   BOTÓN WHATSAPP FLOTANTE
========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

/* En celulares lo hacemos un poco más chico y pegado al borde */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}