/*modal */
.modal {
    display: none;
    position: fixed;
    margin-top: -100px;
    top: 0;
    width: 100%;
    height: 2100px;
    background-color: rgba(0, 0, 0, 0.552);
    /* Fondo traslúcido */
    z-index: 9;
    text-align: center;
    justify-items: center;
    opacity: 0;
    /* Inicialmente invisible */
    pointer-events: none;
    /* No interactivo */
    transition: opacity 0.3s ease;
    /* Transición suave de 0.3 segundos */
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    /* Hacer visible */
    pointer-events: auto;
    /* Habilitar interacciones */
}

.modal-content {
    background-color: #fff;
    max-width: 90%;
    width: 400px;
    margin: 20% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.modal h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3em;
    color: #333;
    margin-bottom: 20px;
}

.modal button {
    padding: 10px 20px;
    background-color: #9c6e12;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.modal.active .modal-content {
    transform: scale(1);
    /* Escala normal al hacer visible */
}

.modal button:hover {
    background-color: #85530e;
}

.modal-content img{
    width: 200px;
    height: 150px;
    margin-top: -20px;
    margin-bottom: -25px;
}

@media (max-width: 768px) {

    .modal{
        margin-top: 0px;
        height: 2040px;
    }

    .modal-content {
        margin-top: 250px;
        width: 400px;
        align-items: center;
        justify-items: center;
        justify-content: center;
    }
    
    .modal h2{
        font-size: 2rem;
    }
}

@media (max-width: 435px) {
    .modal{
        margin-top: 0px;
        height: 2100px;
    }

    .modal-content {
        margin-top: 250px;
        width: 400px;
        align-items: center;
        justify-items: center;
        justify-content: center;
    }
    
    .modal h2{
        font-size: 2rem;
    }
}

@media (max-width: 395px) {

    .modal{
        margin-top: -100px;
        height: 2100px;
    }

    .modal-content {
        margin-top: 250px;
        width: 400px;
        align-items: center;
        justify-items: center;
        justify-content: center;
    }
    
    .modal h2{
        font-size: 2rem;
    }
}

/*modal*/