*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 1.2rem;
  font-family: "Rubik", sans-serif;
  color: #025373;
}

img {
  max-width: 100%;
  height: auto;
}

.aline-text {
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  font-size: 1.25rem;
  color: #025373;
}

main {
  flex-grow: 1;
}

.center-text {
  text-align: center;
}

.header {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  max-width: 8rem;
}

.abrir-menu,
.cerrar-menu {
  display: block;
  border: 0;
  font-size: 1.2rem;
  background-color: transparent;
  cursor: pointer;
}

.abrir-menu {
  padding: 1.2rem;
  color: #171818;
}

.cerrar-menu {
  color: #f2f2f2;
}

.nav {
  border: #0388a6;
  opacity: 0;
  visibility: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 1rem;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: #171818;
  padding: 2rem;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
}

.nav.visible {
  opacity: 1;
  visibility: visible;
}

.nav-lis {
  list-style-type: none;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: end;
}

.nav-lis li a {
  list-style-type: none;
  text-decoration: none;
  color: #025373;
  font-size: 1.1rem;
}

.nav-lis a {
  position: relative;
  display: block;
  overflow: hidden;
}

.nav-lis a span {
  transition: transform 0.2s ease-in-out;
}

.nav-lis a span:first-child {
  display: inline-block;
}

.nav-lis a span:last-child {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
}

.nav-lis a:hover span:first-child {
  transform: translateX(-100%);
}

.nav-lis a:hover span:last-child,
.nav-lis[data-animation] a:hover span:last-child {
  color: #f29829;
  transform: none;
}

.hero-image {
  min-height: 100vh;
  background-image: url(assets/JPG/portada.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  color: #f2f2f2;
  border-radius: 0;
}

.hero-image div {
  border-radius: 0;
  min-height: inherit;
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.55);
  text-align: center;
  align-items: center;
}

@keyframes show {
  from {
    opacity: 0;
    scale: 25%;
  }

  to {
    opacity: 1;
    scale: 100%;
  }
}
/*
img {
  view-timeline-name: --image;
  view-timeline-axis: block;
  animation-timeline: --image;
  animation-name show;
  animation-range: entry 25% cover 30%;
  animation-fill-mode: both;
}
*/
.flex-contenedor {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flex-item {
  padding: 1rem;
  text-align: center;
  color: #025373;
}

.flex-item img {
  border-radius: 0.5rem;
  box-shadow: 0 1rem 1rem 0 #171b24;
}

.footer {
  width: 100%;
  padding: 70px 30px 20px;
}

.social {
  display: flex;
  justify-content: center;
}

.social a {
  text-decoration: none;
  padding: 1rem;
  background-color: #025373;
  margin: 1rem;
  border: 0.15rem solid #025373;
  border-radius: 50%;
}

.social a i {
  font-size: 2rem;
  color: #f2f2f2;
  opacity: 0.9;
}

.social a:hover {
  background-color: #0388a6;
  transition: 0.5s;
}

.social a:hover i {
  color: #f2f2f2;
  transition: 0.5s;
}

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}
.float:hover {
  text-decoration: none;
  color: #fff;
  background-color: #1ab152;

  animation: shake 1s;

  animation-iteration-count: infinite;
}

.my-float {
  margin-top: 16px;
}

@keyframes shake {
  0% {
    transform: skewY(-15deg);
  }
  5% {
    transform: skewY(15deg);
  }
  10% {
    transform: skewY(-15deg);
  }
  15% {
    transform: skewY(15deg);
  }
  20% {
    transform: skewY(0deg);
  }
  100% {
    transform: skewY(0deg);
  }
}

@media screen and (min-width: 1024px) {
  .abrir-menu {
    display: none;
  }

  .cerrar-menu {
    display: none;
  }

  body {
    margin: 0 20%;
  }

  .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .nav {
    opacity: 1;
    visibility: visible;
    margin: 1rem;
    display: flex;
    align-items: center;
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    display: block;
  }

  .nav-lis {
    flex-direction: row;
  }

  .hero-image h1 {
    font-size: 2vw;
  }

  .hero-image {
    min-height: 100vh;
  }

  .flex-contenedor {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .flex-item {
    flex: 0 0 50%;
  }

  .flex-row-reverse {
    flex-direction: row-reverse;
  }

  .footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .footer img {
    gap: 2rem;
    max-height: 100%;
    width: auto;
  }
}
