/* --- Reset y Variables Globales --- */
:root {
    --primary-color: #0a2540; /* Azul oscuro */
    --secondary-color: #f0f4f8; /* Gris claro */
    --accent-color: #00d1b2; /* Verde menta moderno */
    --text-color: #333;
    --background-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* --- Header y Navegación --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo img {
    height: 50px; /* Aumentado para mayor visibilidad */
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* --- Sección Hero (Inicio) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.7); /* Overlay oscuro */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Secciones de Contenido General --- */
.content-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* --- Grid de Características (Ventajas, Servicios) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.feature-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Sección de Otros Servicios (con imagen) --- */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.services-content h2 {
    text-align: left;
}

.services-content .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.service-item {
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Grid de Logos (Colaboraciones) --- */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.logos-grid img {
    max-height: 50px;
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Formulario de Contacto --- */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 209, 178, 0.5);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #00b89c;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.contact-alternatives {
    margin-top: 2.5rem;
    text-align: center;
    color: #666;
}

.contact-alternatives p {
    margin-bottom: 0.75rem;
}

.contact-alternatives a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.contact-alternatives a:hover {
    color: var(--accent-color);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer-contact {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-contact a {
    color: var(--secondary-color); /* Mismo color que el texto para consistencia */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white; /* Un poco más brillante al pasar el mouse */
}

/* --- Media Query para layouts más grandes --- */
@media (max-width: 992px) {
    .services-layout {
        grid-template-columns: 1fr;
    }
    .services-content h2,
    .services-content .section-subtitle {
        text-align: center;
    }
    .services-image {
        margin-bottom: 2rem;
    }
}
/* --- Responsividad --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-logo img {
        height: 45px; /* Aumentado para móviles */
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 4rem 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }
}
