/* =========================================
   VARIABLES GLOBALES (Paleta JK Energy)
========================================= */
:root {
    --jk-green-dark: #078D32;
    --jk-green-light: #2AAE28;
    --jk-aqua: #66E5FB;
    --jk-blue: #1176F1;
    --jk-dark: #121212;
    --jk-gray: #808080;
}

body { 
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif; 
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased; /* Hace que la fuente se vea más nítida en pantallas HD */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px; /* Le da ese toque compacto y moderno */
}

/* =========================================
   NAVBAR (Efecto Vidrio / Blur Mejorado)
========================================= */
.navbar-jk {
    background-color: rgba(255, 255, 255, 0.75); /* Más transparente para que se note el blur */
    backdrop-filter: blur(15px); /* Blur más fuerte */
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--jk-green-light) !important; }

/* =========================================
   BOTONES Y UTILIDADES
========================================= */
.btn-jk-primary {
    background-color: var(--jk-green-dark);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}
.btn-jk-primary:hover {
    background-color: var(--jk-green-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 174, 40, 0.3);
}

.text-aqua { color: var(--jk-aqua); }
.text-green { color: var(--jk-green-dark); }
.bg-dark-jk { background-color: var(--jk-dark); }

/* =========================================
   SECTION (Landing Page)
========================================= */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    height: 85vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-section {
        height: 90vh;
        background-attachment: scroll;
    }
}

/* =========================================
   SECCIÓN FUTURISTA (Dark Mode Glassmorphism)
========================================= */
.dark-glass-section {
    background-color: var(--jk-dark);
    position: relative;
    overflow: hidden;
}

.dark-glass-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 229, 251, 0.05) 0%, rgba(18,18,18,0) 70%);
    z-index: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 229, 251, 0.1);
    border-radius: 1rem;
    transition: all 0.4s ease;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 229, 251, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(102, 229, 251, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--jk-green-dark), var(--jk-green-light));
    color: white;
    margin-bottom: 1.5rem;
}

/* =========================================
   PORTAFOLIO Y FOOTER
========================================= */
.portfolio-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}
.portfolio-card img {
    transition: transform 0.5s ease;
}
.portfolio-card:hover img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18,18,18,0.9), transparent);
    padding: 2rem 1.5rem;
    color: white;
}

/* Redes sociales en footer */
.social-icon {
    color: #6c757d; /* Gris de Bootstrap */
    transition: color 0.3s ease;
}
.social-icon:hover {
    color: var(--jk-aqua);
}

/* =========================================
   MAPA INTERACTIVO (Nodos Pulsantes)
========================================= */
.map-container {
    position: relative;
    max-width: 500px;
    min-height: 450px; /* Evita que colapse si la imagen tarda en cargar */
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.map-bg {
    width: 100%;
    opacity: 1.6; /* Un poco de transparencia para que no robe protagonismo */
    /* El hue-rotate gira los colores. Cambiará tu mapa azul a tonos verdes/aqua */
    filter: hue-rotate(-50deg) saturate(1.2); 
}

.pulse-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--jk-aqua);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(18, 240, 55, 0.7);
    animation: pulse-glow 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pulse-node:hover {
    background-color: var(--jk-green-light);
    transform: translate(-50%, -50%) scale(1.5);
}

.pulse-node.hq {
    background-color: var(--jk-green-light); /* Chiquimula en verde */
    box-shadow: 0 0 0 0 rgb(1, 255, 179);
    width: 20px;
    height: 20px;
    z-index: 10;
}

/* Tooltip personalizado al pasar el mouse */
.pulse-node::after {
    content: attr(data-city);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jk-dark);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    border: 1px solid var(--jk-aqua);
}

.pulse-node:hover::after {
    opacity: 1;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(102, 229, 251, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(102, 229, 251, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 229, 251, 0); }
}