/* ==================================== */
/* ESTILOS GLOBALES            */
/* ==================================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 50px; /* Espacio para el nav fijo */
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-image: url('../imagenes/fondo consultoria.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    min-height: 200px;
}

.container {
    width: 80%;
    /* El max-width se define en archivos específicos (ej: 900px en historia/privacidad/faq) */
    /* Para mantener la compatibilidad, usaremos un max-width general o se aplica por archivo si es necesario */
    max-width: 900px; 
    margin: auto;
    overflow: hidden;
    padding: 2rem 0;
}

/* Estilo común para secciones de contenido (usado en todas las páginas) */
.content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    /* El box-shadow varía ligeramente (0 2px 5px vs 0 0 10px), usamos el más genérico */
}

/* Títulos de sección */
.section-title, .content h2, .content h3, .hero h1 {
    color: #004d99;
    text-align: center;
}

/* Texto justificado para párrafos dentro de secciones específicas */
.content p, .content ul, .team-member p {
    text-align: justify;
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* ==================================== */
/* ESTILOS DE NAVEGACIÓN         */
/* ==================================== */

nav {
    background-color: #000;
    color: #fff;
    padding: 0 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo {
    height: 40px;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0 10px;
}

.menu-links {
    display: flex;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
    padding: 0 1rem;
    display: block;
}

.menu-links a:hover {
    background-color: #002244;
}

/* Media Queries para teléfonos */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 1rem 0;
    }
    .menu-links.is-open {
        display: flex;
    }
}


/* ==================================== */
/* ESTILOS DE PÁGINA INICIO       */
/* ==================================== */

.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #fff;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.service-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: #e67e22;
    margin-top: 0;
}

.service-item img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.call-to-action {
    text-align: center;
    padding: 2rem 0;
}

.call-to-action a {
    background-color: #e67e22;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
}

.call-to-action a:hover {
    background-color: #d35400;
}

/* ==================================== */
/* ESTILOS PÁGINA HISTORIA       */
/* ==================================== */

.image-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.image-caption {
    text-align: center;
    margin: 10px;
}

.image-caption img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.logo-item {
    text-align: center;
    margin: 10px;
}

.logo-item img {
    max-width: 150px; /* Ajusta el tamaño de los logos */
    height: auto;
}

/* ==================================== */
/* ESTILOS PÁGINA EQUIPO          */
/* ==================================== */

.team-member {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-member h3 {
    color: #004d99;
    margin-top: 0;
}

/* ==================================== */
/* ESTILOS PÁGINA CONTACTO         */
/* ==================================== */

.contact-content {
    /* Mantiene los estilos del .content general pero por si se necesita diferenciación */
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    text-align: center; /* Sobrescribe el justify del p general */
}

.contact-info strong {
    color: #004d99;
}

.map-container {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.icon {
    color: #e67e22;
    margin-right: 10px;
}

/* ==================================== */
/* ESTILOS PÁGINA PREGUNTAS F.      */
/* ==================================== */

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

.faq-item h3 {
    color: #e67e22;
    cursor: pointer;
    margin-top: 0;
    text-align: center; /* Sobrescribe el center del h3 general para FAQ */
}