@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

/* Códigos universales de la página */
body, .modal {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(5, 87, 58, 0.25);
    transition: all 500ms ease;
    opacity: 0;
    visibility: hidden;
}

#btn-modal:checked ~ .modal {
    opacity: 1;
    visibility: visible;
}

.contenedor {
    width: 90%;
    max-width: 700px;
    height: auto;
    min-height: 200px;
    padding: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    text-align: center;
    border: 2px solid #00723F; /* Borde visible */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Sombra ligera */
}

#btn-modal:checked ~ .modal .contenedor {
    transform: translateY(0%);
}

.contenedor header {
    padding: 10px;
    background: rgba(5, 87, 58, 0.25);
    color: #fff;
}

.contenedor label {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.contenido {
    width: 100%;
    padding: 10px;
}

.contenido h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contenido p {
    margin-bottom: 7px;
    font-size: 1rem;
}

#btn-modal {
    display: none;
}

.lbl-modal {
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Estilos para imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    .contenedor {
        width: 100%;
        max-height: none;
        font-size: 0.9rem;
        overflow-y: auto;
    }
}

@media only screen and (max-width: 480px) {
    .contenedor {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
        min-height: 250px;
    }
}
