/*
Theme Name: ServiGlobalJC - Portafolio Tecnológico
Author: Jose Gregorio Carpio
Description: Tema personalizado para servicios de Redes, Fibra Óptica y Desarrollo Web.
*/

/* ==========================================================================
   VARIABLES Y BASE
   ========================================================================== */
:root {
    --primary-tech: #0d6efd;    /* Azul Mikrotik/Ubiquiti */
    --accent-tech: #00d4ff;     /* Cian para resaltar (JC) */
    --dark-bg: #0b0e11;        /* Negro profundo consola */
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}


/* =============================================================
   BANNER HERO - SERVIGLOBALJC
   ============================================================= */
.hero-section {
    position: relative;
    min-height: 80vh;
    background-color: var(--dark-bg);
    /* Puedes cambiar esta URL por una imagen de fibra óptica o un rack de servidores */
    background-image: linear-gradient(rgba(11, 14, 17, 0.8), rgba(11, 14, 17, 0.8)), 
                      url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #f8f9fa, transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.25rem;
    max-width: 600px;
}

/* Animación para el icono tech */
.hero-image-container i {
    font-size: 15rem;
    filter: drop-shadow(0 0 20px var(--primary-tech));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Botones personalizados */
.btn-primary {
    background-color: var(--primary-tech);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-tech);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ==========================================================================
   NAVEGACIÓN (HEADER) - SERVIGLOBALJC
   ========================================================================== */
.navbar-serviglobal {
    background-color: var(--dark-bg) !important;
    border-bottom: 4px solid var(--primary-tech) !important;
    padding: 1rem 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.navbar-brand-global {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.highlight-jc {
    color: var(--accent-tech);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo:hover { transform: scale(1.05); }

/* ==========================================================================
   MENÚ DINÁMICO (BOOTSTRAP + WP)
   ========================================================================== */

/* Estilo para los enlaces del menú */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 8px 15px !important;
    position: relative;
    transition: all 0.3s ease;
}

/* Línea inferior tecnológica (Efecto Hover) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 15px;
    background-color: var(--accent-tech);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-tech) !important;
    transform: translateY(-2px);
}

/* Ajuste móvil */
@media (max-width: 991.98px) {
    .navbar-nav { padding-top: 1rem; }
    .navbar-nav .nav-link::after { display: none; }
    .navbar-nav .nav-link { padding: 10px 0 !important; }
}

/* =============================================================
   OPTIMIZACIÓN DE WIDGETS FOOTER - SERVIGLOBALJC
   ============================================================= */

/* Títulos de los Widgets */
footer h2, footer h5, footer .widgettitle {
    color: var(--accent-tech) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: none; /* O uppercase si prefieres */
}

/* Limpieza de listas en Widgets (Especialidades, Contacto) */
footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer ul li {
    position: relative;
    padding-left: 0;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Añadir un pequeño indicador tech antes de cada item (opcional) */
footer .widget_nav_menu ul li::before,
footer .widget_text ul li::before {
    content: "›";
    color: var(--primary-tech);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Estilo para los enlaces dentro de los widgets (el número de teléfono, etc) */
footer a {
    color: #fff !important;
    text-decoration: none !important;
    transition: 0.3s ease;
}

footer a:hover {
    color: var(--accent-tech) !important;
}

/* Ajuste para los Iconos Sociales (si usas un widget de iconos) */
.social-icons-footer a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icons-footer a:hover {
    transform: translateY(-3px);
}


/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
footer.bg-dark {
    border-top: 4px solid var(--primary-tech) !important;
}

footer .text-white-50, 
footer .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.85rem;
}

footer ul { list-style: none; padding: 0; }
footer ul li { color: #d1d1d1 !important; margin-bottom: 10px; }


/* ==========================================================================
   COMPONENTES TÉCNICOS (GALERÍA Y ETIQUETAS)
   ========================================================================== */

.post-tags a, aside .tag-cloud-link {
    display: inline-block;
    background: #e9ecef;
    color: var(--primary-tech) !important;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-decoration: none;
    margin-bottom: 5px;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.post-tags a:hover {
    background: var(--primary-tech);
    color: #fff !important;
}

.wp-block-gallery .wp-block-image {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.wp-block-gallery .wp-block-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-tech);
}

.lum-lightbox { background: rgba(11, 14, 17, 0.95) !important; }
.lum-img { border: 3px solid var(--primary-tech); border-radius: 4px; }

/* Efecto de zoom en las imágenes del portafolio */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15) !important;
}

.card:hover img {
    transform: scale(1.1);
}