/*================ MENU =================*/

/* Forzamos el color usando selectores más específicos */
nav.navbar, .navbar {
    background: #95959d !important;
}

.navbar-brand span {
    color: white !important;
    font-size: 22px;
    font-weight: 700;
}

.nav-link {
    color: rgb(48, 6, 128) !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #FFD700 !important;
}

/*============== BOTON =================*/
.btn-primary {
    background: #8B5E3C !important;
    border-color: #8B5E3C !important;
}

.btn-primary:hover {
    background: #b8865d !important;
}

/*=============== BODY =================*/
body {
    background: #d2d2d5 !important;
    font-family: 'Poppins', sans-serif;
}

section {
    background: transparent !important;
}

/*============= BANDERAS (Alineadas y Circulares) ===============*/

/* Contenedor de las banderas */
.la-selector {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 120px; /* Evita que se colapsen */
}

/* Botones de banderas redondos */
.lang-btn {
    width: 32px !important; 
    height: 32px !important; 
    object-fit: cover; /* Evita la deformación */
    border-radius: 50% !important; /* Fuerza forma circular perfecta */
    border: 2px solid rgba(255, 255, 255, 0.8) !important; /* Añade borde sutil */
    box-shadow: 0 2px 5px rgba(217, 204, 204, 0.556); /* Efecto de elevación */
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

/* Efecto hover */
.lang-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(236, 228, 228, 0.732);
}

/*============= SECCION CARRUSEL DINÁMICO =============*/

/* Contenedor principal con la imagen de fondo */
.contenedor-carrusel {
    background-size: cover;
    background-position: center;
    border-radius: 16px; /* Esquinas redondeadas estéticas */
    padding: 60px 40px; /* Espaciado interno para respiración del texto */
    box-shadow: 0 8px 24px rgba(15, 29, 58, 0.15);
    overflow: hidden; /* Evita que el contenido se desborde al animarse */
    min-height: 280px; /* Asegura un tamaño consistente para el slider */
}

/* Forzar la velocidad, suavidad y comportamiento del deslizamiento de Bootstrap */
.carousel-item {
    transition: transform 0.6s ease-in-out !important; /* Controla la velocidad de movimiento lateral */
}

/* Forzar color de texto blanco en el carrusel */
.titulo-slide {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); /* Agrega sombra para legibilidad */
}

.texto-slide {
    color: #ffffff !important;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Sombra suave para que destaque sobre el fondo */
}

/* Ajuste visual para los indicadores (bolitas del carrusel) */
.posicion-indicadores {
    bottom: 20px !important;
}

.posicion-indicadores button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important; /* Indicadores redondos en vez de barras planas */
    margin: 0 6px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
}

.posicion-indicadores button.active {
    background-color: #ffffff !important;
}

/*=============== TARJETAS DE SERVICIOS ===============*/
.card-servicio {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
    background-color: #ffffff;
}

.card-servicio:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(223, 229, 232, 0.15) !important;
}

.card-img-wrapper {
    width: 100%;
    height: 220px; /* Altura estándar fija para todas las imágenes */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen proporcionalmente */
    transition: transform 0.5s ease;
}

.card-servicio:hover .card-img-wrapper img {
    transform: scale(1.08); /* Sutil zoom al pasar el cursor */
}

.card-body h4 {
    font-weight: 600;
    font-size: 1.25rem;
    color: #333333; /* Corregido a un tono oscuro para buena lectura sobre fondo blanco de la tarjeta */
    margin-bottom: 0.75rem;
}

.card-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/*================ SECCIÓN NOSOTROS (INTEGRANTES) =================*/

.tarjeta-perfil {
    padding: 15px;
    transition: all 0.4s ease-in-out;
}

/* Contenedor del avatar para dar forma circular y aplicar la sombra */
.contenedor-avatar {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    /* Borde sutil */
    border: 6px solid #ffffff;
    /* Sombra suave inicial basada en el tono de la maqueta */
    box-shadow: 0 10px 25px rgba(15, 29, 58, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #ffffff;
}

/* Imagen de perfil interna */
.img-perfil {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la foto proporcionalmente sin estirarla */
    object-position: center top; /* Enfoca hacia la parte superior de la imagen (rostro) */
    transition: transform 0.5s ease;
}

/* EFECTOS AL PASAR EL CURSOR (HOVER) */
.tarjeta-perfil:hover .contenedor-avatar {
    /* Eleva el círculo levemente y expande su sombra */
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(139, 94, 60, 0.25); /* Color de sombra acoplado a tu color café corporativo #8B5E3C */
    border-color: #e5e5f0; /* Cambia sutilmente el borde al color del menú */
}

.tarjeta-perfil:hover .img-perfil {
    /* Hace un zoom lento muy elegante en la foto */
    transform: scale(1.1);
}

/* Ajustes de color para que los textos de Nosotros concuerden con tu paleta */
.tarjeta-perfil h3 {
    color: #333333 !important;
}

/* Forzar que el texto descriptivo combine con el esquema */
.tarjeta-perfil .text-primary {
    color: #8B5E3C !important; /* Tu color de botones primarios */
}

/*================ SECCIÓN NOSOTROS (MAQUETA ACTUALIZADA) =================*/

/* Fondo Lila para la sección superior de MGOITEC */
.seccion-introduccion {
    background-color: #d2d2d5 !important; /* Lila idéntico al del menú */
}

/* Columna de Misión y Visión con fondo lila */
.panel-mision-vision {
    background-color: #dfdfe7 !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Tarjeta estructurada de los Integrantes */
.tarjeta-nosotros-v2 {
    display: flex;
    flex-direction: column;
    width: 50%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #efeff7; /* El fondo general es blanco */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Parte superior de la tarjeta (Fondo lila con foto) */
.tarjeta-cabecera-foto {
    background-color: #e3e3ee !important; /* El color lila de la maqueta */
    padding: 30px 20px 20px 20px;
    text-align: center;
}

/* Contenedor Nosotros circular perfecto de la imagen de perfil */
.contenedor-avatar-v2 {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50% !important;
    overflow: hidden;
    border: 4px solid #ffffff; /* Borde blanco de la foto */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Sombra suave para darle relieve */
    transition: all 0.4s ease;
}

/* Imagen de perfil */
.img-perfil-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

/* Cargo de perfil */
.cargo-perfil-v2 {
    font-size: 0.9rem;
    color: #8B5E3C !important; /* Tu color corporativo café */
}

/* Parte inferior de la tarjeta (Fondo blanco con descripción) */
.tarjeta-cuerpo-descripcion {
    background-color: #d4d4e5 !important;
    padding: 15px 20px;
    text-align: left; /* Alineado a la izquierda según la foto */
    flex-grow: 1; /* Permite que las cajas crezcan y se mantengan a la misma altura */
}

.tarjeta-cuerpo-descripcion p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------- EFECTOS INTERACTIVOS (HOVER) ---------- */
.tarjeta-nosotros-v2:hover .contenedor-avatar-v2 {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(139, 94, 60, 0.3); /* Resplandor café al pasar el mouse */
}

.tarjeta-nosotros-v2:hover .img-perfil-v2 {
    transform: scale(1.08); /* Pequeño zoom en la foto */
}

/* ===== Estilo PÁGINA DE Tecnologia en Salud (TARJETAS INDIVIDUALES) ===== */
.promo-page {
    background-color: #fcf8f9;
}

.promo-card {
    background: #ffffff;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    height: 100%; /* Mantiene las tarjetas alineadas */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(201, 139, 155, 0.1);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(176, 107, 123, 0.15);
}

.promo-img-wrapper {
    width: 45%;
    min-width: 45%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.promo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

.promo-info {
    width: 55%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-info h3 {
    color: #b06b7b;
    font-size: 20px;
    font-weight: 600;
   
}

.promo-info ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: #666;
}

.promo-info ul li {
    margin-bottom: 3px;
    font-size: 11px;
}

/*==========================================
        IMÁGENES INGENIERÍA
==========================================*/

.engineering-img{
    height:280px;              /* Antes 380px o 400px */
    overflow:hidden;
    border-radius:15px;
    position:relative;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    transition:all .4s ease;
}

.engineering-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    transition:transform .6s ease, filter .5s ease;
    filter:brightness(.96);
}

.engineering-img:hover{
    box-shadow:0 15px 30px rgba(0,0,0,.22);
}

.engineering-img:hover img{
    transform:scale(1.06);
    filter:brightness(1.05);
}

/* Efecto brillo */

.engineering-img::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:50%;
    height:100%;
    background:linear-gradient(
        120deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.35),
        rgba(255,255,255,0)
    );
    transition:.8s;
    z-index:2;
}

.engineering-img:hover::before{
    left:150%;
}


/* CONTENEDOR DE ALIANZA */
.alianza {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.10);
    transition: all 0.3s ease;
}

/* =====================================
   LOGO EMPRESA ASOCIADA
===================================== */

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Imagen del logo */
.partner-logo img {

    width: 150px;          /* Tamaño del logo */
    height: auto;

    object-fit: contain;

    transition: transform 0.3s ease,
                filter 0.3s ease;

    /* sombra suave */
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.20));
}


/* Efecto al pasar el mouse */
.partner-logo img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0px 8px 15px rgba(0,120,255,0.35));

}

/*==================================================
                CONTACTO
==================================================*/

.contacto{

    background:#FAF7F2;

}

.titulo-contacto{

    color:#6E3B2A;

    font-size:42px;

    font-weight:700;

}

.formulario{

    border:2px solid #D8BFD8;

    border-radius:10px;

    padding:15px;

    font-size:20px;

    transition:.4s;

}

.formulario:focus{

    border-color:#C98AA8;

    box-shadow:0 0 15px rgba(201,138,168,.35);

}

.contacto label{

    font-size:22px;

    font-weight:600;

    color:#5C3521;

}

.btn-enviar{

    background:#C98AA8;

    color:white;

    padding:15px 40px;

    border-radius:30px;

    font-size:20px;

    font-weight:600;

    transition:.4s;

}

.btn-enviar:hover{

    background:#8B5E3C;

    color:white;

    transform:translateY(-5px);

}

.foto-contacto{

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.20);

    transition:.4s;

}

.foto-contacto:hover{

    transform:scale(1.05);

}

.mapa-google{

    margin-top:20px;

    border-radius:15px;

    box-shadow:0 10px 25px rgba(237, 230, 230, 0.43);

    transition:.4s;

}

.mapa-google:hover{

    transform:scale(1.04);

}

.contacto p{

    font-size:18px;

    color:#666;


/*=============== FOOTER ===============*/

#footer, footer.footer, .footer {
    background: #c9c6d8 !important;
    color: rgb(225, 222, 231) !important;
}

.footer h4 {
    color: white !important;
}

.footer a {
    color: rgb(212, 100, 109) !important;
}

.footer a:hover {
    color: #FFD700 !important;
}