/* Estilos Generales */


body {
    font-family: 'Arial', sans-serif; /* Considera usar Google Fonts como 'Open Sans' o 'Lato' */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Clear floats */
    padding: 0 20px;
}

h1, h2, h3 {
    color: #2c3e50; /* Azul oscuro profesional */
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
    font-size: 2em;
}

p {
    margin-bottom: 15px;
}

a {
    color: #3498db; /* Azul estándar para enlaces */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
 header {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #3498db;
}

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

#logo {
    display: flex;
    align-items: flex-start; /* Alinea al inicio para que no se estire */
}

.logo-text {
    display: flex;
    flex-direction: column; /* Apila el h1 y el p verticalmente */
}

.logo-text h1 {
    margin-bottom: 0; /* Reducimos el margen inferior del h1 */
}

.logo-text p.tagline {
    margin-top: 5px;  /* Ajustamos el margen superior del tagline */
    font-size: 1.1em; /* Ajusta el tamaño si es necesario */
    color: #bdc3c7;
}

header #logo h1 a {
    color: #fff;  /* Aquí está el color del texto */
    margin: 0;
    font-size: 1.8em;
    text-decoration: none;
}

header nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex; /* Para mejor espaciado */
    align-items: center;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 15px; /* Añadí padding */
    border-radius: 5px; /* Bordes redondeados sutiles */
    transition: background-color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active { /* Para el estado activo (necesitarías JS para la clase 'active') */
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
}

/* Media Query (Ajustada) */
@media(max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        margin-top: 15px;
        text-align: center;
        flex-direction: column; /* Menú vertical en móviles */
    }
    header nav ul li {
        margin: 10px 0;
    }
}
/* Hero Section */
.hero {
    background: #353c41 url('img/hero-background.jpg') no-repeat center center/cover; /* Reemplaza con una imagen de fondo adecuada */
    color: #fff;
    padding: 80px 0;
    text-align: center;
    min-height: 300px; /* Altura mínima para la sección hero */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}
.cta-button {
    display: inline-block;
    background: #e67e22; /* Naranja para el CTA */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background: #d35400; /* Naranja más oscuro al pasar el mouse */
    text-decoration: none;
}

/* Secciones Principales */
main section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
main section:last-of-type {
    border-bottom: none;
}

/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.servicio-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servicio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}
.servicio-item .servicio-img {
    width: 100px; /* Ajusta según tus imágenes */
    height: 100px;
    object-fit: cover; /* Para que las imágenes se vean bien */
    margin: 0 auto 20px auto;
    border-radius: 50%; /* Imágenes redondas para un toque moderno */
    border: 3px solid #3498db;
}
.servicio-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

/* Nosotros */
.nosotros-content {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nosotros-content .nosotros-img {
    flex-basis: 40%; /* Ajusta el tamaño de la imagen si la usas */
    border-radius: 8px;
}
.nosotros-content div {
    flex-basis: 60%;
}
.nosotros-content ul {
    list-style: disc;
    padding-left: 20px;
}
.nosotros-content ul li {
    margin-bottom: 8px;
}

/* Contacto */
.contacto-flex {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Para responsividad */
}
#contact-form {
    flex: 2; /* El formulario ocupa más espacio */
    min-width: 300px; /* Ancho mínimo para el formulario */
}
.info-contacto {
    flex: 1;
    min-width: 280px;
    background-color: #eaf2f8; /* Un fondo sutil para la info de contacto */
    padding: 20px;
    border-radius: 8px;
}
.info-contacto h3 {
    margin-top: 0;
}
.info-contacto p {
    margin-bottom: 10px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho */
}
.form-group textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}
.form-nota {
    font-size: 0.8em;
    color: #777;
    margin-top: 10px;
}
.map-placeholder { /* Estilo para el placeholder del mapa */
    background-color: #ddd;
    text-align: center;
    padding: 50px 20px;
    border-radius: 5px;
    margin-top: 20px;
    color: #555;
}

/* Whatsapp */

.whatsapp-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.whatsapp-contact a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.whatsapp-contact img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    object-fit: contain;
}
.whatsapp-directo {
    margin: 10px 0;
}

.whatsapp-directo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #25D366; /* Color verde oficial de WhatsApp */
    font-weight: bold;
    font-size: 16px;
}

.whatsapp-directo img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
}

/* Logo */

#logo {
    display: flex;
    align-items: center; /* Alinea verticalmente logo y texto */
    gap: 15px; /* Espacio entre el logo y el texto */
}

#logo img {
    height: 1px; /* O ajusta según necesites */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1,
.logo-text p {
    margin: 0;
    padding: 0;
}


/* Footer */
footer {
    background: #1c2833; /* Un gris muy oscuro para el footer */
    color: #bbb;
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
}
footer p {
    margin: 5px 0;
}
footer a {
    color: #3498db;
}
footer .social-links a {
    margin: 0 10px;
    color: #fff; /* Para que resalten sobre el fondo oscuro */
}

/* Media Queries para Responsividad (Ejemplo básico) */
@media(max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        margin-top: 15px;
        text-align: center;
    }
    header nav ul li {
        display: block;
        margin: 10px 0;
    }
    .hero h2 {
        font-size: 2em;
    }
    .nosotros-content, .contacto-flex {
        flex-direction: column;
    }
    .nosotros-content .nosotros-img {
        margin-bottom: 20px;
    }
}