@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;
}
.carruselheader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.activo {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texto {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5vw;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    text-align: center;
    pointer-events: none;
}
.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: 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: 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.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-top: 10vw;
    height: auto;
}
.valores {
    width: 100%;
    height: auto;
    margin: 2vw 0vw;
    font-family: "Roboto", sans-serif;
}
.valores p {
    font-size: 1.7vw;
    width: 100%;
}
.NvS {
    width: 60%;
    min-height: 10vw;
    display: flex;
    align-items: center;
    justify-content: right;
    background-image: url(../IMG/Recurso12.webp);
    background-size: 100% 100%;
    background-position: center;
    transform: scaleX(-1);
    background-repeat: no-repeat;
}
.NvS h2 {
    margin-bottom: 3.5vw;
    margin-right: 5vw;
    transform: scaleX(-1);
    font-size: 3vw;
    font-family: "Forum", sans-serif;
}
.introVal {
    width: 80%;
    margin: auto;
    text-align: justify;
}
#TitleMVC {
    text-align: center;
    font-family: "Forum", sans-serif;
    font-size: 4vw;
    color: #f7931d;
    margin: 5vw 0 1vw 0;
}
.ident {
    display: flex;
    column-gap: 1vw;
    font-family: "Forum", sans-serif;
}
.ident > div {
    width: 30%;
    margin: 1.5%;
    padding: 1.5%;
    min-height: 35vw;
    background-color: #cdcdcd;
    border-bottom-right-radius: 200px;
    box-shadow: rgba(0, 0, 0, 0.7) 10px 10px 20px;
}
.ident div div h1 {
    font-size: 2vw;
}
.ident div div p {
    font-size: 1.5vw;
}
.ident div div img {
    width: 20%;
    height: auto;
}
.ident2 {
    display: none;
}
.ident2 {
    position: relative;
    width: 100%;
    height: 140vw;
    margin: auto;
    overflow: hidden;
}
.cabeceraT {
    display: flex;
    align-items: center;
}
.cabeceraT h1 {
    margin-left: 2vw;
    font-size: 7vw;
}
.ident2 div div {
    width: 80%;
    margin: 2vw auto;
}
.ident2 div div p {
    font-size: 4.8vw;
    margin: 0;
}
.ident2 div div img {
    width: 30%;
    height: auto;
}
.tarjetasTS2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    transition: opacity 0.8s ease;
    opacity: 0; /* ocultas por defecto */
    font-family: "Forum", sans-serif;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #cdcdcd;
    border-bottom-right-radius: 200px;
    box-shadow: rgba(0, 0, 0, 0.7) 10px 10px 20px;
    margin-top: 3%;
    margin-left: 7.5%;
}

.tarjetasTS2.active {
    opacity: 1; /* solo se ve la activa */
}
.carousel-container {
    width: 100%;
    height: 20vw;
    /* Ajusta según quieras mostrar 3 elementos */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5vw;
}

.carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.carousel-item {
    width: 90%;
    margin: 0.5vw 0;
    padding: 1vw;
    border-radius: 8px;
    opacity: 0.8;
    transform: scale(0.8);
    text-align: center;
    background-color: rgba(237, 162, 49, 0.5);
    transition:
        transform 0.3s,
        opacity 0.3s;
    font-size: 2vw;
}

.active {
    opacity: 1;
    transform: scale(1);
    transition:
        scale 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
}
.TercerPanel {
    width: 90%;
    padding: 5%;
}

.TercerPanel h2 {
    font-size: 3vw;
}
.TercerPanel p {
    font-size: 1.5vw;
}
.TercerPanel p a {
    text-decoration: none;
    font-style: oblique;
    color: #f7931d;
}
.TercerPanel p a:hover {
    text-decoration: underline;
}
.circleO {
    width: 2vw;
    height: 2vw;
    background-color: #f7931d;
    margin-right: 1vw;
}
.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;
    color: black;
}
.faq-question {
    -webkit-appearance: none; /* Quita el estilo por defecto de iOS */
    -webkit-tap-highlight-color: transparent; /* Quita el resaltado azul al tocar */
    color: inherit; /* Forzar que use tu color definido */
    text-decoration: none; /* Quita subrayado si lo hubiera */
}

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

.faq-answer {
    display: none;
    padding: 2% 10%;
    font-size: 1.4vw;
    width: 80%;
    transition:
        scale 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
}
.faq-answer p {
    margin: 0;
}
.faq-item.active .faq-answer {
    display: block;
}

@media screen and (max-width: 1024px) {
    .ident > div {
        min-height: 45vw;
    }
}
@media screen and (max-width: 800px) {
    .ident > div {
        min-height: 50vw;
    }
}
@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%;
    }
    #imgM1 img {
        width: 15vw;
        height: 15vw;
    }
    .Nav-1 img {
        width: 15vw;
        height: auto;
    }
    .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: 6.7vw;
    }
    @supports (-webkit-touch-callout: none) {
        #titlePag h2 {
            font-size: 5.7vw; /* más pequeño específicamente en iOS */
        }
    }
    .ident {
        display: none;
    }
    .ident2 {
        display: block;
    }
    #TitleMVC {
        font-size: 8vw;
        margin-top: 20vw;
        margin-bottom: 5vw;
    }
    .valores {
        height: 160vw;
    }
    .NvS {
        width: 90%;
        min-height: 15vw;
        margin-left: 10%;
        transform: none;
    }
    .NvS h2 {
        margin-bottom: 6vw;
        font-size: 6vw;
        transform: none;
    }
    .valores p {
        font-size: 4.2vw;
    }
    .carousel-container {
        height: 40%;
    }
    .carousel-item {
        font-size: 6vw;
        margin: 0;
        padding: 3vw;
    }
    .TercerPanel h2 {
        font-size: 8vw;
        text-align: center;
    }
    .TercerPanel button {
        font-size: 5.5vw;
    }
    .TercerPanel p {
        font-size: 5vw;
    }
    .circleO {
        width: 4vw;
        height: 4vw;
        margin-right: 3vw;
    }
    .faq-answer {
        padding: 2% 5%;
        font-size: 4.5vw;
        width: 90%;
    }
}
