/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1F1F1F;
  --green: #75fa92;
  --green-light: rgba(179, 255, 159, 0.2);
  --white: #ffffff;
  --text-80: rgba(255, 255, 255, 0.8);
  --text-200: #d0d0d0;
  --text-50: #eeeeee;
  --dark: #121212;
  --orange: #ff8400;
  --cyan: #00d0ff;
  --nav-height: 64px;
  --max-content: 1534px;
  --content-pad: 120px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
}

/* ── NAV ── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(31, 31, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  display: block;
  padding: 6px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-80);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--green);
  background: rgba(117, 250, 146, 0.1);
}

/* ── SECTIONS ── */
main {
  padding-top: var(--nav-height);
}

.page-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.section-frame {
  width: 100%;
  max-width: var(--max-content);
  padding: 120px var(--content-pad);
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-frame:last-child {
  border-bottom: none;
}

#sistemas .section-frame:first-child {
  border-bottom: none;
  padding-bottom: 0;
}

#estilo .section-frame:last-child,
#fundamentos .section-frame:last-child {
  padding-bottom: 0;
}

/* ── SISTEMAS: Title ── */
.title-block {
  width: 100%;
}

.section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(48px, 6.25vw, 96px);
  line-height: 1.09;
  text-transform: uppercase;
  width: 100%;
}

.title-bold {
  font-weight: 700;
  color: var(--green);
  font-variation-settings: 'wdth' 100;
}

.title-light {
  font-weight: 300;
  color: var(--white);
  font-variation-settings: 'wdth' 75;
}

/* ── Header image ── */
.header-image-wrapper {
  width: 100%;
  border-radius: 40px;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.header-image {
  width: 100%;
  max-width: 1257px;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: contain;
}

/* ── Intro text ── */
.intro-text-block {
  width: 100%;
  padding: 40px 0;
}

.intro-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 172%;
  color: var(--white);
  font-variation-settings: 'wdth' 100;
}

/* ── Diagram block ── */
.diagram-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagram-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── Frame 4 illustrations grid ── */
.frame4-block {
  width: 100%;
}

.frame4-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Systems show (Frame 314454) ── */
.systems-show-block {
  width: 100%;
}

.systems-show-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── System text ── */
.system-text-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.system-heading {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.4;
  color: var(--white);
  font-variation-settings: 'wdth' 100;
}

.system-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.78;
  color: var(--text-80);
}

/* ── COSMOS diagram ── */
.cosmos-diagram {
  width: 100%;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 20px;
}

.systems-labels {
  flex-shrink: 0;
  width: 290px;
}

.systems-label-group {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.systems-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  line-height: normal;
}

.label-divider {
  width: 100%;
  height: 2px;
  display: block;
  object-fit: fill;
}

/* Phone mockups */
.phone-mockups {
  flex: 1;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.phone-card {
  border: 2px solid var(--orange);
  border-radius: 20px;
  padding: 10px;
  width: 396px;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-screen {
  background: var(--dark);
  width: 360px;
  height: 640px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 40px;
}

.phone-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  background: var(--dark);
}

.phone-close-btn {
  background: none;
  border: none;
  color: var(--text-50);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.phone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.phone-content-error {
  justify-content: center;
  padding-top: 16px;
}

.illustration-frame {
  border: 2px solid var(--green);
  border-radius: 20px;
  width: 248px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.phone-text {
  border: 2px solid var(--cyan);
  border-radius: 20px;
  padding: 10px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-caption {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: var(--text-200);
  line-height: 1.35;
  font-variation-settings: 'wdth' 100;
}

.phone-heading {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-50);
  text-align: center;
  font-variation-settings: 'wdth' 100;
}

.phone-subtext {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-200);
  text-align: center;
  font-variation-settings: 'wdth' 100;
}

.phone-cta {
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.phone-link {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #03ff94;
  text-decoration: underline;
  line-height: 1.25;
  font-variation-settings: 'wdth' 100;
}

/* Venn diagram */
.venn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.venn-image {
  width: 100%;
  height: auto;
  max-height: 593px;
  display: block;
  object-fit: contain;
}

/* ── Full-width image block ── */
.full-image-block {
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 1534 / 1035;
}

.full-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Illustrations grid ── */
.illustrations-grid-bg {
  width: 100%;
  border-radius: 40px;
  background: linear-gradient(
    125deg,
    rgba(179, 255, 159, 0.2) 22%,
    rgba(18, 18, 18, 0.2) 23%,
    rgba(18, 18, 18, 0.2) 75%,
    rgba(179, 255, 159, 0.2) 124%
  );
  padding: 60px 80px;
}

.illustrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 80px;
  justify-items: center;
}

.illustration-cell {
  width: 248px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-cell img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Benefit cards ── */
.cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-card {
  border: 3px solid #7ca66e;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  line-height: normal;
}

.benefit-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--text-80);
  line-height: 1.72;
}

/* ── Center illustration ── */
.center-illustration {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-illustration-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Pilares screenshots ── */
.pilares-marca-block { width: 100%; }
.pilares-marca-img { width: 100%; height: auto; display: block; }

.pilares-screenshots {
  width: 100%;
  display: flex;
  gap: 24px;
  border-radius: 20px;
  overflow: hidden;
  height: 607px;
}

.pilares-screenshot-cell {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.pilares-screenshot-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Pilares list ── */
.pilares-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.pilar-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.pilar-row--reverse {
  flex-direction: row-reverse;
}

.pilar-illustration {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pilar-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.pilar-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pilar-text--border-left {
  border-left: 4px solid rgba(35, 45, 39, 0.8);
  padding-left: 60px;
  padding-right: 0;
}

.pilar-text--border-right {
  border-right: 4px solid rgba(35, 45, 39, 0.8);
  padding-right: 60px;
  padding-left: 0;
}

.pilar-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  line-height: normal;
}

.pilar-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-80);
  line-height: 1.78;
}

/* ── ESTILO VISUAL ── */
.ev-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 64px;
  color: var(--white);
  text-transform: uppercase;
  font-variation-settings: 'wdth' 100;
  margin-top: 8px;
}

.ev-split {
  width: 100%;
  display: flex;
  gap: 60px;
  align-items: center;
}

.ev-split--reverse {
  flex-direction: row-reverse;
}

.ev-split__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Bordered card */
.ev-card {
  background: var(--dark);
  border: 4px solid #7ca66e;
  border-radius: 40px;
  overflow: hidden;
  flex-shrink: 0;
}

.ev-card--tall {
  width: 635px;
  height: 622px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: none;
  border: none;
  border-radius: 0;
}

.ev-card__illustration {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.ev-materials-block { width: 590px; flex-shrink: 0; display: flex; justify-content: center; }
.ev-materials-img { width: 100%; height: auto; display: block; }

/* Collage card */
.ev-card--collage {
  width: 590px;
  height: 646px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
}

.ev-card--collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Palette */
.ev-palette {
  display: flex;
  flex-direction: column;
  gap: 42px;
  flex-shrink: 0;
  background: #1f1f1f;
  border-radius: 20px;
  padding: 40px;
}

.ev-palette__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  line-height: normal;
}

.ev-swatches {
  display: grid;
  grid-template-columns: repeat(3, 143px);
  gap: 24px 49px;
}

.ev-swatches--3 { grid-template-columns: repeat(3, 143px); }
.ev-swatches--2 { grid-template-columns: repeat(2, 143px); }

.ev-swatch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.ev-swatch__color {
  width: 143px;
  height: 143px;
  border-radius: 20px;
  flex-shrink: 0;
}

.ev-swatch span {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--white);
  line-height: 50px;
  text-align: center;
  white-space: nowrap;
}

/* Screenshot blocks */
.ev-screenshot-block {
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
}

.ev-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.ev-human-block { width: 100%; display: flex; justify-content: center; }
.ev-human-img { width: 100%; height: auto; display: block; }

/* Illustrations row */
.ev-card--illustrations-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 60px 40px;
  gap: 20px;
}

.ev-illustration-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-illustration-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

/* Light diagram */
.ev-illuminate-block { width: 100%; }
.ev-illuminate-img { width: 100%; height: auto; display: block; }

.ev-card--light {
  width: 100%;
  height: 715px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-light-diagram {
  position: relative;
  width: 796px;
  height: 592px;
}

.ev-light-lines {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 757px;
  height: auto;
}

.ev-light-sun {
  position: absolute;
  right: 0;
  top: 0;
  width: 166px;
  height: auto;
}

.ev-light-illustration {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 496px;
  height: auto;
}

/* Screenshot card */
.ev-card--screenshot {
  width: 100%;
  height: 511px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.ev-card--screenshot .ev-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Donts list */
.ev-donts {
  list-style: disc;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ev-donts li {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--white);
  line-height: 1.78;
}

/* ── DIMENSIONADO ── */
.dim-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dim-sphere-img {
  width: 100%;
  height: auto;
  display: block;
}

.dim-size-doc {
  width: 100%;
  background: #2a2a2a;
  border-radius: 20px;
  overflow: hidden;
  padding: 56px;
  box-sizing: border-box;
}

.dim-size-img {
  width: 100%;
  height: auto;
  display: block;
}

.dim-split {
  display: flex;
  align-items: center;
  gap: 60px;
}

.dim-split--reverse {
  flex-direction: row-reverse;
}

.dim-split__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dim-size-label {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.dim-split__mock {
  flex: 1;
  display: flex;
  justify-content: center;
}

.dim-mock-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ── PLACEHOLDER sections ── */
.page-placeholder .section-frame {
  min-height: 60vh;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.placeholder-label {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: rgba(117, 250, 146, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.placeholder-note {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 480px;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  :root { --content-pad: 60px; }
  .section-frame { padding: 80px var(--content-pad); }
  .cosmos-diagram { flex-direction: column; }
  .systems-labels { width: 100%; text-align: center; }
  .systems-label-group { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; }
  .label-divider { display: none; }
}

@media (max-width: 768px) {
  :root { --content-pad: 24px; --nav-height: 56px; }
  .section-frame { padding: 60px var(--content-pad); gap: 40px; }
  .nav-inner { padding: 0 20px; gap: 16px; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 5px 10px; font-size: 11px; }
  .diagram-block, .venn-block { padding: 24px; }
  .phone-card { width: 100%; max-width: 360px; height: auto; padding: 8px; }
  .phone-screen { width: 100%; height: auto; min-height: 520px; }
}

/* ── Pilares videos ── */
.pilares-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.pilares-video-iframe {
  width: 500px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
  display: block;
  background: #1f1f1f;
}

/* ── Video embed ── */
.ev-video-block {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ev-video-iframe {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
  display: block;
}

/* ── Section fade-in reveal ── */
.section-frame {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.section-frame.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile responsive ── */
@media (max-width: 900px) {
  /* Stack two-column splits */
  .ev-split,
  .ev-split.ev-split--reverse,
  .dim-split,
  .dim-split.dim-split--reverse {
    flex-direction: column;
  }

  .dim-size-doc {
    padding: 32px 24px;
  }
  .ev-materials-block {
    width: 100%;
  }
  .ev-card--tall {
    width: 100%;
    height: auto;
  }
  .ev-palette {
    width: 100%;
  }
  .ev-swatches {
    grid-template-columns: repeat(2, 143px);
  }

  /* Stack pilar rows */
  .pilar-row {
    flex-direction: column;
    gap: 24px;
  }
  .pilar-text--border-left,
  .pilar-text--border-right {
    border: none;
    border-top: 4px solid rgba(35, 45, 39, 0.8);
    padding-left: 0;
    padding-right: 0;
    padding-top: 24px;
  }

  /* Pilares screenshot cells */
  .pilares-screenshots {
    flex-direction: column;
  }

  /* Dimensionado size docs */
  .dim-size-doc img {
    max-width: 100%;
  }

  /* Cards grid single column */
  .cards-grid,
  .cards-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --content-pad: 16px;
  }
  .section-title {
    font-size: clamp(28px, 7vw, 52px);
  }
  .system-heading {
    font-size: clamp(20px, 5vw, 32px);
  }
  .intro-text,
  .system-body {
    font-size: clamp(14px, 3.5vw, 18px);
  }
  .ev-swatches,
  .ev-swatches--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ev-swatch__color {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
  }
  .nav-links {
    display: none;
  }
}
