* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    background-color: #99D9D9;
}

body {
    padding: 5%;
}

/* 🔹 Botones */
.mybtn {
    color: beige;
    height: 50px;
    font-size: 20px;
    margin: 5px;
    border: none;
}

.btnbox {
    display: flex;
    justify-content: space-between; /* Espaciado uniforme */
    gap: 20px;
    flex-wrap: wrap; /* Permite que los botones se acomoden en pantallas pequeñas */
    position: relative;
    z-index: 2;
}

.buttondesing {
    border-radius: 10px;
    background-color: #5BB9B9;
    padding: 12px 24px;
}

.buttondesing:hover {
    background-color: #3a9c9b;
}

/* 🔹 Texto */
p {
    font-size: 30px;
    color: #000000;
    text-align: center;
    padding-top: 20px;
    font-weight: bold;
}



p2 {
    font-size: 8px;
    color: #51b6b6;
    text-align: left;
    font-weight: bold;
    position: relative;
    top: -20px; /* Ajusta el valor según lo necesites */
}

h1 {
    padding-top: 20px;
    font-size: 25px;
    font-weight: normal;
}

/* 🔹 Estilos del texto de Laboratorios Mare */
.texto {
    font-size: 30px;
    color: white;
    text-align: center;
    padding-top: 20px;
    font-weight: bold;
}

.slogan {
    font-size: 30px;
    color: #000000;
    text-align: center;
    padding-top: 20px;
    font-weight: bold;
}

/* 🔹 Botón "Agotado" */
.boton-agotado {
    background-color: #17243D;
    color: #FFFFFF;
    font-size: 18px;
    text-transform: uppercase;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    text-align: center;
    display: block;
    width: fit-content;
    margin: 20px auto;
}

/* 🔹 Contenedores generales */
.hidden {
    display: none !important;
}

.container {
    position: relative;
    text-align: center;
}

/* 🔹 Sección de video */
#video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 350px; 
    display: none;
}

#youtube-video {
    width: 80%;
    max-width: 1280px;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* 🔹 Contenedor de imágenes */
.imagenes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 100px; /* Para evitar que las imágenes se solapen con los botones */
}

.imagenes img {
    width: 100%;
    max-width: 200px; /* Ajustar tamaño en pantallas grandes */
    height: auto;
    border-radius: 10px;
}

.imagenes-test img {
    width: 100%;
    max-width: 200px; /* Ajustar tamaño en pantallas grandes */
    height: auto;
    border-radius: 10px;
}

.imagenes img.seleccionado {
    border: 3px solid red;
}

/* 🔹 Ajuste de imágenes específicas */
.imagenes.pastillas img,
.imagenes.doctor img,
.imagenes.enfermera img {
    width: 100%;
    max-width: 400px;
    height: auto;
}





/* 🔹 Secciones de contraseña y video */
#password-section,
#password-section-2,
#video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    margin-top: -250px;
}

/* 🔹 Cuadro de texto y botón "Aceptar" */
#employee-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    margin-top: -250px;
}


#employee-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    margin-top: -250px;
    padding-top: 10%;
    
}

#employee-number button,
#employee-access button {
    width: 150px;
    height: 40px;
    background-color: #5BB9B9;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

#employee-number button:hover,
#employee-access button:hover {
    background-color: #3a9c9b;
}

/* 🔹 Inputs */
input[type="password"],
input[type="text"] {
    text-align: center;
    max-width: 100%;
}

input, button {
    padding: 10px;
    margin: 10px;
    font-size: 16px;
}

#password1 {
    width: 200px;
    height: 35px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}

/* 🔹 Corrección del hover del botón de password-section-2 */
#password-section-2 button {
    width: 150px;
    height: 40px;
    background-color: #5BB9B9;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

#password-section-2 button:hover {
    background-color: #3a9c9b;
}

/* 🔹 🟢 MEDIA QUERIES: Adaptación a móviles */
@media (max-width: 768px) {
    body {
        padding: 3%;
    }

    .texto {
        font-size: 32px;
        text-align: center;
    }

    .slogan {
        font-size: 18px;
        text-align: center;
    }

    .btnbox {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .boton-agotado {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .texto {
        font-size: 24px;
    }

    .slogan {
        font-size: 16px;
    }

    p {
        font-size: 24px;
    }
}

/* Diseño para pantallas grandes (horizontal) */
@media (min-width: 768px) {
    .imagenes {
        flex-direction: row;
    }
    .imagenes img {
        max-width: 150px; /* Ajuste para mantener uniformidad */
    }
}

/* Diseño para pantallas pequeñas (vertical) */
@media (max-width: 767px) {
    #employee-access {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100vh;
        margin-top: -250px;
        padding-top: 220%;
        
    }

    .imagenes {
        flex-direction: column;
        align-items: center;
        
    }
    .imagenes img {
        max-width: 30%; /* Mejor ajuste para móvil */
    }
}
