@font-face {
    font-family: 'SourceCodePro';
    src: url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Quicksand:wght@300..700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
}

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Quicksand:wght@300..700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');


body {
    font-family: Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #ffffff;
    transform: scale(0.9);
}

/* Icono fijo arriba a la izquierda */
.info-icon {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 40px;
    height: 40px;
    padding: 5px;
    background-color: transparent;
}

.info-icon img {
    width: 80%;
    height: auto;
    cursor: pointer;
}

/* Menú lateral oculto inicialmente */
.side-menu {
    position: fixed;
    top: 0;
    left: -40vw; /* Oculto fuera de vista */
    width: 33.3333vw;
    height: 400px;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0);
    overflow: hidden;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

/* Mostrar el menú */
.side-menu.open {
    left: 0;
}

/* Contenido interior del menú */
.menu-inner {
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    text-align: justify
}




.wrapperizquierdo,
.wrapperderecho {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centra verticalmente */
    align-items: center;
    width: 15%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.wrapperizquierdo {
    margin-right: 10px;
}

.wrapperderecho {
    margin-left: 10px;
}

.wrapperizquierdo .figura1,
.wrapperderecho .figura2 {
    margin-bottom: 70px;
    margin-top: 70px;
}

.wrapperizquierdo img,
.wrapperderecho img {
    width: 100%;
    max-width: 170px;
    /* Ajusta el tamaño máximo de las imágenes */
}

.desplazada-izquierda {
    margin-left: -70px;
    /* Ajusta la distancia de desplazamiento */

}

.desplazada-derecha {
    margin-right: -70px;
    /* Ajusta la distancia de desplazamiento */
    max-width: 130px;
}

.wrapperizquierdo .figura1 {
    margin-right: -70px;
}

.wrapperderecho .figura2 {
    margin-left: -70px;
}

/*____________________________________*/

.wrapperizquierdo .figura1,
.wrapperderecho .figura2,
.wrapperizquierdo .desplazada-izquierda,
.wrapperderecho .desplazada-derecha {
    position: relative;
    /* Necesario para posicionar correctamente el placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder {
    position: absolute;
    /* Permite posicionar el texto sobre la imagen */
    top: 50%;
    /* Centra verticalmente */
    left: 50%;
    /* Centra horizontalmente */
    transform: translate(-50%, -50%);
    /* Ajusta el texto exactamente en el centro */
    font-family: Arial, sans-serif;
    /* Fuente Arial */
    color: rgb(0, 0, 0);
    /* Color del texto */
    font-size: 15px;
    /* Tamaño de fuente */
    text-align: center;
    z-index: 2;
    /* El texto debe estar por encima de la imagen */
    text-shadow: #ffffff 0px 0 10px,
        #ffffff 0px 0 10px,
        #ffffff 0px 0 10px,
        #ffffff 0px 0 20px,
        #ffffff 0px 0 20px;
}

.wrapperizquierdo img,
.wrapperderecho img {
    opacity: 0;
    /* Las imágenes están ocultas inicialmente */
    transition: opacity 0.3s ease;
    /* Transición suave para cuando aparece la imagen */
    width: 100%;
    /* Asegura que las imágenes ocupen el 100% del contenedor */
}

/* Mostrar la imagen cuando se hace hover sobre el texto */
.wrapperizquierdo .figura1:hover img,
.wrapperizquierdo .desplazada-izquierda:hover img,
.wrapperderecho .figura2:hover img,
.wrapperderecho .desplazada-derecha:hover img {
    opacity: 1;
    /* La imagen se vuelve visible al pasar el puntero sobre el texto */

}


.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 10px;
    /* Reduce el margen superior */
}

.titulo2 {
    display: none;
}

.titulo {
    width: 300%;
    /* Mantén el ancho del 300% */
    height: 300%;
    padding: 10px;
    margin-top: 100px;
    margin-bottom: 10px;
    /* Reduce el margen inferior */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: scale(16%);
}



.cajaprincipal {
    width: 800px;
    /* Mantén el ancho del 800% */
    height: 300px;
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
}



::-webkit-scrollbar {
    width: 10px;
    margin-left: 50px;
}

Track */ ::-webkit-scrollbar-track {
    /* box-shadow: inset 0 0 5px grey; */
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(255, 255, 255, 0);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(255, 255, 255, 0);
}

textarea {
    width: 210%;
    /* Mantén el ancho del 300% */
    height: 170px;
    padding: 5em;
    margin-top: -50px;
    margin-bottom: 30px;
    border: 1px solid #000000;
    border-radius: 50%;
    z-index: 1;
    box-sizing: border-box;
    resize: none;
    /*quita la posibilidad de ajustar la caja con el cursor*/
    align-items: center;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

#inputText {
    font-family: "Source Code Pro", Helvetica, sans-serif;
    line-height: normal;
    text-align: center;
    text-align-last: center;
    position: relative;
    justify-content: center;
}

::-webkit-input-placeholder {
    text-align: center;
    position: 0 10;
}

:-moz-placeholder {
    /* Firefox 18- */
    text-align: center;
    position: 0 10;
}

::-moz-placeholder {
    /* Firefox 19+ */
    text-align: center;
    position: 0 10;
}

:-ms-input-placeholder {
    text-align: center;
    position: 0 10;
}

.botones {
    margin-top: 40px;
    display: flex;
    gap: 10px;
    /* Espacio entre los botones */
}

button {
    padding: 10px 20px;
    margin: 45px;
    margin-top: -40px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    font-family: "Source Code Pro", Helvetica, sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    border-radius: 45%;
    transition: filter 0.5s ease-out;
}

button:hover {
    /*box-shadow:0px 0px 40px #6a6a6a;*/
    filter: drop-shadow(0px 0px 23px #6a6a6a);
    /*transition: 0.5s ease-in-out;*/
}

.typewriter-container {
    width: 300%;
    /* Mantén el ancho del 300% */
    max-width: 600px;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255);
    border: transparent;
    border-radius: 4px;
    padding: 10px;
    border-radius: 8px;
    font-family: Helvetica, sans-serif;
    left: 50%;
    transform: translateX(-50%);
    field-sizing: content;
    /*el textbox de la ia se hace grande a medida que devuelve respuestas*/
}

.typewriter {
    white-space: pre-wrap;
    word-wrap: break-word;
    opacity: 1;
    transition: opacity 15s ease-in-out;
}


/* Media Queries */


/* Mobile devices (320px - 480px) */
@media (max-width: 350px) {

    .wrapperizquierdo,
    .wrapperderecho {
        display: none;
        /* Oculta los divs en la vista móvil */
    }

    .cajaprincipal {
        width: 100%;
        padding: 0.5cm;
        /* Reduce el padding para no dejar mucho espacio */
        margin: 0 auto;

    }

    .titulo {
        display: none;
        /* Oculta la imagen .titulo */
    }

    .titulo2 {
        display: flex;
        /* Muestra la imagen .titulo2 */
        flex-direction: column;
        align-items: center;
        margin-top: 120px;
        /* Añade margen superior al título */
    }

    .titulo2 img {
        width: 110%;
        /* Ajusta el tamaño de la imagen */
        height: auto;
        /* Mantiene la proporción de la imagen */
    }

    .botones {
        display: flex;
        flex-direction: column;
        /* Coloca los botones uno debajo del otro */
        align-items: center;
        /* Centra los botones horizontalmente */
        gap: 10px;
        /* Espacio entre los botones */
        width: 100%;
        /* Asegura que los botones usen todo el ancho disponible */
        padding: 0 10px;
        /* Añade un pequeño padding para evitar que toquen los bordes */

    }

    .boton1,
    .boton2 {
        width: 100%;
        /* Botones ocupan todo el ancho disponible */
        max-width: 300px;
        /* Limita el tamaño máximo para que no se agranden demasiado */
        padding: 10px;
        font-size: 14px;
        /* Reduce el tamaño de la fuente */
    }

    .textarea {
        width: 100%;
        /* Asegura que ocupe todo el ancho disponible */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centra el contenido dentro de la columna */
        justify-content: flex-start;
        /* Alineación superior */

    }

    textarea {
        width: 100%;
        /* Ajusta al 100% del contenedor */
        max-width: 300px;
        /* Limita el ancho máximo para no exceder el tamaño de la pantalla */
        height: 180px;
        margin-top: 10px;
        /* Espacio entre el top */
        margin-bottom: 20px;
        /* Espacio entre el textarea y los botones */
        font-size: 14px;
    }
}

/* Small screens, laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .cajaprincipal {
        width: calc(100% - 5cm);
        padding: 2cm;
    }

    .titulo {
        height: 280px;
    }

}

/* Desktops, large screens (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {}

/* Extra large screens, TV (1201px and more) */
@media (min-width: 1201px) {
    .cajaprincipal {
        width: calc(100% - 10cm);
        padding: 2.5cm;
    }

    .titulo {
        height: 300px;
    }

}

/* --- RESPONSIVE FIX --- */
@media (max-width: 900px) {
  .container,
  .cajaprincipal,
  .typewriter-container {
    max-width: 98vw;
    width: 98vw;
    padding: 1vw;
  }
  textarea {
    max-width: 98vw;
    font-size: 15px;
  }
}

@media (max-width: 600px) {

  body {
    display: block;
    height: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }
  .wrapperizquierdo,
  .wrapperderecho {
    display: none !important;
  }
  .titulo {
    display: none !important;
  }
  .titulo2 {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 10px;
    width: 100%;
  }
  .titulo2 img {
    width: 90vw;
    height: auto;
  }
  .container {
    margin: 0 auto;
    align-items: center;
    justify-content: flex-start;
  }
  .cajaprincipal,
  .typewriter-container {
    max-width: 100vw;
    width: 100vw;
    height: auto;
    padding: 2vw;
    overflow-y: scroll;
    
  }
  textarea {
    max-width: 95vw;
    height: 100px;
    font-size: 14px;
    padding: 0.5em;
    border-radius: 12px;
    margin-top: 15px;
    
    /*margin-bottom: 30px;*/
    
  }
  .botones {
    flex-direction: column;
    /*align-items: stretch;*/
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    
  }
  button {
    width: 100%;
    font-size: 15px;
    margin-top: 15px;
  }
  /* Menú lateral oculto inicialmente */
.side-menu {
    position: fixed;
    top: 0;
    left: -120vw; /* Oculto fuera de vista */
    width: 300px;
    height: 400px;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0);
    overflow: hidden;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    margin: 0;
    padding: 0;
}
.info-icon img {
    width: 60%;
    height: auto;
    cursor: pointer;
}



  
  
  
  
}