/* Paleta de colores:
   Primario (Fondo oscuro, headers): #0D47A1 (Azul Marino Profundo)
   Secundario (Acento, botones): #FFC107 (Ámbar/Dorado)
   Contraste (Texto, fondo claro): #F5F5F5, #333
*/

/* Desplazamiento suave para todos los enlaces ancla */
html {
    scroll-behavior: smooth; 
}

/* Estilos Globales y Tipografía */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F5F5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    color: #0D47A1;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFC107;
    display: inline-block;
    width: 100%;
}

/* ------------------ CABECERA/NAVBAR ------------------ */
.header {
    background-color: #0D47A1; 
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* LOGO: Ajuste del tamaño para el logo industrial, se mantiene 'logo.png' */
.logo {
    width: 100px; 
    height: auto;
    /* Si tu logo es de color, asegúrate que no tenga filtro invertido */
    /* filter: brightness(0) invert(1); QUITAR FILTRO si el logo ya es de color */
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #FFC107;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    background: #FFC107;
}

/* ------------------ BOTONES ELEGANTES Y ANIMADOS ------------------ */
.btn-contacto, .btn-principal {
    background-color: #FFC107; 
    color: #0D47A1;
    padding: 10px 20px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    white-space: nowrap; 
}

.btn-contacto:hover, .btn-principal:hover {
    background-color: #FFA000; 
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Animación Pulse */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ------------------ SECCIÓN HERO ------------------ */
.hero {
    background-image: url('hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 8px;
    color: white;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* ------------------ GALERÍA DE SERVICIOS ------------------ */
.services-gallery {
    padding: 60px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: calc(45% - 15px); 
    min-height: 250px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.service-card h2 {
    color: #0D47A1;
    font-weight: 600;
    margin-top: 0;
}

.images-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

/* CAMBIO CLAVE: Volver a 'cover' para que las imágenes llenen el espacio */
.service-img {
    width: 49%;
    height: 180px; /* Aumento la altura para dar más "cuerpo" a las imágenes */
    border-radius: 5px;
    object-fit: cover; /* VUELVE A 'cover' para llenar el espacio */
    background-color: #f0f0f0; 
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.service-img:hover {
    filter: brightness(1.1);
}

.btn-servicio {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #1E88E5; 
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-servicio:hover {
    background-color: #0D47A1;
}

/* ------------------ SECCIÓN DE VIDEOS ------------------ */
.video-section {
    text-align: center;
    padding: 60px 0;
    background-color: #E3F2FD; 
}

.video-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.video-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 45%; 
    min-width: 300px;
}

.operation-video {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    margin-bottom: 10px;
    object-fit: cover; 
}

/* ------------------ PIE DE PÁGINA (FOOTER) ------------------ */
.footer {
    background-color: #1F2833;
    color: white;
    padding: 40px 0 20px 0;
    text-align: center;
}

.footer h3 {
    color: #FFC107;
    margin-bottom: 25px;
    font-weight: 800;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.animated-button {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-link {
    background-color: #25D366; 
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.email-link {
    background-color: #D34836; 
}

.email-link:hover {
    background-color: #C0392B;
    transform: scale(1.05);
}

.animated-button i {
    margin-right: 8px;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #888;
}

/* ------------------ MEDIA QUERIES (ADAPTACIÓN A CELULAR) ------------------ */
@media (max-width: 992px) {
    .service-card {
        width: calc(100% / 2 - 20px); 
        min-height: 280px;
    }
    .video-item {
        width: 48%;
    }
    .logo-nav-container {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }
    .logo-nav-container {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center; 
    }
    .logo {
        margin-bottom: 10px;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
    .nav-links a {
        margin: 5px 0;
    }
    .contact-header {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    .btn-contacto {
        width: 100%;
        padding: 12px 0;
    }
    .service-card, .video-item {
        width: 100%;
    }
    .hero {
        height: 350px;
    }
    .hero h1 {
        font-size: 1.8em;
    }
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}