:root {
  --bg: #020712;
  --bg-soft: rgba(4, 15, 28, 0.72);
  --cyan: #06d9ff;
  --cyan-soft: rgba(6, 217, 255, 0.18);
  --teal: #00e0c0;
  --green: #00e0a4;
  --white: #f5fbff;
  --muted: #a8bbca;
  --muted-2: rgba(235, 248, 255, 0.68);
  --border: rgba(6, 217, 255, 0.22);
  --border-strong: rgba(6, 217, 255, 0.48);
  --glass: rgba(4, 15, 28, 0.62);
  --shadow-cyan: 0 0 60px rgba(6, 217, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

body::selection {
  background: var(--cyan);
  color: #001018;
}

/* =========================
   FONDO POR FRAMES
========================= */

.background-stage {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 45%, rgba(0, 217, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #020712 0%, #030b18 50%, #020712 100%);
}

.background-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.06) brightness(0.78);
  transition: opacity 0.12s linear;
}

.background-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 58% 48%, rgba(6, 217, 255, 0.11), transparent 24%),
    linear-gradient(90deg, rgba(2, 7, 18, 0.96) 0%, rgba(2, 7, 18, 0.78) 38%, rgba(2, 7, 18, 0.42) 64%, rgba(2, 7, 18, 0.86) 100%),
    linear-gradient(180deg, rgba(2, 7, 18, 0.36) 0%, rgba(2, 7, 18, 0.18) 42%, rgba(2, 7, 18, 0.9) 100%);
}

.background-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 82%, transparent);
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 78px;
  padding: 14px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(2, 7, 18, 0.82), rgba(2, 7, 18, 0.24));
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(6, 217, 255, 0.22));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.brand-text span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  color: rgba(245, 251, 255, 0.82);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 0.22s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(6, 217, 255, 0.7);
  transition: width 0.22s ease;
}

.main-nav a:hover {
  color: var(--cyan);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 900;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(6, 217, 255, 0.075);
  box-shadow: 0 0 28px rgba(6, 217, 255, 0.14);
  transition: 0.25s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: rgba(6, 217, 255, 0.14);
  box-shadow: 0 0 42px rgba(6, 217, 255, 0.28);
}

/* =========================
   BASE
========================= */

main {
  position: relative;
  z-index: 5;
}

section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 9px 16px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(6, 217, 255, 0.44);
  border-radius: 999px;
  background: rgba(6, 217, 255, 0.07);
  box-shadow:
    inset 0 0 22px rgba(6, 217, 255, 0.08),
    0 0 26px rgba(6, 217, 255, 0.07);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 24px 0 22px;
  max-width: 920px;
  font-size: clamp(2.55rem, 5.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 950;
  text-wrap: balance;
}

h2 {
  margin: 22px 0 22px;
  max-width: 920px;
  font-size: clamp(2.15rem, 4.6vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.052em;
  font-weight: 950;
  text-wrap: balance;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.story-description,
.section-description {
  max-width: 690px;
  color: var(--muted-2);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.58;
}

/* =========================
   STORY SCROLL
========================= */

.story-section {
  min-height: 500vh;
}

.story-content {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: min(980px, 100%);
  padding: 112px 5vw 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.story-content::before {
  content: "";
  position: absolute;
  left: 5vw;
  top: 50%;
  width: min(620px, 78vw);
  height: 420px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 217, 255, 0.12), transparent 65%);
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.story-content.is-changing {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(5px);
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.btn {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 950;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    background 0.26s ease,
    border-color 0.26s ease;
}

.btn-primary {
  color: #00131c;
  background: linear-gradient(135deg, #20e8ff 0%, #0b8dff 100%);
  box-shadow:
    0 16px 52px rgba(6, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 78px rgba(6, 217, 255, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-secondary {
  color: var(--green);
  border: 1px solid rgba(0, 224, 164, 0.62);
  background: rgba(0, 224, 164, 0.055);
  box-shadow: 0 0 28px rgba(0, 224, 164, 0.08);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(0, 224, 164, 0.13);
  box-shadow: 0 0 42px rgba(0, 224, 164, 0.2);
}

.scroll-indicator {
  position: absolute;
  left: 5vw;
  bottom: 26px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 251, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-indicator span {
  width: 30px;
  height: 46px;
  border: 1px solid rgba(6, 217, 255, 0.42);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 20px rgba(6, 217, 255, 0.14);
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 99px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: scrollDot 1.55s infinite ease-in-out;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 17px);
  }
}

/* =========================
   CONTENT SECTIONS
========================= */

.content-section,
.final-section {
  min-height: 100vh;
  padding: 112px 5vw 82px;
  display: flex;
  align-items: center;
}

.section-container {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-centered .eyebrow,
.section-centered .section-description,
.section-centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.value-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(4, 15, 28, 0.82), rgba(4, 15, 28, 0.42));
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  box-shadow:
    0 26px 100px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: 0.28s ease;
}

.value-card::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(6, 217, 255, 0.2), transparent 66%);
  pointer-events: none;
}

.value-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-strong);
  box-shadow:
    0 34px 135px rgba(6, 217, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.value-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.17em;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  margin-bottom: 0;
  color: rgba(235, 248, 255, 0.66);
  line-height: 1.58;
  font-size: 0.96rem;
}

.direction-list {
  width: min(880px, 100%);
  margin-top: 36px;
  display: grid;
  gap: 15px;
}

.direction-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border-radius: 22px;
  background: rgba(4, 15, 28, 0.58);
  border: 1px solid rgba(6, 217, 255, 0.18);
  backdrop-filter: blur(20px);
  text-align: left;
}

.direction-item strong {
  color: var(--cyan);
  font-size: 1.08rem;
}

.direction-item span {
  color: rgba(235, 248, 255, 0.7);
  line-height: 1.5;
  font-size: 0.96rem;
}

/* =========================
   FINAL
========================= */

.final-section {
  justify-content: center;
  text-align: center;
}

.final-card {
  width: min(940px, 100%);
  padding: clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at center, rgba(6, 217, 255, 0.15), transparent 42%),
    linear-gradient(145deg, rgba(4, 15, 28, 0.82), rgba(4, 15, 28, 0.46));
  border: 1px solid rgba(6, 217, 255, 0.28);
  box-shadow:
    0 34px 150px rgba(6, 217, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(26px);
}

.final-card .section-description {
  margin-left: auto;
  margin-right: auto;
}

.final-actions {
  justify-content: center;
  margin-top: 10px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  z-index: 7;
  min-height: 68px;
  padding: 22px 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(235, 248, 255, 0.48);
  background: rgba(2, 7, 18, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  font-size: 0.92rem;
}

.site-footer span:not(:last-child)::after {
  content: "·";
  margin-left: 16px;
  color: rgba(6, 217, 255, 0.5);
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  h1 {
    max-width: 820px;
    font-size: clamp(2.55rem, 8.5vw, 4.9rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2.15rem, 7vw, 4rem);
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .direction-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* =========================
   RESPONSIVE CELULAR
========================= */

@media (max-width: 720px) {
  .site-header {
    height: 72px;
    padding: 12px 18px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text span {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .story-section {
    min-height: 520vh;
  }

  .story-content {
    padding: 96px 18px 74px;
    justify-content: center;
    width: 100%;
  }

  .story-content::before {
    left: 18px;
    width: 80vw;
    height: 340px;
    opacity: 0.8;
  }

  .content-section,
  .final-section {
    min-height: auto;
    padding: 92px 18px 74px;
  }

  .eyebrow {
    padding: 8px 13px;
    font-size: 0.63rem;
    letter-spacing: 0.09em;
  }

  h1 {
    margin: 18px 0 18px;
    max-width: 100%;
    font-size: clamp(2.25rem, 11.5vw, 3.55rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  h2 {
    margin: 18px 0 18px;
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.048em;
  }

  h3 {
    font-size: 1.2rem;
  }

  .story-description,
  .section-description {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .story-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .scroll-indicator {
    left: 18px;
    bottom: 22px;
    font-size: 0.66rem;
  }

  .scroll-indicator span {
    width: 28px;
    height: 42px;
  }

  .value-grid {
    margin-top: 28px;
    gap: 14px;
  }

  .value-card {
    padding: 22px;
    min-height: auto;
    border-radius: 22px;
  }

  .value-number {
    margin-bottom: 16px;
  }

  .value-card p,
  .direction-item span {
    font-size: 0.92rem;
  }

  .direction-list {
    margin-top: 28px;
  }

  .direction-item {
    padding: 18px 20px;
    border-radius: 20px;
  }

  .final-card {
    padding: 30px 20px;
    border-radius: 26px;
  }

  .background-frame {
    object-position: center;
    filter: saturate(1.04) contrast(1.04) brightness(0.72);
  }

  .background-overlay {
    background:
      radial-gradient(circle at 55% 38%, rgba(6, 217, 255, 0.11), transparent 28%),
      linear-gradient(90deg, rgba(2, 7, 18, 0.94), rgba(2, 7, 18, 0.78)),
      linear-gradient(180deg, rgba(2, 7, 18, 0.18), rgba(2, 7, 18, 0.92));
  }

  .site-footer {
    min-height: auto;
    padding: 22px 18px;
    font-size: 0.82rem;
  }
}

/* =========================
   CELULAR CHICO
========================= */

@media (max-width: 420px) {
  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .story-content {
    padding-top: 90px;
  }

  h1 {
    font-size: 2.28rem;
    letter-spacing: -0.048em;
  }

  h2 {
    font-size: 2.05rem;
  }

  .story-description,
  .section-description {
    font-size: 0.94rem;
  }

  .btn {
    min-height: 48px;
  }

  .site-footer {
    flex-direction: column;
    gap: 7px;
  }

  .site-footer span:not(:last-child)::after {
    display: none;
  }
}