/* GlamCode OS — Premium art direction (landing only) */

/* ── Section continuity ─────────────────────────────── */
.section-divider {
  position: relative;
  height: 72px;
  margin-top: -36px;
  margin-bottom: -36px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}
.section-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.section-mesh::before,
.section-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.section-mesh--gold::before {
  width: 420px; height: 420px;
  background: rgba(201, 168, 76, 0.14);
  top: -120px; left: -80px;
}
.section-mesh--gold::after {
  width: 320px; height: 320px;
  background: rgba(158, 124, 51, 0.12);
  bottom: -100px; right: -60px;
}
.section-inner { position: relative; z-index: 1; }

/* ── Hero grid ──────────────────────────────────────── */
#hero {
  min-height: auto;
  padding-top: 6rem;
  padding-bottom: 5.5rem;
  background-color: #080808;
  background-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 52%,
      rgba(8, 8, 8, 0.55) 75%,
      rgba(8, 8, 8, 0.92) 90%,
      #080808 100%
    ),
    radial-gradient(circle at 22% 28%, rgba(158, 124, 51, 0.34), #0a0a0a 56%),
    radial-gradient(circle at 76% 72%, rgba(201, 168, 76, 0.2), #0a0a0a 54%);
  background-size: 100% 100%, 140% 140%, 140% 140%;
  background-repeat: no-repeat;
  background-position: center, 20% 30%, 80% 70%;
  animation: heroGradientFlow 8s ease-in-out infinite;
}
@keyframes heroGradientFlow {
  0% { background-position: center, 20% 30%, 80% 70%; }
  50% { background-position: center, 80% 60%, 20% 30%; }
  100% { background-position: center, 20% 30%, 80% 70%; }
}
#hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0) 0%,
    rgba(8, 8, 8, 0.4) 40%,
    rgba(8, 8, 8, 0.85) 72%,
    #080808 100%
  );
  pointer-events: none;
  z-index: 1;
}
#hero .container {
  position: relative;
  z-index: 2;
}
#hero .hero-particles {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}
@media (min-width: 1024px) {
  #hero .scroll-indicator { display: none; }
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem 3.5rem;
    text-align: left;
  }
  .hero-grid .hero-content {
    text-align: left;
    max-width: none;
    place-items: start;
  }
  .hero-grid .hero-sub,
  .hero-grid .hero-tagline {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hero-grid .hero-btns,
  .hero-grid .trust-row {
    justify-content: flex-start;
  }
}
.hero-tagline {
  color: #f5f0e8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}
.hero-tagline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hero-tagline-pills { justify-content: flex-start; }
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  font-size: 0.72rem;
  color: var(--muted4);
  letter-spacing: 0.02em;
}
.hero-pill svg { width: 13px; height: 13px; color: var(--gold); flex-shrink: 0; }

/* Hero visual composition */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 340px;
  perspective: 1200px;
  overflow: visible;
}
@media (min-width: 768px) { .hero-visual { min-height: 440px; } }
@media (min-width: 1280px) { .hero-visual { min-height: 460px; } }

/* ── Hero boot sequence ("system assembling") ───────── */
@keyframes heroBootFade {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroBootSlide {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroBootSlidePhone {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(28px) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
}
@keyframes heroBootSlideTablet {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pinDropIn {
  0%   { opacity: 0; transform: translateY(-14px) scale(0); }
  65%  { opacity: 1; transform: translateY(2px) scale(1.15); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slotShimmer {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
@keyframes starFill {
  from { opacity: 0.2; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes mktCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-visual__glow,
.hero-visual__grid,
.device,
.float-card,
.ui-mkt-pin,
.ui-mkt-card--boot {
  opacity: 0;
}

.hero-visual.is-booted .hero-visual__glow,
.hero-visual.is-booting .hero-visual__glow {
  animation: heroBootFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards,
             heroGlowPulse 6s ease-in-out 1.2s infinite;
}
.hero-visual.is-booted .hero-visual__grid,
.hero-visual.is-booting .hero-visual__grid {
  animation: heroBootFade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}
.hero-visual.is-booted .device--tablet,
.hero-visual.is-booting .device--tablet {
  animation: heroBootSlideTablet 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards,
             deviceFloatTablet 8s ease-in-out 1.4s infinite;
}
.hero-visual.is-booted .device--phone,
.hero-visual.is-booting .device--phone {
  animation: heroBootSlidePhone 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards,
             deviceFloat 7s ease-in-out 1.55s infinite;
}
.hero-visual.is-booted .float-card--wa,
.hero-visual.is-booting .float-card--wa {
  animation: heroBootSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards,
             floatCard 5s ease-in-out 1.7s infinite;
}
.hero-visual.is-booted .float-card--slot,
.hero-visual.is-booting .float-card--slot {
  animation: heroBootSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards,
             floatCard 5s ease-in-out 1.85s infinite;
}
.hero-visual.is-booted .float-card--review,
.hero-visual.is-booting .float-card--review {
  animation: heroBootSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards,
             floatCard 5s ease-in-out 2s infinite;
}

.hero-visual.is-booted .ui-mkt-pin--1,
.hero-visual.is-booting .ui-mkt-pin--1 {
  animation: pinDropIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 0.85s forwards,
             pinPulse 2.5s ease-out 1.5s infinite;
}
.hero-visual.is-booted .ui-mkt-pin--2,
.hero-visual.is-booting .ui-mkt-pin--2 {
  animation: pinDropIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 1s forwards,
             pinPulse 2.5s ease-out 1.65s infinite;
}
.hero-visual.is-booted .ui-mkt-pin--3,
.hero-visual.is-booting .ui-mkt-pin--3 {
  animation: pinDropIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 1.15s forwards,
             pinPulse 2.5s ease-out 1.8s infinite;
}
.hero-visual.is-booted .ui-mkt-card--boot,
.hero-visual.is-booting .ui-mkt-card--boot {
  animation: mktCardIn 0.5s ease-out 1.35s forwards;
}

.hero-visual__glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.18), transparent 68%);
  filter: blur(24px);
  /* pulse chained after boot — see .hero-visual.is-booted rules */
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.hero-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

/* Device frames */
.device {
  position: absolute;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 1px solid rgba(201, 168, 76, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}
.device--phone {
  width: 48%;
  max-width: 200px;
  aspect-ratio: 9 / 19;
  left: 38%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.device--tablet {
  width: 66%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  right: 0;
  bottom: 2%;
  z-index: 2;
  opacity: 0.92;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.device--phone:hover { transform: translate(-50%, -50%) translateY(-4px) scale(1.02); }
.device--tablet:hover { transform: translateY(-4px) scale(1.02); }
@keyframes deviceFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}
.device--phone:hover,
.device--tablet:hover {
  border-color: rgba(201, 168, 76, 0.48);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(201, 168, 76, 0.12);
}

.device--tablet { animation-name: deviceFloatTablet; }
@keyframes deviceFloatTablet {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.device-notch {
  height: 22px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.device-notch span {
  width: 48px; height: 5px;
  border-radius: 999px;
  background: #222;
}
.device-bar {
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.device-screen { padding: 8px; height: calc(100% - 50px); overflow: hidden; }
.device--tablet .device-screen { height: calc(100% - 28px); }
.device-screen--capture {
  padding: 0;
  background: #0a0a0a;
}
.device-screen--capture picture {
  display: block;
  width: 100%;
  height: 100%;
}
.device-screen__capture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
}
.device-screen__capture--phone {
  object-fit: cover;
  object-position: center top;
}
.device-screen__capture--tablet {
  object-fit: cover;
  object-position: top center;
}

/* Legacy mini UI (unused in hero; kept for reference) */
.ui-mkt { height: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 0.5rem; }
.ui-mkt-head { font-weight: 700; color: #f5f0e8; font-size: 0.58rem; }
.ui-mkt-sub { color: #888; font-size: 0.48rem; margin-bottom: 2px; }
.ui-mkt-filters { display: flex; gap: 3px; }
.ui-mkt-filters span {
  flex: 1; text-align: center; padding: 3px 2px;
  border-radius: 999px; font-size: 0.42rem; font-weight: 700;
  background: #1a1a1a; border: 1px solid #333; color: #888;
}
.ui-mkt-filters span.on {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold); color: var(--gold);
}
.ui-mkt-map {
  flex: 1; min-height: 60px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 40%, rgba(201, 168, 76, 0.12), transparent 45%),
    linear-gradient(160deg, #141414, #0a0a0a);
  border: 1px solid rgba(201, 168, 76, 0.2);
  position: relative; overflow: hidden;
}
.ui-mkt-pin {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
  transform: scale(0);
}
.ui-mkt-pin::after {
  content: ""; position: absolute;
  inset: -4px; border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.35);
  /* pulse chained after pinDropIn */
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.ui-mkt-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 5px 6px;
  display: flex; gap: 5px; align-items: center;
}
.ui-mkt-card-thumb {
  width: 22px; height: 22px; border-radius: 4px;
  background: linear-gradient(135deg, #2a2218, #1a1510);
  border: 1px solid rgba(201, 168, 76, 0.25);
  flex-shrink: 0;
}
.ui-mkt-card-name { font-weight: 700; color: #eee; font-size: 0.48rem; }
.ui-mkt-card-meta { color: var(--gold); font-size: 0.42rem; }

/* Mini UI — dashboard */
.ui-dash { height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.48rem; }
.ui-dash-stat {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 6px;
}
.ui-dash-stat b { display: block; font-size: 0.72rem; color: var(--gold); margin-top: 2px; }
.ui-dash-stat span { color: #888; }
.ui-dash-chart {
  grid-column: 1 / -1;
  height: 48px;
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 4px 6px;
  display: flex; align-items: flex-end; gap: 3px;
}
.ui-dash-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(201, 168, 76, 0.35), var(--gold));
  border-radius: 2px 2px 0 0;
  height: 0;
  transform-origin: bottom;
  transition: none;
}
.ui-dash-chart.is-filled .ui-dash-bar {
  animation: barGrow 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ui-dash-chart.is-filled .ui-dash-bar:nth-child(1) { height: 40%; animation-delay: 0.08s; }
.ui-dash-chart.is-filled .ui-dash-bar:nth-child(2) { height: 65%; animation-delay: 0.16s; }
.ui-dash-chart.is-filled .ui-dash-bar:nth-child(3) { height: 50%; animation-delay: 0.24s; }
.ui-dash-chart.is-filled .ui-dash-bar:nth-child(4) { height: 80%; animation-delay: 0.32s; }
.ui-dash-chart.is-filled .ui-dash-bar:nth-child(5) { height: 55%; animation-delay: 0.4s; }
.ui-dash-chart.is-filled .ui-dash-bar:nth-child(6) { height: 70%; animation-delay: 0.48s; }
@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0.4; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Floating glass cards — positioned outside device mockups */
.float-card {
  position: absolute;
  z-index: 5;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 168, 76, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform, opacity;
  max-width: 9.25rem;
  pointer-events: auto;
}
.float-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(201, 168, 76, 0.48);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(201, 168, 76, 0.1);
}
.float-card strong { color: #f5f0e8; font-weight: 600; display: block; font-size: 0.72rem; min-height: 1em; }
.float-card small { color: var(--gold); font-size: 0.62rem; min-height: 1em; }
.float-card__title::after,
.float-card__sub.typewriting::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-left: 1px;
  background: var(--gold);
  vertical-align: -1px;
  animation: caretBlink 0.9s step-end infinite;
}
.float-card__sub.typewriting-done::after,
.float-card__title.typewriting-done::after { display: none; }
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.float-card--wa {
  top: 2%;
  right: 0;
  left: auto;
  z-index: 6;
}
.float-card--slot {
  top: 17%;
  right: 0;
  left: auto;
  z-index: 5;
}
.float-card--review {
  bottom: 16%;
  left: 0;
  top: auto;
  max-width: 5.5rem;
}

/* Desktop/tablet — extra clearance between cards and devices */
@media (min-width: 768px) {
  .float-card--wa { top: 0; right: 0; z-index: 6; }
  .float-card--slot { top: 5.75rem; right: 1rem; z-index: 2; }
  .float-card--review { bottom: 14%; left: 0; max-width: 5.5rem; z-index: 5; }
  .device--phone { left: 36%; }
}

@media (min-width: 1024px) {
  .hero-visual { min-height: 380px; }
  .device--phone {
    left: 30%;
    width: 39%;
    max-width: 156px;
  }
  .device--tablet {
    width: 54%;
    max-width: 230px;
    bottom: 0;
    right: 0;
  }
  .device--phone .device-notch { height: 18px; }
  .device--phone .device-bar,
  .device--tablet .device-bar {
    height: 24px;
    padding: 0 8px;
    font-size: 0.5rem;
  }
  .device--phone .device-screen,
  .device--tablet .device-screen { padding: 0; }
  .float-card--wa { top: 0; right: 0; z-index: 6; }
  .float-card--slot { top: 6rem; right: 0.5rem; z-index: 5; }
  .float-card--review {
    top: 0;
    bottom: auto;
    left: calc(30% + 78px + (100% - 30% - 78px - 9.25rem) / 2 - 2.5rem);
    right: auto;
    max-width: 5rem;
    z-index: 5;
  }
}

@media (min-width: 1280px) {
  .device--phone {
    left: 28%;
    width: 38%;
    max-width: 164px;
  }
  .device--tablet {
    width: 52%;
    max-width: 246px;
  }
  .float-card--slot { top: 6.25rem; right: 0.25rem; }
  .float-card--review {
    top: 0;
    bottom: auto;
    left: calc(28% + 82px + (100% - 28% - 82px - 9.25rem) / 2 - 2.625rem);
    right: auto;
    max-width: 5.25rem;
  }
}

/* Slot card: skeleton → reveal */
.float-card__slot {
  display: block;
  position: relative;
  min-height: 1.1em;
}
.slot-skeleton {
  display: block;
  height: 0.75em;
  width: 85%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.22) 50%, rgba(201,168,76,0.08) 100%);
  background-size: 200% 100%;
  animation: slotShimmer 1.1s ease-in-out infinite;
}
.slot-reveal {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.float-card--slot.slot-ready .slot-skeleton { display: none; }
.float-card--slot.slot-ready .slot-reveal { opacity: 1; position: static; }

/* Review stars fill one-by-one */
.float-card__stars {
  display: flex;
  gap: 2px;
  margin: 3px 0 2px;
  min-height: 12px;
}
.float-star {
  display: block;
  width: 10px;
  height: 10px;
  opacity: 0.15;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transform: scale(0.5);
}
.float-card--review.stars-ready .float-star:nth-child(1) { animation: starFill 0.35s ease forwards 0s; }
.float-card--review.stars-ready .float-star:nth-child(2) { animation: starFill 0.35s ease forwards 0.12s; }
.float-card--review.stars-ready .float-star:nth-child(3) { animation: starFill 0.35s ease forwards 0.24s; }
.float-card--review.stars-ready .float-star:nth-child(4) { animation: starFill 0.35s ease forwards 0.36s; }
.float-card--review.stars-ready .float-star:nth-child(5) { animation: starFill 0.35s ease forwards 0.48s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
/* Preserve hover lift over float animation when booted */
.hero-visual.is-booted .float-card:hover {
  animation: none;
  transform: translateY(-4px) scale(1.03);
}
.float-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.12);
  margin-bottom: 4px;
  color: var(--gold);
}

/* ── Ecosystem story (inside propuesta) ──────────────── */
.ecosystem {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}
.ecosystem-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
}
.ecosystem-flow {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.18s ease, box-shadow 0.18s ease;
  opacity: 0;
  transform: translateY(18px);
}
.flow-node.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s, box-shadow 0.18s ease;
  transition-delay: calc(var(--reveal-i, 0) * 100ms);
}
.flow-node:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.flow-node-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}
.flow-node-text b { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 0.15rem; }
.flow-node-text span { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.flow-connector {
  width: 2px; height: 12px;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.5), rgba(201, 168, 76, 0.1));
  margin-left: 1.85rem;
}

.ecosystem-visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: var(--card);
  min-height: 320px;
}
.ecosystem-visual__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35) saturate(0.85);
}
.ecosystem-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 8, 8, 0.85) 0%, rgba(8, 8, 8, 0.4) 50%, rgba(8, 8, 8, 0.75) 100%);
}
.ecosystem-visual__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}
.profile-mock {
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ecosystem-visual.visible .profile-mock {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}
.profile-mock-head {
  display: flex; gap: 0.65rem; align-items: center; margin-bottom: 0.65rem;
}
.profile-mock-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #3d3020, #1a1510);
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.profile-mock-name { font-weight: 600; font-size: 0.85rem; color: #f5f0e8; }
.profile-mock-stars { color: var(--gold); font-size: 0.72rem; letter-spacing: 1px; }
.profile-mock-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.profile-mock-grid span,
.profile-mock-thumb {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background-color: #151515;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(201, 168, 76, 0.22);
  filter: brightness(0.82) saturate(0.88) contrast(1.05);
  transition: transform 0.2s ease, filter 0.2s ease;
  will-change: transform, opacity;
}
.profile-mock-thumb.reveal-child {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}
.ecosystem-visual.visible .profile-mock-thumb.reveal-child {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.2s ease;
}
.ecosystem-visual.visible .profile-mock-thumb.reveal-child:nth-child(1) {
  transition-delay: 0.28s;
}
.ecosystem-visual.visible .profile-mock-thumb.reveal-child:nth-child(2) {
  transition-delay: 0.38s;
}
.ecosystem-visual.visible .profile-mock-thumb.reveal-child:nth-child(3) {
  transition-delay: 0.48s;
}
.profile-mock-grid span:hover,
.profile-mock-thumb:hover {
  transform: scale(1.03);
  filter: brightness(0.92) saturate(0.92) contrast(1.05);
}
.ecosystem-visual.visible .profile-mock-thumb.reveal-child:hover {
  transform: translateY(0) scale(1.03);
}
.profile-mock-cta {
  margin-top: 0.65rem;
  display: block; text-align: center;
  padding: 0.45rem;
  border-radius: 6px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.ecosystem-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.ecosystem-dual-card {
  padding: 1rem;
  border-radius: 0.875rem;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ecosystem-dual-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.ecosystem-dual-card svg { color: var(--gold); margin-bottom: 0.4rem; }
.ecosystem-dual-card b { display: block; font-size: 0.82rem; color: var(--text); margin-bottom: 0.2rem; }
.ecosystem-dual-card span { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

/* ── YouCam strip (inside orbe section) ─────────────── */
.youcam-strip {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), rgba(17, 17, 17, 0.9));
  border: 1px solid rgba(201, 168, 76, 0.22);
  display: grid;
  gap: 1.25rem;
  align-items: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.youcam-strip:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
  .youcam-strip { grid-template-columns: 1fr 1.2fr; padding: 1.75rem 2rem; }
}
.youcam-strip-copy h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #f5f0e8;
}
.youcam-badge-glow {
  background: var(--gold);
  color: #0a0a0a;
  border-color: rgba(201, 168, 76, 0.55);
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: youcamBadgeGlow 2s ease-in-out infinite;
}
@keyframes youcamBadgeGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(201, 168, 76, 0.4); }
  50%      { box-shadow: 0 0 22px rgba(201, 168, 76, 0.8); }
}
.youcam-strip-copy p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}
.youcam-strip-copy a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
}
.youcam-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.youcam-preview-col { text-align: center; }
.youcam-preview-col label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.youcam-preview-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.youcam-strip.is-youcam-live .youcam-preview-img--before {
  opacity: 1;
  transform: scale(1);
}
.youcam-strip.is-youcam-live .youcam-preview-img--after {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.42s;
}
@media (min-width: 768px) {
  .youcam-preview-img { width: 88px; height: 88px; }
}
.youcam-arrow {
  color: var(--gold);
  opacity: 0.65;
  flex-shrink: 0;
}
.youcam-strip.is-youcam-live .youcam-arrow {
  opacity: 1;
  animation: youcamArrowPulse 2.2s ease-in-out infinite;
}
@keyframes youcamArrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50%      { transform: translateX(5px); opacity: 1; }
}
.youcam-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.youcam-step {
  font-size: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--muted4);
}

/* ── Orbe section depth ─────────────────────────────── */
.orbe-demo { position: relative; overflow: hidden; }
.orbe-demo .section-mesh::before {
  width: 500px; height: 500px;
  background: rgba(201, 168, 76, 0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Pricing depth ──────────────────────────────────── */
#precios { position: relative; overflow: hidden; }
.pricing-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.pricing-trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted4);
}
.pricing-trust-item svg { color: var(--gold); flex-shrink: 0; }
.count-up { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }

/* ── Scroll reveal enhancements (landing.html base + art) ── */
.scroll-reveal.visible {
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Final CTA ──────────────────────────────────────── */
.landing-final-cta__trust-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.6);
}
.landing-final-cta__trust-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.landing-final-cta__trust-icons svg { color: var(--gold); opacity: 0.85; }

/* ── Header discover link ───────────────────────────── */
.header-discover {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.header-discover:hover { color: var(--gold); }

/* Cards wrapper: invisible on desktop/tablet (children keep absolute positioning) */
.hero-visual__cards {
  display: contents;
}

/* ── Hero visual — responsive layout fixes ──────────── */
/* Tablet 768–1023: absolute composition (unchanged from desktop-lite) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-visual {
    max-width: 480px;
    min-height: 620px;
    margin: 0 auto;
    overflow: hidden;
  }
  .device--phone {
    left: 38%;
    top: 32%;
    max-width: 168px;
    width: 44%;
  }
  .device--tablet {
    opacity: 0.9;
    max-width: 240px;
    width: 60%;
    bottom: 0;
    right: 0;
  }
  .float-card--wa { top: 0; right: 0; left: auto; z-index: 6; }
  .float-card--slot { top: 6.5rem; right: 0.5rem; left: auto; z-index: 5; display: block; }
  .float-card--review {
    top: 12rem;
    bottom: auto;
    left: auto;
    right: 0;
    max-width: 5rem;
    z-index: 5;
  }
  .ecosystem-visual.visible .profile-mock-thumb.reveal-child:nth-child(1) { transition-delay: 0.28s; }
}

/* Mobile ≤767: single column flex stack — no absolute positioning */
@media (max-width: 767px) {
  .hero-grid { gap: 2rem; }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    perspective: none;
    padding: 0.25rem 0 1.5rem;
  }

  .hero-visual__glow,
  .hero-visual__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .device,
  .hero-visual__cards,
  .hero-visual__cards .float-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 1;
    flex-shrink: 0;
  }

  .device--phone {
    width: 80%;
    max-width: 220px;
    margin: 0 auto;
  }

  .hero-visual__cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 18.5rem;
    margin: 0 auto;
  }

  .hero-visual__cards .float-card {
    width: 100%;
    max-width: none;
    font-size: 0.72rem;
    padding: 0.65rem 0.85rem;
    will-change: opacity;
  }

  .hero-visual__cards .float-card strong { font-size: 0.78rem; }
  .hero-visual__cards .float-card small { font-size: 0.65rem; }

  .device--tablet {
    width: 90%;
    max-width: 340px;
    margin: 0 auto;
    opacity: 1;
    aspect-ratio: auto;
    height: auto;
  }

  .device--tablet .device-screen {
    background: #0a0a0a;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .device--tablet .device-screen picture {
    display: block;
    width: 100%;
    height: auto;
  }

  .device-screen__capture--tablet {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: auto;
    display: block;
  }

  .device--phone:hover,
  .device--tablet:hover,
  .hero-visual__cards .float-card:hover {
    transform: none;
  }

  .device-screen__capture--phone { object-position: center 32%; }

  /* Boot: slide-in only — no floating loops on mobile */
  .hero-visual.is-booted .device--phone,
  .hero-visual.is-booting .device--phone {
    animation: heroBootSlide 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
  }
  .hero-visual.is-booted .device--tablet,
  .hero-visual.is-booting .device--tablet {
    animation: heroBootSlide 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
  }
  .hero-visual.is-booted .hero-visual__cards .float-card,
  .hero-visual.is-booting .hero-visual__cards .float-card {
    animation: heroBootSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-visual.is-booted .float-card--wa,
  .hero-visual.is-booting .float-card--wa { animation-delay: 0.5s; }
  .hero-visual.is-booted .float-card--slot,
  .hero-visual.is-booting .float-card--slot { animation-delay: 0.62s; }
  .hero-visual.is-booted .float-card--review,
  .hero-visual.is-booting .float-card--review { animation-delay: 0.74s; }
}

@media (max-width: 480px) {
  .ecosystem-dual { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual__glow,
  .hero-visual__grid,
  .device,
  .float-card,
  .ui-mkt-pin,
  .ui-mkt-card--boot {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .device--phone { transform: translate(-50%, -50%) !important; }
  @media (max-width: 767px) {
    .device--phone { transform: none !important; }
  }
  .float-card:hover,
  .device--phone:hover,
  .device--tablet:hover {
    transform: none !important;
  }
  .ui-mkt-pin { transform: scale(1) !important; }
  .ui-mkt-pin::after { animation: none !important; }
  .ui-dash-chart .ui-dash-bar {
    height: var(--bar-h, 50%) !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .ui-dash-chart.is-filled .ui-dash-bar:nth-child(1) { --bar-h: 40%; }
  .ui-dash-chart.is-filled .ui-dash-bar:nth-child(2) { --bar-h: 65%; }
  .ui-dash-chart.is-filled .ui-dash-bar:nth-child(3) { --bar-h: 50%; }
  .ui-dash-chart.is-filled .ui-dash-bar:nth-child(4) { --bar-h: 80%; }
  .ui-dash-chart.is-filled .ui-dash-bar:nth-child(5) { --bar-h: 55%; }
  .ui-dash-chart.is-filled .ui-dash-bar:nth-child(6) { --bar-h: 70%; }
  .slot-skeleton { display: none !important; }
  .slot-reveal { opacity: 1 !important; position: static !important; }
  .float-star { opacity: 1 !important; transform: scale(1) !important; animation: none !important; }
  .float-card__title::after,
  .float-card__sub::after { display: none !important; }
  .flow-node.reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .profile-mock {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .profile-mock-thumb.reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .youcam-preview-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .youcam-arrow { animation: none !important; opacity: 0.85 !important; }
  .youcam-badge-glow {
    animation: none !important;
    box-shadow: 0 0 14px rgba(201, 168, 76, 0.55) !important;
  }
  .scroll-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-reveal.visible { transition: none !important; }
  .hero-particle { display: none; }
  .bounce-indicator { animation: none !important; }
}
