:root {
  --color-white: #fff;
  --color-black: #000;
  --color-quaternary: #075ebd;
  --color-tertiary: #07366a;
  --color-primary: #3689e2;
  --color-success: #208436;
  --color-secondary: #6c757d;
  --color-warning: #f7e704;
  --color-azul-naval: #000080;    
}
.bg-azul-naval {
  background-color: var(--color-azul-naval)
}
.text-azul-naval {
  color: var(--color-azul-naval)
}
.bg-quaternary {
  background-color: var(--color-quaternary)
}
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
}
.card {
  width: auto;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  h2 {
    position: absolute;
    inset: auto auto 30px 20px;
    margin: 0;
    transition: inset .4s .1s ease-out;
    text-transform: uppercase;
  }
  p {
    position: absolute;
    opacity: 0;
    max-width: 80%;
    transition: opacity .3s ease-out;
    inset: auto auto 5px 20px;
    font-size: 0.85em;
    color: inherit;
    text-decoration: none;
  }
  &:hover h2 {
    inset: auto auto 125px 20px;
    transition: inset .2s ease-out;
    color:var(--color-quaternary);
      border-bottom: 4px solid var(--color-quaternary)
  }
  &:hover p {
    opacity: 1;
    transition: opacity .4s .1s ease-in;
  }
}
@media (min-width:990px) and (max-width: 1198px) {
  .card {
    height: 190px;
    &:hover h2 {
      inset: auto auto 135px 20px;
    }
  }
}
@media (min-width:768px) and (max-width: 989px) {
  .card {
    height: 250px;
    &:hover h2 {
      inset: auto auto 180px 20px;
    }
  }
}
@media (min-width:576px) and (max-width: 767px) {
  .card {
    height: 230px;
    &:hover h2 {
      inset: auto auto 160px 20px;
    }
  }
}
@media (min-width:391px) and (max-width: 575px) {
  .card {
    height: 140px;
    h2 {
      font-size: 1.4em;
    }
    p {
      font-size: 0.74em;
    }
    &:hover h2 {
      inset: auto auto 80px 20px;
    }
  }
}
@media (max-width:390px) {
  .card {
    height: 150px;
    h2 {
      font-size: 1.2em;
    }
    p {
      font-size: 0.72em;
    }
    &:hover h2 {
      inset: auto auto 100px 20px;
    }
  }
}
.footer{
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
}