:root {
  --ink: #0c0c0c;
  --ivory: #f2efea;
  --soft: #d9d4ce;
  --paper: #faf8f4;
  --muted: #6e6a65;
  --line: rgba(12, 12, 12, .18);
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* Fillout necesita conservar su disparador para abrir el popup desde nuestros CTA. */
#fillout-popup {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#fillout-popup button,
#fillout-popup [role="button"] {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-header {
  height: 76px;
  padding: 0 clamp(18px, 5vw, 78px);
  display: flex;
  align-items: center;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 239, 234, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.brand strong {
  font-size: 17px;
  letter-spacing: .16em;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.site-header nav a,
footer nav a {
  font: 500 10px var(--mono);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.pill {
  padding: 11px 17px;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  font-weight: 650;
}

.eyebrow {
  font: 500 10px/1.5 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 700;
}

.button.light {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

.button.dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.button.outline {
  background: transparent;
  color: var(--ivory);
}

.hero {
  min-height: 800px;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 78px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 12, .92) 0%, rgba(12, 12, 12, .74) 42%, rgba(12, 12, 12, .18) 72%, rgba(12, 12, 12, .12) 100%);
}

.hero-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-copy {
  padding: 110px 5vw 110px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(760px, 52vw);
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(48px, 4.7vw, 80px);
  line-height: .9;
  letter-spacing: -.065em;
  margin: 0 0 34px;
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.45;
  max-width: 590px;
  color: #c5c1bc;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
}

.text-link {
  font: 500 11px var(--mono);
  text-decoration: none;
}

.text-link span {
  margin-left: 7px;
}

.fine {
  font: 400 9px/1.6 var(--mono);
  color: #8d8985;
  margin: 17px 0 0;
}

.hero-visual {
  position: relative;
  min-height: 720px;
}

.hero-frame {
  position: absolute;
  margin: 0;
  background: #181818;
  padding: 10px 10px 38px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font: 500 8px var(--mono);
  letter-spacing: .08em;
}

.frame-before {
  width: 64%;
  height: 52%;
  left: 0;
  top: 10%;
  transform: rotate(-4deg);
  z-index: 1;
}

.frame-after {
  width: 72%;
  height: 61%;
  right: -5%;
  bottom: 8%;
  transform: rotate(3deg);
  z-index: 2;
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  left: 7%;
  bottom: 11%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.hero-stamp img {
  width: 54px;
}

.hero-stamp span {
  font: 500 7px var(--mono);
  letter-spacing: .08em;
}

.manifesto {
  padding: 70px clamp(22px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.manifesto>p {
  font-size: clamp(36px, 5.2vw, 82px);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 650;
  margin: 0 0 44px;
}

.manifesto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manifesto-tags span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  font: 500 9px var(--mono);
}

.cases {
  padding: 125px clamp(22px, 6vw, 96px);
  background: var(--paper);
}

.section-head {
  max-width: 900px;
  margin-bottom: 95px;
}

.section-head h2,
.process h2,
.criterion h2,
.price h2,
.final-cta h2 {
  font-size: clamp(46px, 6.3vw, 98px);
  line-height: .88;
  letter-spacing: -.07em;
  margin: 0 0 30px;
}

.section-head>p:last-child {
  max-width: 670px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.case-card {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 68px;
  align-items: center;
  margin-bottom: 140px;
}

.case-card.reverse {
  grid-template-columns: 1.38fr .62fr;
}

.case-card.reverse .case-meta {
  order: 2;
}

.case-meta>p:first-child {
  font: 500 10px var(--mono);
  letter-spacing: .08em;
}

.case-meta h3 {
  font-size: clamp(42px, 4.5vw, 68px);
  letter-spacing: -.06em;
  margin: 34px 0 20px;
}

.case-meta>p:not(:first-child) {
  color: var(--muted);
  line-height: 1.7;
}

.case-meta dl {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.case-meta dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

dt,
dd {
  font: 500 9px var(--mono);
  margin: 0;
}

dd {
  text-align: right;
}

.compare {
  --split: 50%;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--soft);
  overflow: hidden;
}

.compare.portrait {
  aspect-ratio: 4/5;
  max-width: 720px;
  justify-self: center;
  width: 100%;
}

.compare>img,
.compare .before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.split-line {
  position: absolute;
  left: var(--split);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  z-index: 3;
  transform: translateX(-1px);
}

.split-line i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.tag {
  position: absolute;
  top: 18px;
  z-index: 4;
  background: var(--ink);
  color: var(--ivory);
  padding: 8px 10px;
  font: 500 9px var(--mono);
}

.tag-before {
  left: 18px;
}

.tag-after {
  right: 18px;
}

.process {
  background: var(--ink);
  color: var(--ivory);
  padding: 120px clamp(22px, 6vw, 96px);
}

.process header {
  max-width: 1000px;
}

.process ol {
  list-style: none;
  margin: 75px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #484848;
  border-left: 1px solid #484848;
}

.process li {
  min-height: 270px;
  padding: 27px;
  border-right: 1px solid #484848;
  border-bottom: 1px solid #484848;
}

.process li b {
  font: 500 10px var(--mono);
  color: #85817d;
}

.process li h3 {
  font-size: 27px;
  letter-spacing: -.04em;
  margin: 78px 0 14px;
}

.process li p {
  font-size: 14px;
  line-height: 1.65;
  color: #aaa6a1;
}

.criterion {
  padding: 125px clamp(22px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.criterion>div:first-child>p:last-child {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.criterion-list {
  border-top: 1px solid var(--line);
}

.criterion-list article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.criterion-list span {
  font: 500 10px var(--mono);
}

.criterion-list h3 {
  font-size: 28px;
  letter-spacing: -.04em;
  margin: 0 0 9px;
}

.criterion-list p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.price {
  padding: 120px clamp(22px, 6vw, 96px);
  background: var(--soft);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
}

.price>div>p:last-child {
  max-width: 620px;
  line-height: 1.7;
  color: #4f4b47;
}

.price-box {
  align-self: center;
}

.price-box p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.price-box span {
  font-size: 14px;
}

.price-box strong {
  font: 500 13px var(--mono);
}

.price-box .button {
  width: 100%;
  margin-top: 30px;
}

.final-cta {
  position: relative;
  text-align: center;
  background: var(--ink);
  color: var(--ivory);
  padding: 120px 22px;
}

.final-cta>img {
  width: 80px;
  margin: 0 auto 45px;
}

.final-cta>p:not(.eyebrow) {
  color: #aaa6a1;
  max-width: 590px;
  line-height: 1.7;
  margin: 0 auto 38px;
}

.final-cta small {
  display: block;
  color: #77736f;
  margin-top: 18px;
  font: 400 9px var(--mono);
}

footer {
  padding: 42px clamp(22px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

footer p {
  font: 400 10px var(--mono);
  color: var(--muted);
  margin: 0;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

@media(max-width:1000px) {
  .site-header nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 90px 0 30px;
    width: min(680px, 64vw);
  }
  .hero-visual {
    min-height: 650px;
  }
  .case-card,
  .case-card.reverse {
    grid-template-columns: 1fr;
  }
  .case-card.reverse .case-meta {
    order: 0;
  }
  .process ol {
    grid-template-columns: 1fr 1fr;
  }
  .criterion,
  .price {
    grid-template-columns: 1fr;
  }
}

@media(max-width:650px) {
  .site-header {
    height: 66px;
    padding: 0 14px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .pill {
    font-size: 11px;
    padding: 10px;
  }
  .hero {
    padding: 0 18px;
  }
  .hero-copy {
    padding-top: 70px;
    width: 100%;
  }
  .hero-video::after {
    background: linear-gradient(90deg, rgba(12, 12, 12, .9) 0%, rgba(12, 12, 12, .66) 100%);
  }
  .hero h1 {
    font-size: clamp(42px, 11.5vw, 52px);
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-visual {
    min-height: 480px;
  }
  .frame-before {
    width: 72%;
    height: 48%;
  }
  .frame-after {
    width: 80%;
    height: 56%;
    right: -8%;
  }
  .hero-stamp {
    width: 88px;
    height: 88px;
    bottom: 12%;
  }
  .hero-stamp img {
    width: 37px;
  }
  .manifesto,
  .cases,
  .process,
  .criterion,
  .price {
    padding-left: 18px;
    padding-right: 18px;
  }
  .manifesto>p {
    font-size: 48px;
  }
  .cases {
    padding-top: 90px;
  }
  .section-head {
    margin-bottom: 60px;
  }
  .case-card {
    gap: 28px;
    margin-bottom: 90px;
  }
  .compare {
    aspect-ratio: 4/3;
  }
  .process ol {
    grid-template-columns: 1fr;
  }
  .process li {
    min-height: 210px;
  }
  .process li h3 {
    margin-top: 48px;
  }
  .final-cta h2 {
    font-size: clamp(48px, 14vw, 64px);
  }
  footer {
    grid-template-columns: 1fr;
  }
  footer p {
    text-align: left;
  }
  footer nav {
    justify-content: flex-start;
  }
  .dialog-body {
    padding: 45px 24px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

.privacy-page {
  max-width: 880px;
  margin: auto;
  padding: 70px 24px 120px;
}

.privacy-page>.brand {
  margin-bottom: 110px;
}

.privacy-page>.eyebrow {
  margin-top: 0;
}

.privacy-page h1 {
  font-size: clamp(48px, 7vw, 86px);
  line-height: .92;
  letter-spacing: -.065em;
  margin: 0 0 48px;
}

.privacy-page h2 {
  font-size: 28px;
  letter-spacing: -.035em;
  margin: 48px 0 10px;
}

.privacy-page p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.privacy-page aside {
  margin: 55px 0;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.privacy-page aside p {
  margin-bottom: 0;
  color: #4f4b47;
}

.back-link {
  font: 500 10px var(--mono);
  letter-spacing: .08em;
}

/* ==========================================================================
   REBOBINA - MEJORAS MÓVILES Y2K & COMPARADOR TÁCTIL
   ========================================================================== */

/* 1. Optimización Táctil y UX para Comparadores (data-compare) */
.compare {
  touch-action: pan-y; /* Evita que el scroll vertical choque con el deslizamiento horizontal */
  user-select: none;
  -webkit-user-select: none;
}

.split-line {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

.compare:active .split-line,
.compare:focus-within .split-line {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* 2. Interacciones Y2K - Ventana Manifiesto (RECUERDOS_2000.EXE) */
.window-controls button,
.window-controls span {
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  display: inline-block;
}

.window-controls button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.window-controls span:hover {
  opacity: 0.7;
}

.window-controls span:active {
  transform: scale(0.85);
}

/* Animaciones de estado ficticio para la ventana retro */
.manifesto.is-minimized .era-window {
  transform: scaleY(0.05);
  opacity: 0.3;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.manifesto.is-closed .era-window {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.2s ease-out;
  pointer-events: none;
}

/* 3. Feedback Táctil para Etiquetas Nostálgicas (#SWAG, NOKIA, MESSENGER...) */
.tag-retro, 
.badge-y2k, 
.manifesto-tags span {
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-retro:hover, 
.badge-y2k:hover, 
.manifesto-tags span:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.tag-retro:active, 
.badge-y2k:active, 
.manifesto-tags span:active {
  transform: translateY(1px) scale(0.96);
}
