@import url("https://fonts.googleapis.com/css?family=Quicksand:400,500,700");

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  font-size: 62.5%;
  font-size: 10px;
}

.nav {
  width: 100%;
  height: 65px;
  position: fixed;
  line-height: 65px;
  text-align: center;
  z-index: 1000;
}

.nav div.logo {
  float: left;
  width: auto;
  height: auto;
  padding-left: 3rem;
}

.nav div.logo a {
  text-decoration: none;
  color: #fff;
  font-size: 2.5rem;
}

.nav div.logo a:hover {
  color: #00e676;
}

.nav div.main_list {
  height: 65px;
  float: right;
}

.nav div.main_list ul {
  width: 100%;
  height: 65px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav div.main_list ul li {
  width: auto;
  height: 65px;
  padding: 0;
  padding-right: 3rem;
}

.nav div.main_list ul li a {
  text-decoration: none;
  color: #fff;
  line-height: 65px;
  font-size: 2.4rem;
}

.nav div.main_list ul li a:hover {
  color: #00e676;
}

.home {
  width: 100%;
  height: 100vh;
  background-image: url(../images/fondos/i1.jpg);
  background-position: center top;
  background-size: cover;
}

.transparent-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 20px 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.transparent-container h1 {
  font-size: 4.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.transparent-container p {
  font-size: 1.6rem;
  margin: 0;
}

.navTrigger {
  display: none;
}

.nav {
  padding-top: 20px;
  padding-bottom: 20px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

@media screen and (max-width: 768px) {
  .navTrigger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    margin: auto;
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
  }

  .navTrigger i {
    background-color: #926d6d;
    border-radius: 2px;
    display: block;
    width: 100%;
    height: 4px;
  }

  .navTrigger i:nth-child(2) {
    margin: 5px 0;
  }

  .nav div.main_list {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: rgba(0, 67, 165, 1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
  }

  .nav div.main_list.show_list {
    display: flex;
  }

  .nav div.main_list ul {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 0;
    margin-bottom: 20rem;
  }

  .nav div.main_list ul li a:hover {
    color: #00e676;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
  }

  .nav div.main_list ul li {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav div.main_list ul li a {
    font-size: 3rem;
    color: #fff;
    padding: 20px;
    text-decoration: none;
  }

  .nav div.main_list ul li a:hover {
    color: #00e676;
  }

  .navTrigger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: absolute;
    right: 20px;
    z-index: 10000;
  }
  .navTrigger.active i:nth-child(1) {
    transform: translateY(9px) rotate(135deg);
  }

  .navTrigger.active i:nth-child(2) {
    opacity: 0;
  }

  .navTrigger.active i:nth-child(3) {
    transform: translateY(-9px) rotate(-135deg);
  }

  .navTrigger i {
    background-color: #fff;
    border-radius: 2px;
    display: block;
    width: 100%;
    height: 4px;
    margin: 5px 0;
  }
}

.navTrigger i:nth-child(1) {
  transition: 0.4s ease-in-out;
}
.navTrigger i:nth-child(2) {
  transition: 0.4s ease-in-out;
}
.navTrigger i:nth-child(3) {
  transition: 0.4s ease-in-out;
}

.navTrigger.active i:nth-child(1) {
  transform: translateY(9px) rotate(135deg);
}

.navTrigger.active i:nth-child(2) {
  opacity: 0;
}

.navTrigger.active i:nth-child(3) {
  transform: translateY(-9px) rotate(-135deg);
}

@-webkit-keyframes inM {
  50% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(45deg);
  }
}

@keyframes inM {
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(45deg);
  }
}

@-webkit-keyframes outM {
  50% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(45deg);
  }
}

@keyframes outM {
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(45deg);
  }
}

@-webkit-keyframes inT {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
    -webkit-transform: translateY(9px) rotate(0deg);
  }
  100% {
    -webkit-transform: translateY(9px) rotate(135deg);
  }
}

@keyframes inT {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(9px) rotate(0deg);
  }
  100% {
    transform: translateY(9px) rotate(135deg);
  }
}

@-webkit-keyframes outT {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
    -webkit-transform: translateY(9px) rotate(0deg);
  }
  100% {
    -webkit-transform: translateY(9px) rotate(135deg);
  }
}

@keyframes outT {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(9px) rotate(0deg);
  }
  100% {
    transform: translateY(9px) rotate(135deg);
  }
}

@-webkit-keyframes inBtm {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
    -webkit-transform: translateY(-9px) rotate(0deg);
  }
  100% {
    -webkit-transform: translateY(-9px) rotate(135deg);
  }
}

@keyframes inBtm {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(0deg);
  }
  100% {
    transform: translateY(-9px) rotate(135deg);
  }
}

@-webkit-keyframes outBtm {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
    -webkit-transform: translateY(-9px) rotate(0deg);
  }
  100% {
    -webkit-transform: translateY(-9px) rotate(135deg);
  }
}

@keyframes outBtm {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(0deg);
  }
  100% {
    transform: translateY(-9px) rotate(135deg);
  }
}

.affix {
  padding: 0;
  background: rgb(0, 67, 165);
}

.myH2 {
  text-align: center;
  font-size: 4rem;
}
.myP {
  text-align: justify;
  padding-left: 15%;
  padding-right: 15%;
  font-size: 20px;
}
@media all and (max-width: 700px) {
  .myP {
    padding: 2%;
  }
}

#logo {
  width: 295px;
  height: 236px;
  margin-left: 17rem;
}

.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

#drone {
  position: absolute;
  width: 900px;
  height: 562px;
  bottom: 0;
  right: 0;
  animation: moveDrone 5s ease-in-out forwards;
  z-index: 1001;
  transition: all 0.5s ease;
}

.scroll-animated {
  animation: scrollMove 3s ease-in-out forwards;
}

@keyframes scrollMove {
  0% {
    bottom: 89.4vh;
    right: 82vw;
    width: 900px;
    height: 562px;
  }
  20% {
    width: 720px;
    height: 450px;
  }
  40% {
    width: 720px;
    height: 450px;
  }
  80% {
    bottom: 70vh;
    right: 72vw;
    width: 450px;
    height: 281px;
  }
  100% {
    bottom: 0vh;
    right: 0vw;
    width: 160px;
    height: 110px;
  }
}

@keyframes moveDrone {
  0% {
    bottom: 0;
    right: 0;
    width: 900px;
    height: 562px;
  }
  20% {
    width: 720px;
    height: 450px;
  }
  40% {
    width: 720px;
    height: 450px;
  }
  80% {
    bottom: 70vh;
    right: 72vw;
    width: 450px;
    height: 281px;
  }
  100% {
    bottom: 89.4vh;
    right: 82vw;
    width: 160px;
    height: 110px;
  }
}

@media (max-width: 1024px) {
  @keyframes moveDrone {
    0% {
      bottom: 0;
      right: 0;
      width: 450px;
      height: 362px;
    }
    20% {
      width: 720px;
      height: 450px;
    }
    40% {
      width: 720px;
      height: 450px;
    }
    80% {
      bottom: 79vh;
      right: 58vw;
      width: 450px;
      height: 281px;
    }
    100% {
      bottom: 94vh;
      right: 0vw;
      width: 160px;
      height: 110px;
    }
  }
  #drone {
    animation: moveDrone 4s ease-in-out forwards;
  }
}

@media (max-width: 768px) {
  @keyframes moveDrone {
    0% {
      bottom: 0;
      right: 0;
      width: 390px;
      height: 262px;
    }
    20% {
      width: 450px;
      height: 362px;
    }
    40% {
      width: 450px;
      height: 362px;
    }
    80% {
      bottom: 60vh;
      right: 45vw;
      width: 450px;
      height: 362px;
    }
    100% {
      bottom: 91vh;
      right: 25vw;
      width: 150px;
      height: 100px;
    }
  }
  #drone {
    animation: moveDrone 3s ease-in-out forwards;
  }
}

@media (max-width: 667px) {
  @keyframes moveDrone {
    0% {
      bottom: 0;
      right: 0;
      width: 390px;
      height: 262px;
    }
    20% {
      width: 350px;
      height: 262px;
    }
    40% {
      width: 350px;
      height: 262px;
    }
    80% {
      bottom: 50vh;
      right: 15vw;
      width: 350px;
      height: 262px;
    }
    100% {
      bottom: 89vh;
      right: 25vw;
      width: 150px;
      height: 100px;
    }
  }
  #drone {
    animation: moveDrone 3s ease-in-out forwards;
  }
}

@media (max-width: 896px) {
  @keyframes moveDrone {
    0% {
      bottom: 0;
      right: 0;
      width: 390px;
      height: 262px;
    }
    20% {
      width: 350px;
      height: 262px;
    }
    40% {
      width: 350px;
      height: 262px;
    }
    80% {
      bottom: 50vh;
      right: 15vw;
      width: 350px;
      height: 262px;
    }
    100% {
      bottom: 91.5vh;
      right: 25vw;
      width: 150px;
      height: 100px;
    }
  }
  #drone {
    animation: moveDrone 3s ease-in-out forwards;
  }
}

@media (max-width: 744px) {
  @keyframes moveDrone {
    0% {
      bottom: 0;
      right: 0;
      width: 390px;
      height: 262px;
    }
    20% {
      width: 350px;
      height: 262px;
    }
    40% {
      width: 350px;
      height: 262px;
    }
    80% {
      bottom: 50vh;
      right: 15vw;
      width: 350px;
      height: 262px;
    }
    100% {
      bottom: 90vh;
      right: 25vw;
      width: 150px;
      height: 100px;
    }
  }
  #drone {
    animation: moveDrone 3s ease-in-out forwards;
  }
}

@media (max-width: 915px) {
  @keyframes moveDrone {
    0% {
      bottom: 0;
      right: 0;
      width: 390px;
      height: 262px;
    }
    20% {
      width: 350px;
      height: 262px;
    }
    40% {
      width: 350px;
      height: 262px;
    }
    80% {
      bottom: 50vh;
      right: 15vw;
      width: 350px;
      height: 262px;
    }
    100% {
      bottom: 91.5vh;
      right: 25vw;
      width: 150px;
      height: 100px;
    }
  }
  #drone {
    animation: moveDrone 3s ease-in-out forwards;
  }
}

.fixed-drone {
  position: fixed !important;
  right: 50vw;
  bottom: 60vh;
  width: 210px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
}

.cards-container {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  justify-content: center;
  margin: 20px auto;
  max-width: 1200px;
}

.card {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.card:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.overlay p {
  margin: 0;
  font-size: 1.2rem;
  max-width: 90%;
  margin-bottom: 10px;
}

.btn-card {
  background-color: #00e676;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-card:hover {
  background-color: #00c767;
  transform: scale(1.05);
}

.footer {
  background-color: #0043a5;
  color: white;
  padding: 30px 0;
}

.container-footer {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 20%;
  margin: 10px;
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
.btn-container {
  margin-top: 10px;
}

.btn-agendar-cita {
  background-color: white;
  color: #0043a5;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn-agendar-cita:hover {
  background-color: #0043a5;
  color: white;
}

.footer-links h6 {
  margin: 10px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #007bff;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-link {
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link img {
  width: 30px;
  height: 30px;
}

.social-link:hover {
  transform: scale(1.1);
}
