@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: "SulphurPoint", sans-serif;
}
#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%;
}
.Nav-1 {
    display: flex;
    align-items: center;
    margin-top: 40px;
    margin-left: 30px;
    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: 30px;
    width: 90%;
    margin-top: 40%;

    color: white;
    font-weight: 100;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#titlePag h2 {
    font-size: 2.8vw;
}
main {
    width: 100%;
    margin-top: 10vw;
    height: auto;
}
/*Primera Seccion*/
.PrimeraSeccion {
    width: 100%;
    position: relative;
    height: 50vw;
}
.titlePS {
    height: 10%;
    width: 30%;
    margin-left: 5%;
    font-family: "Forum", sans-serif;
    font-size: 3vw;
    margin-bottom: 2vw;
    color: orange;
}
.contentPS {
    position: relative;
    width: 100%;
    height: 90%;
    background-color: rgba(128, 128, 128, 0.299);
}
.img1PS {
    width: 60%;
    position: absolute;
    left: 0;
    z-index: -1;
}
.img1PS img {
    width: 100%;
    height: auto;
}
.textPS {
    position: absolute;
    top: -10%;
    right: 0;
    z-index: 1;
    width: 60%;
    height: 90%;
    text-align: right;
    background-image: url(../IMG/Recurso4.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
.textPS div {
    margin-top: 8%;
    margin-right: 8%;
    width: 70%;
    margin-left: 22%;
    color: black;
}
.textPS div h3 {
    font-size: 3.5vw;
    margin-bottom: 2vw;
    margin-top: 0;
    font-family: "Forum", sans-serif;
}
.textPS div p {
    font-size: 1.5vw;
    font-family: "Roboto", sans-serif;
}

/*Segunda Seccion*/
.SegundaSeccion {
    width: 90%;
    margin: 0px 5%;
    height: 60vw;
    margin-top: 7vw;
    position: relative;
}
#Productos,
#QyS,
#txt1SS,
#Publicidad,
#IA,
#txt2SS {
    height: 32%;
    position: absolute;
}

#Productos {
    background-image: url(../IMG/Recurso6.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#Productos h1 {
    font-size: 6vw;
    color: white;
    font-family: "Forum", sans-serif;
}
#QyS {
    background-image: url(../IMG/quimicofarmaceutico.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    right: 0;
    width: 62%;
    display: flex;
    align-items: end;
    justify-content: start;
}
#QyS h2 {
    font-size: 3.5vw;
    color: white;
    margin-left: 20%;
    margin-bottom: 3%;
    font-family: "Forum", sans-serif;
}
#QyS p {
    position: absolute;
    z-index: 3;
    width: 70%;
    left: 25%;
    font-size: 2.5vw;
    text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 4px;
    margin: auto;
    color: white;
    font-family: "Roboto", sans-serif;
    text-align: right;
}
#acompaña {
    display: none;
    background-image: url(../IMG/Recurso6.webp);
    background-size: 1000% 100%;
    background-position: right;
    background-repeat: no-repeat;
}
#txt1SS {
    background-image: url(../IMG/Recurso48.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    top: 34%;
    left: 0;
    width: 68.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Roboto", sans-serif;
    color: white;
    text-align: justify;
}
#txt1SS p {
    position: absolute;
    z-index: 3;
    width: 90%;
    font-size: 3vw;
    margin: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#Publicidad {
    background-image: url(../IMG/electrodomestico.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    top: 34%;
    right: 0;
    width: 30%;
    display: flex;
    align-items: end;
    justify-content: start;
}
#Publicidad p {
    position: absolute;
    z-index: 3;
    width: 90%;
    font-size: 2vw;
    margin: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    font-family: "Roboto", sans-serif;
}
#Publicidad h2 {
    font-size: 2.5vw;
    color: white;
    font-family: "Forum", sans-serif;
    margin-bottom: 3%;
}
#IA {
    background-image: url(../IMG/Recurso46.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    bottom: 0;
    left: 0;
    width: 40%;
    display: flex;
    align-items: end;
    justify-content: start;
}
#IA p {
    position: absolute;
    z-index: 3;
    width: 90%;
    font-size: 3vw;
    margin: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    font-family: "Roboto", sans-serif;
}
.beforeIA {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}
#IA h2 {
    font-size: 3vw;
    color: white;
    font-family: "Forum", sans-serif;
    margin-bottom: 3%;
}
.visibleI {
    visibility: visible !important;
}
.visiblebefore {
    background-color: rgba(237, 162, 49, 0.5) !important;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
}
#txt2SS {
    background-image: url(../IMG/Recurso47.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    bottom: 0;
    right: 0;
    width: 58.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Roboto", sans-serif;
    color: white;
    text-align: left;
}

#txt2SS p {
    position: absolute;
    z-index: 3;
    width: 90%;
    font-size: 3vw;
    margin: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/*Tercera Seccion*/
.TerceraSeccion {
    width: 100%;
    height: 50vw;
    margin-top: 7vw;
    position: relative;
}
.titleTS {
    width: 70%;
    margin-left: 30%;
    height: 17%;
    font-family: "Forum", sans-serif;
    background-image: url(../IMG/Recurso12.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.titleTS h1 {
    font-size: 6vw;
    margin-bottom: 5vw;
    color: white;
}
.CT {
    width: 95%;
    height: 75%;
    margin: 2% auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.tarjetasTS {
    width: 33%;
    height: 100%;
    font-family: "Forum", sans-serif;
}
#T1 {
    background-image: url(../IMG/Recurso13.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
#T2 {
    background-image: url(../IMG/Recurso14.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
#T3 {
    background-image: url(../IMG/Recurso15.webp);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
.tarjetasTS h2 {
    font-size: 3.4vw;
    width: 80%;
    color: gray;
    margin-top: 70%;
    margin-left: 10%;
    text-align: left;
}

#myVideo {
    display: none;
    width: 100%;
    height: auto;
    margin-top: 2vw;
}
.CT2 {
    display: none;
}
.CT2 {
    position: relative;
    width: 100%;
    max-width: 400px; /* ajusta según tu diseño */
    height: 80%;
    margin: auto;
    overflow: hidden;
}
.tarjetasTS2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
    opacity: 0; /* ocultas por defecto */
    font-family: "Forum", sans-serif;
}

.tarjetasTS2.active {
    opacity: 1; /* solo se ve la activa */
}
.arriba {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0000004d;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arriba h2 {
    font-size: 3.5vw;
    color: white;
    font-family: "Forum", sans-serif;
}
.abajo {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(237, 162, 49, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}
.arriba2 {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../IMG/quimicogris.webp);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.abajo2 {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../IMG/quimiconaranja.webp);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.arriba,
.abajo,
.arriba2,
.abajo2 {
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}
.visible {
    visibility: visible;
    opacity: 1;
}
.ocult {
    visibility: hidden;
    opacity: 0;
}
@media screen and (max-width: 900px) {
    #titlePag {
        margin-top: 30%;
    }
}
@media screen and (max-width: 600px) {
    header {
        height: 135vw;
        background-image: none;
    }
    #myVideoH {
        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;
    }
    .Nav-1 p {
        margin-left: 10%;
        font-size: 5.5vw;
        color: orange;
    }
    #imgM1 img {
        width: 15vw;
        height: 15vw;
    }
    #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;
    }
    #myVideo {
        display: block;
    }

    /*Primera Seccion*/
    .PrimeraSeccion {
        width: 100%;
        height: 200vw;
    }
    .img1PS {
        width: 90%;
        height: 60%;
        left: 0;
        bottom: -8%;
    }
    .img1PS img {
        width: 110%;
        height: auto;
    }
    .textPS {
        top: -5%;
        width: 90%;
        height: 60%;
    }
    .textPS div {
        width: 80%;
        margin-left: 17%;
        margin-right: 3%;
    }
    .textPS div h3 {
        font-size: 7vw;
    }
    .textPS div p {
        font-size: 3.4vw;
    }
    .textPS div {
        color: black;
    }
    .titlePS {
        text-align: end;
        width: 95%;
        margin-left: 0;
        margin-right: 5%;
        font-size: 7vw;
        margin-bottom: 2vw;
    }

    /*Segunda Seccion*/
    .SegundaSeccion {
        width: 95%;
        margin: 0px 2.5%;
        height: 250vw;
        margin-top: 13vw;
        overflow: hidden;
    }
    #Productos,
    #QyS,
    #txt1SS,
    #Publicidad,
    #IA,
    #txt2SS,
    #acompaña {
        height: 16%;
        position: absolute;
    }
    #Productos {
        width: 100%;
        background-image: none;
    }
    #Productos h1 {
        font-size: 12vw;
        color: orange;
    }
    #QyS {
        top: 15%;
        right: 0;
        width: 85%;
    }
    #acompaña {
        display: block;
        top: 15%;
        left: -70%;
        width: 100%;
        background-image: url(../IMG/Recurso6.webp);
        background-size: contain;
        background-position: right;
        background-repeat: no-repeat;
    }
    #QyS h2 {
        font-size: 5vw;
        color: white;
    }
    #QyS p {
        font-size: 5vw;
    }
    #txt1SS {
        top: 32%;
        width: 100%;
    }
    #txt1SS h2 {
        font-size: 9vw;
    }
    #txt1SS p {
        font-size: 6vw;
    }
    #Publicidad {
        top: 49%;
        right: 0;
        width: 100%;
        display: flex;
        align-items: end;
        justify-content: start;
    }
    #Publicidad h2 {
        font-size: 9vw;
    }
    #Publicidad p {
        font-size: 6vw;
    }
    #IA {
        top: 66%;
        left: 0;
        width: 100%;
    }
    #IA h2 {
        font-size: 9vw;
    }
    #IA p {
        font-size: 6vw;
    }
    #txt2SS {
        bottom: 1%;
        right: 0;
        width: 100%;
    }
    #txt2SS h2 {
        font-size: 9vw;
    }
    #txt2SS p {
        font-size: 6vw;
    }

    /*Tercera Seccion*/
    .TerceraSeccion {
        height: 140vw;
        margin-top: 15vw;
    }
    .titleTS {
        width: 90%;
        margin-left: 10%;
    }
    .titleTS h1 {
        font-size: 10vw;
        margin-bottom: 8vw;
        color: white;
    }
    .CT {
        display: none;
    }
    .CT2 {
        display: block;
        margin-top: 5%;
    }
    .tarjetasTS2 h2 {
        font-size: 11vw;
        width: 80%;
        color: gray;
        margin-top: 55%;
        margin-left: 0%;
        text-align: left;
    }
}
