/* --- Variables y Reset --- */
:root {
    --primary-color: #0b1c3e; /* Azul Marino Oscuro */
    --secondary-color: #00b4d8; /* Celeste Tecnológico */
    --accent-color: #90e0ef; /* Celeste claro */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9fafc;
    --bg-dark: #07122a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Tipografía y Utilidades --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bg-dark .section-title h2 {
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* --- Navbar --- */
.navbar {
    background-color: #ffffff;
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--primary-color); /* CAMBIO: Enlaces en azul oscuro */
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600; /* Agregamos un poco de peso para legibilidad */
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.btn-highlight {
    background-color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-highlight:hover {
    color: #fff;
    background-color: #0096b4;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-image: url('fondo-inicio.jpg'); 
    background-size: cover;   /* La imagen cubre todo el área sin deformarse */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;
    
    position: relative; /* Necesario para que el overlay se posicione encima */
    display: flex;
    align-items: center;
    color: #fff; /* El texto sigue siendo blanco */
    text-align: center;
}

/* Opcional: Si tienes una imagen de fondo real, úsala aquí en background-image */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 28, 62, 0.7); 
    z-index: 1; /* Se coloca sobre la imagen de fondo */
}

.hero-content {
    position: relative;
    z-index: 2; /* Se asegura que el texto y botones estén SOBRE la capa oscura */
    max-width: 800px;
    /* Centrado horizontal si la pantalla es muy ancha */
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- About --- */
.values-list {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.values-list li {
    font-size: 1.1rem;
    margin: 10px;
}

.values-list i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* --- Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Testimonios --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.author h4 {
    color: var(--primary-color);
    font-size: 1rem;
}

.author span {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* --- Contacto --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.info-item {
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.info-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.btn-full {
    width: 100%;
    border: none;
}

/* --- Footer --- */
footer {
    background-color: #050e21;
    color: #777;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        margin: 20px 0;
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
}