:root {
    --primary: #0f2a4a;
    --secondary: #2980b9;
    --accent: #e67e22;
    --light: #f4f7f6;
    --text: #333;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* HEADER */
header { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 0; z-index: 1000; }
.navbar { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 80px; display: flex; justify-content: space-between; align-items: center; }

/* LOGO */
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; }
.logo img { max-height: 50px; width: auto; } 
.logo i { color: var(--accent); margin-right: 10px; font-size: 1.8rem; }
.logo span { color: var(--secondary); }

/* MENU */
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { font-weight: 500; color: var(--primary); }
.nav-link:hover { color: var(--secondary); }
.btn-contact { background: var(--accent); color: white; padding: 10px 25px; border-radius: 50px; font-weight: 600; }
.btn-contact:hover { background: #d35400; transform: translateY(-2px); }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background: white; min-width: 220px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); top: 100%; left: 0; border-radius: 5px; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.dropdown-content a:hover { background: var(--light); color: var(--secondary); }

/* HERO PRINCIPAL (INDEX) */
.hero { 
    height: 85vh; /* Altura fija */
    width: 100%;
    position: relative; 
    
    /* COLOR DE RESPALDO: Si la imagen falla, se verá azul oscuro */
    background-color: #0f2a4a; 
    
    /* Imagen de Internet */
    background-image: url('https://images.unsplash.com/photo-1558494949-ef526b0042a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    display: block; /* Importante para que se vea el bloque */
    margin-top: 80px; 
}

/* SECCIONES */
.section { padding: 80px 20px; }
.bg-light { background: var(--light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); }
.bar { width: 60px; height: 4px; background: var(--accent); margin: 10px auto 20px; }

/* GRID SERVICIOS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.service-card { background: white; padding: 40px 30px; border-radius: 10px; border-bottom: 4px solid transparent; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--accent); }
.service-card.highlight-card { border-bottom-color: var(--secondary); background: #fdfdfd; }
.icon-box { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }

/* SOFTWARE HIGHLIGHT */
.software-highlight { 
    /* COLOR DE RESPALDO para que el texto blanco se lea si falla la foto */
    background-color: #0f2a4a;
    
    background-image: linear-gradient(rgba(15, 42, 74, 0.9), rgba(15, 42, 74, 0.9)), url('https://images.unsplash.com/photo-1531403009284-440f080d1e12?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white; 
    padding: 100px 20px; 
}
.software-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.software-text { flex: 1; min-width: 300px; }
.software-image { flex: 1; min-width: 300px; text-align: center; }
.software-image img { width: 100%; max-width: 500px; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.1); }
.tag { background: var(--accent); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; display: inline-block; margin-bottom: 15px;}

/* FOOTER */
footer { background: #0a1c30; color: #bdc3c7; padding: 60px 0 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding: 0 20px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.socials a { margin-right: 15px; font-size: 1.2rem; color: white; }
.copyright { text-align: center; margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu { display: none; } 
    .hero { height: 50vh; }
    .software-container { flex-direction: column; }
}