:root {
  --hero-navy: #07121b;
  --hero-panel: #101d27;
  --hero-copper: #c77850;
  --hero-copper-light: #e6a475;
  --hero-ivory: #f5f0e9;
}

.hero-wide {
  width: min(100%, 1740px);
  margin-inline: auto;
  padding-inline: clamp(20px, 3.2vw, 52px);
}

.hero--cinematic {
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: clamp(74px, 8vw, 124px) 0;
  background: var(--hero-navy);
  isolation: isolate;
}

.hero--cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7,18,27,.97) 0%, rgba(7,18,27,.83) 39%, rgba(7,18,27,.6) 67%, rgba(7,18,27,.78) 100%),
    linear-gradient(0deg, #07121b 0%, transparent 36%);
}

.hero-bg {
  position: absolute;
  inset: -4% -2%;
  z-index: -3;
  background: url("../images/hero-mexico-city-v2.jpg") center 62% / cover no-repeat;
  will-change: transform;
}

.hero--cinematic::after {
  background-image:
    linear-gradient(rgba(230,164,117,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,164,117,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .54;
}

.hero-grid-v2 {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(440px, .86fr) minmax(470px, 1fr);
  align-items: center;
  gap: clamp(28px, 2.4vw, 44px);
}

.hero-copy { min-width: 0; }
.hero--cinematic .eyebrow { color: var(--hero-copper-light); }
.hero--cinematic h1 {
  max-width: 13ch;
  margin: .18em 0 .34em;
  color: var(--hero-ivory);
  font-size: clamp(3.4rem, 4.5vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.052em;
}
.hero--cinematic h1 span { display: block; color: var(--hero-copper); }
.hero--cinematic .lead { max-width: 58ch; color: rgba(245,240,233,.84); }

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 18px;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid rgba(230,164,117,.22);
  border-radius: 12px;
  background: rgba(7,18,27,.58);
  color: rgba(245,240,233,.9);
  font-size: .82rem;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
}
.hero-feature svg { flex: 0 0 25px; width: 25px; color: var(--hero-copper); }
.hero--cinematic .market-note { margin-top: 17px; font-size: .88rem; }
.hero--cinematic .hero-links { margin-top: 14px; }
.hero--cinematic .hero-link { border-color: rgba(230,164,117,.22); background: rgba(7,18,27,.67); }

.hero-form-shell { min-width: 0; perspective: 1200px; }
.hero-form-shell .form-block {
  padding: clamp(32px, 2.4vw, 42px);
  overflow: visible;
  border: 1px solid rgba(230,164,117,.52);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(16,29,39,.96), rgba(4,12,18,.96));
  color: var(--hero-ivory);
  box-shadow: 0 28px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
}
.hero-form-shell .form-block__intro {
  margin: 0 0 24px;
  color: var(--hero-ivory);
  font-size: clamp(1.18rem, 1.35vw, 1.45rem);
  line-height: 1.35;
}
.hero-form-shell .form-block label { color: rgba(245,240,233,.82) !important; }
.hero-form-shell .form-block input,
.hero-form-shell .form-block select,
.hero-form-shell .form-block textarea {
  min-height: 58px !important;
  border: 1px solid rgba(230,164,117,.28) !important;
  border-radius: 10px !important;
  background: rgba(245,240,233,.055) !important;
  color: var(--hero-ivory) !important;
  box-shadow: inset 0 1px 7px rgba(0,0,0,.16) !important;
}
.hero-form-shell .form-block input::placeholder { color: rgba(245,240,233,.57) !important; }
.hero-form-shell .form-block input:focus,
.hero-form-shell .form-block select:focus,
.hero-form-shell .form-block textarea:focus {
  border-color: var(--hero-copper-light) !important;
  outline: 3px solid rgba(199,120,80,.22) !important;
}
.hero-form-shell .form-block button[type="submit"] {
  min-height: 60px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--hero-copper-light), var(--hero-copper)) !important;
  color: #07121b !important;
  font-weight: 850 !important;
  box-shadow: 0 11px 26px rgba(199,120,80,.32) !important;
}
.hero-form-shell .form-block input[type="submit"] {
  min-height: 60px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--hero-copper-light), var(--hero-copper)) !important;
  color: #07121b !important;
  font-weight: 850 !important;
  box-shadow: 0 11px 26px rgba(199,120,80,.32) !important;
  cursor: pointer;
}
.hero-form-shell form,
.hero-form-shell .registration-form { min-width: 0 !important; max-width: 100% !important; }
.hero-form-shell .form-legal { color: rgba(245,240,233,.66); }
.hero-form-shell .form-legal a { color: var(--hero-copper-light); }
.hero-response-note { margin: 16px 10px 0; color: rgba(245,240,233,.76); font-size: .9rem; }

.dashboard-stage {
  position: relative;
  min-width: 0;
  transform: perspective(1500px) rotateY(-8deg) rotateX(2deg);
  transform-origin: center right;
  filter: drop-shadow(0 34px 48px rgba(0,0,0,.46));
}
.dashboard-glow {
  position: absolute;
  inset: 10% -5% 0 5%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(199,120,80,.22), transparent 68%);
  filter: blur(22px);
}
.laptop-screen {
  position: relative;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
  border: 2px solid rgba(230,164,117,.6);
  border-radius: 22px 22px 12px 12px;
  background: #071119;
  box-shadow: inset 0 0 0 6px #02070b, inset 0 0 0 7px rgba(230,164,117,.12);
}
.laptop-screen::before {
  content: "";
  position: absolute;
  width: 88px;
  height: 9px;
  top: 6px;
  left: 50%;
  translate: -50% 0;
  border-radius: 0 0 8px 8px;
  background: #02070b;
}
.dash-top { display: flex; justify-content: space-between; gap: 16px; padding: 12px 10px 16px; color: rgba(245,240,233,.6); font-size: .62rem; letter-spacing: .13em; }
.dash-status { color: #79bf99; }
.dash-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(128px, .72fr); gap: 12px; }
.dash-chart, .dash-watch { border: 1px solid rgba(230,164,117,.16); border-radius: 12px; background: rgba(16,29,39,.82); }
.dash-chart { padding: 15px; }
.dash-chart-head { display: flex; justify-content: space-between; gap: 12px; color: var(--hero-ivory); font-size: .82rem; }
.dash-chart-head small { color: rgba(245,240,233,.45); }
.dash-chart svg { display: block; width: 100%; margin-top: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpis span { padding: 10px; border: 1px solid rgba(230,164,117,.1); border-radius: 8px; color: var(--hero-ivory); font-size: .75rem; }
.dash-kpis small { display: block; margin-bottom: 4px; color: rgba(245,240,233,.42); font-size: .57rem; }
.dash-watch { padding: 12px; }
.watch-title { margin-bottom: 8px; color: rgba(245,240,233,.52); font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; }
.dash-watch > div:not(.watch-title) { padding: 11px 4px; border-top: 1px solid rgba(230,164,117,.1); }
.dash-watch strong, .dash-watch span, .dash-watch em { display: block; }
.dash-watch strong { color: var(--hero-copper-light); font-size: .72rem; }
.dash-watch span { margin: 4px 0; color: var(--hero-ivory); font-size: .78rem; }
.dash-watch em { color: rgba(245,240,233,.43); font-size: .58rem; font-style: normal; }
.laptop-base { width: 112%; height: 20px; margin-left: -6%; border-radius: 2px 2px 70% 70%; background: linear-gradient(#c4a18e, #3a2923 20%, #090c0e 74%); box-shadow: 0 12px 20px rgba(0,0,0,.45); }

.markets-v2 {
  padding: clamp(74px, 7vw, 112px) 0;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(199,120,80,.08), transparent 32%),
    linear-gradient(180deg, #07121b, #0b1821);
}
.markets-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(230,164,117,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(230,164,117,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.markets-head {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(300px, .75fr) minmax(340px, 1.15fr);
  align-items: end;
  gap: 28px;
}
.markets-v2 .section-no { margin: 0; color: var(--hero-copper); opacity: 1; font-size: clamp(4rem, 6.5vw, 7rem); }
.markets-v2 h2 { margin: 0; max-width: 12ch; color: var(--hero-ivory); font-size: clamp(2.2rem, 3.4vw, 4rem); }
.markets-v2 .section-lead { margin: 0 0 8px; color: rgba(245,240,233,.62); }
.exchange-grid-v2 { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.exchange-card {
  min-height: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid rgba(230,164,117,.2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(16,29,39,.92), rgba(7,18,27,.86));
  box-shadow: 0 16px 35px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.exchange-card:hover { transform: translateY(-4px); border-color: rgba(230,164,117,.55); box-shadow: 0 22px 40px rgba(0,0,0,.28), 0 0 28px rgba(199,120,80,.08); }
.exchange-card img { display: block; width: min(100%, 176px); height: 48px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .92; transition: opacity .18s ease, filter .18s ease, transform .18s ease; }
.exchange-card:hover img { opacity: 1; transform: scale(1.025); }
.exchange-card strong { color: var(--hero-ivory); font-size: clamp(.92rem, 1.05vw, 1.14rem); letter-spacing: .045em; }
.exchange-card:has(strong) img { width: 40px; flex: 0 0 40px; }
.exchange-card--bybit { overflow: hidden; }
.exchange-card--bybit img { width: 176px; height: 48px; object-fit: cover; object-position: 50% 24%; filter: invert(1) grayscale(1); mix-blend-mode: screen; }

.calculator-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(199,120,80,.14), transparent 31%),
    linear-gradient(145deg, #07121b, #101d27);
  color: var(--hero-ivory);
}
.calculator-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(230,164,117,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(230,164,117,.035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.calculator-section .container { position: relative; max-width: 1260px; }
.calculator-section .calc-widget {
  padding: clamp(32px, 4vw, 58px);
  border: 1px solid rgba(230,164,117,.3);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16,29,39,.96), rgba(4,12,18,.96));
  box-shadow: 0 30px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
.calculator-section .calc-widget__title { margin-top: 0; letter-spacing: -.035em; }
.calculator-section .calc-widget__subtitle { max-width: 760px; margin-inline: auto; line-height: 1.55; }
.calculator-section .calc-widget__wrapper { gap: clamp(44px, 7vw, 88px); }
.calculator-section .calc-widget__controls {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(230,164,117,.18);
  border-radius: 18px;
  background: rgba(7,18,27,.62);
}
.calculator-section .calc-widget__range { height: 8px; }
.calculator-section .calc-widget__range::-webkit-slider-thumb { width: 22px; height: 22px; background: #f5f0e9; border-color: #c77850; }
.calculator-section .calc-widget__range::-moz-range-thumb { width: 22px; height: 22px; background: #f5f0e9; border-color: #c77850; }
.calculator-section .calc-widget__result {
  border-color: rgba(230,164,117,.42);
  box-shadow: 0 24px 54px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
.calculator-section .calc-widget__cta {
  min-height: 54px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #e6a475, #c77850);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(199,120,80,.28);
}
.calculator-section .calc-widget__cta:hover { opacity: 1; transform: translateY(-2px); }

.section--ivory:has(.review) {
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(245,240,233,.72), #f5f0e9 26%, #f5f0e9 74%, rgba(245,240,233,.72)),
    url("../images/hero-mexico-city-v2.jpg") center / cover no-repeat;
}
.section--ivory:has(.review)::before,
.section--ivory:has(.review)::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 34vw;
  height: 54%;
  pointer-events: none;
  border: 1px solid rgba(199,120,80,.45);
  transform: rotate(42deg);
}
.section--ivory:has(.review)::before { left: -24vw; bottom: -18%; }
.section--ivory:has(.review)::after { right: -25vw; top: -19%; }
.section--ivory:has(.review) .container { position: relative; z-index: 1; max-width: 1420px; }
.section--ivory:has(.review) .section-no {
  display: inline-block;
  margin-right: 24px;
  vertical-align: middle;
  color: var(--hero-copper);
  opacity: .25;
}
.section--ivory:has(.review) h2 {
  display: inline-block;
  max-width: 820px;
  vertical-align: middle;
  font-size: clamp(2.5rem, 4.1vw, 4.4rem);
}
.section--ivory:has(.review) h2::before {
  content: "Historias reales";
  display: block;
  margin-bottom: 10px;
  color: var(--hero-copper);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section--ivory:has(.review) .section-lead { margin-left: 150px; max-width: 750px; }
.section--ivory:has(.review) > .container > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin-top: 34px;
}
.section--ivory:has(.review) .review {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 24px;
  border-color: rgba(137,87,61,.18);
  border-radius: 16px;
  background: rgba(255,250,243,.94);
  box-shadow: 0 18px 36px rgba(37,28,22,.12), inset 0 1px 0 #fff;
}
.section--ivory:has(.review) .review:nth-child(n+5) { grid-column: span 2; min-height: 295px; }
.section--ivory:has(.review) .review-meta { align-items: flex-start; }
.section--ivory:has(.review) .review-meta img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 2px solid var(--hero-copper);
  box-shadow: 0 7px 16px rgba(40,25,17,.16);
}
.section--ivory:has(.review) .review-meta strong { font-size: 1.06rem; color: #101d27; }
.section--ivory:has(.review) .review-meta small { color: #6b6a66; }
.section--ivory:has(.review) .review-meta div::after {
  content: "★★★★★";
  display: block;
  margin-top: 5px;
  color: var(--hero-copper);
  font-size: .82rem;
  letter-spacing: .1em;
}
.section--ivory:has(.review) .review > p {
  position: relative;
  margin: 22px 0;
  color: #4e514f;
  font-size: .98rem;
  line-height: 1.52;
}
.section--ivory:has(.review) .review > p::before {
  content: "“";
  position: absolute;
  left: -9px;
  top: -13px;
  color: rgba(199,120,80,.2);
  font: 800 3rem/1 Georgia, serif;
}
.section--ivory:has(.review) .stats {
  grid-template-columns: 1fr 1fr .72fr;
  gap: 7px;
  margin-top: auto;
}
.section--ivory:has(.review) .stats span {
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid rgba(199,120,80,.08);
  background: rgba(199,120,80,.075);
  color: #29333a;
  font-size: .76rem;
  line-height: 1.42;
}

@media (max-width: 1360px) {
  .hero-grid-v2 { grid-template-columns: minmax(370px, .92fr) minmax(390px, .86fr) minmax(390px, 1fr); gap: 22px; }
  .hero--cinematic h1 { font-size: clamp(3.1rem, 4.4vw, 4.8rem); }
  .dashboard-stage { transform: perspective(1500px) rotateY(-5deg); }
}
@media (max-width: 1120px) {
  .hero-grid-v2 { grid-template-columns: 1.05fr .8fr; }
  .dashboard-stage { grid-column: 1 / -1; width: min(720px, 88%); margin: 10px auto 0; transform: none; }
  .hero--cinematic { padding-top: 80px; }
  .exchange-grid-v2 { grid-template-columns: repeat(3, 1fr); }
  .section--ivory:has(.review) > .container > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section--ivory:has(.review) .review:nth-child(n+5) { grid-column: span 1; min-height: 350px; }
}
@media (max-width: 760px) {
  .hero--cinematic { min-height: auto; padding: 56px 0 70px; }
  .hero--cinematic::before { background: linear-gradient(rgba(7,18,27,.9), rgba(7,18,27,.96)); }
  .hero-bg { inset: 0; background-position: 62% center; opacity: .5; transform: none !important; }
  .hero-wide, .hero-grid-v2 { width: 100% !important; max-width: 100vw !important; min-width: 0 !important; }
  .hero-grid-v2 { display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
  .hero-copy, .hero-form-shell, .dashboard-stage { width: calc(100vw - 36px) !important; max-width: calc(100vw - 36px) !important; min-width: 0 !important; flex: 0 0 auto; }
  .hero-copy p, .hero-form-shell p { overflow-wrap: anywhere; }
  .hero--cinematic h1 { max-width: 12ch; font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .hero-features { grid-template-columns: 1fr; }
  .hero-feature { min-height: 50px; }
  .hero-form-shell { order: 2; }
  .hero-form-shell .form-block { width: 100% !important; max-width: 100% !important; }
  .hero-form-shell .registration-form { width: 100% !important; display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  .hero-form-shell .registration-form > div { width: 100% !important; min-width: 0 !important; grid-column: 1 !important; }
  .dashboard-stage { order: 3; margin-top: 4px; transform: none; }
  .laptop-screen { width: 100%; min-height: 0; padding: 13px; border-radius: 16px 16px 8px 8px; }
  .laptop-base { width: 100%; margin-left: 0; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-watch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 10px; }
  .watch-title { grid-column: 1 / -1; }
  .markets-head { grid-template-columns: 75px 1fr; align-items: start; }
  .markets-head .section-lead { grid-column: 1 / -1; }
  .exchange-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .exchange-card { min-height: 125px; padding: 17px; }
  .exchange-card img { width: min(100%, 150px); height: 42px; }
  .calculator-section .calc-widget { padding: 24px 18px; border-radius: 18px; }
  .calculator-section .calc-widget__subtitle { margin-bottom: 2rem; }
  .calculator-section .calc-widget__wrapper { gap: 28px; }
  .calculator-section .calc-widget__controls { padding: 22px 18px; gap: 34px; }
  .section--ivory:has(.review) .section-no { display: block; margin-right: 0; }
  .section--ivory:has(.review) h2 { display: block; font-size: clamp(2.3rem, 11vw, 3.25rem); }
  .section--ivory:has(.review) .section-lead { margin-left: 0; }
  .section--ivory:has(.review) > .container > .grid { grid-template-columns: 1fr; }
  .section--ivory:has(.review) .review,
  .section--ivory:has(.review) .review:nth-child(n+5) { min-height: auto; }
}
@media (max-width: 420px) {
  .hero-wide { padding-inline: 18px; }
  .hero--cinematic h1 { font-size: 2.65rem; }
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-watch { grid-template-columns: 1fr; }
  .exchange-grid-v2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .dashboard-stage, .hero-copy, .hero-form-shell { transform: none !important; opacity: 1 !important; }
}
