* {
    margin: 0;
    padding: 0;
    color: var(--azul);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

:root {
    --rojo: #fe180d;
    --azul: #0a438b;
}

body {
    background-color: rgb(240, 240, 240);
    max-width: 100vw;
    overflow-X: hidden;
}

nav {
    width: 100%;
    height: 50px;
    background-color: var(--azul);
}

.resize {
    height: 100px;
}

nav ul {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

nav ul li {
    width: calc(100% / 3);
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    color: black;
}

nav ion-icon {
    color: white;
    font-size: 30px;
    margin: auto;
}

nav ion-icon:hover {
    color: black;
}

header {
    height: 100px;
    background-color: rgb(255, 196, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0vw;
    top: calc(0);
    left: 0;
    z-index: 99;
    max-width: 100vw;
    min-width: 100vw;
}

.hfix {
    position: fixed;
    transform: translateY(-100px);
}

header a {
    height: 80%;
    margin: auto 5vw;
}

header a img {
    height: 100%;
}

header form {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 40px;
    margin: auto 5vw;
    width: 50%;
}

header form .entrada {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    background-color: white;
    color: black;
    height: 100%;
    font-size: 14px;
    border: 0;
    padding: 0px 0px;
    padding-left: 20px;
}

header form .busqenv {
    height: 100%;
    background-color: white;
    color: black;
    border: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 5px;
    cursor: pointer;
}

header form .busqenv:hover {
    background-color: rgb(231, 231, 231);
}

header form .busqenv:hover .search {
    color: var(--rojo);
}

.contmodal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.527);
    z-index: -100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s;
    display: flex;
}

.show {
    opacity: 1;
    z-index: 100;
}

.modal {
    width: 90vw;
    height: 90vh;
    position: relative;
}

.modal img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 2vw;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    cursor: pointer;
    color: white;
}

.guille {
    background: url(img/guille.jpg);
    background-size: cover;
    background-position: center;
}

.fondoguille {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.473), rgba(255, 166, 0, 0.479));
}

.yushijiro {
    background: url(img/Gemini_Generated_Image_or7ysior7ysior7y.png);
    background-position: center;
    background-size: cover;
}

.fondoyushijiro {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.473), rgba(255, 255, 255, 0.479));
}

.bannercont {
    aspect-ratio: 15/3;
    width: 80%;
    margin: 100px auto;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
}

.abanner {
    aspect-ratio: 15/3;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

.abanner img {
    position: absolute;
}

.bimgl {
    top: 25%;
    left: 1%;
    height: 50%;
    object-fit: contain;
}

.benc1 {
    bottom: 15%;
    right: 2%;
    height: 50%;
}

.benc2 {
    top: 15;
    right: 9%;
    height: 50%;
}

.benc3 {
    bottom: 5%;
    right: 20%;
    height: 50%;
}

.anuncio {
    width: 80%;
    margin: 50px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rojo);
    font-size: 2vw;
}

.contcarrusel {
    width: 84%;
    margin: 50px auto;
    min-height: 600px;
    position: relative;
}

.contcarrusel h2 {
    text-align: center;
    font-size: 2vw;
    color: var(--rojo);
}

.contcarrusel .mov {
    position: absolute;
    top: calc(50% - 1vw);
    font-size: 2vw;
    z-index: 1;
    cursor: pointer;
}

.contcarrusel .derecha {
    right: 0;
    transform: translateX(100%);
}

.contcarrusel .izquierda {
    left: 0;
    transform: translateX(-100%);
}

.carrusel {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: scroll;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.conttarjeta {
    max-width: calc(100% / 3);
    min-width: calc(100% / 3);
    height: 100%;
    padding: 50px 0;
    scroll-snap-align: center;
}

.tarjeta {
    width: 90%;
    aspect-ratio: 9/13;
    margin: auto;
    border-radius: 30px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;

}

.tarjeta:hover {
    scale: 1.05;
}

.tarjeta:hover .contimg img {
    scale: 1;
}

.tarjeta .contimg {
    width: calc(100% - 40px);
    height: 40%;
    margin: 0px 20px;
    margin-top: 20px;
    position: relative;
}

.tarjeta .contimg .tarjetaimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    border-radius: 10px;
}

.tarjeta .contimg .tarjetalogo {
    position: absolute;
    bottom: -50px;
    left: calc(50% - 50px);
    width: 100px;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 50%;
    border: solid 5px white;
    object-fit: contain;
}

.tarjeta .tarjetatxt {
    height: 30%;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.tarjeta .tarjetatxt h3 {
    font-size: 1.5;
}

.tarjeta .tarjetatxt p {
    font-size: .9vw;
}

.tarjeta .tarjetabtn {
    height: 10%;
    margin-bottom: 20px;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 2.1vw;
    color: var(--rojo);
}

.tarjeta .tarjetabtn a ion-icon:hover {
    color: var(--rojo);
}


@keyframes vibracion {
    0% {
        transform: translate(0px, 0px);
    }

    20% {
        transform: translate(-5px, 5px);
    }

    40% {
        transform: translate(5px, -5px);
    }

    60% {
        transform: translate(-5px, 5px);
    }

    80% {
        transform: translate(5px, -5px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

.vibrando {
    animation: vibracion 0.1s linear;
}

@media (max-width:1500px) {
    .conttarjeta {
        min-width: 50%;
        min-width: 50%;
    }
}

@media (max-width:750px) {
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .close {
        top: 10%;
        right: 10%;
        font-size: 14vw;
    }

    header {
        min-height: 70px;
        height: 70px;
        max-width: 100vw;
        overflow: hidden;
    }

    .bannercont {
        border-radius: 10px;
        width: 94%;
        aspect-ratio: 16/5;
        margin: 30px auto;
    }

    .abanner {
        aspect-ratio: 16/5;
    }

    .bimgl {
        width: 50%;
    }

    .bimgf {
        max-width: 50%;
    }

    .contcarrusel {
        width: 90%;
        min-height: 20vh;
        margin: 20px auto;
    }

    .contcarrusel h2 {
        font-size: 6vw;
    }

    .contcarrusel .mov {
        font-size: 6vw;
    }

    .contcarrusel .derecha {
        transform: translateX(50%);
    }

    .contcarrusel .izquierda {
        transform: translateX(-50%);
    }

    .conttarjeta {
        min-width: 80%;
        max-width: 80%;
        padding: 20px 0;
    }

    .tarjeta .contimg {
        width: calc(100% - 20px);
        height: 40%;
        margin: 0 10px;
        margin-top: 10px;
    }

    .tarjeta .contimg .tarjetaimg {
        border-radius: 22px;
    }

    .tarjeta .contimg .tarjetalogo {
        width: 60px;
        height: 60px;
        left: calc(50% - 30px);
        bottom: -30px;
    }

    .tarjeta .tarjetatxt h3 {
        font-size: 5.2vw;
        margin-top: 20px;
    }

    .tarjeta .tarjetatxt p {
        font-size: 3.2vw;
    }

    .tarjeta .tarjetabtn {
        font-size: 9vw;
    }

    .anuncio {
        width: 94%;
        font-size: 4.5vw;
    }

    .anuncio p {
        width: 100%;
    }
}