.titulo{
    text-align: left;
    color: #ff0202;
    width: 60%;
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
}

.contacto{
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2%;
}


.contacto img{
    border-radius: 20px;
    box-shadow: 0px 4px 20px #000000;
    width: 100%;
    margin: 20px 0;
    height: auto;
}

.contacto-izq{
    width: 48%;
    margin: 0;
}

.contacto-izq-texto{
    width: 80%;
    text-align: justify;
}

.valores{
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.icono{
    width: 30px;
    height: auto;
    color: #ff0202;
}

.valores-texto h2{
    margin: 0;
    font-size: 16px;
}

.valores-texto p{
    margin: 2px 0 0 0;
}

textarea{
    resize: none;
}

.contacto-der{
    width: 48%;
    margin: 0;
}

.contacto-der h1{
    color: #ff0202;
    font-size: 1.5em;
}

.formulario{
    margin: 2%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px #000000;
}

input{
    margin-top: 3%;
    height: 40px;
    width: 100%;
    background-color: #eeeeee;
    border-color: transparent;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: 0.3s;
    padding: 10px;
}

textarea{
    margin-top: 3%;
    height: 100px;
    width: 100%;
    background-color: #eeeeee;
    border-color: transparent;
    resize: none;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: 0.3s;
    padding: 10px;
}

input::placeholder,
textarea::placeholder{
    color: #630000;
    opacity: 0.5;
}

input:focus, textarea:focus {
    border-color: #ff0202;
    box-shadow: 0 0 5px rgba(255, 2, 2, 0.3);
    outline: none;
}

.btn-enviar{
    background: #ff0202;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-enviar:hover{
    background: #630000;
    transform: translateY(-2px);
}

.form-titulo{
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.campo{
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.campo label{
    font-size: 14px;
    color: #000000;
    font-weight: 600;
}

/* Responsive - Tablet */
@media (max-width: 1024px){
    .titulo{ width: 90%; }
    .contacto{ width: 95%; flex-direction: column; }

    .contacto img{ width: 100%; margin: 20px 0; }

    .contacto-izq,
    .contacto-der{ width: 100%; }

    /* en 1024px para abajo: contacto-der va debajo */
    .contacto-der{ margin-top: 20px; }

    /* formulario debajo sin alterar el diseño base */
    .formulario{ margin: 10px 0 0 0; }

    .contacto-izq-texto{ width: 100%; }
}


/* Responsive - Telefonos */
@media (max-width: 768px){
    .titulo{ width: 92%; }

    .contacto{ width: 100%; padding: 24px 16px; }

    .contacto-izq{ margin: 0 0 18px 0; }
    .contacto-der{ margin: 0 0 18px 0; }

    .contacto-izq-texto{ width: 100%; margin-top: 18px; }

    .icono{ width: 28px; }

    .valores{ margin-top: 12px; }

    .formulario{ padding: 18px; }

    input, textarea{ border-radius: 8px; }
}

/* Responsive - Moviles pequeños */
@media (max-width: 480px){
    .titulo{
        width: 100%;
        font-size: 1.1rem;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .contacto{ padding: 28px 16px; }

    .contacto img{ width: 100%; margin: 0; border-radius: 16px; }

    .contacto-izq{ margin: 0 0 22px 0; }
    .contacto-der{ margin: 0 0 22px 0; }

    .valores{ gap: 8px; }
    .valores-texto h2{ font-size: 14px; }
    .valores-texto p{ font-size: 0.95em; }

    .formulario{ padding: 16px; }
}

