:root {
  --ink: #171b19;
  --snow: #f1f1eb;
  --white: #fff;
  --ice: #8dbfc3;
  --petrol: #10383d;
  --territory: #b8f35a;
  --copper: #c16f46;
  --copper-text: #984927;
  --line: rgba(23, 27, 25, .2);
  --serif: "Alegreya", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --brand: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--petrol); overflow-x: clip; scrollbar-color: var(--ice) var(--petrol); }
body { max-width: 100%; margin: 0; overflow-x: visible; color: var(--ink); background: var(--snow); font-family: var(--sans); font-size: 18px; line-height: 1.5; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { color: var(--ink); background: var(--territory); }
:where(a, button):focus-visible { outline: 2px solid var(--territory); outline-offset: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; }

.atlas-header { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; height: 86px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; color: var(--white); background: linear-gradient(180deg, rgba(16,56,61,.56), rgba(16,56,61,0)); transition: color .3s, background .3s; }
.atlas-header.is-scrolled { height: 70px; color: var(--ink); background: rgba(241,241,235,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.atlas-brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--brand); font-weight: 600; letter-spacing: -.035em; }
.atlas-brand img { width: 70px; height: 25px; object-fit: contain; filter: brightness(0) invert(1); }
.atlas-header.is-scrolled .atlas-brand img { filter: none; }
.atlas-brand small, .footer-brand small { margin-left: 2px; font-size: .8em; font-weight: 500; }
.atlas-header nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); }
.atlas-header nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.atlas-header nav a:not(.back-link)::after { content: ""; display: block; width: 100%; height: 1px; margin-top: 5px; background: var(--territory); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.atlas-header nav a:hover::after { transform: scaleX(1); }
.language-switcher { display: inline-flex; align-items: center; gap: 7px; font: 500 .78rem var(--mono); letter-spacing: .06em; }
.language-switcher button { min-width: 36px; min-height: 44px; padding: 4px 6px; color: inherit; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; letter-spacing: inherit; cursor: pointer; opacity: .72; }
.language-switcher button:hover, .language-switcher button:focus-visible { opacity: 1; }
.language-switcher button.is-active { border-bottom-color: var(--territory); opacity: 1; }
.back-link { padding: 9px 14px; border: 1px solid currentColor; }

.atlas-hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--petrol); }
.hero-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(141,191,195,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(141,191,195,.28) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 68%); }
.hero-photo { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 38%; overflow: hidden; opacity: .34; }
.hero-photo::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, var(--petrol) 0%, rgba(16,56,61,.03) 50%, rgba(16,56,61,.72) 100%), linear-gradient(90deg, rgba(16,56,61,.62), transparent 48%, rgba(16,56,61,.34)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; filter: grayscale(1) contrast(1.2) brightness(1.02); mix-blend-mode: luminosity; }
.hero-copy { position: relative; z-index: 2; width: min(50vw, 760px); padding: clamp(145px, 17vh, 190px) 0 100px clamp(24px, 7vw, 112px); }
.product-signature { display: flex; align-items: center; margin-bottom: 28px; }
.product-signature img { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 9px 24px rgba(0,0,0,.2); }
.atlas-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(5rem, 10.2vw, 11.5rem); font-weight: 500; line-height: .66; letter-spacing: -.04em; }
.atlas-hero h1 em { color: var(--territory); font-weight: 500; }
.hero-lead { max-width: 520px; margin: clamp(45px, 7vh, 75px) 0 32px; font-size: clamp(1.28rem, 1.7vw, 1.75rem); font-weight: 300; line-height: 1.35; }
.hero-lead strong { display: block; margin-bottom: 12px; color: var(--territory); font-family: var(--serif); font-size: 1.35em; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.hero-lead span { display: block; max-width: 34ch; }
.platform-line { max-width: 480px; padding: 14px 12px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.hero-device { position: absolute; z-index: 3; top: 92px; right: clamp(4vw, 9vw, 150px); bottom: 18px; width: min(26vw, 400px); margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-device > img { position: relative; z-index: 2; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 38px); object-fit: contain; border-radius: 28px; filter: drop-shadow(0 35px 50px rgba(0,0,0,.32)); }
.device-halo { position: absolute; z-index: 0; width: 128%; aspect-ratio: 1; top: 30%; left: 50%; border: 1px solid rgba(184,243,90,.65); border-radius: 50%; transform: translate(-50%,-50%); }
.device-halo::before, .device-halo::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(141,191,195,.38); border-radius: 50%; }
.device-halo::after { inset: 31%; }
.hero-device figcaption { margin-top: 13px; color: rgba(255,255,255,.86); font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-align: center; }
.hero-down { position: absolute; z-index: 4; left: clamp(24px, 7vw, 112px); bottom: 34px; text-decoration: none; font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.hero-down span { margin-left: 14px; color: var(--territory); }

.atlas-intro { padding: clamp(110px, 14vw, 200px) clamp(24px, 7vw, 112px) clamp(90px, 11vw, 150px); background: var(--white); }
.atlas-intro h2, .experience h2, .knowledge h2, .sources h2 { margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 8rem); font-weight: 500; line-height: .86; letter-spacing: -.04em; }
.atlas-intro h2 em, .sources h2 em { color: var(--copper-text); font-weight: 500; }
.intro-body { margin: clamp(60px, 8vw, 120px) 0 90px 33%; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 6vw, 90px); }
.intro-body p { margin: 0; font-size: 1.14rem; color: #46504c; }
.atlas-principles { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.atlas-principles div { padding: 20px 28px 0 0; }
.atlas-principles div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.atlas-principles dt { color: #4c5752; font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.atlas-principles dd { margin: 8px 0 0; font-family: var(--serif); font-size: 1.55rem; }

.experience { padding: clamp(100px, 12vw, 170px) clamp(24px, 5vw, 80px); color: var(--white); background: var(--ink); }
.experience-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 8vw; margin: 0 2vw 90px; }
.experience-heading > p:last-child { max-width: 300px; margin: 0 0 8px; color: #aeb6b2; }
.screen-sequence { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: clamp(18px, 3vw, 52px); }
.screen-card { margin: 0; }
.screen-card > span { display: block; margin-bottom: 13px; color: #b8e2e4; font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.screen-card img { width: 100%; border-radius: 20px; box-shadow: 0 25px 55px rgba(0,0,0,.25); }
.screen-card figcaption { max-width: 330px; margin-top: 19px; color: #c2c8c5; font-size: .95rem; }
.screen-layers { margin-top: 105px; }
.screen-record { margin-top: 210px; }

.knowledge { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--ice); }
.knowledge-visual { position: relative; display: grid; place-items: center; min-height: 760px; overflow: hidden; background: var(--petrol); }
.knowledge-visual::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border: 1px solid rgba(184,243,90,.55); border-radius: 50%; }
.knowledge-screens { position: relative; z-index: 2; width: min(86%, 650px); height: min(77vh, 690px); }
.knowledge-screens img { position: absolute; width: 52%; max-height: 92%; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 28px 40px rgba(0,0,0,.3)); }
.statistics-summary { top: 0; left: 0; }
.statistics-donut { right: 0; bottom: 0; }
.knowledge-visual p { position: absolute; z-index: 3; right: 7%; bottom: 6%; margin: 0; color: var(--territory); font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3.6rem); line-height: .92; text-align: right; }
.knowledge-copy { padding: clamp(100px, 12vw, 170px) clamp(32px, 8vw, 130px); align-self: center; }
.knowledge-copy .lead { margin: 60px 0 30px; font-size: 1.35rem; line-height: 1.4; }
.knowledge-copy > p:not(.lead):not(.eyebrow) { color: #24312c; }
.knowledge-copy ul { margin: 45px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(23,27,25,.5); }
.knowledge-copy li { padding: 14px 0; border-bottom: 1px solid rgba(23,27,25,.3); font-family: var(--mono); font-size: .75rem; letter-spacing: .03em; }

.sources { padding: clamp(105px, 13vw, 190px) clamp(24px, 7vw, 112px); display: grid; grid-template-columns: .72fr 1fr; column-gap: clamp(50px, 9vw, 150px); background: var(--snow); }
.sources-title { grid-column: 1 / -1; margin-bottom: 95px; }
.welcome-screen { margin: 0; align-self: start; padding: 0 8%; }
.welcome-screen img { width: 100%; border-radius: 22px; box-shadow: 0 30px 65px rgba(0,0,0,.16); }
.sources-copy { align-self: center; max-width: 660px; }
.sources-copy > p { font-size: 1.12rem; color: #48514d; }
.status-block { margin-top: 55px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 24px; }
.status-block span { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.status-block strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; text-align: right; }

.atlas-footer { padding: clamp(90px, 11vw, 150px) clamp(24px, 7vw, 112px) 40px; color: var(--white); background: var(--petrol); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr .7fr; align-items: center; gap: 6vw; }
.footer-top a { font-family: var(--serif); font-size: clamp(1.35rem, 1.7vw, 1.95rem); line-height: 1.08; text-underline-offset: 6px; }
.footer-product-mark { justify-self: end; display: flex; align-items: center; gap: 22px; font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 3.8rem); }
.footer-product-mark img { width: clamp(92px, 11vw, 150px); aspect-ratio: 1; border-radius: 25%; box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.footer-bottom { margin-top: 80px; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.3); font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; }
.footer-bottom > span a { text-underline-offset: 4px; }
.footer-brand { font-family: var(--brand); font-size: .9rem; letter-spacing: -.03em; text-transform: none; }
.footer-brand img { width: 67px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }

/* Cada capítulo cabe en una vista de escritorio. Los recursos visuales se
   escalan por la altura disponible; en móvil estas restricciones se liberan. */
@media (min-width: 901px) {
  .atlas-hero,
  .atlas-intro,
  .experience,
  .knowledge,
  .sources {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    scroll-margin-top: 0;
  }

  .hero-copy {
    width: min(49vw, 740px);
    height: 100%;
    padding: clamp(96px, 13vh, 145px) 0 clamp(42px, 6vh, 70px) clamp(24px, 7vw, 112px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-signature { margin-bottom: clamp(10px, 1.8vh, 20px); }
  .product-signature img { width: clamp(42px, 6vh, 52px); height: clamp(42px, 6vh, 52px); }
  .atlas-hero h1 { font-size: clamp(4.6rem, min(10.2vw, 16vh), 10.5rem); }
  .hero-lead {
    margin: clamp(18px, 3.4vh, 36px) 0 clamp(14px, 2.2vh, 24px);
    font-size: clamp(1.08rem, min(1.7vw, 2.8vh), 1.55rem);
  }
  .platform-line { padding: clamp(9px, 1.5vh, 14px) 0; }
  .hero-device {
    top: clamp(78px, 10vh, 96px);
    bottom: clamp(16px, 2.5vh, 28px);
    width: min(25vw, 390px);
  }
  .hero-device > img { max-height: calc(100% - 30px); }
  .hero-device figcaption { margin-top: 8px; }
  .hero-down { bottom: clamp(18px, 3vh, 32px); }

  .atlas-intro {
    padding: clamp(82px, 11vh, 118px) clamp(24px, 7vw, 112px) clamp(24px, 4vh, 46px);
    display: flex;
    flex-direction: column;
  }
  .atlas-intro h2,
  .experience h2,
  .knowledge h2,
  .sources h2 {
    font-size: clamp(3.1rem, min(7vw, 9.5vh), 7rem);
  }
  .intro-body {
    margin: clamp(24px, 4vh, 48px) 0 clamp(24px, 4vh, 50px) 28%;
    gap: clamp(28px, 5vw, 80px);
  }
  .intro-body p { font-size: clamp(.98rem, 2.1vh, 1.14rem); }
  .atlas-principles { margin-top: auto; }
  .atlas-principles div { padding-top: clamp(10px, 1.7vh, 18px); }
  .atlas-principles dd { font-size: clamp(1.12rem, 2.6vh, 1.5rem); }

  .experience {
    padding: clamp(78px, 10vh, 104px) clamp(24px, 5vw, 80px) clamp(18px, 3vh, 34px);
    display: flex;
    flex-direction: column;
  }
  .experience-heading {
    flex: 0 0 auto;
    margin: 0 2vw clamp(18px, 3vh, 34px);
  }
  .experience-heading > p:last-child { font-size: clamp(.9rem, 2vh, 1rem); }
  .screen-sequence {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }
  .screen-card,
  .screen-layers,
  .screen-record {
    height: 100%;
    min-height: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .screen-card > span { width: 100%; flex: 0 0 auto; margin-bottom: 8px; }
  .screen-card img {
    flex: 1 1 auto;
    width: auto;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100% - 64px);
    object-fit: contain;
  }
  .screen-card figcaption {
    width: 100%;
    flex: 0 0 auto;
    margin-top: 9px;
    font-size: clamp(.8rem, 1.8vh, .93rem);
  }

  .knowledge { min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .knowledge-visual { min-height: 0; height: 100%; }
  .knowledge-screens { height: min(68vh, 640px); }
  .knowledge-copy { min-height: 0; padding: clamp(54px, 7vh, 76px) clamp(32px, 7vw, 112px); }
  .knowledge-copy .lead {
    margin: clamp(22px, 4vh, 42px) 0 clamp(14px, 2.6vh, 28px);
    font-size: clamp(1.05rem, 2.5vh, 1.32rem);
  }
  .knowledge-copy > p:not(.lead):not(.eyebrow) { margin: 0; }
  .knowledge-copy ul { margin-top: clamp(18px, 3vh, 34px); }
  .knowledge-copy li { padding: clamp(8px, 1.5vh, 13px) 0; }

  .sources {
    padding: clamp(80px, 10.5vh, 112px) clamp(24px, 7vw, 112px) clamp(24px, 4vh, 44px);
    grid-template-columns: .62fr 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: clamp(42px, 8vw, 130px);
  }
  .sources-title { margin-bottom: clamp(20px, 3.5vh, 42px); }
  .welcome-screen { height: 100%; min-height: 0; padding: 0 10%; display: grid; place-items: center; overflow: hidden; }
  .welcome-screen img { width: auto; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
  .sources-copy { max-height: 100%; }
  .sources-copy > p { font-size: clamp(.98rem, 2.15vh, 1.1rem); }
  .status-block { margin-top: clamp(20px, 3.5vh, 42px); padding: clamp(11px, 1.8vh, 18px) 0; }
}

@media (max-width: 900px) {
  .atlas-header nav { gap: 18px; }
  .atlas-header nav a:not(.back-link) { display: none; }
  .atlas-hero, .atlas-intro, .experience, .knowledge, .sources { height: auto; overflow: visible; }
  .hero-copy { width: 62vw; }
  .hero-device { right: 3vw; width: 33vw; }
  .intro-body { margin-left: 14%; }
  .atlas-principles { grid-template-columns: repeat(2, 1fr); }
  .atlas-principles div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .atlas-principles div:nth-child(4) { border-top: 1px solid var(--line); }
  .experience-heading { grid-template-columns: 1fr 1fr; }
  .experience-heading .eyebrow { grid-column: 1 / -1; }
  .screen-sequence { gap: 18px; }
  .screen-layers { margin-top: 70px; }
  .screen-record { margin-top: 140px; }
  .knowledge { grid-template-columns: 1fr; }
  .knowledge-visual { min-height: 720px; }
  .knowledge-screens { width: min(84%, 610px); height: 620px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .atlas-header { height: 72px; }
  .atlas-brand img { width: 55px; height: 21px; }
  .atlas-brand { font-size: .88rem; }
  .back-link { padding: 8px 10px; }
  .atlas-header nav { gap: 11px; }
  .atlas-hero { min-height: 0; padding: 110px 24px 70px; display: flex; flex-direction: column; }
  .hero-copy { width: auto; padding: 0; }
  .atlas-hero h1 { font-size: clamp(5.2rem, 25vw, 7.6rem); }
  .hero-lead { max-width: 88%; margin-top: 38px; }
  .hero-lead strong { font-size: 1.25em; }
  .hero-device { position: relative; top: auto; right: auto; bottom: auto; width: min(76vw, 330px); margin: 54px auto 0; transform: none; }
  .hero-device > img { width: 100%; max-height: none; }
  .hero-down { display: none; }
  .hero-photo { height: 31%; opacity: .26; }
  .intro-body { margin: 55px 0 70px; grid-template-columns: 1fr; }
  .atlas-principles { grid-template-columns: 1fr; }
  .atlas-principles div { padding: 17px 0; }
  .atlas-principles div + div, .atlas-principles div:nth-child(4) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .experience-heading { grid-template-columns: 1fr; margin: 0 0 60px; }
  .screen-sequence { grid-template-columns: 1fr; gap: 70px; }
  .screen-card, .screen-layers, .screen-record { width: min(84vw, 390px); margin: 0 auto; }
  .knowledge-visual { min-height: 660px; }
  .knowledge-screens { width: min(94%, 430px); height: 545px; }
  .knowledge-screens img { width: 55%; max-height: 88%; border-radius: 16px; }
  .sources { grid-template-columns: 1fr; }
  .sources-title { margin-bottom: 60px; }
  .welcome-screen { width: min(82vw, 380px); margin: 0 auto 65px; padding: 0; }
  .status-block { flex-direction: column; }
  .status-block strong { text-align: left; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top a { font-size: clamp(1.1rem, 5vw, 1.35rem); overflow-wrap: anywhere; }
  .footer-product-mark { justify-self: start; margin-top: 38px; }
  .footer-product-mark img { width: 88px; }
  .footer-bottom { gap: 16px; flex-wrap: wrap; }
  .footer-brand { flex: 1 0 100%; }
}

@media (max-width: 480px) {
  .atlas-brand span { display: none; }
  .atlas-header .back-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
