/* Rentiagent premium visual layer — composición editorial + hero 3D */

:root {
  --premium-section-pad: clamp(4.5rem, 11vw, 7.5rem);
  --premium-display: clamp(2.75rem, 6.2vw, 4.75rem);
  --premium-line-glow: color-mix(in srgb, var(--accent) 55%, transparent);
}

body.page-home.page-premium {
  --page-bg-static:
    radial-gradient(ellipse 100% 80% at 85% 20%, rgba(59, 130, 246, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 8% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
    linear-gradient(168deg, #000000 0%, #050505 42%, #000000 100%);
  --page-bg-overlay: rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] body.page-home.page-premium {
  --page-bg-static:
    radial-gradient(ellipse 100% 80% at 85% 18%, rgba(37, 99, 235, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 10% 88%, rgba(37, 99, 235, 0.06) 0%, transparent 55%),
    linear-gradient(168deg, #fafafa 0%, #f0f0f2 45%, #fafafa 100%);
  --page-bg-overlay: rgba(250, 250, 252, 0.42);
}

body.page-home.page-premium .page-bg {
  background: var(--page-bg-static);
}

body.page-home.page-premium .page-bg-ambient {
  opacity: 0.48;
}

body.page-home.page-premium .page-bg-overlay {
  background: var(--page-bg-overlay);
}

body.page-home.page-premium .hero,
body.page-home.page-premium main,
body.page-home.page-premium .footer {
  z-index: 2;
}

body.page-home.page-premium .problem-section {
  border-top: none;
}

body.page-home.page-premium .problem-section::before {
  content: none;
}

/* Scroll progress — rail vertical derecha */
.scroll-progress-rail {
  position: fixed;
  right: clamp(0.65rem, 1.6vw, 1.15rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.scroll-progress-rail__metric {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--ink) 72%, var(--accent) 28%);
  font-variant-numeric: tabular-nums;
  min-width: 2.35rem;
  text-align: center;
}

.scroll-progress-rail__num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.scroll-progress-rail__suffix {
  font-size: 0.62rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 65%, var(--ink-faint));
}

.scroll-progress-rail__track {
  position: relative;
  width: 3px;
  height: min(38vh, 280px);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--line) 55%, transparent);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 40%, transparent);
}

.scroll-progress-rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 85%, #fff),
    var(--accent)
  );
  box-shadow: 0 0 10px var(--premium-line-glow);
  transition: height 0.14s ease-out;
}

@media (max-width: 1100px) {
  .scroll-progress-rail {
    display: none;
  }
}

/* Nav premium */
.page-premium .nav.is-scrolled {
  background: color-mix(in srgb, var(--nav-scrolled-bg) 88%, var(--accent) 12%);
  border-bottom-color: color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.page-premium .nav-links a {
  position: relative;
}

.page-premium .nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.page-premium .nav-links a:not(.btn):hover::after,
.page-premium .nav-links a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}

/* Hero premium */
.hero--premium {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 5.25rem;
  padding-bottom: clamp(3rem, 8vw, 5rem);
  overflow: visible;
}

.hero--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--bg) 78%, transparent) 0%,
    transparent 44%
  );
  pointer-events: none;
  z-index: 1;
}

.hero--premium::after {
  content: none;
}

.hero-grid--premium {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 7rem);
  min-height: calc(100dvh - 7rem);
}

.hero-copy-block {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  max-width: min(44rem, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 2.8vw, 2rem);
}

.hero-intro--editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  gap: clamp(1rem, 2.2vw, 1.65rem);
}

.hero-intro--editorial .hero-title {
  max-width: min(100%, 38rem);
  align-self: flex-start;
  text-align: left;
}

.hero-intro--editorial .hero-title-line {
  text-align: left;
}

.hero-intro--editorial .hero-title-row {
  justify-content: flex-start;
}

.hero-intro--editorial .hero-title-heavy {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  white-space: normal;
}

.hero-intro--editorial .hero-title-accent {
  font-size: clamp(1.55rem, 2.9vw, 2.2rem);
  white-space: normal;
}

.hero-intro--editorial .hero-lead-wrap {
  align-self: stretch;
  max-width: min(100%, 36rem);
}

.hero--premium .hero-eyebrow,
.hero--premium .eyebrow {
  align-self: flex-start;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink-soft));
  padding: 0.35rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  backdrop-filter: blur(8px);
}

/* Editorial hero title */
.hero-title {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.15rem, 0.6vw, 0.35rem);
  max-width: min(100%, 26rem);
  width: 100%;
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  letter-spacing: normal;
  color: var(--ink);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-title-line {
  display: block;
}

.hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
  row-gap: 0.06em;
}

.hero-title-heavy {
  font-weight: 800;
  font-size: clamp(2.65rem, 6.8vw, 4.85rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--ink);
  white-space: nowrap;
}

.hero-title-soft {
  font-weight: 300;
  font-size: clamp(2.35rem, 5.6vw, 4.05rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: color-mix(in srgb, var(--ink) 72%, var(--ink-soft));
  white-space: nowrap;
}

.hero-title-accent {
  display: inline-block;
  position: relative;
  font-weight: 700;
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1;
  padding-bottom: 0.12em;
  white-space: nowrap;
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 55%, #fff) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent 88%);
  opacity: 0.55;
}

html[data-theme="light"] .hero-title-accent {
  background: linear-gradient(100deg, var(--accent-hover), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Lead / description */
.hero-lead-wrap {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: stretch;
  max-width: 34rem;
}

.hero-lead-rule {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 25%, transparent) 75%
  );
  opacity: 0.85;
}

.hero-lead {
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
  color: color-mix(in srgb, var(--ink-soft) 88%, var(--ink));
  max-width: none;
}

.hero-lead-em {
  display: inline;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 92%, var(--accent));
}

.hero-lead-rest {
  display: inline;
  font-weight: 400;
  color: color-mix(in srgb, var(--ink-soft) 95%, var(--ink-faint));
}

.hero-actions--editorial {
  margin: 0;
  padding-top: 0.15rem;
}

.hero-actions--editorial .hero-points {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  max-width: 36rem;
}

.hero-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: clamp(0.35rem, 1.2vw, 0.75rem);
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, var(--accent) 25%);
  max-width: 36rem;
}

.hero-cta-stack .hero-cta-row {
  margin-top: 0.35rem;
}

.hero-cta-stack .hero-cta-note {
  margin: 0;
}

.hero-cta-stack .hero-social-proof {
  margin: 0;
}

/* Hero enter animation */
@media (prefers-reduced-motion: no-preference) {
  .hero-intro--editorial .hero-eyebrow,
  .hero-intro--editorial .hero-title-line,
  .hero-intro--editorial .hero-lead-wrap,
  .hero-actions--editorial,
  .hero-cta-stack {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  .hero-intro--editorial.is-entered .hero-eyebrow {
    animation: hero-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.05s;
  }

  .hero-intro--editorial.is-entered .hero-title-line[data-hero-line="1"] {
    animation: hero-enter 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.12s;
  }

  .hero-intro--editorial.is-entered .hero-title-line[data-hero-line="2"] {
    animation: hero-enter 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.22s;
  }

  .hero-intro--editorial.is-entered .hero-lead-wrap {
    animation: hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.34s;
  }

  .hero-copy-block.is-entered .hero-actions--editorial {
    animation: hero-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.46s;
  }

  .hero-copy-block.is-entered .hero-cta-stack {
    animation: hero-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.56s;
  }
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro--editorial .hero-eyebrow,
  .hero-intro--editorial .hero-title-line,
  .hero-intro--editorial .hero-lead-wrap,
  .hero-actions--editorial,
  .hero-cta-stack {
    opacity: 1;
    transform: none;
  }
}

.hero--premium .hero-grid {
  overflow: visible;
}

.hero-visual-stack {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: calc(100vh - 7rem);
  min-height: calc(100dvh - 7rem);
  z-index: 2;
  overflow: visible;
  isolation: isolate;
  --parallax-x: 0;
  --parallax-y: 0;
}

.hero-lines-backdrop {
  position: absolute;
  top: -10%;
  bottom: -14%;
  left: -10%;
  right: -22%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.12s ease-out;
}

.hero-lines-backdrop.is-speck-floating {
  position: fixed;
  top: 0;
  bottom: 0;
  left: clamp(38%, 46vw, 56%);
  right: -14%;
  z-index: 2;
  opacity: 0.92;
}

.hero-speck-morph-canvas {
  position: fixed;
  top: 0;
  right: 0;
  width: min(52vw, 660px);
  height: 100%;
  left: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (max-width: 1100px) {
  .hero-speck-morph-canvas {
    display: none;
  }
}

.hero-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  overflow: visible;
  transform: translate3d(
    calc(var(--parallax-x) * 12px),
    calc(var(--parallax-y) * 10px),
    0
  );
  transition: transform 0.14s ease-out;
}

.hero-lines-group {
  opacity: 0.92;
}

.hero-lines-specks {
  pointer-events: none;
}

.hero-speck-wrap {
  --speck-peak: 0.6;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-speck {
  vector-effect: non-scaling-stroke;
}

.hero-speck--dot {
  fill: color-mix(in srgb, var(--accent) 62%, transparent);
}

.hero-speck--square,
.hero-speck--shard {
  fill: color-mix(in srgb, #60a5fa 48%, transparent);
}

.hero-speck--diamond {
  fill: color-mix(in srgb, #bfdbfe 42%, transparent);
}

.hero-speck-wrap--soft .hero-speck {
  fill: color-mix(in srgb, #60a5fa 52%, transparent);
}

.hero-speck-wrap--accent .hero-speck {
  fill: color-mix(in srgb, #bfdbfe 46%, transparent);
}

html[data-theme="light"] .hero-speck--dot {
  fill: color-mix(in srgb, var(--accent) 48%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-lines-specks {
    display: none;
  }
}

.hero-expediente-stage {
  --hero-scroll: 0;
  --parallax-x: 0;
  --parallax-y: 0;
  --hover-x: 0;
  --hover-y: 0;
  position: relative;
  z-index: 4;
  width: min(420px, 100%);
  min-height: clamp(400px, 50vh, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transform-origin: center center;
  perspective: 980px;
  perspective-origin: calc(50% + var(--hover-x) * 32%) calc(48% + var(--hover-y) * 20%);
}

.hero-line {
  fill: none;
  stroke-width: 0.85;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hero-line--primary {
  stroke: color-mix(in srgb, var(--accent) 42%, transparent);
}

.hero-line--soft {
  stroke: color-mix(in srgb, #60a5fa 32%, transparent);
}

.hero-line--accent {
  stroke: color-mix(in srgb, #bfdbfe 28%, transparent);
}

html[data-theme="light"] .hero-line--primary {
  stroke: color-mix(in srgb, var(--accent) 36%, transparent);
}

html[data-theme="light"] .hero-line--soft {
  stroke: color-mix(in srgb, #3b82f6 26%, transparent);
}

html[data-theme="light"] .hero-line--accent {
  stroke: color-mix(in srgb, #2563eb 22%, transparent);
}

.hero-line--depth-far {
  opacity: 0.46;
}

.hero-line--depth-mid {
  opacity: 0.68;
}

.hero-line--depth-near {
  opacity: 0.88;
}

.hero-lines-shimmer .hero-line-shimmer {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  stroke-dashoffset: var(--travel-start);
  opacity: 0;
  will-change: stroke-dashoffset, opacity;
  animation-fill-mode: backwards;
}

.hero-line-shimmer--core {
  stroke-width: 1.05;
  filter: url(#hero-line-shimmer-glow);
}

.hero-line-shimmer--halo {
  stroke-width: 2.2;
  filter: url(#hero-line-shimmer-halo);
}

.hero-line-shimmer.hero-line--primary {
  stroke: color-mix(in srgb, var(--accent) 72%, #dbeafe);
}

.hero-line-shimmer.hero-line--soft {
  stroke: color-mix(in srgb, #93c5fd 58%, transparent);
}

.hero-line-shimmer.hero-line--accent {
  stroke: color-mix(in srgb, #bfdbfe 52%, transparent);
}

html[data-theme="light"] .hero-line-shimmer.hero-line--primary {
  stroke: color-mix(in srgb, var(--accent) 58%, #eff6ff);
}

html[data-theme="light"] .hero-line-shimmer.hero-line--soft {
  stroke: color-mix(in srgb, #3b82f6 46%, transparent);
}

html[data-theme="light"] .hero-line-shimmer.hero-line--accent {
  stroke: color-mix(in srgb, #2563eb 38%, transparent);
}

@keyframes hero-line-travel {
  0%,
  7% {
    stroke-dashoffset: var(--travel-start);
    opacity: 0;
  }
  8% {
    stroke-dashoffset: var(--travel-start);
    opacity: var(--peak-op);
  }
  36% {
    stroke-dashoffset: var(--travel-end);
    opacity: var(--peak-op);
  }
  37%,
  100% {
    stroke-dashoffset: var(--travel-end);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lines-shimmer {
    display: none;
  }
}

.hero-expediente-stack {
  position: relative;
  z-index: 2;
  width: min(340px, 92%);
  min-height: 320px;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateY(calc(var(--hover-x) * 28deg)) rotateX(calc(var(--hover-y) * -7deg))
    translate3d(0, calc(var(--hero-scroll) * 16px), 0);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-expediente-stack.is-static {
  transform: translate3d(0, calc(var(--hero-scroll) * 12px), 0);
}

.hero-stack-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.hero-stack-layer--back {
  z-index: 0;
  opacity: 0;
  transform: translate3d(-32px, 26px, -90px) scale(0.9);
}

.hero-stack-layer--mid {
  z-index: 1;
  opacity: 0;
  transform: translate3d(-16px, 12px, -45px) scale(0.95);
}

.hero-stack-layer--front {
  position: relative;
  z-index: 2;
  inset: auto;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  overflow: visible;
}

.hero-expediente-stack.is-entered .hero-stack-layer--back {
  opacity: 0.32;
  transform: translate3d(-32px, 26px, -90px) scale(0.9);
}

.hero-expediente-stack.is-entered .hero-stack-layer--mid {
  opacity: 0.52;
  transform: translate3d(-16px, 12px, -45px) scale(0.95);
}

.hero-expediente-stack.is-entered .hero-stack-layer--front {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--back {
  transform: translate3d(calc(-34px + var(--hover-x) * -14px), calc(28px + var(--hover-y) * 6px), -112px)
    scale(0.88) rotateY(calc(var(--hover-x) * -9deg));
}

.hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--mid {
  transform: translate3d(calc(-18px + var(--hover-x) * -8px), calc(14px + var(--hover-y) * 4px), -56px)
    scale(0.93) rotateY(calc(var(--hover-x) * -4deg));
}

.hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--front {
  transform: translate3d(calc(var(--hover-x) * 6px), calc(var(--hover-y) * 4px), 36px)
    rotateY(calc(var(--hover-x) * 5deg));
}

.hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--back,
.hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--mid,
.hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--front {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.hero-expediente-stack.is-entered .hero-stack-layer--back,
.hero-expediente-stack.is-entered .hero-stack-layer--mid,
.hero-expediente-stack.is-entered .hero-stack-layer--front {
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-expediente-stack.is-entered .hero-stack-layer--back {
  transition-delay: 0.12s;
}

.hero-expediente-stack.is-entered .hero-stack-layer--mid {
  transition-delay: 0.24s;
}

.hero-expediente-stack.is-entered .hero-stack-layer--front {
  transition-delay: 0.36s;
}

.hero-expediente-stack:not(.is-entered) .hero-stack-layer {
  transform: translate3d(0, 22px, -12px) scale(0.96);
}

.dossier--stack {
  width: 100%;
  max-width: min(320px, 100%);
  padding: 1.35rem 1.25rem;
  border-radius: calc(var(--radius-md) + 2px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.dossier--stack-mid {
  padding-top: 1.85rem;
}

.dossier-stack-skeleton {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.dossier-stack-skeleton span {
  display: block;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--line) 80%, var(--accent) 20%),
    color-mix(in srgb, var(--line) 55%, transparent)
  );
  opacity: 0.55;
}

.dossier-stack-skeleton span:nth-child(1) {
  width: 72%;
}

.dossier-stack-skeleton span:nth-child(2) {
  width: 100%;
}

.dossier-stack-skeleton span:nth-child(3) {
  width: 48%;
}

.dossier-row--muted .label,
.dossier-row--muted .status {
  opacity: 0.75;
}

.hero-expediente-stage::before {
  content: none;
}

.hero--premium .hero-dossier {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(340px, 100%);
  margin: 0;
  padding-inline: clamp(1.15rem, 4vw, 1.5rem);
  border-radius: calc(var(--radius-md) + 4px);
  transform-style: preserve-3d;
  backface-visibility: visible;
  overflow: visible;
  background: var(--surface-elevated);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
    calc(var(--hover-x) * -22px) calc(26px + var(--hover-y) * 10px) 52px rgba(0, 0, 0, 0.38),
    0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
  transition:
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  animation: hero-stack-float 7s ease-in-out infinite;
}

.hero-expediente-stack.is-card-hover .hero-dossier {
  animation-play-state: paused;
  transform: translate3d(0, 0, 10px) rotateY(calc(var(--hover-x) * 4deg));
  box-shadow:
    var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent),
    calc(var(--hover-x) * -32px) calc(32px + var(--hover-y) * 12px) 64px rgba(0, 0, 0, 0.5),
    calc(var(--hover-x) * 18px) 8px 36px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 52px color-mix(in srgb, var(--accent) 16%, transparent);
}

@keyframes hero-stack-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--premium .hero-dossier {
    animation: none;
  }

  .hero-expediente-stack,
  .hero-stack-layer {
    transition: none;
  }
}

.hero--premium .hero-dossier:hover {
  transform: translate3d(0, 0, 10px) rotateY(calc(var(--hover-x) * 4deg));
}

.hero--premium .hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--premium-line-glow);
}

/* Sections — editorial rhythm */
.page-premium .section {
  padding-top: var(--premium-section-pad);
  padding-bottom: var(--premium-section-pad);
}

.page-premium .tab-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.page-premium .tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  margin: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 0 14px color-mix(in srgb, var(--accent) 38%, transparent);
}

.page-premium .section h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.035em;
  max-width: 22ch;
}

.page-premium .section-intro {
  font-size: 1.08rem;
  max-width: 58ch;
}

/* Home — platform demo video (before FAQ) */
.page-premium .video-demo-header {
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.page-premium .video-demo-header h2 {
  max-width: 26ch;
  margin-bottom: 0.85rem;
}

.page-premium .video-demo-lead {
  max-width: 62ch;
  margin-bottom: 0;
}

.page-premium .video-demo-player {
  margin-inline: auto;
  max-width: min(920px, 100%);
  padding: 0;
  margin-bottom: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: isolate;
}

.page-premium .video-demo-player__media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: top;
  background: #000;
  border-radius: calc(var(--radius-md) + 6px);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--line) 60%, var(--accent) 40%);
  /* Sin aspect-ratio, object-fit ni overflow en contenedor: la barra nativa debe quedar clicable */
}

html[data-theme="light"] .page-premium .video-demo-player__media {
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    0 0 0 1px color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
}

@media (max-width: 640px) {
  .page-premium .video-demo-header h2 {
    max-width: none;
  }
}

.page-premium .section-alt {
  position: relative;
}

.page-premium .section-alt > .container,
.page-premium .section-alt .journey-map-frame {
  position: relative;
  z-index: 1;
}

/* Separador degradado entre bloques principales */
.page-premium main > .section::before,
.page-premium main > .cta-mid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 72vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 10%, transparent) 42%,
    color-mix(in srgb, var(--accent) 26%, transparent) 50%,
    color-mix(in srgb, var(--accent) 10%, transparent) 58%,
    transparent 100%
  );
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
  z-index: 0;
}

.page-premium main > .section:first-child::before {
  content: none;
}

.page-premium main > .section,
.page-premium main > .cta-mid {
  position: relative;
}

.hero-lines-backdrop.is-speck-floating .hero-lines-shimmer,
.hero-lines-backdrop.is-speck-floating .hero-lines-group > .hero-line {
  opacity: 0;
}

.hero-lines-backdrop.is-speck-floating .hero-lines-specks {
  opacity: 1;
}

.page-premium main > .section > .container,
.page-premium main > .section > .problem-bg + .container,
.page-premium .problem-section .container {
  position: relative;
  z-index: 3;
}

.page-premium .problem-flow,
.page-premium .problem-card,
.page-premium .solution-visual,
.page-premium .solution-visual-frame,
.page-premium .solution-flow,
.page-premium .solution-card,
.page-premium .solution-outcomes,
.page-premium main .card {
  position: relative;
  z-index: 2;
}

/* Problem — editorial tension */
.page-premium .problem-section {
  border-top: none;
}

.page-premium .problem-result {
  border-left-width: 4px;
  font-size: 1.05rem;
  backdrop-filter: blur(6px);
}

.page-premium .problem-card {
  border-radius: calc(var(--radius-md) + 2px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.page-premium .problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: color-mix(in srgb, var(--line) 50%, var(--accent) 50%);
}

.page-premium .problem-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.page-premium .problem-stat {
  text-align: left;
  padding: 0.5rem 0;
}

.page-premium .problem-stat strong {
  display: block;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 0.35rem;
}

.page-premium .problem-stat span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Solution — media figures (ecosystem + journey) */
.page-premium .container > .solution-visual--full,
.page-premium .container > .journey-map--full {
  max-width: none;
  margin-inline: auto;
}

.page-premium .solution-media-3d {
  perspective: min(1200px, 100vw);
  perspective-origin: center center;
}

.page-premium .solution-visual--full {
  margin-top: clamp(2rem, 4.5vw, 2.75rem);
}

.page-premium .journey-map--full {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

.page-premium .journey-map-header .section-intro {
  max-width: 58ch;
  margin-inline: 0;
}

.page-premium .solution-visual-frame,
.page-premium .journey-map-frame {
  --eco-x: 0;
  --eco-y: 0;
  position: relative;
  border-radius: calc(var(--radius-md) + 6px);
  overflow: hidden;
  transform-style: preserve-3d;
  transform:
    translate3d(0, calc(var(--eco-lift, 0) * -6px), calc(var(--eco-lift, 0) * 18px))
    rotateX(calc(var(--eco-y) * -8deg))
    rotateY(calc(var(--eco-x) * 9deg))
    scale(calc(1 + var(--eco-lift, 0) * 0.012));
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--line) 60%, var(--accent) 40%);
  cursor: pointer;
  touch-action: pan-y;
}

.page-premium .solution-visual-frame {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, #d8d0f5 88%, var(--surface)) 0%,
    color-mix(in srgb, #c8bee8 75%, var(--bg)) 100%
  );
}

.page-premium .journey-map-frame {
  background: #000b1d;
}

html[data-theme="light"] .page-premium .journey-map-frame {
  background: #000b1d;
}

.page-premium .solution-visual-frame.is-media-tilt-hover,
.page-premium .journey-map-frame.is-media-tilt-hover,
.page-premium .solution-visual-frame.is-ecosystem-hover {
  --eco-lift: 1;
  box-shadow:
    0 42px 72px rgba(0, 0, 0, 0.48),
    0 16px 40px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, var(--line));
}

.page-premium .solution-visual-frame.scroll-reveal,
.page-premium .journey-map-frame.scroll-reveal,
.page-premium .solution-visual-frame.scroll-reveal.is-visible,
.page-premium .journey-map-frame.scroll-reveal.is-visible {
  opacity: 1;
  transform:
    translate3d(0, calc(var(--eco-lift, 0) * -6px), calc(var(--eco-lift, 0) * 18px))
    rotateX(calc(var(--eco-y) * -8deg))
    rotateY(calc(var(--eco-x) * 9deg))
    scale(calc(1 + var(--eco-lift, 0) * 0.012));
}

.page-premium .solution-visual-frame::after,
.page-premium .journey-map-frame::after {
  content: "";
  position: absolute;
  inset: -20% -30%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 58%
  );
  opacity: 0;
  transform: translate3d(calc(var(--eco-x) * 55px), calc(var(--eco-y) * 30px), 0);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.page-premium .journey-map-frame::after {
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 58%
  );
}

.page-premium .solution-visual-frame.is-media-tilt-hover::after,
.page-premium .journey-map-frame.is-media-tilt-hover::after,
.page-premium .solution-visual-frame.is-ecosystem-hover::after {
  opacity: 1;
}

.page-premium .solution-visual-frame img,
.page-premium .journey-map-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  transform: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page-premium .solution-visual--full figcaption,
.page-premium .journey-map--full figcaption {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 0.5rem;
}

/* Solution flow — tarjetas alineadas + hover */
.page-premium .solution-flow {
  align-items: stretch;
  margin-bottom: clamp(2rem, 4.5vw, 2.75rem);
}

.page-premium .solution-step {
  align-items: stretch;
}

.page-premium .solution-card {
  border-radius: calc(var(--radius-md) + 4px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-premium .solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 18%, transparent);
}

.page-premium .solution-outcomes {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

/* CTA mid — cinematic band */
.page-premium .cta-mid {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.page-premium .cta-mid-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: calc(var(--radius-md) + 8px);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface-elevated) 72%, transparent);
  backdrop-filter: blur(8px);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.page-premium .cta-mid-inner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, var(--premium-line-glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.page-premium .cta-mid-inner h2 {
  max-width: none;
  margin-bottom: 0.5rem;
}

/* Team — bento flow */
.page-premium .team-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.page-premium .team-flow > .team-card:nth-child(1) {
  grid-column: span 2;
}

.page-premium .team-flow > .team-card:nth-child(2) {
  grid-column: span 2;
}

.page-premium .team-flow > .team-card:nth-child(3) {
  grid-column: span 2;
}

.page-premium .team-remi {
  grid-column: 1 / span 2;
}

.page-premium .team-flow > .team-card:nth-child(5) {
  grid-column: span 2;
}

.page-premium .team-flow > .team-card:nth-child(6) {
  grid-column: span 2;
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .page-premium .team-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-premium .team-flow > .team-card,
  .page-premium .team-remi {
    grid-column: auto;
  }
}

.page-premium .team-card {
  border-radius: calc(var(--radius-md) + 4px);
  border: 1px solid color-mix(in srgb, var(--line) 75%, var(--accent) 25%);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  height: auto;
  align-self: start;
}

.page-premium .team-card--accordion {
  width: 100%;
}

.page-premium .team-remi {
  align-self: start;
  height: auto;
}

.page-premium .team-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 22px 55px color-mix(in srgb, var(--accent) 15%, transparent);
}

.page-premium .team-card--accordion:hover {
  transform: none;
}

.page-premium .team-card--accordion.is-open {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 22px 55px color-mix(in srgb, var(--accent) 18%, transparent);
}

.page-premium .team-card img {
  transition: transform 0.45s ease;
}

.page-premium .team-card:hover img {
  transform: scale(1.04);
}

.page-premium .team-card--accordion:hover .team-card__avatar,
.page-premium .team-card--accordion.is-open .team-card__avatar {
  transform: none;
}

/* Why / stack */
.page-premium .stack-integration {
  border-radius: calc(var(--radius-md) + 6px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent) 10%);
}

.page-premium .tech-card {
  border-radius: calc(var(--radius-md) + 2px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-premium .tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Case study contrast */
.page-premium #demo .grid.two {
  gap: 1.5rem;
}

.page-premium #demo .card.success {
  border: 1px solid var(--success-card-border);
  background: linear-gradient(
    145deg,
    var(--success-card-bg),
    color-mix(in srgb, var(--success) 8%, var(--surface))
  );
}

/* FAQ */
.page-premium .faq-item {
  border-radius: calc(var(--radius-md) + 2px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-premium .faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Contact / footer */
.page-premium .demo-section {
  position: relative;
  border-top: none;
}

.page-premium .cta-final {
  border-top: none;
}

.page-premium .demo-section::before {
  content: none;
}

.page-premium .demo-form,
.page-premium .demo-includes {
  border-radius: calc(var(--radius-md) + 4px);
}

.page-premium .footer {
  border-top: none;
  padding: 2.5rem 0 3rem;
  background: transparent;
  position: relative;
}

.page-premium .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 72vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 10%, transparent) 42%,
    color-mix(in srgb, var(--accent) 26%, transparent) 50%,
    color-mix(in srgb, var(--accent) 10%, transparent) 58%,
    transparent 100%
  );
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
}

.page-premium .footer-grid {
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  text-align: left;
}

.page-premium .footer-col--brand {
  align-items: flex-start;
}

.page-premium .footer-col--legal {
  padding-top: 0.15rem;
}

/* Buttons micro */
.page-premium .btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.page-premium .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 35%, transparent);
}

.page-premium .btn-secondary:hover {
  transform: translateY(-1px);
}

/* Reveal variants */
.page-premium .reveal-fade {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-premium .reveal-fade.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-premium .reveal-slide-left {
  opacity: 0;
  transform: translate3d(-32px, 0, 0);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.page-premium .reveal-slide-left.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1100px) {
  .hero-grid--premium {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    min-height: unset;
    gap: clamp(1.75rem, 5vw, 2.75rem);
  }

  .hero-copy-block,
  .hero-visual-stack {
    grid-column: 1;
  }

  .hero-copy-block {
    grid-row: 1;
    z-index: 3;
  }

  .hero-visual-stack {
    grid-row: 2;
  }

  .hero-title {
    max-width: none;
  }

  .hero-intro--editorial .hero-title-heavy {
    font-size: clamp(1.55rem, 6.2vw, 2rem);
  }

  .hero-intro--editorial .hero-title-accent {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }

  .hero-title-heavy {
    font-size: clamp(2.15rem, 9.5vw, 2.85rem);
  }

  .hero-title-soft {
    font-size: clamp(1.95rem, 8.5vw, 2.55rem);
  }

  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title-heavy,
  .hero-title-soft,
  .hero-title-accent {
    white-space: normal;
  }

  .hero-title-accent {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
  }

  .hero-lead-wrap {
    max-width: none;
  }

  .hero-visual-stack {
    position: relative;
    min-height: unset;
    align-self: stretch;
    justify-content: center;
    width: 100%;
    margin: 0;
    z-index: 1;
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero-expediente-stage {
    width: 100%;
    min-height: clamp(280px, 44vh, 400px);
    margin-inline: auto;
  }

  .hero-expediente-stack {
    width: min(320px, 100%);
    margin-inline: auto;
    transform: translate3d(0, calc(var(--hero-scroll) * 10px), 0);
  }

  .hero-expediente-stack.is-static {
    transform: translate3d(0, calc(var(--hero-scroll) * 10px), 0);
  }

  .hero-lines-backdrop,
  .hero-lines-backdrop.is-speck-floating {
    position: absolute;
    top: -8%;
    bottom: -8%;
    left: -14%;
    right: -14%;
    opacity: 0.88;
  }

  .hero-lines-svg {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-expediente-stack {
    min-height: 300px;
  }

  .hero-stack-layer--back {
    transform: translate3d(-10px, 12px, -48px) scale(0.9);
    opacity: 0.28;
  }

  .hero-stack-layer--mid {
    transform: translate3d(-4px, 4px, -24px) scale(0.94);
    opacity: 0.45;
  }

  .hero--premium .hero-dossier {
    max-width: min(320px, 94%);
  }

  .page-premium .cta-mid-inner {
    grid-template-columns: 1fr;
  }

  .page-premium .team-flow {
    grid-template-columns: 1fr;
  }

  .page-premium .team-flow > .team-card,
  .page-premium .team-remi {
    grid-column: 1 / -1 !important;
  }

  .page-premium .problem-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-premium .problem-card:hover,
  .page-premium .solution-card:hover,
  .page-premium .team-card:hover,
  .page-premium .tech-card:hover,
  .page-premium .btn-primary:hover,
  .page-premium .hero--premium .hero-dossier:hover {
    transform: none;
  }

  .hero-expediente-stack,
  .hero-expediente-stack.is-card-hover .hero-dossier,
  .hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--back,
  .hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--mid,
  .hero-expediente-stack.is-card-hover.is-entered .hero-stack-layer--front {
    transform: none;
    transition: none;
  }

  .scroll-progress-rail__fill {
    transition: none;
  }

  .page-premium .solution-visual-frame,
  .page-premium .journey-map-frame,
  .page-premium .solution-visual-frame img,
  .page-premium .journey-map-frame img,
  .page-premium .solution-visual-frame::after,
  .page-premium .journey-map-frame::after {
    transform: none !important;
    transition: none !important;
  }
}

/* —— Contact page —— */
.page-contact .contact-page {
  padding-top: calc(var(--nav-height, 72px) + 1.5rem);
  padding-bottom: 4rem;
}

.page-contact .contact-hero {
  padding-top: 0;
  padding-bottom: 2rem;
}

.page-contact .contact-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
}

.page-contact .contact-hero-lead {
  max-width: 42rem;
}

.page-premium .nav-links > a.is-active {
  color: var(--text);
  font-weight: 600;
}

.page-premium .nav-links > a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.65rem;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-quick-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.contact-quick-card h2 {
  font-size: 1.15rem;
  margin: 0;
}

.contact-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.contact-quick-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-quick-icon--whatsapp {
  background: color-mix(in srgb, #25d366 18%, transparent);
  color: #25d366;
}

.contact-quick-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-quick-card--whatsapp .contact-quick-link {
  color: #25d366;
}

.contact-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.75rem;
  align-items: start;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-panel {
  padding: 1.65rem 1.75rem;
}

.contact-brand {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.contact-info-title {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-info-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-info-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.contact-info-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.85;
}

.contact-info-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-info-value {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

a.contact-info-value:hover {
  color: var(--accent);
}

.contact-info-note {
  margin: 1.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-map-panel {
  padding: 1.25rem 1.35rem 1.35rem;
  overflow: hidden;
}

.contact-map-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.contact-map-frame {
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  background: var(--surface);
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-map-link:hover {
  text-decoration: underline;
}

.page-contact .demo-form {
  padding: 1.75rem 1.85rem;
}

.page-contact .form-title {
  font-size: 1.35rem;
}

.contact-teaser {
  text-align: center;
  padding-bottom: 4rem;
}

.contact-teaser-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.contact-teaser-lead {
  margin-bottom: 1.75rem;
}

.contact-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 960px) {
  .contact-body-grid {
    grid-template-columns: 1fr;
  }

  .contact-quick-grid {
    grid-template-columns: 1fr;
  }
}

/* Promo banner (newsletter / novedades) */
html.has-promo-banner {
  --promo-banner-h: 40px;
}

@media (max-width: 640px) {
  html.has-promo-banner {
    --promo-banner-h: 48px;
  }
}

html.has-promo-banner .nav {
  top: var(--promo-banner-h);
}

html.has-promo-banner body.page-home .hero--premium {
  padding-top: calc(5.25rem + var(--promo-banner-h));
}

html.has-promo-banner .page-contact .contact-page {
  padding-top: calc(var(--nav-height, 72px) + var(--promo-banner-h) + 1.5rem);
}

.promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  height: var(--promo-banner-h);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg) 88%, #1a0a45) 0%,
    color-mix(in srgb, var(--bg) 82%, #162055) 55%,
    color-mix(in srgb, var(--bg) 85%, #0d2840) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 100%;
  width: min(1420px, 98%);
  max-width: none;
  padding: 0 0.5rem;
}

.promo-banner__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
}

.promo-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(100%, 34rem);
}

.promo-banner__cta {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 78%, #fff);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  white-space: nowrap;
}

.promo-banner__cta:hover {
  color: #fff;
}

.promo-banner__nav,
.promo-banner__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.promo-banner__nav svg,
.promo-banner__close svg {
  width: 1rem;
  height: 1rem;
}

.promo-banner__nav:hover,
.promo-banner__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .promo-banner__inner {
    padding-inline: 0.35rem;
    gap: 0.2rem;
  }

  .promo-banner__text {
    white-space: normal;
    font-size: 0.7rem;
    line-height: 1.25;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .promo-banner__cta {
    font-size: 0.72rem;
    padding-inline: 0.35rem;
  }
}

@media (max-width: 640px) {
  .promo-banner__text {
    white-space: normal;
    font-size: 0.75rem;
    max-width: 13.5rem;
  }

  .promo-banner__nav {
    display: none;
  }
}

/* Newsletter modal */
body.newsletter-modal-open {
  overflow: hidden;
}

.newsletter-modal[hidden] {
  display: none !important;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.newsletter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .newsletter-modal__backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.newsletter-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 1.65rem 1.75rem 1.5rem;
  margin: 0;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

.newsletter-modal__dialog h2 {
  max-width: none;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin: 0 2rem 0.65rem 0;
  letter-spacing: -0.02em;
}

.newsletter-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.newsletter-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.newsletter-modal__close svg {
  width: 1rem;
  height: 1rem;
}

.newsletter-modal__close:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.newsletter-field input {
  width: 100%;
}

.newsletter-check {
  font-size: 0.82rem;
}

.newsletter-status {
  margin: 0;
  min-height: 1.25rem;
}

/* User experience preferences — centered modal (interests only) */
.user-prefs[hidden] {
  display: none !important;
}

.user-prefs__panel[hidden] {
  display: none !important;
}

body.user-prefs-open {
  overflow: hidden;
}

.user-prefs__panel {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.user-prefs__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

html[data-theme="light"] .user-prefs__backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.user-prefs__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  max-height: min(88vh, 520px);
  overflow: auto;
  margin: 0;
  padding: 1.2rem 1.3rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 96%, var(--accent) 4%) 0%,
      color-mix(in srgb, var(--surface) 92%, var(--bg)) 100%
    );
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate3d(0, 10px, 0) scale(0.985);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.user-prefs.is-open .user-prefs__dialog {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.user-prefs__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink-soft));
}

.user-prefs__dialog h2 {
  max-width: none;
  font-size: clamp(1.12rem, 2.8vw, 1.35rem);
  margin: 0 2rem 0.4rem 0;
  letter-spacing: -0.025em;
}

.user-prefs__lead {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.user-prefs__fieldset {
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.user-prefs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.user-prefs__option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.42rem 0.55rem;
  border-radius: calc(var(--radius-md));
  border: 1px solid color-mix(in srgb, var(--line) 85%, var(--accent) 15%);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.user-prefs__option:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.user-prefs__option:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.user-prefs__option:has(input:focus-visible) {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, #fff);
  outline-offset: 2px;
}

.user-prefs__option input[type="checkbox"] {
  position: relative;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.user-prefs__option-text {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.user-prefs__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.user-prefs__close svg {
  width: 1rem;
  height: 1rem;
}

.user-prefs__close:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.user-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.user-prefs__actions .btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.84rem;
}

/* Cookie consent — fixed bottom banner */
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 10100;
  pointer-events: none;
}

/* El contenedor no debe capturar clics fuera de la barra (p. ej. sobre el vídeo) */
.cookie-banner.is-visible {
  pointer-events: none;
}

body.cookie-banner-visible {
  padding-bottom: clamp(8.5rem, 20vh, 11rem);
  scroll-padding-bottom: clamp(8.5rem, 20vh, 11rem);
}

body.cookie-banner-visible #conoce-rentiagent {
  scroll-margin-bottom: clamp(7rem, 18vh, 10rem);
}

body.cookie-banner-visible.cookie-banner-customizing {
  padding-bottom: clamp(10rem, 28vh, 14rem);
}

.cookie-banner__sheet[hidden] {
  display: none !important;
}

.cookie-banner__sheet {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.cookie-banner.is-customizing .cookie-banner__sheet,
.cookie-banner.is-customizing .cookie-banner__sheet-inner {
  pointer-events: auto;
}

.cookie-banner.is-customizing .cookie-banner__sheet {
  max-height: min(72vh, 560px);
  opacity: 1;
}

.cookie-banner__sheet-inner {
  margin: 0 1rem 0.75rem;
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  max-height: min(68vh, 520px);
  overflow: auto;
}

.cookie-banner__sheet-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.cookie-banner__sheet-lead {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cookie-banner__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.cookie-banner__item {
  padding: 0.75rem 0.85rem;
  border-radius: calc(var(--radius-md) + 1px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--accent) 20%);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.cookie-banner__item.is-locked {
  border-style: dashed;
}

.cookie-banner__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.cookie-banner__item-head strong {
  font-size: 0.88rem;
}

.cookie-banner__item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.cookie-banner__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.cookie-banner__toggle {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-banner__toggle-track {
  display: block;
  width: 2.65rem;
  height: 1.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 80%, var(--ink-faint));
  position: relative;
  transition: background 0.2s ease;
}

.cookie-banner__toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.cookie-banner__toggle[aria-pressed="true"] .cookie-banner__toggle-track {
  background: color-mix(in srgb, var(--accent) 75%, #fff 10%);
}

.cookie-banner__toggle[aria-pressed="true"] .cookie-banner__toggle-thumb {
  transform: translateX(1.15rem);
}

.cookie-banner__sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.cookie-banner__bar {
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--surface) 96%, var(--bg) 4%);
  backdrop-filter: blur(14px);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.cookie-banner.is-visible .cookie-banner__bar {
  transform: translate3d(0, 0, 0);
}

.cookie-banner__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 0 1.15rem;
}

.cookie-banner__copy {
  flex: 1 1 16rem;
  min-width: min(100%, 16rem);
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 720px) {
  .user-prefs__panel {
    padding: 0.85rem;
  }

  .user-prefs__dialog {
    padding: 1.1rem 1.05rem 1rem;
  }

  .user-prefs__grid {
    grid-template-columns: 1fr;
  }

  .user-prefs__actions {
    flex-direction: column;
  }

  .user-prefs__actions .btn {
    width: 100%;
  }

  .cookie-banner__sheet-inner {
    margin: 0 0.65rem 0.65rem;
  }

  .cookie-banner__bar-inner {
    flex-direction: column;
    padding: 0.85rem 0 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

  .cookie-banner__sheet-actions {
    flex-direction: column;
  }

  .cookie-banner__sheet-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-prefs__dialog,
  .cookie-banner__bar,
  .cookie-banner__sheet {
    transition: none;
  }

  .cookie-banner.is-visible .cookie-banner__bar {
    transform: none;
  }

  .cookie-banner__sheet {
    opacity: 1;
  }
}
