@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/Hsectores.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: 30%;
    font-size: 2vw;
    color: white;
    font-weight: 100;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#titlePag h2 {
    font-size: 2.4vw;
}
@supports (-webkit-touch-callout: none) {
    #titlePag h2 {
        font-size: 2.2vw; /* Ajusta a un tamaño menor solo en iOS */
    }
}
main {
    width: 100%;
    margin-top: 5vw;
    margin-bottom: 10vw;
    height: auto;
    font-family: "Roboto", sans-serif;
}
#intro {
    width: 80%;
    font-size: 2vw;
    margin: 0 auto 3vw auto;
    text-align: justify;
}
.PrimerPanel {
    width: 100%;
    height: 60vw;
    display: flex;
    font-family: "Roboto", sans-serif;
}

.menuS {
    width: 26%;
    height: 100%;
    margin-left: 5%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    row-gap: 4vw;
    background-color: rgba(237, 162, 49, 0.5);
    padding-left: 1%;
    border-radius: 20px;
}
.menuS div {
    width: 90%;
    height: auto;
    padding: 0.5vw;
    cursor: pointer;
}
.menuS div span {
    font-size: 1.5vw;
}
.PrimerPanel article {
    width: 60%;
    margin-left: 4%;
    margin-right: 5%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.173);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.PrimerPanel article div p {
    font-size: 2vw;
    width: 90%;
    margin: auto;
    text-align: center;
}
.PrimerPanel article div h1 {
    font-size: 2.5vw;
    width: 95%;
    margin: auto auto 2vw auto;
    text-align: center;
}
.ContainerIA,
.ContainerPS,
.ContainerIP,
.ContainerCP,
.ContainerS,
.ContainerPR {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carruselIA,
.carruselPS,
.carruselS {
    width: 90%;
    margin: auto;
}

.ventana {
    overflow: hidden;
    width: 100%;
    margin-bottom: 3vw;
}

.track {
    display: flex;
    transition: transform 0.5s ease;
}

.track img {
    width: 80%;
    margin: 0px 10%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}
.content {
    transition:
        opacity 0.5s ease-in-out,
        visibility 1s;
}
.visible {
    opacity: 1;
    visibility: visible !important;
    display: flex !important;
}
.ocult {
    opacity: 0;
    visibility: hidden;
    display: none;
}
.menu-btn:hover {
    border-bottom: 1px orange solid;
}
.menu-btn.active {
    border-bottom: 1px orange solid;
}

@media screen and (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: 6vw;
    }
    #titlePag h2 {
        font-size: 5vw; /* Ajusta a un tamaño menor solo en iOS */
    }
    @supports (-webkit-touch-callout: none) {
        #titlePag h2 {
            font-size: 4vw; /* más pequeño específicamente en iOS */
        }
    }
    #intro {
        font-size: 5vw;
    }
    .PrimerPanel {
        height: 180vw;
        display: flex;
        flex-direction: column;
    }
    .PrimerPanel article div h1 {
        font-size: 5vw;
    }
    .menuS {
        width: 90%;
        margin: 5%;
        height: 40%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 5%;
        column-gap: 3%;
    }
    .menuS div {
        width: 90%;
        text-align: center;
    }
    .menuS div span {
        font-size: 6vw;
    }
    .PrimerPanel article {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
        height: 70%;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    .PrimerPanel article div p {
        font-size: 4.3vw;
        width: 90%;
    }
}
