#page-contact {
    margin: 0 1rem;
    box-sizing: border-box;
    font-family: 'avenir', sans-serif;
    .contact-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        column-gap: 2rem;
        padding: 3rem;
        box-sizing: border-box;
          

        .text-aproche {
            display: flex;
            flex-direction: column;
            margin: 0 auto;
            width: 40%; 
            margin-bottom: 4rem;
            gap: 0.5rem;
            color: rgba(92, 28, 28, 0.8);
            
            p {
                font-size: 1.6rem;
                line-height: 2rem;
                font-weight: bold;
                
            }
        }

        .contact {
            width: 40%;      
            margin: 0 auto;          
            box-sizing: border-box;

            p {
                font-size: 1.2rem;
                margin-bottom: 0.8rem;
                color: rgba(0, 0, 0, 1);
            }

            .contact-info {
                display: flex;
                flex-direction: column;
                line-height: 1rem;
                color: rgba(0, 0, 0, 1);
                margin-bottom: 2rem;
                gap: 0.6rem;

                .contact-email {
                    color: rgba(92, 28, 28, 0.8);
                    text-decoration: none;
                }
            }

            form {
                display: flex;
                flex-direction: column;
                gap: 1rem; 

                .flash-message {
                    padding: 10px;
                    margin-bottom: 10px;
                    border-radius: 5px;
                    font-size: 16px;
                }
                
                .flash-success {
                    background-color: black;
                    color: white;
                    border: 1px solid white;
                    text-align: center;
                }
                
                /* Opcional: Estilos para otros tipos de mensajes */
                .flash-error {
                    background-color: red;
                    color: white;
                }
                .flash-warning {
                    background-color: orange;
                    color: white;
                }
                

                .row {
                    display: flex;
                    gap: 1rem;  
                    
                    :nth-child(1) {
                        width: 100%;
                    }
                    :nth-child(2) {
                        width: 100%;
                    }
                }
            }

            

            input, textarea {
                box-sizing: border-box;
                width: 100%;
                padding: 0.75rem;
                border: none;
                background-color: #f0f0f0; 
                font-size: 1rem;
                outline: none;           /* Quita el contorno azul al hacer clic */
                border-radius: 2px;
            }

            input::placeholder, textarea::placeholder {
                color: rgba(92, 28, 28, 0.8);
            }

            textarea {
                resize: none; /* Desactiva el redimensionamiento manual (opcional) */
            }

            button {
                width: 50%;
                align-self: flex-end;
                background-color: rgba(92, 28, 28, 0.9);
                border: none;
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
                padding: 0.75rem 1.5rem;
                font-size: 1rem;
                cursor: pointer;
                color: white;
                font-weight: bold;
                border-radius: 2px;
                transition: font-size 0.3s ease, background-color 0.3s ease, color 0.3s ease;
            }

            button:hover {
                background-color: #f0f0f0;
                color: rgba(92, 28, 28, 1);
                font-size: 1.1rem;
                box-shadow: none;
            }
        }
    }
}

@media screen and (max-width: 1350px) {
    #page-contact {
        .contact-container {
            .text-aproche {
                width: 60%;
            }
            .contact {
                width: 60%;
                margin-bottom: 6rem;
            }
        }
    }
}


@media screen and (max-width: 900px) {
    #page-contact {
        .contact-container {
            padding-top: 0;
            .text-aproche {
                width: 80%;
                p {
                    font-size: 1.4rem;
                }
            }
            .contact {
                width: 80%;
                margin-top: 0;
            }
        }
    } 
}

@media screen and (max-width: 756px) {
    #page-contact {
        .contact-container {
            padding: 0;
            .text-aproche {
                width: 90%;
            }
            .contact {
                width: 90%;
    
                h1 {
                    font-size: 1.2rem;
                }
    
                form {
                    gap: 0.5rem;
                }
    
                button {
                    width: 100%;
                }
            }
            
        }
    } 
}


@media screen and (max-width: 485px) {
    #page-contact {
        margin: 0 0.4rem;
        .contact-container {
            .text-aproche {
                margin-bottom: 2rem;
            }
            .contact {
                h1 {
                    margin-bottom: 2rem;
                }
            }
        }
    } 
}