body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-global);
  background:
    linear-gradient(0deg, rgba(19, 19, 19, 1) 0%, rgba(19, 19, 19, 1) 100%),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 100%
    );
}

span {
  color: #ff525c;
}


.text-featured {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-xs);
  letter-spacing: 3.6px;
}


.text-descriptions {
  position: relative;
  align-self: stretch;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 29.2px;
}


.button-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.button {
  all: unset;
  display: inline-flex;
  box-sizing: border-box;
  flex-direction: column;
  padding: 16px 40px;
  border: 1px solid;
  border-color: var(--color-border-faded);
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  display: flex;
  font-family: var(--font-global);
  font-weight: 500;
  color: var(--color-text);
  font-size: 12px;
  text-align: center;
  letter-spacing: 2.4px;
  line-height: 12px;
  white-space: nowrap;
  position: relative;
  width: fit-content;
  cursor: pointer;


  &:hover {
    background-color: var(--color-primary);
    color: var(--color-text-bright);
  }
}

/* NAVBAR */

.navigation-bar {
  display: flex;
  flex-direction: column;
  z-index: 1000;
  background-color: var(--color-solid-background);
  border-bottom: 1px solid var(--color-border-faded);
  padding: 10px;
}

/* NAVBAR -- CONTENEDOR INTERNO */

.navigation-bar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

/* NAVBAR -- CONTENEDOR INTERNO --- TITULO */

.navigation-bar-main-title {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -1.2px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text);
}

/* NAVBAR -- CONTENEDOR INTERNO -- BUTTONS-MENU */

.navigation-bar-buttons-menu {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* NAVBAR -- CONTENEDOR INTERNO -- BUTTONS-MENU -- BOTONES */

.navigation-bar-menu-button {
  box-sizing: border-box;
  padding: 8px 24px;
  color: var(--color-text);
  font-family: var(--font-global);
  transition: 0.2s ease;
  position: relative;
  display: inline-block;
  text-decoration: none;
  align-items: center;
  width: fit-content;
  margin-top: -1px;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 1.2px;
  line-height: 12px;

  &:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background-color: var(--color-solid-background);
  border-left: 1px solid var(--color-border-faded);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#drawer-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 16px;
}

body.drawer-open #drawer-overlay {
  opacity: 1;
  pointer-events: all;
}

body.drawer-open #drawer {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}
/* MAIN -- CONTENT */

.main-content {
  flex-direction: column;
}

/* MAIN -- CONTENT -- HERO-SECTION */

.hero-section {
  position: relative;
  width: 40%;
  padding: 5% 2%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-hero-section {
  font-weight: 700;
  color: transparent;
  font-size: var(--text-hero);
  font-size: clamp(2rem, 8vw, 5rem);
  position: relative;
  width: fit-content;
  color: var(--color-text);
  letter-spacing: -2.07px;
}

/* MAIN -- CONTENT -- SECCIÓN-PROYECTOS */

.section-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 120px 24px;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  background-color: var(--color-darker-background);
}

.section-project-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  gap: 20px;
  height: fit-content;
}

.card {
  position: relative;
  grid-column: span 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 48px 48px 77.84px;
  background-color: var(--color-solid-background);
  border: 1px solid;
  border-color: var(--color-border-faded);
}

.card-title {
  font-family: var(--font-global);
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-xl);
  letter-spacing: -0.8px;
  line-height: 48px;
}

.horizontal-divider {
  position: relative;
  width: 48px;
  height: 1px;
  background-color: #ff525c;
}

.card-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  flex: 0 0 auto;
}

.icon-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  position: absolute;
  top: 1px;
  right: 1px;
  opacity: 0.2;
}

.icon {
  position: relative;
  font-size: var(--text-xl);
  color: var(--color-text);
}

.icon-footer {
  position: relative;
  color: var(--color-text);
  font-size: var(--text-lg);
}

/* FOOTER */

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 24px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--color-border-faded);
}

.social-links {
  display: inline-flex;
  gap: 32px;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-global);
  font-weight: 500;
  color: var(--color-text-faded);
  font-size: var(--text-xs);
  letter-spacing: 1.2px;
}

/* KINETIC BACKGROUND */

.kinetic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.light-line {
  position: absolute;
  top: -120px;
  width: 1px;
  height: 120px;
  background: linear-gradient(
    180deg,
    rgba(255, 82, 92, 0) 0%,
    rgba(255, 82, 92, 0.8) 50%,
    rgba(255, 82, 92, 0) 100%
  );
  animation: fall linear infinite;
  opacity: 0;
}

.light-line:nth-child(1) { animation-duration: 3.2s; animation-delay: 0s; }
.light-line:nth-child(2) { animation-duration: 4.1s; animation-delay: 1.4s; }
.light-line:nth-child(3) { animation-duration: 3.7s; animation-delay: 0.8s; }
.light-line:nth-child(4) { animation-duration: 4.5s; animation-delay: 2.1s; }

@keyframes fall {
  0%   { top: -120px; opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { top: 100vh; opacity: 0; }
}

/* Asegura que el contenido quede por encima del fondo */
.navigation-bar,
.main-content,
footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 550px) {
  :root {
    --text-hero: 36px;
  }
  .hero-section {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .card {
    grid-column: span 3;
  }

  .icon {
    font-size: var(--text-lg);
  }

  .menu-toggle {
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 16px;
  }

  .navigation-bar-buttons-menu {
      display: none;
  }

  .navigation-bar-buttons-menu.active {
      display: flex;
      flex-direction: column;

      position: absolute;
      top: 100%;
      left: 0;

      width: 100%;
      padding: 1rem;


      background: var(--color-darker-background);
      
  }
}