/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #005A9C; /* Azul corporativo */
    --secondary-color: #E3342F; /* Rojo de emergencia y CTA */
    --accent-color: #F7B500; /* Amarillo para destacar */
    --dark-grey: #333333;
    --light-grey: #f4f7f6;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1200px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark-grey);
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    color: #555;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo strong { color: var(--secondary-color); }

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}
.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

a.nav-contact-button {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 15px 25px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}
.nav-contact-button:hover {
    background-color: #c22a26;
    transform: scale(1.05);
}
.nav-contact-button::after { display: none; } /* Ocultar línea de hover */

.hamburger { display: none; }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: url('fondo.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0, 44, 83, 0.85) 0%, rgba(0, 44, 83, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
    color: var(--white);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 1.5rem 0;
}

.hero-highlight {
    background-color: var(--accent-color);
    color: var(--dark-grey);
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.hero-highlight i { margin-right: 10px; }

.hero-cta-buttons { display: flex; gap: 15px; }

.cta-button {
    padding: 18px 35px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--white);
}
.cta-button.primary:hover {
    background-color: #c22a26;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--dark-grey);
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background: url(fondo2.jpg);
    background-size: cover;
    background-attachment: fixed;
    transform: none !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- About Section --- */
.about-section { padding: 100px 0; }
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;

}

/* --- NUEVOS ESTILOS PARA EL VIDEO --- */
.about-video {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Esto es clave para que el video respete el borde redondeado */
    line-height: 0; /* Elimina espacio extra debajo del video */
}

.about-video video {
    width: 100%;
    height: auto;
    display: block;
}
/* --- FIN DE NUEVOS ESTILOS --- */


.section-title.left-aligned { text-align: left; }
.about-text p { margin-bottom: 1.5rem; }
.about-list {
    list-style: none;
    margin-bottom: 2rem;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 700;
}
.about-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* --- Coverage Section --- */
.coverage-section {
    padding: 100px 0;
    background-color: var(--light-grey);
}
.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 2rem;
}
.coverage-card {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}
.coverage-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}
.coverage-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.coverage-card p {
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-grey);
    color: #ccc;
    padding-top: 80px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}
.footer h3 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.footer-about strong { color: var(--accent-color); }
.footer p { margin-bottom: 1rem; }
.footer-contact p { display: flex; align-items: center; gap: 10px; }
.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact a:hover { color: var(--accent-color); }
.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--accent-color); }

.copyright {
    border-top: 1px solid #444;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px; left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { display: block; }
    .nav-menu ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 15px;
        text-align: center;
    }
    .nav-menu .nav-contact-button {
        margin: 10px auto;
        width: fit-content;
    }

    .hamburger {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
    }
    .about-container { grid-template-columns: 1fr; }
    .section-title.left-aligned { text-align: center; }
}

@media (max-width: 768px) {
    .hero { height: auto; padding: 150px 0 80px 0; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-highlight { margin-left: auto; margin-right: auto; }
    .hero-cta-buttons { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 350px; justify-content: center;}

    .coverage-grid { grid-template-columns: 1fr; }
}