/* --- Estilos Generales --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #0d47a1; /* Azul acero oscuro */
}

a {
    text-decoration: none;
    color: #1565c0; /* Azul acero más claro */
}

/* --- Encabezado --- */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Ajusta la altura según tu logo */
    width: auto;
}

.nav-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #1565c0;
}

.mobile-menu-button {
    display: none; /* Oculto en escritorio */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Página de Inicio: Hero --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background-color: #1565c0;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0d47a1;
}

/* --- Resumen del Negocio --- */
.business-summary {
    padding: 60px 0;
    text-align: center;
}

/* --- Pie de Página --- */
.footer {
    background-color: #263238; /* Gris metálico oscuro */
    color: #f5f5f5;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo, .footer-contact, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer h4 {
    color: #ffffff;
    border-bottom: 2px solid #1565c0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer p, .footer a {
    color: #e0e0e0;
    line-height: 1.8;
}

.footer-social a {
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #455a64;
    padding-top: 20px;
    margin-top: 20px;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* --- Estilos para otras páginas --- */
.page-header {
    background-color: #f4f4f4;
    padding: 40px 0;
    text-align: center;
}

.page-header h2 {
    margin: 0;
    font-size: 2.5rem;
}

.services-list, .about-content, .contact-form-section, .map-section {
    padding: 60px 0;
}

/* --- Página de Servicios --- */
.services-list .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #1565c0;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-icon {
    font-size: 3rem;
    color: #1565c0;
    margin-bottom: 20px;
}

.service-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.services-summary {
    background-color: #e3f2fd;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

/* --- Página Nosotros --- */
.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.about-section ul {
    list-style: none;
    padding-left: 0;
}

.about-section li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.about-section li::before {
    content: '✔';
    color: #1565c0;
    position: absolute;
    left: 0;
}

/* --- Página Contáctenos --- */
.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.form-container, .contact-info {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.contact-info p {
    line-height: 2;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.2rem;
}

.map-section {
    padding-bottom: 0;
}

/* --- Estilos del Carrusel --- */
#carouselExampleIndicators {
    max-height: 600px; /* Altura máxima para el carrusel */
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    height: 600px; /* Misma altura que el carrusel */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* --- Responsividad --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Ocultar menú en móvil */
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Mostrar menú al hacer clic */
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-button {
        display: block; /* Mostrar botón de hamburguesa */
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
