@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Popins', sans-serif;
}
.contact{
    position: relative;
    min-height: 100vh;
    padding: 50px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: url(background.png);
    background-size: cover;
}

.contact .content {
    max-width: 800px;
    text-align: center; /* centra todo horizontalmente */
    color: #fff;
    padding: 20px;
}

.contact .content h2 {
    font-size: 48px;
    font-weight: 800;
    color: #ff3c3c;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    -webkit-text-stroke: 1px #000; /* borde negro */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* opcional para realce */
}


.contact .content p {
    text-align: justify; /* justifica el texto */
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #ffffffdd; /* blanco con algo de transparencia para suavizar */
}


.contact {
    position: relative;
    min-height: 100vh;
    padding: 50px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: url(background\ \(2\).png);
    background-size: cover;
    z-index: 1;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Cambia el 0.6 según opacidad deseada */
    z-index: -1;
}


.contact .content{
    max-width: 800px;
    text-align: center;
}

.contact .content h2{
    font-size: 36px;
    font-weight: 500;
    color: #fff;
}

.contact .content p{
    font-weight: 300;
    color: #fff;
}

.container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.container .contactInfo{
    width: 50%;
    display: flex;
    flex-direction: column;
}

.container .contactInfo .box{
    position: relative;
    padding: 20px 0;
    display: flex;
}

.container .contactInfo .box .icon{
    min-width: 60px;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    font-size: 22px;
}

.container .contactInfo .box .text{
    display: flex;
    margin-left: 20px;
    font-size: 16px;
    color: #fff;
    flex-direction: column;
    font-weight: 300;
}
 
.container .contactInfo .box .text h3{
    font-weight: 500;
    color: #ff0000;
}

.contactForm{
    width: 40%;
    padding: 40px;
    background: #fff;
}

.contactForm h2{
    font-size: 30px;
    color: #333;
    font-weight: 500;
}

.contactForm .inputBox{
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.contactForm .inputBox input,
.contactForm .inputBox textarea{
    width: 100%;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    resize: none;
}

.contactForm .inputBox span{
    position: absolute;
    left: 0;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    pointer-events: none;
    transition: 0.5s;
    color: #666;
}

.contactForm .inputBox input:focus ~ span,
.contactForm .inputBox input:valid ~ span,
.contactForm .inputBox textarea:focus ~ span,
.contactForm .inputBox textarea:valid ~ span{
    color: #e91e63;
    font-size: 12px;
    transform: translateY(-20px);
}

.contactForm .inputBox input[type="submit"]{
    width: 100px;
    background: #d40000;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
}

@media (max-width: 991px){
    .contact{
        padding: 50px;
    }
    .container{
        flex-direction: column;
    }
    .container .contactInfo{
        margin-bottom: 40px;
    }
    .container .contactInfo .contactForm{
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 30px 20px;
    }

    .contact .content h2 {
        font-size: 28px;
    }

    .contact .content p {
        font-size: 14px;
    }

    .container {
        flex-direction: column;
        align-items: stretch;
    }

    .container .contactInfo,
    .container .contactForm {
        width: 100%;
        padding: 20px;
    }

    .container .contactInfo .box {
        flex-direction: column;
        align-items: flex-start;
    }

    .container .contactInfo .box .icon {
        margin-bottom: 10px;
    }

    .contactForm h2 {
        font-size: 24px;
    }

    .contactForm .inputBox input,
    .contactForm .inputBox textarea {
        font-size: 14px;
    }

    .contactForm .inputBox input[type="submit"] {
        width: 100%;
    }
}
