@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../public/font/Inter/InterVariable.woff2") format("woff2");
}
:root {
  --gradient: linear-gradient(
    90deg,
    var(--color-blue-500),
    var(--color-blue-400)
  );
  /* --gradient: linear-gradient(to left, #487beb, #6962ec); */
  /* --gradient: linear-gradient(-90deg, red,blue); */
  /* ---------- Primary (blue) palette ---------- */
  --color-blue-50: oklch(0.97 0.014 254.6);
  --color-blue-100: oklch(0.932 0.032 255.6);
  --color-blue-200: oklch(0.882 0.059 254.1);
  --color-blue-300: oklch(0.809 0.105 251.8);
  --color-blue-400: oklch(0.707 0.165 254.6);
  --color-blue-500: oklch(0.623 0.214 259.8);
  --color-blue-600: oklch(0.546 0.245 262.9);
  --color-blue-700: oklch(0.488 0.243 264.4);
  --color-blue-800: oklch(0.424 0.199 265.6);
  --color-blue-900: oklch(0.379 0.146 265.5);
  --primary: blue;
  /* ---------- Backgrounds ---------- */
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --bg-subtle: #f6f6f6;
  --bg-active: #dadada;
  --bg-black: #0e0e0e;

  /* ---------- Text ---------- */
  --text: oklch(0.15 0 260);
  --text-muted: oklch(0.4 0 260);
  --text-subtle: oklch(0.6 0 260);

  /* ---------- Border ---------- */
  --border: oklch(0.88 0 260);

  /* ---------- Semantic (success, warning, danger, info) ---------- */
  --success: oklch(0.723 0.219 149.6);
  --success-hover: oklch(0.627 0.194 149.2);
  --success-muted: oklch(0.962 0.044 156.7);

  --warning: oklch(0.769 0.188 70.1);
  --warning-hover: oklch(0.666 0.179 58.3);
  --warning-muted: oklch(0.962 0.059 95.6);

  --danger: oklch(0.637 0.237 25.33);
  --danger-hover: oklch(0.577 0.245 27.33);
  --danger-muted: oklch(0.936 0.032 17.72);

  --info: oklch(0.685 0.169 237.32);
  --info-hover: oklch(0.588 0.158 241.97);
  --info-muted: oklch(0.951 0.026 236.82);

  /* ---------- Typography ---------- */
  /* --font-family: "Inter";*/
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.75rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --leading-tight: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ---------- Spacing (4–64px) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-13: 52px;
  --space-14: 56px;
  --space-15: 60px;
  --space-16: 64px;

  /* ---------- Borders & Radius ---------- */
  --border-width-thin: 1px;
  --border-width-thick: 2px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 2px 4px oklch(0.15 0 260 / 0.06);
  --shadow-md: 0 6px 18px oklch(0.15 0 260 / 0.08);
  --shadow-lg: 0 12px 30px oklch(0.15 0 260 / 0.1);
}
[data-theme="dark"] {
  /* --gradient: linear-gradient(
    90deg,
    hsla(221, 97%, 53%, 0.75),
    hsla(225, 84%, 49%, 0.75)
  ); */
  --bg: #131313;
  --bg-muted: #121212;
  --bg-subtle: #1a1a1a;
  --bg-active: #0e0e0e;

  --text: oklch(0.94 0 260);
  --text-muted: oklch(0.7 0 260);
  --text-subtle: oklch(0.5 0 260);

  --border: oklch(0.3 0 260);

  /* --shadow-sm: 0 1px 2px oklch(0.94 0 260 / 0.04);
  --shadow-md: 0 6px 18px oklch(0.94 0 260 / 0.06);
  --shadow-lg: 0 12px 30px oklch(0.94 0 260 / 0.07); */
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #000;
  width: 100%;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  height: auto;
  overflow-x: hidden;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg);
  padding: 15px 20px;
  position: sticky;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  top: 0;
  color: #000;

  .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-blue-500);
    font-size: 2.5rem;
  }
  .logo {
    display: block;
    height: 50px;
    margin-left: 15px;
  }
  .brand-text {
    font-size: 1.75rem;
    font-weight: 700;
    margin-left: 10px;
    color: #06070b;
  }
  .navbar-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  .navbar-links li {
    display: flex;
    align-items: center;
  }
  .nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .nav-link:hover {
    color: var(--color-blue-400);
  }
  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }
  .nav-link .icon {
    width: 18px;
    height: 18px;
  }
  hr {
    border: 0;
    width: 1px;
    height: 24px;
    background-color: var(--text-muted);
    margin: 0 8px;
  }
  .auth-buttons {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;

    .btn {
      background: var(--gradient) !important;
    }
  }

  .theme-toggle {
    color: var(--text);
    background: var(--bg-muted);
    box-shadow: var(--shadow-md);
    border: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;

    &:hover {
      transform: rotate(30deg);
    }
  }
}
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero {
  /* text-align: center; */
  margin: 1rem 0 3rem 0;
  background: var(--gradient);
  min-height: 75vh;
  width: 95%;
  border-radius: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  position: relative;
  padding: 60px;

  .hero-left {
    width: 100%;
    max-width: 700px;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    gap: 1rem;
  }
  .hero-left > h1 {
    /* font-family: "In"; */
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
    width: 100%;
    max-width: 1000px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  }
  .hero-left > p {
    font-size: 1.5rem;
    text-align: left;
    width: 100%;
    color: hsl(0, 0%, 98%);
  }
  .hero-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;

    .get-started {
      background-color: var(--bg-black);
      color: white;
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      border: none;
      text-decoration: none;
    }
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 50px;
    margin-top: 1rem;

    /* margin-top: 2.5rem; */
  }

  .hero-image-container {
    width: 100%;
    height: 100%;
    align-content: center;
    text-align: center;
    display: grid;
    place-items: center;
  }
  .hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}
/* BUTTON STYLES */
.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;

  &.btn-primary {
    background: var(--color-blue-500);
  }
  &.btn-primary:hover {
    background: var(--color-blue-600);
  }
  &.btn-secondary {
    background-color: white;
    color: var(--color-blue-500);
    border: 2px solid currentColor;
  }
  &.btn-secondary:hover {
    color: var(--color-blue-600);
  }
}
section {
  width: 100%;
  padding: 2rem 12rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.container {
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;

  .section-title {
    align-self: flex-start;
    margin-bottom: 1rem;

    h2 {
      font-size: var(--font-size-3xl);
      color: var(--text);
      padding: 0 1rem 0 0;
      text-align: left;
      display: flex;
      align-items: center;
    }
    .icon {
      width: 32px;
      height: 32px;
      margin-right: 10px;
    }
    p {
      color: var(--text-muted);
      max-width: 700px;
      margin: 0 auto;
    }
  }
}
section.news {
  .swiper {
    max-width: 100%;
    padding: 30px 0;
  }
  .news-card {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 100%;
  }
  .news-card:hover {
    transform: translateY(-5px);
  }
  .news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .news-content {
    padding: 20px;
  }
  .news-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
  }
  .news-date {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .news-excerpt {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 15px;
  }
  .news-link {
    color: var(--color-blue-500);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
  }
  .news-link:hover {
    text-decoration: underline;
  }
  .swiper-button-prev,
  .swiper-button-next {
    background: transparent;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .swiper-button-prev::after,
  .swiper-button-next::after {
    color: var(--text) !important;
    font-size: 18px !important;
    font-weight: bold;
  }
  .swiper-pagination {
    bottom: 0;
  }
  .swiper-pagination-bullet {
    background: #afafaf;
    opacity: 1;
    height: 12px;
    width: 12px;
    margin-top: 100px;
  }
  .swiper-pagination-bullet-active {
    background: var(--color-blue-400);
  }
}
.how-it-works {
  .steps {
    width: 100%;
    gap: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    text-align: center;
    position: relative;
    background-color: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .step:nth-child(1) {
    background-image: radial-gradient(
      circle at 80% 150%,
      var(--bg-muted),
      var(--bg)
    );
  }
  .step:nth-child(2) {
    background-image: radial-gradient(
      circle at 10% 20%,
      var(--bg-muted),
      var(--bg)
    );
  }
  .step:nth-child(3) {
    background-image: radial-gradient(
      circle at 40% 100%,
      var(--bg-muted),
      var(--bg)
    );
  }
  .step:nth-child(4) {
    background-image: radial-gradient(
      circle at 100% 100%,
      var(--bg-muted),
      var(--bg)
    );
  }

  .step-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-blue-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
  }

  .step h3 {
    margin-bottom: 15px;
    color: var(--text);
  }

  .step p {
    color: var(--text-muted);
  }
}
.peso-faq-section {
  .container {
    display: flex;
    flex-direction: column;
  }
  /* .section-title {
    align-self: start;
    justify-self: flex-start;
    margin-top: 3rem;

    h2 {
      font-size: var(--font-size-4xl);
      color: var(--text);
      padding: 0 1rem 0 0;
      text-align: left;
      display: flex;
      align-items: center;
    }
    .icon {
      width: 32px;
      height: 32px;
      margin-right: 10px;
    }
    p {
      color: var(--text-muted);
      max-width: 700px;
      margin: 0 auto;
    }
  } */
  .faq-list {
    border-left: 2px solid var(--border);
    max-width: 100%;
    padding: var(--space-10);

    & .faq-item {
      border-bottom: var(--border-width-thin) solid var(--border);

      &:last-child {
        border-bottom: none;
      }

      & .faq-question {
        background-color: var(--bg-muted);
        padding: var(--space-6) var(--space-5);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;

        &:hover {
          background-color: var(--bg-subtle);
        }

        & h3 {
          font-size: var(--font-size-lg);
          font-weight: var(--fw-semibold);
          margin: 0;
          color: var(--text);
        }

        & .faq-icon {
          font-size: var(--font-size-xl);
          transition: all 0.3s ease;
          color: var(--text);
        }
      }

      & .faq-answer {
        padding: 0 var(--space-5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        background-color: var(--bg);

        &.active {
          padding: var(--space-5);
          max-height: 500px;
        }

        & p {
          margin-bottom: var(--space-4);
          color: var(--text);
          line-height: var(--leading-normal);
        }

        & ul,
        & ol {
          margin-left: var(--space-6);
          margin-bottom: var(--space-4);
          color: var(--text);
        }

        & li {
          margin-bottom: var(--space-2);
          line-height: var(--leading-normal);
        }

        & strong {
          color: var(--color-blue-600);
          font-weight: var(--fw-semibold);
        }
      }
    }
  }
}
.cta {
  width: 100%;
  padding: 100px 0;
  background: var(--gradient);
  color: white;
  text-align: center;

  .cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  aside {
    display: none;
  }
  .hamburger {
    display: none;
  }
}
@media (max-width: 767px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
  }
  .navbar {
    justify-content: space-between;
    align-items: center;
    padding: 10px 1rem;
    .navbar-brand img {
      width: 50px !important;
      height: 50px !important;
      display: block;
    }
    .navbar-links.topbar {
      /* flex-direction: row; */
      gap: 10px;
      display: none !important;
    }
    button {
      background-color: white;
      outline: none;
      border: none;
      align-content: center;
    }
    .hamburger span {
      background-color: white;
      cursor: pointer;
      font-size: 2rem;
      margin-right: 0.5rem;
    }
  }
  aside {
    width: 100%;
    position: fixed;
    top: 70px;
    right: 0;
    height: max-content;
    transition: transform 0.3s ease-in;
    z-index: 100;
    background-color: #fafafa;
    /* background-color: rgba(255, 255, 255, 0.185); */
    /* backdrop-filter: blur(50px); */
    transform: translateY(-400px);
    display: flex;
    justify-content: center;
    align-items: center;

    .navbar-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      justify-content: center;

      width: 100%;
      li {
        text-align: center;
        border-bottom: 1px solid #5c5c5c !important;
        padding: 0.75rem 0;
      }
      .nav-link {
        text-decoration: none;
        color: #000;
        font-size: 1rem;
        width: 100% !important;
        /* padding: 1.5rem; */
        /* border: 0; */
        text-align: center;
        /* background-color: red; */
      }
      .nav-link:hover {
        color: #007bff;
      }
      .auth-buttons {
        gap: 10px;
        border: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }
      .auth-buttons .btn {
        width: max-content;
        padding: 0.75rem 1rem;
        font-size: 1rem;
      }
    }
    &.show {
      transform: translateX(0);
    }
  }
  section {
    padding: 1rem;
  }
  .container {
    max-width: 100%;
    padding: 0;
    /* padding: 0 20px; */
    flex-direction: column;
  }
  .hero {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    height: fit-content;
    text-align: center;
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    padding: 2rem 1rem;

    .hero-left > h1 {
      text-align: center !important;
    }
    .hero-left > p {
      text-align: center !important;
    }
    .hero-left > .hero-btn {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      a {
        align-self: center;
      }
    }
    .hero-image-container {
      /* display: none; */
      .hero-img {
        /* display: none; */
      }
    }
  }
  section.news {
    margin-top: 1rem;
    padding: 0 1rem;
  }
  .how-it-works {
    margin-top: 1rem;
  }
  .steps {
    grid-template-columns: 1fr !important;
  }
  .peso-faq-section {
    margin-top: 1rem;

    padding: var(--space-8) var(--space-4);

    .container {
      grid-template-columns: 1fr;
    }
    .faq-list {
      padding: var(--space-6);
      border-left: none;
      & .faq-item {
        & .faq-question {
          padding: var(--space-5) var(--space-4);

          & h3 {
            font-size: var(--font-size-base);
          }
        }

        & .faq-answer {
          padding: 0 var(--space-4);

          &.active {
            padding: var(--space-4);
          }
        }
      }
    }
  }
}

/* @media (max-width: 480px) {
} */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  border: 8px solid rgba(243, 243, 243, 0.8);
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Overlay */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.custom-modal-content {
  position: relative;
  background: var(--bg);
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  margin: 5% auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-family: "Inter", Arial, sans-serif;
  color: #333;
  animation: fadeIn 0.3s ease;
}

.custom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.custom-modal-close:hover {
  color: #000;
  transform: scale(1.1);
}

.custom-modal-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

#newsModalDate {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.5rem;
  display: block;
}

.modal-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

#newsModalContent {
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .custom-modal-content {
    padding: 1.5rem;
  }

  .custom-modal-content h2 {
    font-size: 1.4rem;
  }

  .modal-img {
    max-height: 200px;
  }
}
