/* =======================================================
   panels.css · Hero + Horizontal scroll panels
   ======================================================= */

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: clamp(80px, 14vw, 180px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: var(--space-5) 0 var(--space-5);
}
.hero-copy h1 .accent {
  background: var(--grad-highlight);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: var(--color-accent);
  opacity: 0.20;
  border-radius: 4px;
  z-index: -1;
}
.hero-copy .lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-6);
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-8); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 3vw, 48px);
}
.hero-stats .stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: var(--fw-bold);
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.hero-stats .stat span {
  font-size: 11px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-semi);
}

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 620px;
  z-index: 2;
}
.hero-visual .deco-blob { top: 10%; left: 50%; transform: translateX(-50%); }

/* ===================================================
   HORIZONTAL SCROLL — 5 paneles pinned
   =================================================== */
.flow {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.04) 50%, transparent 100%);
  overflow: hidden;
}

.flow-intro {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 60px);
}
.flow-intro h2 {
  font-size: var(--fs-display);
  margin: var(--space-3) auto var(--space-4);
  max-width: 18ch;
  line-height: 1.05;
}
.flow-intro h2 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.flow-intro .hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--color-brand);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.flow-intro .hint svg { animation: nudgeRight 2s ease-in-out infinite; }
@keyframes nudgeRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* Pin track */
.flow-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.flow-track {
  display: flex;
  width: 500vw; /* 5 panels × 100vw */
  height: 100%;
  will-change: transform;
}
.flow-panel {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(40px, 6vw, 90px) clamp(32px, 6vw, 80px);
}

/* Backgrounds por panel (cada uno con su tonalidad de "ola") */
.flow-panel:nth-child(1) {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 60%, #2563eb 100%);
}
.flow-panel:nth-child(2) {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}
.flow-panel:nth-child(3) {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0ea5e9 100%);
}
.flow-panel:nth-child(4) {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #1d4ed8 100%);
}
.flow-panel:nth-child(5) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Capa de ola SVG sobre el panel */
.flow-panel .panel-waves svg {
  width: 200%;
  opacity: 0.35;
}

/* Contenido del panel */
.panel-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  color: var(--color-text-on-wave);
}
.panel-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.panel-copy .panel-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--fw-semi);
}
.panel-copy .panel-num strong {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: #fff;
}
.panel-copy .panel-num .dash {
  display: inline-block; width: 36px; height: 1px; background: rgba(255,255,255,.6);
}
.panel-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
}
.panel-copy h2 em {
  font-style: italic;
  background: linear-gradient(120deg, #fff 0%, #bae6fd 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.panel-copy p {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  line-height: 1.55;
}
.panel-copy .panel-meta {
  display: flex; flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-3);
}
.panel-copy .panel-meta .m strong {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}
.panel-copy .panel-meta .m span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--fw-semi);
}

/* Visual del panel — glass card centrado o mockup chico */
.panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.panel-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(var(--blur-lg)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 36px);
  color: #fff;
  width: 100%;
  max-width: 460px;
  box-shadow:
    0 30px 60px -18px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.panel-card h3 {
  font-size: var(--fs-title);
  margin-bottom: var(--space-3);
  color: #fff;
}
.panel-card .features {
  display: grid; gap: var(--space-3);
  margin-top: var(--space-4);
  list-style: none;
}
.panel-card .features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}
.panel-card .features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #fff;
}

/* Counter visual (Pag. 0X / 05) en cada panel */
.panel-pager {
  position: absolute;
  bottom: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--fw-semi);
  z-index: 3;
}
.panel-pager .now {
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.panel-pager .bar {
  position: relative;
  width: 72px; height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  overflow: hidden;
}
.panel-pager .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform .35s var(--ease-out);
}

/* ===================================================
   STATS strip (debajo del horizontal scroll)
   =================================================== */
.stat-band {
  position: relative;
  padding-block: clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
}
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; align-items: center; gap: var(--space-4);
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.10);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.stat-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.18);
}
.stat-pill .ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-accent);
}
.stat-pill .info .t {
  font-weight: var(--fw-bold);
  color: var(--color-text);
  font-size: var(--fs-md);
}
.stat-pill .info .s {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}
