/* Base y Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Roboto para el cuerpo de texto por su legibilidad */
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Aplicar Montserrat a los titulares y elementos de alto impacto */
h1, h2, h3, h4, .btn, .logo {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: #007bff; /* Azul primario */
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #1a1a1a;
}

/* Botones y Elementos Reutilizables */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    /* Para el icono de WhatsApp en el CTA principal */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
}

.btn-primary {
    background-color: #007bff; /* Azul fuerte */
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #fff;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 8px 15px;
}

.btn-secondary:hover {
    background-color: #f0f8ff;
}

.btn-emergency {
    background-color: #dc3545; /* Rojo para Urgencia */
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-emergency i {
    margin-right: 0; /* Ajuste para el nuevo display flex */
}

/* Header y Navegación */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8em; /* Ajuste para complementar el tamaño del logo */
    font-weight: 800;
    color: #007bff;
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px; /* LOGO AGRANDADO */
    margin-right: 5px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: #333;
    font-weight: 600;
}

.nav-list a:hover {
    color: #007bff;
}

/* Hero Section */
.hero-section {
    background-image: url('../img/hero-ascensor.jpg'); 
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 300;
}

.trust-text {
    margin-top: 20px;
    font-size: 1.1em;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.service-card h4 {
    margin-bottom: 10px;
    font-size: 1.3em;
    color: #1a1a1a;
}

/* Sección de Diferenciación */
.diferencia-section {
    padding: 60px 0;
    background-color: #e9ecef;
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.feature-item {
    flex-basis: 30%;
}

.feature-icon {
    font-size: 2.5em;
    color: #dc3545; /* Color secundario fuerte */
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1.1em;
}

/* NUEVA SECCIÓN DE CLIENTES/PARTNERS */
.clients-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Logos más pequeños para buena visualización */
    gap: 30px;
    align-items: center;
    justify-items: center;
    max-width: 1000px; /* Limita el ancho de la grilla */
    margin: 0 auto;
}

.clients-grid img {
    max-width: 100%;
    height: auto;
    max-height: 80px; /* Altura máxima para los logos */
    filter: grayscale(100%); /* Efecto blanco y negro */
    opacity: 0.6; /* Un poco transparentes */
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.clients-grid img:hover {
    filter: grayscale(0%); /* Color al pasar el mouse */
    opacity: 1;
}
/* FIN NUEVA SECCIÓN */


/* Contacto y CTA Final */
.contact-cta {
    padding: 80px 0;
    text-align: center;
}

.contact-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background-color: #333;
    color: #f8f8f8;
    padding: 40px 0 10px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    border-bottom: 1px solid #555;
    padding-bottom: 30px;
    margin-bottom: 15px;
}

.footer-grid h4 {
    color: #007bff;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 10px;
    color: #007bff;
}

.footer-links a {
    color: #f8f8f8;
    display: block;
    margin-bottom: 5px;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
}

/* WHATSAPP FLOTANTE */
#whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* RESPONSIVE DESIGN (Móviles) */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 10px 20px;
    }
    
    .logo {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .nav {
        display: none; /* Ocultar el menú completo en móvil para simplicidad */
    }

    .contact-info {
        flex-basis: 100%;
        text-align: center;
    }

    .btn-emergency {
        display: block;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content h2 {
        font-size: 1.2em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .feature-item {
        flex-basis: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Más logos por fila en móvil */
        gap: 15px;
    }
}