/* Reset de márgenes y padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo de la barra de navegación */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(#000,#9c27b0);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Asegura que la barra de navegación esté por encima de otros elementos */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px; /* Espacio entre los enlaces */
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1em;
    padding: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #000; /* Cambia el color del texto al hacer hover */
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #004aad, #cb6ce6);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.logo img {
    height: 70px;
    width: auto;
}

body {
    padding-top: 80px; /* Espacio para evitar que el contenido quede oculto detrás de la barra de navegación */
    height: 100%; /* Ocupa toda la altura disponible */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Evita desplazamiento horizontal */
    min-height: 100vh;
    background-color: #f4f4f4;
}

.nav-links {
    list-style: none;
    display: flex;
}

/* .nav-links li {
    margin-left: 0px;
} */

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.nav-links a:hover {
    color: #666; /* Cambia el color al pasar el cursor */
}

html {
    scroll-behavior: smooth;
    height: 100%; /* Ocupa toda la altura disponible */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Evita desplazamiento horizontal */
}

/*Secciones*/
.home-section {
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* Fondo para delimitar claramente la sección */
    padding-top:120px;
}

.home-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Texto a la izquierda, imagen a la derecha */
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.home-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Alineación del texto a la izquierda */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.home-text h1 {
    font-size: 2.4em;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.home-text p {
    font-size: 1.2em;
    color: #000;
    line-height: 1.6;
    text-align: justify;
}

.central-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sección Empresas */
.empresas {
    text-align: center;
    padding: 50px 40px;
    background: #fff;
    color: #000;
    margin-bottom: 0px;
}

/* Estilo del título */
.empresas h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.empresas h2 span {
    color: #6c0ba9;
    font-weight: bold;
}

/* Contenedor de logos */
.empresas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Cuadro de cada empresa */
.empresa {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 180px; /* Tamaño fijo */
    height: 180px; /* Tamaño fijo */
}

/* Ajustar imágenes al mismo tamaño exacto */
.empresa img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el cuadro sin deformar */
    border-radius: 10px;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

/* Efecto hover */
.empresa:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.empresa:hover img {
    filter: grayscale(0%);
}

/*Servicios*/

#servicios, #about, #contact {
    background-color: #fff;
    min-height: 100vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    scroll-margin-top: 80px;
}

section {
    width: 100%; /* Asegura que las secciones ocupen todo el ancho */
    min-height: 100vh; /* Asegura que cada sección tenga al menos el alto de la pantalla */
}

.container {
    position: relative;
    max-width: 1200px; /* Ajusta según tu diseño */
    margin: 0 auto; /* Centra el contenido */
    padding: 20px; /* Agrega espacio interno */
}

/*Servicios*/

#servicios {
    padding: 50px 20px;
    margin-top: -360px;
    margin-bottom: 20px;
    background-color: #fff;
    text-align: center;
}

.services-section {
    padding-bottom: 20px; /* Reduce el padding inferior */
    margin-bottom: 0; /* Elimina márgenes adicionales */
    margin-top: -400px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 90%;
    height: auto;
    border-radius: 15px; /* Hace que las imágenes sean redondeadas */
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.service-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

h1 {
    font-size: 2.3em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.3em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

p {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/*Sobre Nosotros*/
.about-section {
    padding-top: 20px; /* Reduce el padding superior */
    margin-top: -100px; /* Elimina márgenes adicionales */
}

.about-container {
    position: relative;
    width: 100vw; /* Ocupar todo el ancho de la pantalla */
    height: 100vh; /* Ocupar toda la altura de la pantalla */
}

.about-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto superpuesto */
.about-content {
    position: absolute;
    top: 50%;
    right: 5%; /* Alineado a la derecha */
    transform: translateY(-50%); /* Centra verticalmente */
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    color: white;
    padding: 20px;
    width: 40%; /* Controlar el ancho del texto */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Estilos del texto */
.about-content h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
}

.about-content p {
    font-size: 1.2em;
    line-height: 1.6;
    color: white;
    text-align: justify;
}

/* Estilos del blockquote */
.about-content blockquote {
    font-size: 1.5em;
    font-style: italic;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 4px solid #FFD700; /* Amarillo dorado */
}

.about-mission-vision {
    display: flex;
    /*flex-direction: column; /* Cambiado a columna para mejor responsividad */
    justify-content: space-around;
    margin: 60px 0;
    padding: 20px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.about-mission-vision > div {
    max-width: 500px;
    text-align: center;
}

.about-mission-vision h3 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.about-mission-vision p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

.about-values {
    background: linear-gradient(#000,#9c27b0); /* Gradiente lineal */
    color: #fff;
    padding: 30px 70px;
    text-align: center;
    border-radius: 15px; /* Esquinas redondeadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 70px;
}

.about-values h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.values-container {
    display: flex;
    justify-content: space-between ; /* Cambiado a columna para mejor responsividad */
    gap: 0px;
}

.value-item {
    background-color: rgba(255, 255, 255, 0.2); /* Transparencia para resaltar sobre el fondo */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.value-item h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 1.1em;
    line-height: 1.6;
    color: black;
    text-align: justify;
}

/*Contacto*/
.contact-section {
    background-color: #f4f4f4;
    padding-bottom: 80px 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas: información a la izquierda, formulario a la derecha */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 120px;
}

.contact-info {
    text-align: left;
}

.contact-info h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-form h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: none; /* Deshabilita el redimensionamiento manual */
    overflow-y: auto; /* Permite que aparezca una barra de desplazamiento si el texto excede el tamaño del textarea */
}

.contact-form button {
    padding: 10px 20px;
    background-color: #004aad;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #cb6ce6;
}

#confirmationMessage {
    font-size: 1.2em;
    color: #28a745; /* Color verde para el mensaje de éxito */
    margin-top: 20px;
}

.social-icons {
    margin-top: 30px;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}


/*Footer*/
.footer-section {
    background: linear-gradient(#000,#9c27b0); /* Gradiente lineal */
    color: #fff;
    padding: 20px 10px; /* Hacer el footer más angosto */
    text-align: center;
    font-family: system-ui;
    margin-top:0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-about h3 {
    font-size: 1.4em; /* Reducción del tamaño de la fuente */
    margin-bottom: 8px;
}

.footer-about p {
    font-size: 0.9em; /* Reducción del tamaño de la fuente */
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

.footer-links h4 {
    font-size: 1.2em; /* Reducción del tamaño de la fuente */
    margin-bottom: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    display: inline;
    margin-right: 10px; /* Espacio entre enlaces */
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em; /* Reducción del tamaño de la fuente */
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 10px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Línea separadora */
}

.footer-bottom p {
    font-size: 0.8em; /* Reducción del tamaño de la fuente */
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/*Animación secciones*/
/* Secciones animadas: Estado inicial */
.animate-section {
    opacity: 0; /* Ocultas inicialmente */
    transform: translateX(-100px); /* Desplazadas hacia la izquierda */
    transition: opacity 0.6s ease, transform 0.6s ease; /* Transición suave */
}

/* Secciones animadas: Cuando son visibles */
.animate-section.visible {
    opacity: 1; /* Totalmente visibles */
    transform: translateX(0); /* Sin desplazamiento */
}

/* Animación desde la izquierda */
.from-left {
    transform: translateX(-100px); /* Desplazada hacia la izquierda */
}

/* Animación desde la derecha */
.from-right {
    transform: translateX(100px); /* Desplazada hacia la derecha */
}

/* Ajustes para móviles */
/* @media only screen and (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: row;
        width: 100%;
    }

    .nav-links li {
        align-items: end;
        margin: 5px 0;
    }

    .logo img {
        height: 30px;
    }
} */

/* Ajustes para tablets */
/* @media only screen and (min-width: 601px) and (max-width: 1024px) {
    nav {
        justify-content: space-around;
    }

    .nav-links {
        justify-content: space-around;
    }
} */

/*MEDIA QUERIES*/

/* Tablets en orientación vertical o pantallas entre 768px y 1024px */
@media (max-width: 1024px) {
    .home-container,
    .contact-container {
        grid-template-columns: 1fr; /* Cambiar a una sola columna */
    }

    .home-section,
    .contact-section,
    .about-section {
        padding: 20px; /* Reducir el padding */
    }

    nav {
        justify-content: first baseline;
    }

    .nav-links {
        justify-content: space-around;
    }

    .about-container {
        grid-template-columns: 1fr; /* Cambiar a una sola columna */
    }

    .nav-links {
        flex-direction: row;
        gap: 10px;
    }

    .about-mission-vision {
        flex-direction: column; /* Cambiar a columna */
    }

    .values-container {
        flex-direction: column; /* Cambiar a columna */
        gap: 10px;
    }

    .value-item {
        text-align: center;
    }

    .home-text h1, .contact-form h2, .about-content h2 {
        font-size: 2em; /* Ajustar tamaño del título */
        text-align: center;
    }

    .home-text p, .contact-info p, .about-content p, .service-item p {
        font-size: 1em; /* Ajustar tamaño del texto */
        text-align: center;
    }

    .contact-info h2 {
        text-align: center;
        margin-top: -100px;
    }

    .services-container {
        flex-direction: column;
    }

    .service-item img {
        width: 50%; /* Reducir tamaño de imagen */
    }

    .about-content {
        width: 50%; /* Aumentar el tamaño del cuadro de texto */
        padding: 15px;
    }

    .about-content h2 {
        font-size: 2em; /* Reducir tamaño del título */
    }

    .about-content p {
        font-size: 1em;
        line-height: 1.4;
    }

    #servicios {
        margin-top: -350px;
    }
}

/* Smartphones o pantallas de 767px o menos */
@media (max-width: 767px) {
    body {
        font-size: 14px; /* Ajustar el tamaño de la fuente */
    }

    .home-section,
    .contact-section,
    .about-section {
        padding: 20px; /* Reducir el padding */
    }

    nav {
        justify-content: first baseline;
    }

    .nav-links {
        flex-direction: row;
        width: 100%;
    }

    .nav-links li {
        align-items: end;
        margin: 5px 0;
    }

    .logo img {
        height: 30px;
    }

    nav ul {
        flex-direction: row;
        width: 50%;
        gap: 10px;
    }

    .home-text, .contact-info, .about-content {
        text-align: center; /* Centrar el texto */
    }

    .home-text h1, .contact-form h2, .about-content h2 {
        font-size: 1.8em; /* Ajustar tamaño del título */
        text-align: center;
    }

    .home-text p {
        text-align: center;
    }

    .contact-form input, .contact-form textarea {
        font-size: 0.9em; /* Ajustar tamaño de las entradas */
    }

    .contact-form button {
        font-size: 1em; /* Ajustar tamaño del botón */
        padding: 10px 15px;
    }

    .logo img {
        height: 80px; /* Reducir el tamaño del logo */
    }

    .central-image img {
        width: 100%; /* Asegurar que la imagen se ajuste al contenedor */
    }

    .footer-about h3, .footer-links h4 {
        font-size: 1em;
    }

    .footer-about p, .footer-links ul li a {
        font-size: 0.8em;
    }

    .footer-container {
        padding: 10px; /* Reducir padding del footer */
    }

    .about-container {
        height: auto; /* Permitir que la altura se ajuste automáticamente */
    }

    .about-image {
        position: relative;
        height: 100vh; /* Mantener la imagen en pantalla completa */
    }

    .about-content {
        width: 80%; /* Que el texto no sea tan pequeño */
        right: 50%;
        transform: translate(50%, -50%); /* Centrar el contenido */
        text-align: center;
        padding: 20px;
    }

    .about-content h2 {
        font-size: 1.8em; /* Ajustar título para móviles */
    }

    .about-content p {
        font-size: 1em; /* Reducir tamaño del texto */
    }

    #servicios {
        margin-top: -150px;
    }
}

/*Carrousell*/
/* Contenedor principal del carrusel */
.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    overflow: hidden;
    z-index: 1;
}

/* Contenedor que agrupa las cajas de servicio (servicios) */
.services-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
}

/* Las cajas individuales del servicio */
.service-item {
    min-width: 300px; /* Cada caja tiene un tamaño mínimo para mostrar */
    margin: 0 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Estilo para las flechas de navegación */
.carousel-arrow {
    background-color: #004aad;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.carousel-arrow:hover {
    background-color: #cb6ce6;
}

/* Ajuste responsivo: en pantallas pequeñas, las cajas de servicio ocupan todo el ancho */
@media (max-width: 768px) {
    .service-item {
        min-width: 100%;
    }
}

/* Reset de estilos */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
}

/* Contenedor principal del chatbot */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    z-index: 1000;
}


.chatbot-toggle {background-image: linear-gradient(#2b5876 0%, #4e4376  51%, #2b5876  100%)}
.chatbot-toggle {
   margin: 5px;
   margin-left: 150px;
   padding: 10px 15px;
   align-items: center;
   text-transform: uppercase;
   transition: all 0.3s ease;
   background-size: 200% auto;
   color: white;            
   box-shadow: 0 0 20px #eee;
   border-radius: 10px;
   display: block;
   cursor: pointer;
   width: fit-content;
 }

 .chatbot-toggle {
   background-position: right center; /* change the direction of the change here */
   color: #fff;
   text-decoration: none;
 }

/* Botón flotante del chatbot */
/* .chatbot-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #000,#9c27b0);
    color: white;
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: fit-content;
} */

/* Imagen del ChatBot con animación de zoom */
.chatbot-toggle img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    animation: zoomEffect 1.5s infinite alternate ease-in-out;
}

/* Animación de zoom */
@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Texto del botón */
.chatbot-toggle span {
    font-size: 14px;
}

/* Cambio de cursor al pasar sobre el ChatBot */
.chatbot-toggle:hover {
    cursor: pointer;
}

/* Pop-up del ChatBot */
.chatbot-popup {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

/* Animación de aparición */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Encabezado */
.chatbot-header {
    background: linear-gradient(90deg, #000,#9c27b0);
    color: white;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* Botón de cerrar */
.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.close-chat:hover {
    transform: scale(1.2);
}

/* Mensajes */
.chatbot-messages {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
}

/* Estilo de mensajes */
.message {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 20px;
    max-width: 80%;
    font-size: 14px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Input */
.chatbot-input {
    display: flex;
    border-top: 2px solid #004aad;
    padding: 10px;
}

#chat-input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    outline: none;
    background: rgb(255, 255, 255);
    border-radius: 20px;
    color: black;
}

/* Mensaje del usuario */
.user-message {
    background: linear-gradient(90deg, #004aad, #0066cc);
    color: white;  /* Asegura que el texto es blanco */
    align-self: center;
    justify-content: center;
    padding: 12px;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3); /* Mejora la visibilidad del texto */
}

/* Asegurar que los emojis se ven bien */
.user-message p {
    display: flex;
    align-items: center;
    font-size: 16px;
    gap: 8px;
    color: #fff;
}

/* Mensajes generales */
.message p {
    margin: 0;
}

/* Mensaje del bot */
.bot-message {
    background: rgb(255, 255, 255);
    color: black;
    align-self: flex-start;
    justify-content: flex-start;
}

/* Estilo de botones de opciones */
.bot-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.option-btn {
    background: white;
    color: #004aad;
    border: none;
    padding: 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.option-btn:hover {
    background: linear-gradient(90deg, #004aad, #cb6ce6);
    color: white;
    transform: scale(1.05);
}


* {box-sizing: border-box}

/* Container needed to position the overlay. Adjust the width as needed */
 .container-photo {
    position: relative;
    width: 30%;
}
  
.image {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
}
  
.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}
  
.container-photo:hover .image {
    opacity: 0.3;
}
  
.container-photo:hover .middle {
    opacity: 1;
}
  
.text {
    background: linear-gradient(90deg, #fff, #ccc);
    color: black;
    font-size: 16px;
    padding: 16px 32px;
    text-align: left;
} 

.text p {
    color: black;
    font-size: 20px;
    text-align: center;
}

/* */

@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/** Variables **/

:root {
  --color-background: #cbd5e1;
  --color-background-alt: #8ec6ff;
  --color-border-active: #173db6;
  --color-border-default: #94a3b8;
  --color-highlight: #8ec6ff;
  --color-primary: #144be1;
  --color-primary-active: #19388f;
  --color-text-default: #0f172a;
  --color-text-muted: #475569;

  --font-family-body: "Open Sans", sans-serif;
  --font-family-display: "Nunito Sans", sans-serif;
}

/** Base **/

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family-body);
  font-optical-sizing: auto;
  font-style: normal;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

[type="checkbox"]:focus,
[type="radio"]:focus,
[type="range"]:focus {
  outline: none;
}

/** Components **/

.fs-form {
  display: grid;
  row-gap: 0rem;

}

.fs-form:where(.fs-layout__2-column) {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

fieldset {
  display: grid;
  margin: 1.5rem 0;
  row-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) fieldset {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  color: var(--color-text-default);
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.375rem;
}

.fs-label {
  color: var(--color-text-default);
  display: block;
  font-family: var(--font-family-display);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.fs-description {
  color: var(--color-text-muted);
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) .fs-button-group {
  grid-column: 1 / -1;
}

.fs-button {
  background-color: var(--color-primary);
  border-radius: 0.375rem;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1rem;
  padding: 1rem 2rem;
  transition-duration: 200ms;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-button:hover {
  background-color: var(--color-primary-active);
}

.fs-button:focus-visible {
  background-color: var(--color-primary-active);
  outline: 3px solid var(--color-highlight);
}

.fs-input,
.fs-select {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-primary);
  font-size: 1rem;
  height: 2.5rem;
  line-height: 1.5rem;
  outline: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.fs-input:focus-visible,
.fs-select:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-input::placeholder {
  color: var(--color-text-muted);
}

.fs-checkbox-group,
.fs-radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-checkbox-field,
.fs-radio-field {
  column-gap: 0.5rem;
  display: flex;
}

:is(.fs-checkbox-field, .fs-radio-field) .fs-label + .fs-description {
  margin-top: 0.125rem;
}

.fs-checkbox-wrapper,
.fs-radio-wrapper {
  align-items: center;
  display: flex;
  height: 1.25rem;
}

.fs-checkbox,
.fs-radio {
  background-color: #fff;
  border: 1px solid var(--color-primary);
  height: 1rem;
  width: 1rem;
}

.fs-checkbox {
  border-radius: 0.25rem;
}

.fs-radio {
  border-radius: 100%;
}

.fs-checkbox:checked,
.fs-radio:checked {
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

.fs-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.fs-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.fs-checkbox:focus-visible,
.fs-radio:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.fs-slider {
  background: transparent;
  cursor: pointer;
  height: 1.25rem;
  width: 100%;
}

.fs-slider::-moz-range-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-webkit-slider-runnable-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-moz-range-thumb {
  background-color: var(--color-primary);
  border: none; /* Removes extra border that FF applies */
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-primary);
  border-radius: 50%;
  height: 1.25rem;
  margin-top: -0.375rem; /* Centers thumb on the track */
  width: 1.25rem;
}

.fs-slider:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-switch-field {
  align-items: center;
  column-gap: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.fs-switch {
  background-color: var(--color-background-alt);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  cursor: pointer;
  height: 1.5rem;
  transition-duration: 200ms;
  transition-property: background-color, background-position;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.75rem;
}

.fs-switch:checked {
  background-color: var(--color-primary);
  background-position: right center;
}

.fs-switch:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.5rem;
  outline: none;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}