@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,
body button {
    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/faq.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%;
}
.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);
}
main {
    width: 100%;
    margin-top: 5vw;
    margin-bottom: 10vw;
    height: auto;
    font-family: "Roboto", sans-serif;
}
#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 */
    }
}
.SegundoPanel {
    width: 90%;
    padding: 5%;
}

.SegundoPanel h2 {
    font-size: 2.5vw;
}

.SegundoPanel > div {
    display: grid;
    column-gap: 3.33%;
    row-gap: 1.5vw;
    grid-template-columns: auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 2% 5%;
    border-bottom: 0.1vw solid #f7931d;
    border-top: none;
    border-left: none;
    border-right: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.7vw;
    display: flex;
    align-items: center;
}

.faq-question:hover {
    background: rgba(237, 162, 49, 0.5);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    font-size: 1.4vw;
    opacity: 0;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* ajusta si el texto es más largo */
    padding: 15px;
    opacity: 1;
}

@media screen and (max-width: 600px) {
    header {
        height: 135vw;
        background-image: none;
    }
    main section div {
        width: 80%;
        height: 55%;
    }
    .TD {
        text-align: center;
        margin-right: 0;
        margin-left: 0;
    }
    .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: 7vw; /* más pequeño específicamente en iOS */
        }
    }
    .SegundoPanel > div {
        grid-template-columns: 100%;
        row-gap: 3.5vw;
    }

    .SegundoPanel h2 {
        font-size: 7.5vw;
    }

    .faq-question {
        font-size: 6vw;
        border-bottom: 0.5vw solid #f7931d;
    }

    .faq-answer {
        font-size: 5vw;
    }
}
