* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

:root {
    --naranja: #ee9c01;
    --azul: #446eb3;
    --rosita: #dbb4b4;
    --naranja: #e18a51;
    --color-wellness: #dbb4b4;
    --color-panza: #e18a51;
    --fondopag:rgb(233, 233, 233);
}

body {
    background:var(--fondopag);
    margin: 0;
    /* scroll largo para ver el efecto */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

header {
    height: 100px;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-around;
    transition: 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.lineaheader {
    border: none;
    height: 2px;
    background-color: var(--azul);
    width: 80vw;
    position: absolute;
    bottom: 0;
    left: 10vw;
    transition: 0.4s;
}

.fondohead {
    background-color: white;
}

.fondohead .lineaheader {
    height: 0;
}

header .logo {
    height: 80%;
}

header .logo img {
    height: 100%;
}

header ul {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

header ul a {
    text-decoration: none;
    color: var(--naranja);
    font-weight: 700;
    font-size: 1vw;
}

header ul a:hover {
    color: var(--azul);
}

.portada {
    height: 100vh;
    background: url(img/cdmx.png);
    background-position: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.capaportada {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(53, 53, 53, 0.596);
}

.txtportada {
    color: white;
    position: absolute;
    z-index: 1;
    bottom: 15%;
    left: 10%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 20px;
}

.txtportada h2 {
    font-size: 2.5vw;
}

.txtportada a {
    font-size: 1.2vw;
    padding: 5px 15px;
    background-color: white;
    color: var(--azul);
    border-radius: 20px;
    text-decoration: none;
}

.txtportada a:hover {
    color: var(--naranja);
}

.sobrenosotros {
    margin: 150px auto;

    padding: 0px 0;
    width: 100%;
    background-color: rgb(248, 248, 248);
    display: flex;
    overflow: hidden;
    min-height: 30vh;
}

.sobrenosotros div {
    width: 50%;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8%;
    justify-content: center;
}

.sobrenosotros div h2 {
    font-size: 1.8vw;
    border-left: #446eb3 6px solid;
    padding: 0 10px;

}

.sobrenosotros p {
    font-size: 1.1vw;
    padding: 0 10px;
    border-left: #446eb3 6px solid;
}

.sobrenosotros img {
    width: 50%;
}

.contacto {
    background: url(img/privada.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 10vh;
}

.contacto h2 {
    font-size: 2vw;
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.contactos {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.contactos a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-decoration: none;
    color: var(--azul);
    background-color: white;
    aspect-ratio: 1;
    width: 100px;
    gap: 20px;
    border-radius: 10px;
    font-size: 1vw;
    background: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-shadow: 0px 0px 15px 1px rgba(8, 8, 8, 0.95) inset;
    -webkit-box-shadow: 0px 0px 15px 1px rgba(74, 74, 74, 0.95) inset;
    -moz-box-shadow: 0px 0px 15px 1px rgba(74, 74, 74, 0.95) inset;
    font-weight: 900;
    transition: 0.2s;
}

.contactos a:hover {
    color: var(--naranja);
}

.contacto a ion-icon {
    font-size: 2vw;
}

.demos {
    width: 100%;
    padding: 20px 2.5vw;
    margin: 80px 0;
}

.demos h2 {
    text-align: center;
    margin: 20px;
}

.conttarjetas {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
}

.overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.425);
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3vw;
    color: white;
    cursor: pointer;
}

.overlay img {
    height: 90%;
}

/* animaciones */

@keyframes infomostrar {
    50% {
        transform: translateY(-10%);
    }

    100% {
        transform: translateY(30%);
    }
}


@keyframes overflownone {
    to{
        overflow: initial;
    }
}


@keyframes infonone {
    0% {
        transform: translateY(30%);
    }

    50% {
        transform: translateY(-10%);
    }

    100% {
        transform: translateY(120%);
    }
}

@keyframes overflowyes {
    0% {
        overflow: initial;
        pointer-events: none;
    }

    50% {
        overflow: hidden;
    }
}

/* fin animaciones */



.tarjeta {
    display: flex;
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
}

.tarjeta:hover .info {
    animation: infomostrar .7s forwards;
}

.tarjeta:hover {
    animation: overflownone .7s forwards ;
}

.tarjeta:not(:hover) {
    animation: overflowyes .7s forwards;
}

.tarjeta:not(:hover) .info {
    animation:  infonone .7s forwards;
}

.tarjeta img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 30px;
}

.info {
    background-color: white;
    position: absolute;
    width: 80%;
    bottom: 0;
    left: 10%;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-evenly;
    border-radius: 30px;
    transform: translateY(100%);
    transition: all 1s;
}

.info h3 {
    font-size: .9vw;
}

.info p {
    font-size: .8vw;
}

.info button {
    border: none;
    background-color: transparent;
    margin: 0 auto;
    text-decoration: none;
    color: var(--azul);
    cursor: pointer;
}

footer {
    width: 100%;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.footertop {
    border-top: #446eb3 2px solid;
    display: grid;
    width: 86%;
    margin: auto;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
}

.foocontacto {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.foocontacto h3 {
    font-size: 2vw;
}

.foocontacto ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
}

.foocontacto ion-icon {
    font-size: 2vw;
    color: black;
}

.foocontacto ion-icon:hover {
    color: gray;
}

.foomenu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foomenu ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.foomenu ul li a {
    text-decoration: none;
    color: black;
    font-size: 1vw;
}

.foomenu ul li a:hover {
    color: gray;
}

.foologo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foologo img{
    width: 70%;
    margin: 30px 0;
}

.footerbot {
    height: 50px;
    background-color: black;
    font-size: 1vw;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footerbot a {
    color: white;
    text-decoration: none;
}

@media (max-width:991px) {
    header {
        position: initial;
        flex-direction: column;
        height: auto;
        justify-content: center;
        gap: 10px;
        padding: 20px;
    }

    header .logo img {
        height: 90px;
    }

    header ul {
        width: 80%;
    }

    header ul a {
        font-size: 3.2vw;
    }

    .txtportada h2{
        font-size: 5.5vw;
    }

    .txtportada a {
        font-size: 4vw;
    }

    .sobrenosotros {
        display: flex;
        flex-direction: column;
        margin: 100px 0;
    }

    .sobrenosotros div{
        width: 100%;
        padding: 8vw;
    }

    .sobrenosotros img {
        width: 90%;
        margin: auto;
    }

    .sobrenosotros div h2  {
        font-size: 5vw;
    }

    .sobrenosotros p {
        font-size: 3vw;
    }

    .demos h2{
        font-size: 6vw;
    }

    .conttarjetas {
        width: 80%;
        grid-template-columns: 1fr;
        gap: 20vw 2vw;
    }


    .cerrar {
        font-size: 15vw;
    }
    
    .overlay img {
        width: 90%;
        height: auto;
    }

    .info h3 {
        font-size: 3.3vw;
    }

    .info p {
        font-size: 2.2vw;
    }

    .contacto {
        padding: 10vh 5vw;
    }

    .contacto h2 {
        font-size: 6.6vw;
    }

    .contactos {
        justify-content: space-between;
    }

    .contactos a ion-icon {
        font-size: 8vw;
    }

    .footertop {
        width: 70%;
        grid-template-columns: 1fr;
        gap: 3vh;
    }
    
    .foocontacto {
        justify-content: center;
        gap: 2vh;
    }

    .foocontacto h3 {
        font-size: 4.5vw;
    }

    .foocontacto ion-icon {
        font-size: 7vw;
    }

    .foomenu ul li a {
        font-size: 3.6vw;
    }

    .footerbot {
        font-size: 3.3vw;
    }
}