/* =============================================================
   GENGANADERO — main.css  v2.0
   Solarized Light palette + Lekton font
   Mobile-first, zero dependencies, full animation system
============================================================= */

/* ================================================================
   1. CUSTOM PROPERTIES
================================================================ */
:root {
  /* Solarized Light palette */
  --bg: #fdf6e3;
  --bg-alt: #eee8d5;
  --text: #657b83;
  --text-em: #586e75;
  --muted: #93a1a1;
  --base0: #839496;
  --dark1: #073642;
  --dark2: #002b36;
  --blue: #859900;
  --blue-dk: #6d7d00;
  --green: #859900;
  --yellow: #b58900;
  --orange: #cb4b16;
  --cyan: #2aa198;

  /* Animation timing */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.4s;
  --dur-slow: 0.6s;

  /* Reveal default delay (overridden per element via style attr) */
  --delay: 0ms;
}

/* ================================================================
   2. RESET + BASE
================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* 16px — estándar web mobile */
}

body {
  font-family: 'Lekton', monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ================================================================
   3. KEYFRAMES
================================================================ */

/* Hero background gradient drift */
@keyframes heroDrift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Scroll indicator bounce */
@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(12px);
  }
}

/* Shimmer skeleton loading */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

/* Progress bar fill — paused by default, runs when .ai-running added */
@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 87%;
  }
}

/* Badge pulse glow */
@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(133, 153, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(133, 153, 0, 0);
  }
}

/* IA badge gentle blink */
@keyframes iaBlink {

  0%,
  90%,
  100% {
    opacity: 1;
  }

  95% {
    opacity: 0.55;
  }
}

/* Mock card field stagger entrance */
@keyframes fieldIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Connector line grow */
@keyframes connectorGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Step number count-up flicker (purely decorative) */
@keyframes numFlicker {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }

  60% {
    opacity: 1;
    transform: translateY(-1px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer link underline expand */
@keyframes linkUnderline {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ================================================================
   4. REVEAL UTILITIES
================================================================ */

/* Base state: all hidden, waiting for .visible */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity var(--dur-slow) var(--ease-out) var(--delay),
    transform var(--dur-slow) var(--ease-out) var(--delay);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.92);
}

/* Triggered state */
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Legacy .reveal support (just in case) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   5. CONTAINER + LAYOUT
================================================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.container--fluid {
  max-width: 100%;
  padding-right: 0;
}

/* ================================================================
   6. TYPOGRAPHY
================================================================ */
.label-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.625rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-em);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

/* Línea de acento amarilla bajo títulos centrados */
.section-header .section-title {
  position: relative;
  padding-bottom: 20px;
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ================================================================
   7. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Lekton', monospace;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-spring);
}

/* Focus ring — accessible, visible, non-intrusive */
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Universal active press */
.btn:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s;
}

.btn--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue), #fff 12%) 0%, var(--blue) 100%);
  color: var(--bg);
  border-color: var(--blue-dk);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dk) 100%);
  border-color: var(--blue-dk);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--primary:active {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--text-em);
  border-color: var(--muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue), transparent 92%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.btn--ghost:active {
  background: color-mix(in srgb, var(--blue), transparent 85%);
}

.btn--sm {
  font-size: 0.9375rem;
  padding: 8px 20px;
  border-radius: 6px;
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 15px 36px;
  border-radius: 10px;
}

.btn--full {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

.btn--cta-final {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue), #fff 15%) 0%, var(--blue) 100%);
  color: #fdf6e3;
  border-color: var(--blue-dk);
  font-size: 1.0625rem;
  padding: 16px 40px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--cta-final:hover,
.btn--cta-final:focus-visible {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dk) 100%);
  color: #fdf6e3;
  border-color: var(--blue-dk);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ================================================================
   8. PILLS / BADGES
================================================================ */
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.pill--green {
  background: rgba(133, 153, 0, 0.12);
  color: var(--green);
}

.pill--orange {
  background: rgba(203, 75, 22, 0.1);
  color: var(--orange);
}

.pill--blue {
  background: rgba(133, 153, 0, 0.1);
  color: var(--blue);
}

.pill--yellow {
  background: rgba(181, 137, 0, 0.1);
  color: var(--yellow);
}

.pill--cyan {
  background: rgba(42, 161, 152, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(42, 161, 152, 0.3);
}

/* ================================================================
   BRAND HIGHLIGHT — .gg
   Resalta el nombre "GenGanadero" con fondo negro y bold
================================================================ */
.gg {
  font-weight: 700;
}

/* ================================================================
   9. NAVBAR
================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  background: rgba(253, 246, 227, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(88, 110, 117, 0.12);
  box-shadow: 0 2px 20px rgba(7, 54, 66, 0.07);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar--visible {
  transform: translateY(0);
}

.navbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark1);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.navbar__logo:hover {
  opacity: 0.75;
}

.navbar__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 599px) {
  .navbar__actions .btn--ghost {
    display: none;
  }
}

/* ================================================================
   10. HERO + STATS
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /* mejor en móvil: excluye la barra del browser */
  background: radial-gradient(circle at top right, rgba(203, 75, 22, 0.06), transparent 50%),
    radial-gradient(circle at bottom left, rgba(133, 153, 0, 0.08), transparent 50%),
    linear-gradient(135deg, #fdf6e3 0%, #eee8d5 100%);
  background-size: 100% 100%;
  animation: heroDrift 16s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 20px 100px;
  /* más espacio inferior para stats en móvil */
  overflow: hidden;
}

/* ── Hero con foto de campo ──
   Split overlay: sky zone gets a warm light scrim,
   green zone gets a darker scrim for CTA legibility. */
.hero--with-photo {
  background-image:
    /* Top scrim — warm, light: lets sky show through */
    linear-gradient(to bottom,
      rgba(253, 246, 227, 0.25) 0%,
      rgba(253, 246, 227, 0.5) 30%,
      /* Transition zone — stronger where text sits */
      rgba(7, 54, 66, 0.45) 55%,
      rgba(7, 54, 66, 0.6) 75%,
      rgba(7, 54, 66, 0.7) 100%
    ),
    url('../assets/images/campo/hero-campo.jpeg');
  background-size: cover;
  background-position: center 40%;
  animation: none;
}

/* Login button floating top-right in hero */
.hero__login {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  color: var(--dark1);
  background: rgba(253, 246, 227, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(7, 54, 66, 0.2);
  border-radius: 24px;
  font-weight: 700;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero__login:hover {
  background: rgba(253, 246, 227, 0.85);
  border-color: rgba(7, 54, 66, 0.35);
  box-shadow: 0 2px 12px rgba(7, 54, 66, 0.12);
}

@media (min-width: 768px) {
  .hero__login {
    display: none;
  }
}

.hero__topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  margin-top: -10vh;
}

.hero__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* Brand name — dark on light sky */
.hero__h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--dark1);
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 6px rgba(253, 246, 227, 0.6);
}

/* Tagline — accented, visible on sky */
.hero__tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
  text-shadow: 0 1px 4px rgba(253, 246, 227, 0.5);
}

.hero__divider {
  width: 48px;
  height: 2px;
  background: var(--yellow);
  margin: 28px 0;
  border-radius: 2px;
  opacity: 0.8;
}

/* Description — light on dark green zone */
.hero__desc {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: #fdf6e3;
  font-weight: 700;
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 32px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 0;
}

.hero__cta-group .btn--primary {
  width: 100%;
  text-align: center;
}

/* "Iniciar sesión" in hero CTA — light style for dark zone */
.hero__cta-login {
  display: none;
  color: #fdf6e3;
  border-color: rgba(253, 246, 227, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hero__cta-login:hover,
.hero__cta-login:focus-visible {
  color: #fdf6e3;
  border-color: rgba(253, 246, 227, 0.75);
  background: rgba(253, 246, 227, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Desktop hero adjustments */
@media (min-width: 768px) {
  .hero__logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .hero__content {
    padding: 0;
  }

  .hero__cta-group {
    flex-direction: row;
    width: auto;
    max-width: none;
    justify-content: center;
  }

  .hero__cta-group .btn--primary {
    width: auto;
  }

  .hero__cta-login {
    display: inline-flex;
  }

  .hero__divider {
    width: 56px;
  }
}

/* Scroll indicator — simple chevron */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #fdf6e3;
  animation: bounce 2s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-indicator__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.scroll-indicator__chevron {
  width: 36px;
  height: 36px;
  opacity: 0.9;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* ================================================================
   11. CARDS — shared
================================================================ */
.card {
  background: var(--bg);
  border: 1.5px solid var(--bg-alt);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 4px 4px 0 rgba(7, 54, 66, 0.06);
  transition:
    border-color var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-spring),
    transform var(--dur-fast) var(--ease-spring);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 4px 8px 0 rgba(133, 153, 0, 0.15);
}

.card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(101, 123, 131, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-spring);
}

.card:hover .card__icon-wrap {
  transform: scale(1.1);
}

.card__icon-wrap--blue {
  background: rgba(133, 153, 0, 0.1);
}

.card__icon-wrap--green {
  background: rgba(133, 153, 0, 0.1);
}

.card__icon-wrap--orange {
  background: rgba(203, 75, 22, 0.1);
}

.card__icon-wrap--yellow {
  background: rgba(181, 137, 0, 0.1);
}

.card__icon-wrap--cyan {
  background: rgba(42, 161, 152, 0.1);
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-em);
  margin-bottom: 10px;
  margin-top: 10px;
  line-height: 1.3;
}

.card__desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
}

/* Accent-left cards */
.card--accent-left {
  background: var(--bg-alt);
  border: none;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 24px 28px;
  box-shadow: 4px 4px 0 rgba(7, 54, 66, 0.06);
}

.card--accent-blue {
  border-left-color: var(--blue);
}

.card--accent-green {
  border-left-color: var(--green);
}

.card--accent-cyan {
  border-left-color: var(--cyan);
}

.card--accent-orange {
  border-left-color: var(--orange);
}

/* Card grids */
.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid--2 {
  grid-template-columns: 1fr;
}

.cards-grid--3 {
  grid-template-columns: 1fr;
}

/* Background Image Cards */
.card--image {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  border: none;
  cursor: pointer;
}

.card--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.card--image:hover::before {
  transform: scale(1.06);
}

.card--image .card__content-overlay {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.08) 25%,
      rgba(0, 0, 0, 0.55) 55%,
      rgba(0, 0, 0, 0.88) 100%
    );
  padding: 80px 24px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: padding 0.4s var(--ease-out);
}

.card--image:hover .card__content-overlay {
  padding-bottom: 28px;
}

.card--image .card__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(253, 246, 227, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid rgba(253, 246, 227, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.card--image:hover .card__icon-wrap {
  opacity: 1;
  transform: translateY(0);
}

.card--image .card__icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: #fdf6e3;
}

.card--image .card__title {
  color: #fdf6e3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-out);
}

.card--image:hover .card__title {
  transform: translateY(-2px);
}

.card--image .card__desc {
  color: rgba(253, 246, 227, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease;
}

.card--image:hover .card__desc {
  max-height: 120px;
  opacity: 1;
}

/* On touch devices, always show desc + icon since no hover */
@media (hover: none) {
  .card--image .card__desc {
    max-height: 120px;
    opacity: 1;
  }
  .card--image .card__icon-wrap {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle glow border on hover */
.card--image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.card--image:hover::after {
  border-color: rgba(253, 246, 227, 0.15);
}

/* ================================================================
   12. PROBLEMA / EMPATÍA
================================================================ */
.problem {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 80px 20px;
}

.problem__list {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin: 0 auto 40px;
}

.problem__list li {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  padding: 8px 0;
}

.problem__divider {
  border: none;
  border-top: 1px solid var(--bg-alt);
  margin: 0 auto 32px;
  width: 60%;
}

.problem__close {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: var(--text-em);
  line-height: 1.4;
}

/* ================================================================
   13. PARA QUIÉN ES (Horizontal Scrolling)
================================================================ */
.for-who {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 64px 0 0;
}

.for-who .section-title {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 20px;
}

.fw-scroll-wrap {
  position: relative;
}

.fw-btn {
  display: none;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--bg-alt);
  color: var(--text-em);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(7, 54, 66, 0.12);
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.fw-btn:hover {
  background: var(--bg-alt);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.fw-btn--prev { left: 12px; }
.fw-btn--next { right: 12px; }

@media (min-width: 900px) {
  .fw-btn { display: flex; }
}

.horizontal-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 20px 48px;
  scroll-padding-left: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

/* On mobile, cards take most of viewport so next one peeks */
.horizontal-scroll-container .card {
  flex: 0 0 82vw;
  min-height: 85svh;
  scroll-snap-align: center;
  border-radius: 12px;
  border: none;
  margin-right: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* On tablet/desktop, revert to card-like scrolling with peeking */
@media (min-width: 768px) {
  .for-who {
    padding: 80px 0;
  }

  .for-who .section-title {
    margin-bottom: 48px;
  }

  .features {
    padding: 80px 0;
  }

  .horizontal-scroll-container {
    gap: 24px;
    padding: 0 40px 48px;
  }

  .horizontal-scroll-container .card {
    flex: 0 0 42vw;
    max-width: 380px;
    min-height: 540px;
    scroll-snap-align: center;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 1024px) {
  .horizontal-scroll-container .card {
    flex: 0 0 28vw;
    max-width: 400px;
  }
}

/* Scroll progress indicator */
.scroll-progress {
  display: flex;
  justify-content: center;
  padding: 24px 20px 0;
}

.scroll-progress__track {
  width: 120px;
  height: 3px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.scroll-progress__thumb {
  height: 100%;
  width: 30%;
  background: var(--green);
  border-radius: 3px;
  transition: transform 0.2s ease-out;
}

/* ================================================================
   14. FUNCIONALIDADES
================================================================ */
.features {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 64px 0 0;
}

.features .section-header {
  margin-bottom: 0;
  padding: 0 20px 32px;
}

.card--feature {
  background: var(--bg-alt);
}

/* Features — phone frames wrap + nav buttons */
.features-phones-wrap {
  position: relative;
}

/* Right-edge fade hint: "there's more" */
.features-phones-wrap::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  background: linear-gradient(to right, transparent, rgba(253, 246, 227, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  pointer-events: none;
  z-index: 5;
  animation: hintPulse 2s ease-in-out infinite;
}

/* Hide hint when scrolled to the end */
.features-phones-wrap.at-end::after {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes hintPulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(5px); opacity: 1; }
}

.fp-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(253, 246, 227, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--bg-alt);
  color: var(--text-em);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(7, 54, 66, 0.15);
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.fp-btn:hover {
  background: var(--bg);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 28px rgba(7, 54, 66, 0.2);
}

.fp-btn--prev { left: 20px; }
.fp-btn--next { right: 20px; }

@media (min-width: 900px) {
  .fp-btn { display: flex; }
}

/* Features — full-viewport horizontal scroll */
.features-phones {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 6vw;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}

.features-phones::-webkit-scrollbar {
  display: none;
}

/* Each feature = one near-full-viewport slide (peek next) */
.feature-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 0 0 88vw;
  min-height: 85svh;
  scroll-snap-align: center;
  padding: 40px 24px;
  position: relative;
}

/* Alternating subtle backgrounds */
.feature-phone:nth-child(even) {
  background: var(--bg-alt);
  border-radius: 16px;
}

.feature-phone:nth-child(odd) {
  border-radius: 16px;
}


/* Scale up phone frame inside features */
.feature-phone .phone-frame {
  width: 220px;
  min-width: 220px;
  position: relative;
  z-index: 1;
}

.feature-phone__caption {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.feature-phone__caption h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-em);
  line-height: 1.3;
  margin-bottom: 10px;
}

.feature-phone__caption p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}

/* Desktop: phone + text side by side */
@media (min-width: 768px) {
  .feature-phone {
    flex-direction: row;
    gap: 72px;
    padding: 60px 8vw;
  }

  .feature-phone .phone-frame {
    width: 280px;
    min-width: 280px;
  }

  .feature-phone__caption {
    text-align: left;
    max-width: 400px;
  }

  .feature-phone__caption h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .feature-phone__caption p {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .feature-phone {
    gap: 100px;
    padding: 60px 12vw;
  }

  .feature-phone .phone-frame {
    width: 320px;
    min-width: 320px;
  }

  .feature-phone__caption h3 {
    font-size: 1.8rem;
  }
}

/* ================================================================
   15. IA SPOTLIGHT (incluyendo mock card)
================================================================ */
/* ================================================================
   AGENTE GENGANADERO SECTION
================================================================ */
.agent-section {
  background: linear-gradient(135deg, var(--dark1) 0%, var(--dark2) 100%);
  padding: 80px 20px;
  overflow: hidden;
}

.agent-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* Robot visual */
.agent-section__visual {
  display: flex;
  justify-content: center;
}

.agent-section__robot-wrap {
  position: relative;
  width: clamp(280px, 60vw, 420px);
}

.agent-section__robot {
  width: 100%;
  height: auto;
  display: block;
  animation: agentFloat 4s ease-in-out infinite;
}

.agent-section__glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 161, 152, 0.25) 0%, transparent 70%);
  z-index: -1;
  animation: agentPulse 4s ease-in-out infinite;
}

@keyframes agentFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes agentPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Content side */
.agent-section__content .section-title {
  color: var(--bg);
  margin-bottom: 12px;
}

.agent-section__desc {
  font-size: clamp(1rem, 1.8vw, 1.062rem);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}

.agent-section__desc strong {
  color: var(--cyan);
}

/* Chat mockup */
.agent-chat {
  background: var(--dark1);
  border: 1px solid rgba(147, 161, 161, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-chat__bubble {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 90%;
}

.agent-chat__bubble--user {
  background: rgba(133, 153, 0, 0.15);
  color: var(--bg-alt);
  border: 1px solid rgba(133, 153, 0, 0.25);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.agent-chat__bubble--bot {
  background: rgba(42, 161, 152, 0.1);
  color: var(--bg-alt);
  border: 1px solid rgba(42, 161, 152, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.agent-chat__bubble strong {
  color: var(--cyan);
}

.agent-chat__bubble em {
  color: var(--yellow);
  font-style: italic;
}

.agent-chat__author {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  opacity: 0.6;
}

/* Typing indicator */
.agent-chat__typing {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  align-self: flex-start;
}

.agent-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: typingDot 1.4s ease-in-out infinite;
}

.agent-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.agent-chat__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Features list */
.agent-section__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding: 0;
}

.agent-section__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.agent-section__feat-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.agent-section__features strong {
  display: block;
  font-size: 1rem;
  color: var(--bg);
  margin-bottom: 2px;
}

.agent-section__features span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.agent-section__availability {
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ================================================================
   IA SPOTLIGHT
================================================================ */
.ia-spotlight {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 80px 20px;
}

.ia-spotlight__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* Phone frame específico del IA spotlight — más compacto */
.ia-spotlight__phone {
  width: 180px;
  min-width: 160px;
  margin: 0 auto 28px;
}

/* En desktop, la columna derecha apila el phone y el mock card */
.ia-spotlight__mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ia-spotlight__text .section-title {
  margin-bottom: 16px;
}

.ia-spotlight__para {
  font-size: clamp(1rem, 1.8vw, 1.062rem);
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

.ia-spotlight__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.ia-spotlight__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
}

.ia-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0 28px;
  padding: 0;
}

.ia-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ia-feature__icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ia-feature__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-em);
  display: block;
  margin-bottom: 4px;
}

.ia-feature__desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.ia-spotlight__link {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 2px;
  transition: opacity 0.15s ease, letter-spacing 0.15s ease;
}

.ia-spotlight__link:hover {
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* --- Mock Card --- */
.mock-card {
  background: var(--bg);
  border: 2px solid var(--text-em);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 6px 6px 0 rgba(7, 54, 66, 0.1);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}

.mock-card:hover {
  box-shadow:
    0 8px 32px rgba(133, 153, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.mock-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-alt);
}

.mock-card__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-card__detected {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green);
}

.badge-ia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--bg);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  animation: iaBlink 3s ease-in-out infinite;
}

.mock-card__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mock-card__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}

/* Stagger entrance for rows when mock card becomes visible */
.mock-card__row--stagger {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}

.mock-card__row--stagger.row-visible {
  animation: fieldIn 0.35s var(--ease-out) var(--field-delay) forwards;
}

.mock-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mock-card__value {
  font-size: 0.875rem;
  color: var(--text-em);
  font-weight: 400;
}

/* Shimmer skeleton */
.shimmer-text {
  display: block;
  height: 16px;
  border-radius: 4px;
  width: 140px;
  background: linear-gradient(90deg,
      var(--bg-alt) 0px,
      var(--bg) 80px,
      var(--bg-alt) 160px);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* Progress */
.mock-card__progress-wrap {
  border-top: 1px solid var(--bg-alt);
  padding-top: 16px;
}

.mock-card__progress-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.mock-card__progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 100px;
  overflow: hidden;
}

.mock-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, #2aa198 100%);
  border-radius: 100px;
  width: 0%;
  animation: progressFill 2s var(--ease-out) forwards;
  animation-play-state: paused;
}

.mock-card__progress-fill.ai-running {
  animation-play-state: running;
}

/* ================================================================
   15b. DISPOSITIVOS
================================================================ */
.devices {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 80px 0 64px;
  overflow: hidden;
}

.devices-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 32px 32px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

@media (min-width: 1280px) {
  .devices-row {
    justify-content: center;
  }
}

.devices-row::-webkit-scrollbar {
  display: none;
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  scroll-snap-align: center;
}

/* Shared frame styles */
.device-frame {
  border: 5px solid var(--text-em);
  overflow: hidden;
  background: var(--bg);
  position: relative;
  box-shadow:
    0 0 0 1.5px var(--bg-alt),
    0 16px 48px rgba(7, 54, 66, 0.18);
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s ease;
}

.device-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 1.5px var(--bg-alt),
    0 28px 72px rgba(7, 54, 66, 0.26);
}

/* Mobile */
.device-frame--mobile {
  width: 110px;
  aspect-ratio: 9 / 19;
  border-radius: 22px;
  border-width: 5px;
}

/* Notch solo en mobile */
.device-frame--mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 13px;
  background: var(--text-em);
  border-radius: 0 0 8px 8px;
  z-index: 3;
}

/* Tablet */
.device-frame--tablet {
  width: 170px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

/* Laptop */
.device-frame--laptop {
  width: 220px;
  aspect-ratio: 16 / 10;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

@media (min-width: 768px) {
  .device-frame--laptop {
    width: 300px;
  }
}

/* Laptop base/teclado decorativo */
.device-frame--laptop::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 10px;
  background: var(--text-em);
  border-radius: 0 0 4px 4px;
}

/* TV */
.device-frame--tv {
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .device-frame--tv {
    width: 340px;
  }
}

/* TV pie decorativo */
.device-frame--tv::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: var(--text-em);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.device-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Placeholder mientras no hay foto */
.device-frame__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--muted);
  min-height: 80px;
}

.device-frame__placeholder span {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  text-align: center;
}

.device-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-em);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Phone frame — usado en features-phones y ia-spotlight */
.phone-frame {
  width: 200px;
  min-width: 180px;
  border-radius: 36px;
  border: 7px solid var(--text-em);
  box-shadow:
    0 0 0 1.5px var(--bg-alt),
    0 20px 56px rgba(88, 110, 117, 0.28);
  overflow: hidden;
  background: var(--dark1);
  position: relative;
  flex-shrink: 0;
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s ease;
}

.phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 1.5px var(--bg-alt),
    0 32px 80px rgba(88, 110, 117, 0.35);
}

/* Notch (pill style) */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 16px;
  background: var(--text-em);
  border-radius: 0 0 10px 10px;
  z-index: 3;
}

.phone-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
}

.phone-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
}

/* ================================================================
   16. DIFERENCIADORES
================================================================ */
.differentiators {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 80px 20px;
}

.differentiators .section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* ================================================================
   17. CÓMO FUNCIONA
================================================================ */
.how-it-works {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 80px 20px;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 32px 20px;
  max-width: 300px;
  width: 100%;
}

.step__number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--bg-alt);
  line-height: 1;
  margin-bottom: -8px;
  letter-spacing: -0.04em;
  transition: color 0.3s ease;
}

.step.visible .step__number {
  animation: numFlicker 0.5s var(--ease-out) var(--delay, 0ms) both;
}

.step__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(133, 153, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid rgba(133, 153, 0, 0.2);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
}

.step:hover .step__icon-wrap {
  transform: scale(1.08);
  background: rgba(133, 153, 0, 0.18);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-em);
  margin-bottom: 8px;
}

.step__desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.step__connector {
  width: 2px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 2px;
  display: block;
}

/* ================================================================
   18. PRICING
================================================================ */
.pricing {
  background: var(--bg);
  border-top: 1px solid var(--bg-alt);
  padding: 80px 0 80px;
}

/* Scroll wrap + nav buttons */
.pricing-scroll-wrap {
  position: relative;
}

.ps-btn {
  display: none;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--bg-alt);
  color: var(--text-em);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(7, 54, 66, 0.12);
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ps-btn:hover {
  background: var(--bg-alt);
  transform: translateY(-50%) scale(1.1);
}

.ps-btn--prev { left: 12px; }
.ps-btn--next { right: 12px; }

@media (min-width: 900px) {
  .ps-btn { display: flex; }
}

/* Scroll container */
.pricing-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 24px 20px 40px;
  scroll-padding-left: 20px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .pricing-scroll {
    padding: 24px 48px 40px;
    scroll-padding-left: 48px;
  }
}

.pricing-scroll::-webkit-scrollbar { display: none; }

/* Inner grid removed — cards are direct flex children */
.pricing__grid {
  display: contents;
}

.pricing-scroll > .pricing-card:first-child { margin-left: auto; }
.pricing-scroll > .pricing-card:last-child  { margin-right: auto; }

.pricing-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-alt);
  border: 1.5px solid var(--bg-alt);
  border-radius: 8px;
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-spring),
    transform var(--dur-fast) var(--ease-spring);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--muted);
  box-shadow: 0 8px 24px rgba(101, 123, 131, 0.12);
}

.pricing-card--featured {
  border: 2px solid var(--blue);
  box-shadow: 0 4px 32px rgba(133, 153, 0, 0.16);
}

.pricing-card--featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(133, 153, 0, 0.22);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  animation: badgePulse 2.5s ease-in-out infinite;
}

.pricing-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-em);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card__period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card__price--text {
  font-size: 1.625rem;
}

.pricing-card__desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 0;
}

.pricing-card__divider {
  height: 1px;
  background: rgba(88, 110, 117, 0.15);
  margin: 18px 0;
}

.pricing-card--dark {
  background: var(--dark1);
  border-color: var(--dark1);
}

.pricing-card--dark .pricing-card__label,
.pricing-card--dark .pricing-card__price,
.pricing-card--dark .pricing-card__desc,
.pricing-card--dark .pricing-card__features li {
  color: var(--bg);
}

.pricing-card--dark .pricing-card__divider {
  background: rgba(253, 246, 227, 0.15);
}

.pricing-card--dark .btn--ghost {
  color: var(--bg);
  border-color: rgba(253, 246, 227, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pricing-card--dark .btn--ghost:hover {
  background: rgba(253, 246, 227, 0.12);
  border-color: var(--bg);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1rem;
  line-height: 1.4;
}

.pricing-card__features li svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Limit stats grid ───────────────────────────────────────── */
.pricing-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.pricing-card__stat {
  background: var(--bg);
  border-radius: 6px;
  padding: 8px 4px 6px;
  text-align: center;
}

.pricing-card--featured .pricing-card__stat {
  background: rgba(38, 139, 210, 0.08);
}

.pricing-card__stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-em);
  line-height: 1.1;
}

.pricing-card__stat-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* ── Feature groups (IA header dentro de la lista) ──────────── */
.pricing-card__features .feature-group-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(42, 161, 152, 0.2);
  pointer-events: none;
}

.pricing-card__features .feature-ai {
  color: var(--text);
}

.pricing-card__features .feature-inherit {
  font-weight: 700;
  color: var(--text-em);
}

/* ── Badge "limitado" ────────────────────────────────────────── */
.feature-limit-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(181, 137, 0, 0.1);
  border: 1px solid rgba(181, 137, 0, 0.25);
  border-radius: 100px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ── On-Premise panel ───────────────────────────────────────── */
.pricing-onpremise {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--dark1);
  border-radius: 10px;
  padding: 36px 40px;
  margin-top: 32px;
}

.pricing-onpremise__left {
  flex: 1 1 55%;
  min-width: 0;
}

.pricing-onpremise .pricing-card__label {
  color: rgba(253, 246, 227, 0.5);
  margin-bottom: 10px;
}

.pricing-onpremise__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1.3;
  margin: 0 0 10px;
}

.pricing-onpremise__desc {
  font-size: 0.9375rem;
  color: rgba(253, 246, 227, 0.7);
  line-height: 1.55;
  margin: 0 0 20px;
}

.pricing-onpremise .btn--ghost {
  color: var(--bg);
  border-color: rgba(253, 246, 227, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pricing-onpremise .btn--ghost:hover {
  background: rgba(253, 246, 227, 0.12);
  border-color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pricing-onpremise__features {
  flex: 1 1 40%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}

.pricing-onpremise__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9375rem;
  color: rgba(253, 246, 227, 0.85);
  line-height: 1.4;
}

@media (max-width: 699px) {
  .pricing-onpremise {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }
}

.feature-yes {
  color: var(--text);
}

.feature-no {
  color: var(--muted);
}

/* ================================================================
   19. CTA FINAL
================================================================ */
.cta-final {
  background: var(--text-em);
  padding: 96px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dot-grid background pattern */
.cta-final__dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(253, 246, 227, 0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

/* Force always-visible — no reveal animation inside CTA final */
.cta-final .reveal-up,
.cta-final .reveal-left,
.cta-final .reveal-right,
.cta-final .reveal-scale,
.cta-final .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.cta-final__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cta-final__h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fdf6e3;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 700px;
}

.cta-final__sub {
  font-size: clamp(1rem, 1.8vw, 1.062rem);
  color: rgba(253, 246, 227, 0.88);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 36px;
}

.cta-final__trust {
  font-size: 0.8125rem;
  color: rgba(253, 246, 227, 0.72);
  margin-top: 16px;
}

/* ================================================================
   19a. DEMO
================================================================ */
.demo {
  background: var(--bg);
  padding: 80px 20px;
}

.demo__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.demo__badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.demo__title {
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text-em);
  line-height: 1.2;
  margin-bottom: 10px;
}

.demo__sub {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 28px;
}

.demo__creds {
  background: var(--bg-alt);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 20px 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.demo__cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo__cred-label {
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}

.demo__cred-value {
  font-family: 'Lekton', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 4px 12px;
  letter-spacing: .03em;
}

.btn--demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue), #fff 12%) 0%, var(--blue) 100%);
  color: #fff;
  font-family: 'Lekton', monospace;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: 10px;
  border: 2px solid var(--blue-dk);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition:
    background 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-spring);
  margin-bottom: 14px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--demo:hover {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dk) 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--demo:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.btn--demo:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.demo__note {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ================================================================
   19b. CONTACTO
================================================================ */
.contact {
  background: var(--bg-alt);
  padding: 80px 20px;
}

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-em);
}

.contact__row svg {
  flex-shrink: 0;
  color: var(--blue);
}

/* WhatsApp button */
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #2ee077 0%, #25d366 100%);
  color: #fff;
  font-family: 'Lekton', monospace;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 10px;
  border: 2px solid #1fba59;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition:
    background 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-spring);
  width: 100%;
  justify-content: center;
  box-shadow:
    0 2px 6px rgba(37, 211, 102, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--whatsapp:hover {
  background: linear-gradient(180deg, #25d366 0%, #1fba59 100%);
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--whatsapp:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.btn--whatsapp:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

/* ================================================================
   20. FOOTER
================================================================ */
.footer {
  background: var(--dark1);
  padding: 48px 20px;
  border-top: 1px solid var(--dark1);
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
  margin-bottom: 4px;
}

.footer__logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer__brand {
  font-size: 1rem;
  font-weight: 700;
  color: #fdf6e3;
  letter-spacing: -0.01em;
}

.footer__tagline {
  font-size: 1rem;
  color: rgba(253, 246, 227, 0.6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Animated underline for footer links */
.footer__link {
  font-size: 1rem;
  color: rgba(253, 246, 227, 0.85);
  position: relative;
  display: inline-block;
  transition: color 0.15s ease;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease-out);
}

.footer__link:hover {
  color: var(--blue);
}

.footer__link:hover::after {
  transform: scaleX(1);
}

.footer__made {
  font-size: 0.8125rem;
  color: rgba(253, 246, 227, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__robot-icon {
  flex-shrink: 0;
  color: rgba(253, 246, 227, 0.55);
  display: inline-block;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(253, 246, 227, 0.45);
}

/* ================================================================
   21. ACCESSIBILITY
================================================================ */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--blue);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  font-size: 1rem;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ================================================================
   22. PRINT
================================================================ */
@media print {

  .navbar,
  .scroll-indicator,
  .cta-final {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ================================================================
   23. PREFERS-REDUCED-MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero {
    animation: none;
    background: var(--bg);
  }

  .mock-card__progress-fill {
    animation: none;
    width: 87%;
  }
}

/* ================================================================
   24. MEDIA QUERIES
================================================================ */

/* ---- 600px — small tablet ---- */
@media (min-width: 600px) {
  .cards-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__stats {
    gap: 8px 48px;
  }
}

/* ---- 768px — tablet ---- */
@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
  }

  .step {
    padding: 24px 16px;
    flex: 1;
    max-width: 240px;
  }

  .step__connector {
    width: 60px;
    height: 2px;
    margin-top: 52px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out);
  }

  .step__connector.visible {
    transform: scaleX(1);
  }

  .agent-section__grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
  }

  .agent-section__robot-wrap {
    width: 500px;
  }

  .ia-spotlight__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .footer__grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ---- 900px — desktop ---- */
@media (min-width: 900px) {
  .cards-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .pricing__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- 1024px — large desktop ---- */
@media (min-width: 1024px) {
  .problem {
    padding: 96px 20px;
  }

  .for-who,
  .features,
  .agent-section,
  .ia-spotlight,
  .differentiators,
  .how-it-works,
  .pricing {
    padding: 96px 20px;
  }

  .agent-section__robot-wrap {
    width: 580px;
  }

  .cta-final {
    padding: 120px 20px;
  }
}