/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";

  --heading-font: "Jost", sans-serif;
  --nav-font: "Jost", sans-serif;

  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #0f394c;
  --accent-color: #49b5e7;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: #444444;
  --nav-hover-color: #49b5e7;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #49b5e7;

  scroll-behavior: smooth;
}


/* ==========================================================
   COLOR PRESETS
   ========================================================== */

.light-background {
  --background-color: #f5fbff;
  --surface-color: #ffffff;
}


/* ==========================================================
   GENERAL
   ========================================================== */

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/* ==========================================================
   HEADER
   ========================================================== */

.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 1px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 48px;
  margin-right: 12px;
}


/* ==========================================================
   NAVIGATION - DESKTOP
   ========================================================== */

@media (min-width: 1200px) {

  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 14px;
    font-family: var(--nav-font);
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
}


/* ==========================================================
   NAVIGATION - MOBILE
   ========================================================== */

@media (max-width: 1199px) {

  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #ffffff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}


/* ==========================================================
   SECTIONS
   ========================================================== */

.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  scroll-margin-top: 87px;
  overflow: clip;
}

@media (max-width: 1199px) {

  .section {
    scroll-margin-top: 62px;
  }
}


/* ==========================================================
   SECTION TITLES
   ========================================================== */

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
}

.section-title p {
  margin-bottom: 0;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
  width: 100%;
  min-height: 78vh;
  position: relative;
  padding: 8px 0 12px;
  display: flex;
  align-items: center;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.02;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 8px 0 18px;
  font-size: 18px;
  font-weight: 400;
  max-width: 520px;
}


/* ==========================================================
   HERO - WHATSAPP BUTTON
   ========================================================== */

.hero .cta-btn.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  color: #ffffff;
  background: #25d366 !important;

  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.6px;

  padding: 12px 28px;
  border: none;
  border-radius: 30px;

  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.14);

  transition: 0.25s;
}

.hero .cta-btn.whatsapp:hover,
.hero .cta-btn.whatsapp:focus {
  background: #1ebe57 !important;
  color: #ffffff;
  transform: translateY(-1px);
}

.hero .cta-btn.whatsapp i {
  color: #ffffff;
  font-size: 16px;
  line-height: 0;
  margin-right: 8px;
}


/* ==========================================================
   HERO IMAGE
   ========================================================== */

.hero .hero-img img {
  max-width: 100%;
  width: 100%;
  height: auto;
  transform: translateY(0);
}


/* ==========================================================
   HERO SOCIAL LINKS
   ========================================================== */

.hero .hero-social {
  gap: 10px;
  margin-top: 8px;
}

.hero .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background: color-mix(
    in srgb,
    var(--background-color),
    var(--accent-color) 6%
  );

  color: color-mix(
    in srgb,
    var(--default-color),
    transparent 10%
  );

  text-decoration: none;

  transition: all 0.18s ease-in-out;

  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.hero .social-link i {
  font-size: 18px;

  color: color-mix(
    in srgb,
    var(--heading-color),
    transparent 20%
  );
}

.hero .social-link:hover {
  transform: translateY(-3px);
  background: var(--accent-color);
}

.hero .social-link:hover i {
  color: var(--contrast-color);
}


/* ==========================================================
   HERO - TABLET / MOBILE
   ========================================================== */

@media (max-width: 768px) {

  .hero h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  .hero .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero .col-lg-5,
  .hero .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero .col-lg-5 {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .col-lg-7 {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }

  .hero .hero-img img {
    width: 85%;
    max-width: 360px;
    height: auto;
    margin: 0 auto 10px;
  }

  .hero h2,
  .hero p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .cta-btn,
  .hero .social-links {
    margin-left: auto;
    margin-right: auto;
    justify-content: center !important;
  }
}


/* ==========================================================
   HERO - DESKTOP
   ========================================================== */

@media (min-width: 992px) {

  .hero .col-lg-5 {
    flex: 0 0 45%;
    max-width: 45%;
    padding-left: 6px;
  }

  .hero .col-lg-7 {
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .hero .hero-img img {
    width: 95%;
    max-width: 620px;
    margin-right: -30px;
  }
}


@media (min-width: 1365px) {

  .hero p {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 18px;
  }
}


/* ==========================================================
   COURSE CARDS
   ========================================================== */

.course-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);

  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-media {
  position: relative;
  overflow: hidden;
}

.course-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.course-badge {
  position: absolute;
  right: 18px;
  bottom: 14px;

  background: #1f4fe6;
  color: #ffffff;

  font-weight: 700;
  font-size: 13px;

  padding: 10px 14px;

  border-radius: 30px;

  box-shadow: 0 6px 18px rgba(31, 79, 230, 0.18);

  text-transform: uppercase;
}

.course-body {
  padding: 18px 18px 20px;

  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.course-title {
  font-family: var(--heading-font);
  font-size: 20px;
  line-height: 1.1;

  margin: 0 0 6px;

  color: var(--heading-color);

  font-weight: 700;
}

.rating-score {
  color: #df1529;
  font-weight: 700;
  margin-right: 6px;
}

.course-card .stars i {
  color: #f6b100;
  font-size: 14px;
}

.price {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 18px;
}

.course-meta i {
  color: color-mix(
    in srgb,
    var(--default-color),
    transparent 50%
  );
}


/* Animación que ya tenían las imágenes del portfolio */

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}


/* ==========================================================
   COURSE CARDS - MOBILE
   ========================================================== */

@media (max-width: 767px) {

  .course-media img {
    height: 180px;
  }

  .course-badge {
    right: 12px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 12px;
  }
}


/* ==========================================================
   CONTACT
   ========================================================== */

.contact .info-item + .info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);

  font-size: 20px;

  width: 44px;
  height: 44px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 4px;

  transition: all 0.3s ease-in-out;

  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  color: var(--default-color);
  background-color: var(--background-color);

  font-size: 14px;

  padding-bottom: 50px;

  position: relative;
}

.footer .footer-top {
  padding-top: 50px;

  border-top: 1px solid
    color-mix(
      in srgb,
      var(--default-color),
      transparent 90%
    );
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);

  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;

  font-family: var(--heading-font);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}


/* Footer social links */

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  border: 1px solid
    color-mix(
      in srgb,
      var(--default-color),
      transparent 50%
    );

  font-size: 16px;

  color: color-mix(
    in srgb,
    var(--default-color),
    transparent 50%
  );

  margin-right: 10px;

  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}


/* Footer headings */

.footer h4 {
  font-size: 16px;
  font-weight: bold;

  position: relative;

  padding-bottom: 12px;
}


/* Footer links */

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;

  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(
    in srgb,
    var(--default-color),
    transparent 20%
  );

  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}


/* Footer contact */

.footer .footer-contact p {
  margin-bottom: 5px;
}


/* Copyright */

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;

  background-color: color-mix(
    in srgb,
    var(--default-color),
    transparent 95%
  );
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}


/* ==========================================================
   PRELOADER
   ========================================================== */

#preloader {
  position: fixed;
  inset: 0;

  z-index: 9999;

  overflow: hidden;

  background-color: var(--background-color);

  transition: all 0.6s ease-out;

  width: 100%;
  height: 100vh;
}

#preloader::before,
#preloader::after {
  content: "";

  position: absolute;

  border: 4px solid var(--accent-color);
  border-radius: 50%;

  animation: animate-preloader 2s
    cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader::after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {

  0% {
    width: 10px;
    height: 10px;

    top: calc(50% - 5px);
    left: calc(50% - 5px);

    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;

    top: calc(50% - 36px);
    left: calc(50% - 36px);

    opacity: 0;
  }
}


/* ==========================================================
   SCROLL TOP
   ========================================================== */

.scroll-top {
  position: fixed;

  visibility: hidden;
  opacity: 0;

  right: 15px;
  bottom: 15px;

  z-index: 99999;

  background-color: var(--accent-color);

  width: 40px;
  height: 40px;

  border-radius: 4px;

  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(
    in srgb,
    var(--accent-color),
    transparent 20%
  );

  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}


/* ==========================================================
   AOS - MOBILE
   ========================================================== */

@media screen and (max-width: 768px) {

  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}