.misionvisionvalores{
    display:flex;
}
.mensaje_correo_agenda{
    background: #280202d6;
    position: absolute;
    padding: 10px;
    border-radius: 7px;
    display: none;
}
.contiene_mision{
    
    flex:1;
    height:400px;
    border:1px solid rgb(255, 255, 255);
    background-image:url(../imagenes/misionvision/mision.jpg);
    background-size: cover;
    background-position: center;
}
.contiene_mision p{
    font-size: 25px;
    color: rgb(255, 255, 255);
    
}
.contiene_mision h2{
    color: #0066ff!important;
    -webkit-text-stroke: 1px #ffffff; /* Para navegadores WebKit como Chrome y Safari */
}
.contiene_vision{
    
    flex:1;
    height:400px;
    border:1px solid rgb(255, 255, 255);
    background-image:url(../imagenes/misionvision/vision.jpg);
    background-size: cover;
    background-position: center;
}
.contiene_vision p{
    font-size: 25px;
    color: rgb(255, 255, 255);
    
}
.contiene_vision h2{
    color: #0066ff!important;
    -webkit-text-stroke: 1px #ffffff; /* Para navegadores WebKit como Chrome y Safari */
}
.contiene_valores{
    
    flex:1;
    height:400px;
    border:1px solid rgb(255, 255, 255);
    background-image:url(../imagenes/misionvision/valores.jpg);
    background-size: cover;
    background-position: center;
}
.contiene_valores p{
    font-size: 25px;
    color: rgb(255, 255, 255);
    
}
.contiene_valores h2{
    color: #0066ff!important;
    -webkit-text-stroke: 1px #ffffff; /* Para navegadores WebKit como Chrome y Safari */
 
}
.cuadro_transparente{
 
    background: #00000096;
    height:400px;
    width:100%;
    padding:40px 20px 0px 20px;
   
}
.cuadro_transparente:hover{
    background: #353535a8;
    height:400px;
    width:100%;
    padding:40px 20px 0px 20px;
    padding-top: 70px;
    transition: padding-top 0.3s ease;
     
}
/* SEPARADOR PSICOLOGÍA ELEGANTE */
.modern-separator {
    position: relative;
    border-bottom: none;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Línea sutil que se desvanece */
.modern-separator::after {
    content: none !important;
    display: none !important;
}

/* Símbolo Psi (Ψ) central */
.modern-separator::before {
    content: none !important;
    display: none !important;
}
/* Si el separador está en fondo oscuro, cambiamos los colores */
.bg-pattern-dark.modern-separator::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.bg-pattern-dark.modern-separator::before {
    color: #fff;
    background-color: #00132a; /* Coincidir con el fondo oscuro */
}

/* Si el separador está en fondo CLARO (TALLERES), asegurarse de que se vea bien */
.contenedor_talleres.modern-separator::after {
    background: linear-gradient(90deg, transparent, rgba(39, 91, 156, 0.4), transparent);
}
.contenedor_talleres.modern-separator::before {
    color: #275B9C;
    background-color: #fdfdfd; /* Coincidir con el fondo claro */
}

/* Fondo oscuro con patrón (alternado) */
.bg-pattern-dark {
    background-color: #00132a !important;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.02) 5px, rgba(255, 255, 255, 0.02) 10px), repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.02) 5px, rgba(255, 255, 255, 0.02) 10px) !important;
    background-size: 100px 100px !important;
    color: white !important;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Bordes grises para las otras secciones */
.modern-separator {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* En dark mode, el borde debe ser oscuro */
.bg-pattern-dark {
    border-color: #2c2c2c !important;
}

/* Forzar texto blanco SOLO para elementos directos de la sección, NO dentro de las tarjetas */
.bg-pattern-dark > .container > h2,
.bg-pattern-dark > .container > p {
    color: white !important;
}

/* Asegurar que el texto dentro de las tarjetas (.eventos) sea oscuro siempre */
.eventos h4, 
.bg-pattern-dark .eventos h4 {
    color: #333 !important;
}

.eventos p, 
.bg-pattern-dark .eventos p {
    color: #666 !important;
}

.eventos .ver-mas, 
.bg-pattern-dark .eventos .ver-mas {
    color: #275B9C !important;
}

.eventos .ver-mas:hover, 
.bg-pattern-dark .eventos .ver-mas:hover {
    color: #143761 !important;
}


/* Placeholder para imágenes faltantes */
.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    border-radius: 7px 7px 0 0;
}


/* EVENTOS MEJORADO */
.eventos-row {
    display: flex;
    flex-wrap: wrap;
}

.eventos-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.eventos {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.eventos:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.eventos .icon {
    position: relative;
    overflow: hidden;
    height: 200px; /* Fixed height for images */
}

.eventos .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.eventos:hover .icon img {
    transform: scale(1.1);
}

.eventos h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 20px 10px;
    color: #333;
    font-family: 'Roboto Slab', serif !important;
    line-height: 1.4;
}

.eventos .descripcion-container {
    padding: 0 20px;
    margin-bottom: 10px;
    flex-grow: 1;
    max-height: calc(5 * 1.5em); /* Restored max-height for ver-mas logic */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.eventos .descripcion {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.eventos .ver-mas {
    display: inline-block;
    margin: 0 20px 25px;
    color: #275B9C;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eventos .ver-mas::after {
    content: '→';
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.eventos .ver-mas:hover {
    color: #143761;
}

.eventos .ver-mas:hover::after {
    transform: translateX(5px);
}
/* FIN EVENTOS MEJORADO */

/*AGENDA*/
.descargaporcorreo{
    overflow:hidden;
    text-align:center;
  
    background: #00132a;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.02) 5px, rgba(255, 255, 255, 0.02) 10px), repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.02) 5px, rgba(255, 255, 255, 0.02) 10px);
    background-size: 100px 100px;
    padding:5px;
   
}
.formulario{
    max-width:600px;
    width:100%;
    margin:0 auto;
    border-radius:7px;
    overflow:hidden;
 
}
 
.formulario .foto{
    width:30%;
    min-height: 400px;
    float:left;
    background:white;
  
}
.formulario img{
    width:100%;
}
.formulario .contenido{
    width:70%;
    float:left;
    border:1px solid white;
    text-align:left;
    height:400px;
    display: flex;
    flex-direction: column;                 
    justify-content: center;
    padding:10px;
    background: #ffe7e7;
}
.formulario .texto{
    border-radius:7px; 
    border:1px solid gray;
    margin-bottom:2px;
}
  .formulario .boton{
    margin-top:5px;
  }
.formulario .btncrese{
    width:200px;
    float:left;                
}

/*AGENDA*/
/*SERVICIOS MEJORADO*/
.servicios-row {
    display: flex;
    flex-wrap: wrap;
}

.servicios-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.servicios_{
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.servicios_:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background: #fff;
}

.servicios_ .icon {
    width: 100%;
    overflow: hidden;
}

.servicios_ .icon img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.servicios_:hover .icon img {
    transform: scale(1.05);
}

.servicios_ h4 {
    padding: 20px 20px 5px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #275B9C;
    text-align: center;
}

.servicios_ p {
    padding: 0 20px 25px;
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}
/*SERVICIOS*/
/*TESTIMONIAL*/
.white-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%; /* Ajusta el tamaño del recuadro blanco */
    height: 100%; /* Ajusta el tamaño del recuadro blanco */
    background-color: rgba(255, 255, 255, 0.041); /* Color de fondo del recuadro blanco */
    transform: translate(-50%, -50%) rotate(-45deg); /* Inclina el recuadro */
  }
  .testimonial_img{
    height: 120px!important;
    width: 120px!important;
    border-radius: 7px!important;
  
  }
/*TESTIMONIAL*/

/* TALLERES MEJORADO - VERSION LIGHT */
.contenedor_talleres {
    padding: 60px 0;
    background-color: #fdfdfd; /* Fondo muy limpio casi blanco */
    background-image: radial-gradient(#275b9c 0.5px, transparent 0.5px), radial-gradient(#275b9c 0.5px, #fdfdfd 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed; /* Efecto sutil al hacer scroll */
    /* Hacemos el patrón muy sutil con opacidad en el color de fondo si fuera necesario, o usando rgba en el gradiente */
    background-image: radial-gradient(rgba(39, 91, 156, 0.05) 1px, transparent 1px), radial-gradient(rgba(39, 91, 156, 0.05) 1px, #fdfdfd 1px);
    
    position: relative;
    border-top: none; /* El separador se encarga de esto */
}

.contenedor_talleres h2 {
    color: #275B9C; /* Azul corporativo */
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contiene_talleres {
    max-width: 1000px; /* Un poco más ancho */
    width: 95%;
    margin: 0 auto 30px;
    background: transparent;
    border: none;
    padding: 0;
}

.taller {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra muy suave y elegante */
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    padding: 0;
    height: 220px; /* Un poco más alto para mejor presencia */
}

.taller:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(39, 91, 156, 0.15); /* Sombra azulada sutil al hover */
    border-color: rgba(39, 91, 156, 0.2);
}

.taller .foto {
    width: 35%; /* Más espacio para la foto */
    min-width: 200px;
    height: 100%;
    background-size: cover;
    background-position: center;
    border: none;
    position: relative;
}

.taller .contenido {
    width: 65%;
    padding: 30px 40px; /* Más aire interno */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.taller .titulo {
    padding: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 10px;
}

.taller .titulo a {
    color: #275B9C;
    font-size: 1.5rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.taller .titulo a:hover {
    color: #143761;
}

.taller .descripcion {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Quiénes Somos Mejorado */
.bg-quienessomos {
    background: #00132a !important;
    position: relative;
    overflow: hidden;
}

/* Patrón sutil de fondo */
.bg-quienessomos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.02) 5px, rgba(255, 255, 255, 0.02) 10px);
    pointer-events: none;
}

.text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.text-light {
    color: #e0e0e0 !important;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Efecto Pulsar en Botón de Tema */
@keyframes pulsar {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 91, 156, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(39, 91, 156, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 91, 156, 0);
    }
}

#theme-toggle {
    animation: pulsar 2s infinite;
}

#theme-toggle:hover {
    animation: none; /* Detener animación al pasar el mouse */
    transform: scale(1.1);
}

/*BARRA DE MENUS MEJORADA Y CREATIVA*/
.bg-quienessomos {
    background: #00132a !important;
    position: relative;
    overflow: hidden;
}

/* Patrón sutil de fondo */
.bg-quienessomos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.02) 5px, rgba(255, 255, 255, 0.02) 10px);
    pointer-events: none;
}

.quienessomos{
    background: transparent !important;
}

/* TESTIMONIALES MEJORADO */
.modern-testimonial {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    margin: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: visible !important;
    margin-top: 50px; /* Espacio para la foto flotante */
    transition: transform 0.3s ease;
}

.modern-testimonial:hover {
    transform: translateY(-5px);
}

.modern-testimonial .testimonial_img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    background: #fff;
}

.modern-testimonial .testimonial-content {
    margin-top: 35px;
}

.modern-testimonial p {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
}

.modern-testimonial p::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 60px;
    color: #eee;
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

.modern-testimonial .testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.modern-testimonial .name {
    display: block;
    font-weight: 700;
    color: #275B9C;
    font-size: 1.1rem;
}

.modern-testimonial .role {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 3px;
}

/* QUIENES SOMOS RESPONSIVO */
@media (max-width: 991px) {
    .quienes-card {
        flex-direction: column-reverse !important; /* Imagen arriba, texto abajo si se desea, o normal */
        margin: 0 15px !important; /* Margen lateral en móviles */
    }
    .quienes-card .col-lg-6.p-5 {
        padding: 30px !important; /* Menos padding en móvil */
    }
    .quienes-card .col-lg-6.p-0 {
        min-height: 250px !important; /* Menor altura de imagen en móvil */
    }
    .heading-text.heading-section h2 {
        font-size: 24px !important; /* Título más pequeño */
    }
}

@media (min-width: 0px) and (max-width: 1024px) {
    .contiene_mision{
       font-size:14px;
    }
    .contiene_vision{
       font-size:14px;
    }
}
@media (min-width: 0px) and (max-width: 800px) {
    .misionvisionvalores{
        display:block;
    }
    .contiene_mision{
        display:block;
    }
    .contiene_vision{
        display:block;
    }
}
@media (min-width: 0px) and (max-width: 600px) {
    .formulario .foto{
        width:100%;
    }
    .formulario .contenido{
        width:100%;
        height: auto;
    }
    .heading-text.heading-section {
        margin-top: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .heading-text.heading-section h2 {
        background-color: transparent !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        display: block;
        border: none !important; /* Eliminado cualquier borde no deseado */
    }

    .heading-text.heading-section h2::before,
    .heading-text.heading-section h2::after {
        content: none !important; /* Eliminados pseudo-elementos que crean líneas/marcos */
        display: none !important;
    }

    .heading-text.heading-section>h2 {

        font-size: 28px;
    }
    .taller .titulo{       
        font-size:11px;  
        line-height: 18px;     
    }
    .taller .descripcion{       
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Número de líneas a mostrar */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal; /* Asegura que el texto se muestre en varias líneas */
        font-size: 10px;
        line-height: 16px;    
    }
}