@font-face {
    font-family: "Roboto";
    src: url("../FONTS/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf")
        format("truetype");
    font-weight: 100;

    font-style: normal;
}
@font-face {
    font-family: "SulphurPoint";
    src: url("../FONTS/SulphurPoint-Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
body h1,
body h2,
body h3,
body h4 {
    font-family: "SulphurPoint", sans-serif !important;
}
body p,
body span,
body li,
body a {
    font-family: "Roboto", sans-serif !important;
}
header {
    width: 100%;
    height: 50vw;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    font-family: "Forum", sans-serif;
    background-image: url(../IMG/contacto2.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#myVideoH {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.H1 {
    position: absolute;
    left: 0;
    width: 28%;
    height: 100%;
    background-image: url(../IMG/Recurso2.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
}
.H2 {
    position: absolute;
    top: 0%;
    transform: translateY(0%);
    right: 0;
    width: 80%;
    background-color: #ffffffbf;
    z-index: 1;
    height: 12vw;
    display: flex;
    align-items: center;
    border-bottom-right-radius: 200px;
}
.H2 img {
    width: 50%;
    margin-left: 25%;
    cursor: pointer;
}
.Nav-1 {
    display: flex;
    align-items: center;
    margin-top: 40px;
    margin-left: 40px;
    position: relative;
    height: 5vw;
}
.Nav-1 img {
    width: 5vw;
    height: auto;
}
.Nav-1 p {
    margin-left: 10%;
    font-size: 2.5vw;
    color: orange;
}
#imgM1 {
    cursor: pointer;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
}
#imgM1 img {
    width: 5vw;
    height: 5vw;
}
#imgM2 {
    position: absolute;
    right: 10%;
}

#titlePag {
    margin-left: 40px;
    width: 90%;
    margin-top: 40%;
    font-size: 2vw;
    color: white;
    font-weight: 100;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#titlePag h2 {
    font-size: 2.6vw;
}
@supports (-webkit-touch-callout: none) {
    #titlePag h2 {
        font-size: 2.2vw; /* Ajusta a un tamaño menor solo en iOS */
    }
}
main {
    width: 100%;
    margin-bottom: 10vw;
    height: auto;
    font-family: "Roboto", sans-serif;
}
/* ===== SECCIÓN CONTACTO ===== */
.contacto {
    background: linear-gradient(
        180deg,
        #ff9800 0%,
        rgba(237, 162, 49, 0.5) 50%,
        #ffffff 100%
    );
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TÍTULO */
.contacto .titleContact h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* CONTENEDOR DEL FORMULARIO */
.contacto .formulario {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* FORM */
.contacto form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.contacto form div {
    width: 45%;
    display: flex;
    flex-direction: column;
}

/* LABELS */
.contacto label {
    font-weight: 600;
    color: #ff6f00;
    margin-bottom: 6px;
    margin-top: 16px;
}

/* INPUTS Y TEXTAREA */
.contacto input,
.contacto textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #ffd180;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* FOCUS */
.contacto input:focus,
.contacto textarea:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.25);
}

/* TEXTAREA */
.contacto textarea {
    resize: none;
}

/* BOTÓN */
.contacto button {
    margin-top: 25px;
    padding: 14px;
    background: linear-gradient(135deg, #ff9800, #ff6f00);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    width: 30%;
}

/* HOVER BOTÓN */
.contacto button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.4);
}

/* ===== RESPONSIVE MOBILE (600px) ===== */
@media (max-width: 600px) {
    header {
        height: 135vw;
        background-image: none;
    }
    .carruselheader {
        display: none;
    }
    .H1 {
        position: absolute;
        left: 0;
        width: 95%;
        height: 100%;
        background-image: url(../IMG/Recurso2.webp);
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
        top: -10%;
    }
    .H2 {
        position: absolute;
        top: 0;
        transform: translateY(0);
        left: 0;
        width: 95%;
        background-color: #ffffffbf;
        z-index: 2;
        height: 20vw;
        display: flex;
        align-items: center;
    }
    .Nav-1 {
        display: flex;
        align-items: center;
        margin-top: 30vw;
        margin-left: 40px;
        position: relative;
        height: 5vw;
        top: 10%;
    }
    .Nav-1 img {
        width: 15vw;
        height: auto;
    }
    #imgM1 img {
        width: 15vw;
        height: 15vw;
    }
    .Nav-1 p {
        margin-left: 10%;
        font-size: 5.5vw;
        color: orange;
    }
    #titlePag {
        margin-left: 40px;
        width: 80%;
        margin-top: 30%;
        font-size: 5vw;
        color: white;
        font-weight: 100;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    #titlePag h2 {
        font-size: 8vw;
    }
    @supports (-webkit-touch-callout: none) {
        #titlePag h2 {
            font-size: 6vw; /* Ajusta a un tamaño menor solo en iOS */
        }
    }
    #intro {
        font-size: 5vw;
    }
    .contacto {
        padding: 40px 15px;
    }
    .contacto form {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .contacto form div {
        width: 100%;
    }
    .contacto .titleContact h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .contacto .formulario {
        padding: 25px 20px;
        border-radius: 12px;
        width: 90%;
    }

    .contacto button {
        font-size: 1rem;
        padding: 12px;
    }
}
