/* --- VARIABLES DE COLOR (Basadas en tu logo) --- */
:root {
    --dark-blue: #0b2e59;
    --mid-blue: #2a6f97;
    --light-blue: #6caeeb;
    --text-dark: #333;
    --text-light: #f9f9f9;
    --bg-light: #ffffff;
    --bg-grey: #f4f7f6;
}

/* --- ESTILOS GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    background: var(--bg-light);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    height: 50px;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--mid-blue);
}

.cta-button {
    background: var(--mid-blue);
    color: var(--text-light);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--dark-blue);
}

/* --- SECCIÓN HERO --- */
.hero {
    background-image: linear-gradient(rgba(11, 46, 89, 0.8), rgba(11, 46, 89, 0.8)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDN8fGNvZGV8ZW58MHx8fHwxNjE3MjE0NzEy&ixlib=rb-1.2.1&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 120px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-button {
    background: var(--light-blue);
    color: var(--dark-blue);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.hero-button:hover {
    background: var(--text-light);
    transform: translateY(-2px);
}

/* --- SOBRE NOSOTROS --- */
#sobre-nosotros {
    background: var(--bg-grey);
}
#sobre-nosotros p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
}

/* --- NUESTRAS EMPRESAS --- */
.empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.empresa-card {
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.empresa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 111, 151, 0.15);
}

.empresa-card i {
    font-size: 3rem;
    color: var(--mid-blue);
    margin-bottom: 20px;
}

.empresa-card h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.empresa-card p {
    font-size: 1rem;
    margin-bottom: 25px;
}

.card-link {
    text-decoration: none;
    color: var(--mid-blue);
    font-weight: 600;
}
.card-link i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* --- SECCIÓN DE CONTACTO --- */
#contacto {
    background: var(--bg-grey);
}

.subtitulo-contacto {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.submit-button {
    background: var(--dark-blue);
    color: var(--text-light);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: var(--mid-blue);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.contact-info i {
    color: var(--mid-blue);
    width: 25px;
    margin-right: 5px;
}
.contact-info a {
    color: var(--mid-blue);
    text-decoration: none;
}

/* Mensajes de estado del Formulario */
.status-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}
.status-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}


/* --- FOOTER --- */
footer {
    background: var(--dark-blue);
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
}

.logo-footer {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

footer p {
    opacity: 0.8;
    margin-bottom: 5px;
}

/* --- RESPONSIVE (Para Celulares) --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}