.contacto{
    height: auto;
    background-color: var(--azul-claro);
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    padding:6rem 0;
}

.contact-section-frame{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap:5rem;
}

.contact-section-info{
    max-width: 596px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.contact-section-info p{
    font-family: "Azeret mono", monospace;
    font-size: 12px;
    font-weight: 400;
}

.contact-section-info h1{
    font-family: "Gunterz-regular";
    font-size: clamp(32px, 3vw, 40px);
    font-weight: 400;
}

.contact-section-form{
    max-width: 547px;
    height: 305px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 44px 44px 124px 36px;
    gap: 16px;
    
}
.contact-section-form input{
    font-family: "Azeret mono", monospace;
    font-size: 12px;
    padding: 8px 12px;
    height: 44px;
    border: none;
}

.btn-contact-send{
    text-decoration: none;
    font-family: "Azeret mono", monospace;
    font-size: 12px;
    height: 36px;
    width: 79px;
    background-color: var(--black);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-contact-send:hover{
    background-color: var(--azul-claro);
    border: 1px solid black;
    color: var(--black);
}

.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden; /* Oculta el popup por defecto */
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

.loading-popup.show {
    visibility: visible; /* Muestra el popup */
    opacity: 1;
}

.loading-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    font-family: "Azeret mono";
}

.loading-content .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid var(--black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden; /* Oculta el popup por defecto */
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

.custom-popup.show {
    visibility: visible; /* Muestra el popup */
    opacity: 1;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    font-family: "Azeret mono";
}

.popup-content h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.popup-close {
    background-color: var(--black);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup-close:hover {
    background-color: var(--white);
    color: black;
    border: 1px solid black;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-content p {
    font-size: 16px;
    color: #555;
}

@media screen and (max-width:768px) {
    .contacto{
        justify-content: center;
        align-content: center;
    }

    .contact-section-frame{
        width: 100%;
        justify-content: center;
        align-content: center;
        gap:2rem;
    }

    .contact-section-info{
        max-width: 330px;
    }

    .contact-section-form {
        width: 100%; /* Asegura que el formulario ocupe el ancho completo */
        max-width: 330px; /* Limita el ancho máximo */
        display: flex;
        flex-direction: column; /* Apila los inputs verticalmente */
        gap: 16px; /* Espaciado entre los inputs */
    }

    textarea{
        height: 150px;
    }

    .contact-section-info h1{
        font-size: 32px;
        width: 285px;
    }

}