/* ======================== VARIABLES ======================== */
:root {
    --blanco: #fff; /* Color de texto */
    --azul-turquesa: #67e8f9;
    --header-background: #072531; /* Color de fondo del header */
    --index-background: #0f0f0f; /* Color de fondo de la página principal */
    --background: #afafaf; /* Color de fondo de la página principal */
}

/* ======================== RESET ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: #0056b3 solid 0px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    height: 100%;
}

main {
    flex: 1; /* Esto empuja el footer hacia abajo */
}


/* ======================== HEADER ======================== */
.header {
    background-color: var(--header-background);
    color: var(--blanco);
    padding: 5px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.menu-logo {
    display: flex;
    align-items: center;
    width: auto;
    margin-right: 3%;
}

.menu-logo img {
    width: 32px;
    height: auto;
    margin-right: 8px;
}

.menu-logo a {
    color: var(--blanco);
    text-decoration: none;
    align-items: center;
    display: flex;
}

.menu-title {
    font-size: 2rem;
}

.menu-list {
    display: flex;
    align-items: center;
    font-size: 2rem;
}

.menu-list ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.menu-list li {
    position: relative;
}

.menu-list li a {
    color: var(--blanco);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-list li a:hover {
    color: var(--azul-turquesa);
}

/* Dropdown */
.menu-list ul .dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    background-color: #0b3c4a; /* un tono más suave del azul del header */
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1;
    left: 0;
}

.menu-list ul .dropdown-content a {
    color: var(--blanco);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    font-size: 1rem;
}

.menu-list ul .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--azul-turquesa);
    padding-left: 1.5rem;
}

.menu-list ul .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================ Estilos base para el botón hamburguesa ============== */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--blanco);
}

/* Media query para pantallas pequeñas */
@media (max-width: 1100px) {
    .menu-logo {
        flex: 1;
        justify-content: space-evenly;
    }

    .hamburger {
        display: block;
    }

    .menu-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--header-background);
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    .menu-list.show {
        display: flex;
    }

    .menu-list ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .menu-list li a {
        width: 100%;
    }

    .menu-list ul .dropdown-content {
        position: relative;
        transform: none;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        box-shadow: none;
        padding-left: 1rem;
    }

    .menu-list ul .dropdown:hover .dropdown-content {
        transform: none;
    }
}

/* =====================================================================
========================================================================
======================== INDEX.PHP =====================================
========================================================================
======================================================================== */

.index {
    background-color: var(--index-background);
}

/* ======================== PORTADA ======================== */
.portada {
    background-image: url(Images/FotoAlmacen.png);
    background-color: var(--background);
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;  /* Cambiar la dirección de los elementos a columna */
    justify-content: center;
    align-items: center;
    text-align: center;
}

.portada h1 {
    font-size: 4rem;
    color: #ffb516;
    margin-top: -30px;
    margin-bottom: 30px;
}

.portada p {
    font-size: 1.5rem;
    color: var(--blanco);
}

.portada h1, .portada p {
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.7),  /* glow suave alrededor */
        2px 2px 4px rgba(0, 0, 0, 0.5); /* sombra direccional */
}

/* ======================== ViDEO ======================== */

.video {
    padding: 4rem 2rem;
    /* color del fondo que sea una transición de arriba a abajo de #afafaf a #0f0f0f */
    background: linear-gradient(#afafaf, #0f0f0f);
    text-align: center;
}

.video h2 {
    font-size: 2.5rem;
    color: #010e2b;
    margin-bottom: 2rem;
}

.video video {
    max-width: 960px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* ======================== CARACTERISTICAS ======================== */

.features-section {
    padding: 2rem;
    text-align: center;
    background-color: #0f0f0f;
}

.features-section h2 {
    font-size: 2.5rem;
    color: var(--blanco);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 2rem;
}

.feature-card {
    background-color: #000;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: scale(1.03);
}

.feature-card h3 {
    color: var(--blanco);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #555;
    font-size: 1.3rem;
}

/* ======================== bolas ======================== */

.tech-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.tech-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 40px;
    font-family: sans-serif;
}

.tech-bubble-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* 🟢 más ancho */
    height: 550px;      /* 🔵 altura moderada */
    margin: 0 auto;
}

.tech-bubble {
    position: absolute;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    cursor: pointer;
    transform: scale(1.5);
}

.tech-bubble img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Tooltip */
.tech-bubble::after {
    content: attr(data-label);
    position: absolute;
    bottom: 110%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: all 0.2s ease;
}

.tech-bubble:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem; /* Añadir padding lateral para evitar que toque los bordes */
    }

    .tech-bubble-container {
        max-width: 95%;
        height: 600px; /* puede aumentarse ligeramente en móvil si lo ves apretado */
    }

    .tech-bubble {
        transform: scale(1);
    }

    .tech-title {
        font-size: 1.5rem;
    }
}

/* =====================================================================
========================================================================
===================== Contacto.PHP =====================================
========================================================================
======================================================================== */

/* ======================== CONTACTO ======================== */
/* Estilos generales */
.seccion-contacto {
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 80%;
    margin-inline: auto;
    padding: 40px 20px;
    background-color: #1a1b26;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #e0def4;
    font-family: "Segoe UI", sans-serif;
}

.seccion-contacto .formulario,
.seccion-contacto .mapa {
    flex: 1 1 45%;
    min-width: 300px;
}

.seccion-contacto h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ff9e64;
}

.seccion-contacto form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seccion-contacto input,
.seccion-contacto textarea {
    padding: 12px;
    border: 1px solid #3b3f5c;
    border-radius: 8px;
    background-color: #24283b;
    color: #e0def4;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.seccion-contacto input:focus,
.seccion-contacto textarea:focus {
    outline: none;
    border-color: #ff9e64;
    box-shadow: 0 0 0 2px rgba(255, 158, 100, 0.3);
}

.seccion-contacto button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #ff9e64;
    color: #1a1b26;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.seccion-contacto button:hover {
    background-color: #e68a54;
}

.seccion-contacto iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.button-dark {
    background-color: #d07f4a; /* Un color más oscuro que el original */
    cursor: not-allowed; /* Cambiar el cursor para indicar que no es clickeable */
    opacity: 0.7; /* O también puedes usar opacity para hacerlo más translúcido */
}
/* Media query para dispositivos móviles y pantallas pequeñas */
@media (max-width: 768px) {
    .seccion-contacto {
        padding: 20px 10px; /* Reduce el padding en móviles */
    }

    .seccion-contacto .formulario,
    .seccion-contacto .mapa {
        flex: 1 1 100%; /* Apilan las columnas verticalmente */
    }

    .seccion-contacto h2 {
        font-size: 1.25rem; /* Ajuste de tamaño para móviles */
        margin-bottom: 15px;
    }

    .seccion-contacto input,
    .seccion-contacto textarea {
        padding: 10px;
        font-size: 0.9rem; /* Reduce el tamaño de texto en móviles */
    }

    .seccion-contacto button {
        padding: 10px;
        font-size: 1rem; /* Ajuste de tamaño de botón */
    }

    .seccion-contacto iframe {
        height: 300px; /* Ajustar la altura del mapa en móviles */
    }
 
}

/* Igualar altura de columnas en escritorio */
@media (min-width: 769px) {
    .seccion-contacto .formulario,
    .seccion-contacto .mapa {
        display: flex;
        flex-direction: column;
        justify-content: stretch;
    }

    .seccion-contacto iframe {
        flex: 1;
    }

}

/* =====================================================================
========================================================================
===================== ABOUTUS.PHP =====================================
========================================================================
======================================================================== */

/* ======================== ABOUTUS ======================== */
.aboutus {
    padding: 3rem;
    text-align: left;
    margin-bottom: auto;
}

.contenido-about {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contenido-about{
    flex: 1 1 70%;
    text-align: left;
    padding: 0 2rem;
}

.contenido-equipo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
}

.equipo-cajas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;  /* Añadido espacio entre el título y las cajas */
}

.caja-equipo {
    width: 225px;
    height: 325px;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.caja-equipo:hover {
    transform: translateY(-10px);
}

.caja-equipo a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.caja-contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10px;
    text-align: center;
}

.caja-contenido img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.caja-contenido h3 {
    font-size: 20px;
    margin: 0;
}

.caja-contenido p {
    font-size: 17px;
    color: #555;
    margin-top: 5px;
}

/* ESTILOS RESPONSIVOS PARA MÓVIL */
@media (max-width: 768px) {
    .contenido-about {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .equipo-cajas {
        flex-direction: column;
        align-items: center;
    }

    .caja-equipo {
        width: 90%;
        max-width: 300px;
        height: auto;
    }

    .caja-contenido img {
        width: 120px;
        height: 120px;
    }

    .caja-contenido h3 {
        font-size: 18px;
    }

    .caja-contenido p {
        font-size: 16px;
    }
}

/* ======================== CONTENIDO PRINCIPAL ======================== */
main, .Descargar-proyecto, .footer {
    margin-top: 6rem;
}

.main-graph {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: 120px auto 0;
    width: 80%;
}

.myChart {
    width: 100%;
    height: 400px;
    max-width: 100%;
}

.filter-buttons {
    margin-top: 20px;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

.container p {
    padding-bottom: 20px;
}

.scada {
    padding: 2rem;
    text-align: center;
}

.scada-img img {
    max-width: 100%;
    height: auto;
}

.imagen-circular {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagen-circular img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 5px solid black;
    object-fit: cover;
}

/* ======================== FOOTER ======================== */

.footer {
    width: 100%;
    background-color: #14171b;
    color: #fff;
    text-align: center;
    align-self: flex-end;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.footer-txt,
.footer-img {
    flex: 1;
}

.footer-txt {
    flex: 1;
    max-width: 600px;
    margin: auto;
    text-align: left; /* Opcional, si prefieres alineado a la izquierda */
    margin-left: 10%;
}


.footer-img img {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    background-color: #222;
    color: #fff;
    padding: 0.5rem 0;
    text-align: center;
}


/* =======================================================================================
==========================================================================================
======================== MQTT.PHP ========================================================
==========================================================================================
==========================================================================================
==========================================================================================*/

/* ======================== MQTT ======================== */
#app {
    margin-top: 50px;
    display: flex;
    height: calc(95vh - 50px); /* Ajusta la altura para que no cubra el header */
    margin-bottom: 0px;
    max-height: calc(95vh - 50px); /* Ajusta la altura para que no cubra el header */
}

.sidebar {
    margin: 20px;
    border: #d07f4a solid 5px;
    border-radius: 15px;
    width: 25%;
    height: 100%;
    background-color: #1E1E1E;
    color: var(--blanco);
    padding: 20px;
    overflow-y: auto;
    max-height: calc(95vh - 50px); /* Ajusta la altura para que no cubra el header */
}

.sidebar h2 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.topic {
    margin-top: 10px;
    margin-left: 0px;
    margin-right: 0px;
    background-color: #e68a54;
    border: #df6a26 solid 3px;
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s ease;
    overflow: auto;
}

.topic:hover {
    transform: scale(1.03);
    cursor: pointer;
}


.chat {
    flex: 1; /* ✅ Para ocupar el espacio restante debajo del status */
    display: flex;
    flex-direction: column;
    background-color: #2b2b2b;
    background-image: url(Images/ChatBackground.png);
    background-repeat: repeat; /* se repite automáticamente */
    background-size: auto; /* o puedes usar 'contain' o 'cover' según prefieras */
    margin-right: 20px;
    border: #d07f4a solid 5px;
    border-radius: 15px;
    width: 100%;
    height: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.chat-header {
    padding: 15px;
    font-weight: bold;
    background-color: #1E1E1E;
    color: var(--blanco);
    border-radius: 12px 12px 0 0;
}


.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    min-width: 20%;
    padding: 10px 15px;
    border-radius: 10px;
    position: relative;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.message .topic-label {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
    color: #666;
    border-bottom: 2px solid #ccc; /* Usar el mismo color que el borde de los mensajes */
    padding-bottom: 4px; /* Espacio entre el texto y la línea */
}

.message .message-content {
    margin-top: 8px; /* Espacio entre la línea divisoria y el contenido */
}

.message.received {
    align-self: flex-start;
    background-color: #e0e0e0;
    border: #ccc solid 4px; /* Borde gris claro */
}

.message.received .topic-label {
    border-bottom: 2px solid #ccc; /* Línea divisoria gris claro */
}

.message-timestamp {
    font-size: 0.8em;
    color: gray;
    margin-bottom: 0px;
    /* lo ponemos en la parte inferior derecha del flex*/
    align-self: flex-end;
    text-align: right;
}


/* Animación fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación pulso suave */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animación de entrada deslizante para mensajes recibidos */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplicar animación fadeIn a los mensajes */
.message {
    animation: fadeIn 0.5s ease forwards;
    transition: background-color 0.3s ease;
}

/* Cambio de fondo en hover para mensajes */
.message:hover {
    background-color: #dcdcdc;
    cursor: default;
}

.topic {
    animation: fadeIn 0.5s ease;
}

@media (max-width: 768px) {
    #app {
        flex-direction: column;
        height: 95vh;
        margin-top: 50px;
        padding: 0 10px; /* pequeño padding horizontal */
        box-sizing: border-box;
    }

    .sidebar {
        order: 0;
        width: 100%;
        max-height: 25vh;
        overflow-y: auto;
        margin: 10px 0;
        padding: 10px;
        border-width: 3px;
        box-sizing: border-box;
    }

    .chat {
        order: 1;
        flex: 1;
        height: calc(70vh - 20px);
        width: 100%;
        margin: 10px 0 10px 0;
        border-width: 3px;
        box-sizing: border-box;
    }

    .messages {
        padding: 10px;
        box-sizing: border-box;
    }

    .message {
        max-width: 95%;
        font-size: 14px;
        box-sizing: border-box;
        word-wrap: break-word; /* para que no se desborde texto largo */
    }

    .message .topic-label {
        font-size: 12px;
    }

    .chat-header {
        font-size: 16px;
        padding: 10px;
        box-sizing: border-box;
    }

    .topic {
        font-size: 14px;
        padding: 8px;
        box-sizing: border-box;
    }
}

/* ================================================================================================
===================================================================================================
======================== Descargas.PHP ============================================================
===================================================================================================
===================================================================================================
===================================================================================================*/

/* ======================== DESCARGAS ======================== */
.Modelos {
    display: flex;
    flex-wrap: wrap; /* permite que se acomoden en varias líneas si no caben */
    gap: 80px;        /* espacio entre galerías */
    justify-content: center;
    padding-top: 100px; /* espacio superior para evitar que el header tape */
    padding-bottom: 40px;
}

.Galeria {
    width: 400px;
    background-color: #dbe4ee;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* distribuye el contenido de forma uniforme */
    height: 100%; /* para que todas las tarjetas midan lo mismo si están en un grid */
    border: 3px solid #b0c4de;
}

/* Imagen con tamaño fijo y ajuste uniforme */
.Galeria img {
    width: 100%;
    height: 200px; /* altura fija para todas las imágenes */
    object-fit: cover; /* recorta y ajusta la imagen para llenar el espacio */
    border-radius: 10px;
}

.Galeria h1 {
    height: 50px; /* o la altura que necesites */
    line-height: 1.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Opcional: recorta en una línea */
    margin: 15px 0; /* espacio superior e inferior */
    font-size: 1.8em;
}


/* Botón de descarga */
.Descargar {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;

}

.Descargar:hover {
    background-color: #005fa3;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sección inferior de Documentación y Código */
.DocyCod {
    align-self: center;
    text-align: center;
    max-width: 1360px; /* Igual al ancho visual de Modelos */
}

.DocYCodLista {
    display: flex;
    flex-direction: column; /* Apila en vertical */
    align-items: center;
    border-radius: 10px;
    border: 3px solid #b0c4de;
}

.DocYCodLista > div {
    width: 1354px; /* Igual a Galeria */
}

.Doc {
    display: flex;
    flex-direction: row;
    padding: 20px;
    background-color: #7d8891;
    border-bottom: 1px solid #636262;
    justify-content: space-between; /* h2 a la izquierda, botones a la derecha */
    align-items: center; /* alinea verticalmente */
    padding: 10px;
}

.FirstDoc {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.LastDoc {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


button.DesCod, button.DesDoc {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
}

/* Botón para código: azul vibrante */
button.DesCod {
    background-color: #eb8525; /* azul */
    color: white;
}

button.DesCod:hover {
    background-color: #d8711d;
    box-shadow: 0 4px 12px rgba(235, 133, 37, 0.5);
}

/* Botón para documentación: verde */
button.DesDoc {
    background-color: #10b981; /* verde */
    color: white;
}

button.DesDoc:hover {
    background-color: #059669;
    box-shadow: 0 4px 12px rgb(16 185 129 / 0.5);
}

/* Efecto de foco accesible */
button:focus-visible {
    outline: 3px solid #fbbf24; /* amarillo */
    outline-offset: 2px;
}

.DesPPTXTodo {
    align-self: center;
    display: flex;
    margin-top: 50px;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 200px;
}

.DesPPTX {
    background-color: #1f2937; /* Gris oscuro (estilo TokyoNight) */
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.DesPPTX:hover {
    background-color: #374151; /* Un poco más claro al pasar el cursor */
    transform: translateY(-2px);
}

.DesPPTX:active {
    transform: scale(0.98);
    background-color: #111827; /* Más oscuro al hacer clic */
}

/* =============================================================================
================================================================================
======================== MLE.PHP ===============================================
================================================================================
================================================================================
================================================================================*/

/* ======================== MLE ======================== */
.Sostenibilidad {
    background-color: #99b46e;
    background-image: url(Images/pool_table.webp);
    background-repeat: repeat; /* se repite automáticamente */
    background-size: auto; /* o puedes usar 'contain' o 'cover' según prefieras */
}

/* Título del grupo de preguntas */
#preguntas_container h3 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Cada bloque de pregunta */
.pregunta {
    margin-bottom: 2rem;
}

/* Texto de la pregunta */
.Pregunta {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #222;
}

/* Contenedor de respuestas */
.Respuestas {
    margin-top: 0.5rem;
}

.Respuestas label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}


/* Estilo para inputs, selects, radios, etc. dentro de respuestas */
.Respuestas select,
.Respuestas textarea {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Botón de guardar */
#preguntas_container button {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#preguntas_container button:hover {
    background-color: #0056b3;
}

/* Contenedor del inicio */
#inicio {
    max-width: 800px;
    margin: 12rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-self: center;
}

/* Título principal */
#inicio h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Párrafos informativos */
#inicio p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Botón de inicio */
#comenzar {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#comenzar:hover {
    background-color: #218838;
}

/* Contenedores generales */
#mensaje_rango,
#preguntas_container,
#consejos_container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Texto dentro de consejos o mensaje */
#mensaje_rango p,
#consejos_container p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.altura {
    min-height: 95vh; /* Asegura que ocupe al menos toda la altura de la ventana */
    display: flex;
    flex-direction: column;
}