@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body{
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
}

*{
    box-sizing: border-box;
}
/* Estilos para el nav */
.nav-link {
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    border: 1px solid transparent;
    font-size: 1.1em;
}

.nav-link:hover {
    border-color: rgb(255, 255, 255);
    color: #104486;
}

/* Estilos para los botones */
.btn-donar {
    color: #104486;
    font-weight: bold;  
}

.misDonaciones{
    display: inline-flex;
    width: 150px;
    margin: 0 50px;
    background-color: aquamarine;

}

/* FUNDACIONES */
.img-fundaciones {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card{
    border-radius: 10px; 
    transition: all 0.3s ease-in-out; 
    background-color: #104486; 
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
}


.boton-enviar{
    border-radius: 10px; 
    width: 60%;
    padding: 10px;
    display: block; 
    margin: 0 auto;
    transition: all 0.3s ease-in-out; 
    background-color: #fff; 
    color: #104486 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
    font-weight: bold;
}

.boton-enviar:hover{
    transform: translateY(-5px) scale(1.02);
    background-color: #94DDDE;
    color: #104486 !important;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.h-100{
    border-radius: 10px; 
    transition: all 0.3s ease-in-out; 
    background-color: #104486; 
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
}

.h-100:hover{
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/*QUIENES SOMOS GRUPAL*/
.quienes_somos_bg {
    padding: 20px 0; 
    padding: 60px 0; 
}

/* Separacion de cada card */
.quienes_somos .row {
    padding: auto;
    margin: auto;
    width: 100%;
}

/* btn donar */
.btn-donar1{
    color: #fff;
    text-decoration: none;
}
.quienes-somos-texto {
    text-align: center;
    padding: 30px;
    font-size: 1.15rem; 
    line-height: 1.1; 
    color: #333; 
}


.h1-fundaciones{
    color:#104486; /* Color azul de confianza */
    font-weight: 800; /* Super negrita */
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.h2-quienesomos{
    color: #104486; /* Color azul de confianza */
    font-weight: 800; /* Super negrita */
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.tittle-fundacion{
    color: #104486; /* Color azul de confianza */
    font-weight: 800; /* Super negrita */
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.subtitulo-seguridad {
    font-size: 1em; /* Tamaño normal, no muy grande */
    color: #a0c3e6; /* Un azul claro o gris muy suave para que se vea sutil */
    margin-bottom: 20px;
    margin-top: -10px; /* Para acercarlo un poco al título H2 */
    font-weight: 500;
}

.subtitulo-seguridad .bi-lock-fill {
    color: #28a745; /* Color verde para el icono, que significa 'OK' o seguridad */
    margin-right: 5px;
}

.p-fundacion{
    font-size: 1.3em;
    border-radius: 8px; /* Bordes redondeados */
    border-bottom: 8px solid #104486; /* Una línea lateral de color para darle énfasis (como un highlight) */
    max-width: 800px; /* Limita el ancho del párrafo */
    margin: 0 auto 30px auto; /* Centra el bloque y añade espacio abajo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave para que "flote" */
    font-weight: 500; /* Peso de fuente medio para legibilidad */
    padding: 18px;
}

/* Efecto hover para las tarjetas de los miembros */
.member-card {
    border-radius: 10px; 
    transition: all 0.3s ease-in-out; 
    background-color: #ffffff; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
}

.member-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* 🆕 Contenedor para TODOS los botones flotantes */
#floating-buttons-group {
    position: fixed !important;
    bottom: 5px !important; 
    right: 1rem; 
    display: flex !important;
    flex-direction: column !important; 
    gap: 0.8rem !important; 
    z-index: 10000 !important; 
}


/* Estilos Comunes para todos los botones del grupo */
.scroll-top, .donate-btn, #chatbot-toggle-btn {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    background: #104486;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform .15s ease, opacity .15s ease;
    opacity: 0.85;
    font-weight: bold;
    font-size: 20px;
    /* Eliminar position: fixed, right y bottom de aquí */
}

/* 3. BOTÓN SCROLL TOP (Se mantiene igual, solo sin position) */
.scroll-top {
    background: #104486; /* Azul oscuro */
}

/* 2. BOTÓN DE DONAR (Se mantiene igual, solo sin position) */
.donate-btn {
    background: #94DDDE; /* Color celeste */
}

/* 1. BOTÓN CHATBOT (Nuevo estilo para integrarse) */
#chatbot-toggle-btn {
    background-color: #fff; /* Azul fuerte para el chat */
    cursor: pointer;
    z-index: 1001; /* Ligeramente superior a su ventana de chat */
}

.scroll-top:hover, .donate-btn:hover, #chatbot-toggle-btn:hover {
    transform: translateY(-3px);
    opacity: 1;
}

/* ---------------------------------------------------- */
/* 🤖 ESTILOS ESPECÍFICOS DEL CHATBOT Y SU VENTANA       */
/* ---------------------------------------------------- */

#chatbot-wrapper {
    position: relative !important; 
    width: 48px; /* Ancho igual al botón */
    height: 48px; /* Altura igual al botón */
    z-index: 99999 !important;
}

#chatbot-toggle-btn {
    position: absolute; /* Posicionado dentro del wrapper */
    bottom: 0;
    right: 0;
}

#chat-window {
    position: absolute !important; 
    bottom: 60px !important;
    right: 0 !important; 
    
    width: 300px !important;
    height: auto !important; /* Permitirá que la ventana se ajuste al contenido si agregamos más tarde */
    max-height: 400px !important; /* Limita la altura máxima */
    
    background-color: white !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important; 
    
    display: flex !important;
    flex-direction: column !important; 
    overflow: hidden !important; /* Oculta cualquier cosa que se desborde */

    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    transform: translateY(20px) !important; 
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#chat-window.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
.chat-input {
    /* Mantenemos el display: flex!important; para la alineación */
    display: flex !important; 
    align-items: center !important; 
    padding: 8px 10px !important; /* Ajustamos el padding del contenedor */
    border-top: 1px solid #eee !important;
    background-color: white !important;
}

/* 2. Campo de Texto (Input) */
.chat-input input[type="text"] {
    flex-grow: 1 !important; 
    padding: 10px 12px !important; /* Le damos más altura y espacio interno */
    border: 1px solid #e0e0e0 !important; /* Borde más suave */
    border-radius: 20px !important; /* Borde más redondeado para un look moderno */
    margin-right: 8px !important; 
    font-size: 14px !important;
    transition: border-color 0.3s !important; /* Suavizamos el foco */
}

/* 3. Efecto de Foco para el Input */
.chat-input input[type="text"]:focus {
    border-color: #007bff !important; /* Color principal al escribir */
    outline: none !important; /* Quitamos el feo borde predeterminado */
}

/* 4. Botón de Enviar (Send Button) */
.chat-input button {
    /* Eliminamos el padding grande y la forma de rectángulo */
    background-color: transparent !important; /* Hacemos el fondo transparente */
    color: #0056b3 !important; /* El ícono de avión toma el color principal */
    border: none !important;
    padding: 0 !important; /* Eliminamos el padding */
    width: 30px !important; /* Le damos un tamaño fijo */
    height: 30px !important;
    border-radius: 50% !important; /* Lo hacemos redondo si quieres un efecto sutil */
    cursor: pointer !important;
    font-size: 18px !important; /* Hacemos el ícono de avión un poco más grande */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: color 0.2s !important;
}

.chat-input button:hover {
    background-color: transparent !important; /* Mantenemos el fondo transparente */
    color: #007bff !important; /* Color más oscuro al pasar el ratón */
    transform: scale(1.1); /* Efecto sutil al hacer hover */
}
.chat-header {
    background-color: #fff !important; /* Fondo azul */
    color: #104486 !important;
    font-weight: bold !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    text-align: center !important;
    align-items: center !important;
    
    position: relative !important; /* CRÍTICO: Para posicionar la imagen de PUENTI */
    padding: 10px 15px !important;
    min-height: 60px !important; /* Asegura espacio si el texto es corto */
    display: flex !important; /* Para alinear el texto si hay varias líneas */
    flex-direction: column !important; /* Texto se apila */
    justify-content: center !important; /* Centra verticalmente el texto */
}
.chat-header::before { /* Usamos un pseudo-elemento para insertar la imagen */
    content: ''; /* CRÍTICO: Necesario para pseudo-elementos */
    position: absolute !important;
    top: 15% !important; /* Centra verticalmente */
    left: 10px !important; /* Distancia desde el borde izquierdo */
    
    width: 60px !important; /* Tamaño de la imagen de PUENTI */
    height: 60px !important;
    
    /* REEMPLAZA ESTA URL con la de tu imagen de PUENTI */
    background-image: url('../img/PUENTI.png') !important; 
    background-size: contain !important; /* Asegura que la imagen quepa */
    background-repeat: no-repeat !important;
    background-position: center !important;
    
    z-index: 10001 !important;

    /* Animación de flotar (opcional) */
    animation: floatAnimation 2s ease-in-out infinite !important;
    will-change: transform;
}

.chat-body {
    flex-grow: 1 !important; 
    padding: 15px !important;
    background-color: #f9f9f9 !important;
    overflow-y: auto !important; 
}

.chat-body p {
    margin: 0 !important; 
    padding: 0 !important; /* Asegura que el párrafo no tenga márgenes/padding extra */
}

/* Estado Oculto de la Ventana: Muy importante para que no aparezca al cargar */
#chat-window.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important; 
}

/* Estado Visible de la Ventana */
#chat-window.visible {
    opacity: 1;
    visibility: visible !important;
    transform: translateY(0) !important;
}
.chat-input {
    display: flex; /* CRÍTICO: Alinea el input y el botón horizontalmente */
    align-items: center; 
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: white;
}

.chat-input input[type="text"] {
    flex-grow: 1; /* CRÍTICO: El input toma todo el espacio flexible */
    padding: 8px;
    /* ... otros estilos ... */
}
#floating-buttons-group {
    position: fixed !important; /* Fuerza el posicionamiento fijo */
    bottom: 1rem !important;
    right: 1rem !important;
    z-index: 10000 !important; /* Asegura que esté por encima de TODO */
    display: flex !important;
    flex-direction: column !important;
    /* ... otros estilos ... */
}
/* boton minimizar */
#chat-close-btn {
    position: absolute !important; 
    top: 18px !important; 
    right: 10px !important; 
    transform: translateY(-50%) !important; 
    
    /* === CORRECCIÓN CRÍTICA: Eliminar la apariencia de botón === */
    background: transparent !important; /* CRÍTICO: Fondo transparente */
    border: none !important; /* CRÍTICO: Elimina el borde gris/azul */
    box-shadow: none !important; /* Elimina cualquier sombra */
    /* ========================================================== */
    
    color: #104486 !important; /* El guion se ve blanco */
    font-size: 30px !important; 
    cursor: pointer !important;
    
    /* Ajustes visuales finos para el guion */
    padding: 0 5px !important; /* Le da un área clicable sin afectar mucho el guion */
    line-height: 1 !important;
    z-index: 15 !important; 
    
    transition: color 0.2s ease, transform 0.2s ease !important; 
}

#chat-close-btn:hover {
    color: #007bff !important; /* Se vuelve un poco más gris al pasar el ratón */
    transform: translateY(-50%) scale(1.1) !important; 
}

/* 🔑 Asegúrate de que esta regla exista y esté al final del CSS */
@keyframes floatAnimation {
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-8px); } /* Se mueve 8px hacia arriba */
    100% { transform: translateY(0px); } 
}

/* 🆕 Estilos para el mensaje de error */
#chat-error-message {
    color: red !important; /* Texto de error en rojo */
    font-size: 12px !important;
    padding: 5px 10px 0 10px !important;
    text-align: center !important;
    width: 100% !important; /* Ocupa todo el ancho */
    margin-top: -5px !important; /* Lo sube un poco para pegarlo al input */
    position: absolute !important; /* Posicionamiento absoluto para controlarlo mejor */
    bottom: 0px !important; /* Lo ancla al fondo del chat-input */
}

/* 🆕 Clase para ocultar el mensaje de error */
.hidden-error {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease !important;
}

/* 🆕 Ajuste en .chat-input para contener el error */
.chat-input {
    position: relative !important; /* CRÍTICO: Necesario para posicionar el mensaje de error absoluto */
    /* El padding debe dejar espacio para el error: 
       Asegúrate de que el padding-bottom sea suficiente, por ejemplo: */
    padding: 8px 10px 25px 10px !important; /* Aumentamos el padding-bottom */
}

/* FOOTER */
footer, nav, .quienes-somos{
    background-color: #104486;
}
.boton-enviar
.boton-enviar:hover{
    color: #104486 !important;
    background-color: #94DDDE;
}
footer li:hover{
    text-decoration: underline;
}

@media (min-width: 992px) {
    .nav-link:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        align-items: center;
    }
}
/*Estilos para los cards*/
.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
}

.card .card-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.97);
  padding: 1rem;
  text-align: center;
  transition: bottom 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}
.card.show-info .card-overlay {
  bottom: 0;
}

/* texto azul al abrir */
.card.show-info .card-overlay p {
  color: #0d6efd;
  font-weight: 500;
}

/* botón principal */
.btn-toggle {
  background: none;
  border: none;
  color: #0d6efd;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}
.btn-toggle:hover {
  color: #0b5ed7;
}
.btn-toggle i {
  transition: transform 0.3s ease;
}
.card.show-info .btn-toggle i {
  transform: rotate(180deg);
}


/* chatbot puenti */
