body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #fefefe;
}
/* Encabezado */
.header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.header-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 360px;
    border-radius: 10px;
}
.header-center-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0px;
}
.header-sello-image {
    width: 80px;
    height: auto;
    vertical-align: middle;
    margin: 0px;
}
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    max-width: 560px;
}
.main-title {
    font-family: "Georgia";
    margin: 0;
    font-size: 2.3em;
    text-align: center;
}
.subtitle {
    margin: 10px 0 10px 0;
    font-size: 1em;
    color: #555;
    text-align: center;
}
.formico-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    transition: transform 0.2s;
}
.formico-content p {
    margin: 0;
    color: #863f05;
}
#profesor-formico {
    height: 70px;
    margin-right: 15px;
}
#id-logo {
    height: 70px;
    margin-left: 15px;
}
#formicodex-logo {
    height: 70px;
    margin-right: 15px;
}
.formico-content:hover {
    cursor: pointer;
    transform: scale(1.04);
}
.formicodex-link {
  text-decoration: none;
  color: #863f05;
}


/* Pestañas */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tabs button {
    background-color: #333;
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 20px;
    margin: 10px 5px;
    transition: 0.3s;
    font-size: 20px;
    border-radius: 10px;
}
.tabs button:hover {
    background-color: #555;
    transform: scale(1.02);
}
.tabs button.active {
    background-color: #e7df00;
    color: #393802;
    box-shadow: 4px 4px 5px rgba(36, 37, 0, 0.383);
}
.tablink {
    /* Aseguramos que todas las pestañas tengan la clase tablink */
}
/* Contenido de las pestañas */
.tabcontent {
    display: none;
    padding: 20px;
    background-color: #efefef;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Subáreas */
.subarea {
    margin-bottom: 25px;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.subarea-title {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}
.subarea-image {
    height: 50px;
    margin-right: 10px;
}
.subarea-title h2 {
    margin: 0;
    font-size: 1.4em;
}
/* Tarjetas */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    background-color: #fff;
    width: 100%;
    max-width: 400px;
    margin: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    transition: transform 0.15s;
}
.card:hover {
    transform: scale(1.03);
}
.card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 10px;
    border-radius: 10px;
}
.card-content {
    flex: 1;
    padding: 10px;
}
.card-content h3 {
    margin: 0;
    font-size: 1.1em;
}
.card-content p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #555;
}
/* Pie de página */
.footer {
    padding: 15px;
    background-color: #eee;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}
.footer img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}
.footer p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #555;
}
.hormiguilla {
    position: absolute;
    width: 18px;
    height: auto;
    z-index: 1000;
}
.tenebrio {
    position: absolute;
    width: 150px;
    height: auto;
    z-index: 1000;
}

@media screen and (max-width: 1900px) {
    body {
        font-size: 1.5em;
    }
    .header-image {
        max-width: 800px;
    }
    .header-sello-image {
        width: 60px;
    }
    .header-content {
        max-width: 100%;
    }
    .main-title {
        font-size: 1.9em;
    }
    .tabs button {
        font-size: 1.2em;
        margin: 12px;
        padding: 12px;
        width: 250px;
    }
    #header-right-image {
        display: none !important;
    }
}


/* CSS Profesor Formico*/
#ProfesorFormico {
    width: 80%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}
.chat-container {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.chat-image {
    flex: 0 0 150px;
    background-color: #f4f4f4;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chat-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5%;
}
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#chatHistory {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fff;
}
.input-area {
    padding: 10px;
    background-color: #f9f9f9;
    display: flex;
    border-top: 1px solid #ccc;
}
#userInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-shadow: 0 0 5px rgb(205, 205, 205);
}
#sendButton, #resetButton {
    margin-left: 10px;
    padding: 10px 15px;
    background-color: #e7df00;
    color: #393802;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#resetButton {
    color: #d4d4d4;
    background-color: #575757;
}
#sendButton:hover {
    background-color: #c2bb00;
}
#resetButton:hover {
    background-color: #292929;
}


/* Estilos de mensajes del chat del Profesor Formico */
.message {
   
}
.assistant-message img {
    margin: 0px 5px;
    height: 50px;
}

.user-message {
    margin: 10px;
    font-weight: bold;
    justify-content: flex-end;
    color: #343434;
    background-color: #ffffff;
}
.assistant-message {
    margin: 10px;
    justify-content: flex-start;
    color: #6e2a00;
    background-color: #fff;
    display: flex;
    align-items: center;
}
