/* Variables corporativas */
:root {
    --azul-jimtech: #1b75bb;  
    --azul-oscuro: #0a2342;   
    --oro-jimtech: #b18d3d;   
    --negro-texto: #2d353a;   
    --blanco: #ffffff;
    --gris-fondo: #f4f7f6;
    --whatsapp-color: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; color: var(--negro-texto); line-height: 1.6; background-color: var(--blanco); }

/* INYECCIÓN: Clase Container que faltaba para centrar todo */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

/* Botón WhatsApp Flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: var(--blanco);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: 0.3s;
    text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.1); background-color: #128c7e; }

/* Navbar Diagonal */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5% 0 0; 
    background: linear-gradient(105deg, var(--blanco) 0%, var(--blanco) 35%, var(--azul-oscuro) 35.1%, var(--azul-oscuro) 100%);
    position: sticky; top: 0; z-index: 1000; height: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.logo-container { padding-left: 3%; height: 100%; display: flex; align-items: center; }
.logo-img { max-height: 85px; width: auto; }
.nav-links { display: flex; list-style: none; }
.nav-links li a { color: var(--blanco); text-decoration: none; margin-left: 2rem; font-weight: 500; transition: 0.3s; }
.nav-links li a:hover { color: var(--oro-jimtech); }

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(to right, rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.4)), url('Imagenes/circuit-cpu.png');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 8%; color: var(--blanco);
}
.hero h1 { font-size: 3.5rem; text-transform: uppercase; margin-bottom: 1rem; }
.btn-primary { display: inline-block; padding: 1rem 2.5rem; background: var(--oro-jimtech); color: var(--blanco); text-decoration: none; font-weight: bold; border-radius: 5px; transition: 0.3s; border: none; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: var(--azul-jimtech); transform: translateY(-3px); }

/* Secciones Generales */
.services-section, .about-section, .projects-section, .support-section, .clients-section, .news-section, .contact-section { padding: 5rem 0; text-align: center; }
.services-grid, .mvo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card, .mvo-card { padding: 2.5rem; background: var(--blanco); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card { border-bottom: 4px solid var(--azul-jimtech); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); border-color: var(--oro-jimtech); }
.icon-container { font-size: 3rem; color: var(--azul-jimtech); margin-bottom: 1rem; }
.mvo-card i { font-size: 2.5rem; color: var(--oro-jimtech); margin-bottom: 1rem; }

/* Estilos de Proyectos */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.project-card { background: var(--blanco); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.project-img-wrapper { position: relative; height: 200px; overflow: hidden; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 35, 66, 0.8); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; color: var(--blanco); font-weight: bold; }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover img { transform: scale(1.1); }
.project-info { padding: 1.5rem; text-align: left; }
.project-info h4 { color: var(--azul-oscuro); margin-bottom: 0.5rem; }

/* Estilos Soporte Remoto */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.support-card { background: var(--blanco); padding: 3rem 2rem; border-radius: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; }
.support-card:hover { transform: translateY(-5px); border-color: var(--oro-jimtech); }
.support-card i { font-size: 3.5rem; color: var(--azul-jimtech); margin-bottom: 1.5rem; }
.support-card h4 { color: var(--azul-oscuro); font-size: 1.5rem; margin-bottom: 1rem; }
.btn-secondary { display: inline-block; padding: 0.7rem 2rem; background: var(--azul-jimtech); color: var(--blanco); text-decoration: none; border-radius: 50px; font-weight: bold; margin-top: 1.5rem; transition: 0.3s; }
.btn-secondary:hover { background: var(--oro-jimtech); }

/* Estadísticas (Contadores Animados) */
.stats-section { background-color: var(--azul-oscuro); color: var(--blanco); padding: 5rem 0; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.stat-card h2 { font-size: 3rem; color: var(--oro-jimtech); margin-bottom: 10px; }
.stat-card p { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

/* Clientes y Noticias */
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4rem; margin-top: 2rem; }
.client-logo img { max-width: 150px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.client-logo img:hover { filter: grayscale(0%); opacity: 1; }
.news-container { display: flex; justify-content: center; margin-top: 2rem; }
.news-card { background: var(--blanco); padding: 2.5rem; border-radius: 8px; border-top: 6px solid var(--azul-jimtech); box-shadow: 0 5px 20px rgba(0,0,0,0.08); width: 100%; max-width: 900px; text-align: left; }
.news-card h3 { color: var(--azul-oscuro); margin-bottom: 10px; font-size: 1.4rem; }

/* Contacto y Footer */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; text-align: left; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.map-container { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.main-footer { background: var(--azul-oscuro); color: var(--blanco); padding: 4rem 0 1rem 0; text-align: center; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { max-height: 60px; }
.social-icons { display: flex; gap: 1.5rem; font-size: 1.5rem; justify-content: center; margin-bottom: 20px; }
.social-icons a { color: var(--blanco); transition: 0.3s; }
.social-icons a:hover { color: var(--oro-jimtech); transform: scale(1.2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; font-size: 0.9rem; }

/* DISEÑO MÓVIL PROFESIONAL */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row; /* Mantiene logo y menú en la misma línea */
        justify-content: space-between;
        padding: 0 20px;
        height: 70px; /* Mucho más delgado */
        background: var(--azul-oscuro); /* Color sólido para mejor lectura */
    }

    .logo-img {
        max-height: 50px; /* Logo más pequeño en celular */
    }

    /* Ocultar menú por defecto */
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--azul-oscuro);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Clase que activaremos con JavaScript */
    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        margin: 15px 0;
        font-size: 1.1rem;
    }

    /* Estilo del botón hamburguesa */
    .menu-toggle {
        display: block;
        color: var(--blanco);
        font-size: 1.8rem;
        cursor: pointer;
    }

    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 0 20px; text-align: center; justify-content: center; }
}

/* Ocultar icono en computadoras */
@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

/* LOGIN Y ADMIN LINK */
.admin-link { color: var(--oro-jimtech) !important; text-decoration: none; font-weight: bold; transition: 0.3s; }
.admin-link:hover { color: var(--blanco) !important; text-decoration: underline; }
.login-body { background: var(--azul-oscuro); display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { background: var(--blanco); padding: 40px; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); text-align: center; max-width: 400px; width: 90%; }
.login-box input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-top: 5px; }
.back-link { display: block; margin-top: 20px; color: var(--azul-jimtech); text-decoration: none; font-size: 0.9rem; }

/* MEJORA: Control específico para el logo del Login */
.login-logo { 
    max-width: 220px; /* Tamaño ideal para el formulario */
    height: auto; 
    margin-bottom: 20px; 
    display: block; 
    margin-left: auto; 
    margin-right: auto;
}

/* INYECCIÓN DASHBOARD */
.admin-body { background-color: #f0f2f5; margin: 0; }
.dashboard-container { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background-color: var(--azul-oscuro); color: var(--blanco); padding: 20px; display: flex; flex-direction: column; }
.sidebar-header { text-align: center; margin-bottom: 30px; }

/* MEJORA: Control específico para el logo del Dashboard */
.admin-logo { 
    width: 100%; 
    max-width: 180px; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
    filter: brightness(0) invert(1); 
}

.sidebar-nav a { color: rgba(255,255,255,0.7); text-decoration: none; padding: 15px; display: block; border-radius: 8px; margin-bottom: 5px; transition: 0.3s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: var(--oro-jimtech); }
.nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 20px 0; }
.main-content { flex: 1; padding: 40px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.edit-card { background: var(--blanco); padding: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-align: left; }
.edit-card label { display: block; margin-bottom: 10px; font-weight: bold; color: #555; }
.edit-card input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 1.2rem; color: var(--azul-jimtech); }
.alert-success { background: #d4edda; color: #155724; padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #c3e6cb; }