/* ============================================================
   MOND — styles.css
   Consultora de Crecimiento en Mercado Libre
   Sistema visual: Gravitación
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES (EDITABLE: Change brand colors here)
   ============================================================ */
:root {
  /* Core palette — MOND brand manual */
  --color-bg:        #111820;
  --color-bg-2:      #1D294F;
  --color-surface:   rgba(255, 255, 255, 0.04);
  --color-surface-2: rgba(255, 255, 255, 0.07);
  --color-border:    rgba(192, 191, 197, 0.14);
  --color-border-2:  rgba(134, 150, 254, 0.30);

  --color-text:      #ECEEFA;
  --color-text-2:    #C0BFC5;
  --color-text-3:    rgba(192, 191, 197, 0.55);
  --color-accent:    #8696FE;
  --color-accent-bg: rgba(134, 150, 254, 0.10);
  --color-accent-bg-hover: rgba(134, 150, 254, 0.18);

  /* Typography */
  --font-main:    'Poppins', system-ui, sans-serif;
  /* EDITABLE: If Legítima font is available, add it here */
  --font-accent:  Georgia, 'Times New Roman', serif; /* Fallback for Legítima */

  /* Spacing scale (base: 8px) */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-xxl: 120px;

  /* Layout */
  --max-width:  1280px;
  --pad-x:      80px;
  --pad-x-tab:  48px;
  --pad-x-mob:  24px;

  /* Components */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  /* Transitions */
  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:   150ms;
  --dur-med:    280ms;
  --dur-slow:   500ms;

  /* Navbar */
  --navbar-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section--pad {
  padding-block: var(--space-xxl);
}

.section--full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.br--desk { display: block; }

/* ============================================================
   4. TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600; /* Poppins SemiBold for top hierarchy */
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400; /* Poppins Regular — strategic choice, more refined */
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

.body-lead {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

p {
  font-size: 1rem;
  color: var(--color-text-2);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: var(--space-md);
}

.eyebrow--accent { color: var(--color-accent); }

/* Legítima-style accent: italic, lavender */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}

.section-header {
  max-width: 680px;
  margin-bottom: var(--space-xl);
}

.section-header h2 { margin-bottom: var(--space-md); }

.section-sub {
  font-size: 1rem;
  color: var(--color-text-2);
  margin-top: var(--space-sm);
}

.inline-link {
  color: var(--color-accent);
  transition: opacity var(--dur-fast) var(--ease);
}
.inline-link:hover { opacity: 0.75; }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600; /* Always SemiBold per brief */
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

/* Sizes */
.btn--sm  { font-size: 0.8rem;  padding: 9px 20px; }
.btn--md  { font-size: 0.875rem; padding: 12px 28px; }
.btn--lg  { font-size: 0.9375rem; padding: 14px 32px; }
.btn--xl  { font-size: 1rem;    padding: 18px 40px; }

/* Primary — lavender fill */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid transparent;
}
.btn--primary:hover {
  background-color: #9aa8ff;
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0) scale(0.99);
}

/* Ghost — transparent with lavender border */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-2);
}
.btn--ghost:hover {
  background-color: var(--color-accent-bg-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}
.btn--ghost:hover .btn__arrow { transform: translateX(3px); }

.btn-sub {
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--color-text-3);
  font-weight: 400;
}

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--navbar-h);
  background: rgba(17, 24, 32, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-med) var(--ease),
    border-color var(--dur-med) var(--ease);
}

.navbar.scrolled {
  background: rgba(17, 24, 32, 0.92);
  border-bottom-color: var(--color-border);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.navbar__logo {
  flex-shrink: 0;
  line-height: 1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-2);
  transition: color var(--dur-fast) var(--ease);
  letter-spacing: 0.01em;
}
.navbar__link:hover { color: var(--color-text); }

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.navbar__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease);
  transform-origin: center;
}

/* Burger → X animation */
.navbar__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   7. MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
  padding: var(--space-xl) var(--pad-x-mob);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu__link {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  transition: color var(--dur-fast) var(--ease);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), color var(--dur-fast) var(--ease);
}

.mobile-menu.open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 130ms; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 230ms; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 280ms; }
.mobile-menu__link:hover { color: var(--color-accent); }

.mobile-menu__cta {
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease) 350ms, transform var(--dur-slow) var(--ease) 350ms;
}
.mobile-menu.open .mobile-menu__cta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease) 420ms;
}
.mobile-menu.open .mobile-menu__sub {
  opacity: 1;
}

.mobile-menu__sub span,
.mobile-menu__sub a {
  font-size: 0.85rem;
  color: var(--color-text-3);
}
.mobile-menu__sub a:hover { color: var(--color-text-2); }

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  padding-top: var(--navbar-h);
  min-height: 100vh;
}

.hero__graphic {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(600px, 55vw);
  pointer-events: none;
  z-index: 0;
}

.hero__arc {
  width: 100%;
  height: auto;
  animation: orbit 30s linear infinite;
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

.hero__container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.hero__content {
  max-width: 640px;
}

.hero__h1 {
  margin-bottom: var(--space-md);
  line-height: 1.12;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--color-text-2);
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-text-3));
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.2); }
}
/* ============================================================
   HERO VIDEO BACKGROUND
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 32, 0.65); /* Color de fondo con opacidad */
  z-index: 1;
  pointer-events: none;
}

/* Ajustar la posición del contenido existente para que quede sobre el video */
.hero__graphic,
.hero__container,
.hero__scroll {
  position: relative;
  z-index: 2;
}

/* Asegurar que el texto sea legible sobre el video */
.hero__content {
  position: relative;
  z-index: 3;
}
/* ============================================================
   9. LOGO STRIP
   ============================================================ */
.logo-strip {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.logo-strip__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.logo-strip__label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-3);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.logo-strip__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.logo-strip__track {
  overflow: hidden;
  width: 100%;
}

.logo-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  width: max-content;
  animation: logoScroll 28s linear infinite;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-strip__inner { animation: none; }
}

.logo-item {
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity var(--dur-med) var(--ease);
}
.logo-item:hover { opacity: 0.75; }

/* EDITABLE: Logo placeholder styling — remove when using real logos */
.logo-placeholder {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-2);
  white-space: nowrap;
}

/* ============================================================
   10. PAIN POINTS
   ============================================================ */
.pain {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(29, 41, 79, 0.18) 50%, var(--color-bg) 100%);
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.pain-card {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--dur-med) var(--ease),
    background-color var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease);
}

.pain-card:hover {
  border-color: var(--color-border-2);
  background: var(--color-surface-2);
  transform: translateY(-2px);
}

.pain-card__num {
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.pain-card__text {
  font-size: 0.975rem;
  color: var(--color-text-2);
  line-height: 1.65;
  position: relative;
  z-index: 1;
  margin: 0;
}

.pain__cta {
  text-align: center;
}

.pain__cta-text {
  font-size: 1rem;
  color: var(--color-text-2);
  margin: 0;
}

/* ============================================================
   11. MAIN SERVICE
   ============================================================ */
.main-service {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-2);
}

.main-service__bg-graphic {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: min(450px, 40vw);
  pointer-events: none;
  z-index: 0;
}

.main-service__bg-graphic svg {
  width: 100%;
  height: auto;
  animation: orbit 45s linear infinite reverse;
}

.main-service__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.main-service__content h2 {
  margin-bottom: var(--space-md);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: var(--space-md) var(--space-lg);
}

.feature-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-2);
}

.feature-list__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Metric cards grid */
.main-service__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding-top: var(--space-md);
}

.metric-card {
  padding: var(--space-md) var(--space-md) var(--space-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--dur-med) var(--ease);
}

.metric-card:hover {
  border-color: rgba(134, 150, 254, 0.25);
}

.metric-card--accent {
  border-color: var(--color-border-2);
  background: rgba(134, 150, 254, 0.06);
}

.metric-card__value {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.metric-card__context {
  font-size: 0.75rem;
  color: var(--color-text-3);
  line-height: 1.4;
}

/* ============================================================
   12. SECONDARY SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.service-card {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease);
}

.service-card:hover {
  border-color: var(--color-border-2);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-2);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   13. DIFFERENTIATOR
   ============================================================ */
.diff {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(29, 41, 79, 0.12) 100%);
}

.diff__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.diff__content h2 {
  margin-bottom: var(--space-md);
}

.diff__content p { color: var(--color-text-2); }
.diff__content p:first-of-type { color: var(--color-text); }

/* Comparison table */
.diff-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.diff-table__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.diff-table__col-label {
  padding: 14px 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.diff-table__col-label--std {
  color: var(--color-text-3);
  border-right: 1px solid var(--color-border);
}

.diff-table__col-label--mond {
  color: var(--color-accent);
}

.diff-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}

.diff-table__row:last-child { border-bottom: none; }

.diff-table__cell {
  padding: 16px 20px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.diff-table__cell--std {
  color: var(--color-text-3);
  border-right: 1px solid var(--color-border);
  position: relative;
}

/* Strikethrough feel */
.diff-table__cell--std::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 1px;
  background: var(--color-text-3);
  opacity: 0.25;
}

.diff-table__cell--mond {
  color: var(--color-text);
  background: rgba(134, 150, 254, 0.04);
}

/* ============================================================
   14. METHOD
   ============================================================ */
.method {
  position: relative;
  overflow: hidden;
  background: rgba(17, 24, 32, 0.95);
}

.method__bg-graphic {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: min(500px, 40vw);
  pointer-events: none;
  z-index: 0;
}

.method__bg-graphic svg {
  width: 100%;
  height: auto;
  animation: orbit 60s linear infinite;
}

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

.method__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.method-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease);
}

.method-step:hover { border-color: var(--color-border-2); }

.method-step__num {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.08;
  line-height: 1;
  letter-spacing: -0.04em;
  position: absolute;
  top: 12px;
  right: 16px;
  pointer-events: none;
  user-select: none;
}

.method-step__body { position: relative; z-index: 1; }

.method-step__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.method-step__desc {
  font-size: 0.875rem;
  color: var(--color-text-2);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   15. CASES
   ============================================================ */
.cases {
  background: var(--color-bg);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.case-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}

.case-card:hover {
  border-color: var(--color-border-2);
  transform: translateY(-3px);
}

/* EDITABLE: Case image area — replace placeholder with real images */
.case-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.case-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29,41,79,0.8) 0%, rgba(81,86,90,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card__image-placeholder span {
  font-size: 0.75rem;
  color: var(--color-text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card__body {
  padding: var(--space-md);
}

.case-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.case-card__metric {
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.case-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-2);
  margin-bottom: var(--space-sm);
}

.case-card__quote {
  font-size: 0.875rem;
  color: var(--color-text-3);
  font-style: italic;
  border-left: 2px solid var(--color-border-2);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.case-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  transition: opacity var(--dur-fast) var(--ease);
}
.case-card__link:hover { opacity: 0.7; }

/* ============================================================
   16. AUTHORITY NUMBERS
   ============================================================ */
.authority {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);

}

.authority__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.authority-stat {
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.authority-stat:last-child { border-right: none; }

.authority-stat__value {
  margin-bottom: 8px;
  margin-top: 8px;
  padding-top: 50px;
}

.authority-stat__num {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1;
  
}


.authority-stat__label {
  font-size: 0.85rem;
  color: var(--color-text-2);
  line-height: 1.45;
  margin: 0;
}

.authority__footnote {
  font-size: 0.75rem;
  color: var(--color-text-3);
  text-align: center;
  margin: 0;
}

.authority-stat h3{
 
  padding: 20px;
  padding-bottom: 0px;
  padding-top: 0px;
  font-size: 25px;
}
.authority-stat p{

  padding: 20px;
  padding-top: 0px;
  padding-bottom: 10px;
}

/* ============================================================
   17. ABOUT
   ============================================================ */
.about {
  background: var(--color-bg);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content h2 { margin-bottom: var(--space-md); }
.about__content p { margin-bottom: var(--space-md); }

.about__tagline {
  font-size: 1.15rem;
  color: var(--color-text) !important;
  font-style: italic;
  margin-top: var(--space-md);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-sm);
}

.about__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.about__symbol {
  width: min(280px, 80%);
}

.about__symbol svg {
  width: 100%;
  height: auto;
  animation: orbit 50s linear infinite;
}

.about__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.about__contact-link {
  font-size: 0.9rem;
  color: var(--color-text-2);
  transition: color var(--dur-fast) var(--ease);
}
.about__contact-link:hover { color: var(--color-accent); }

.about__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.about__social a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
}
.about__social a:hover { color: var(--color-accent); }

/* ============================================================
   18. FAQ
   ============================================================ */
.faq {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(29,41,79,0.15) 100%);
}

.faq__container {
  max-width: 820px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.faq-item__question:hover {
  background: var(--color-surface);
}

.faq-item__question[aria-expanded="true"] {
  color: var(--color-accent);
}

.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  position: relative;
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-2);
  border-radius: 1px;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}

.faq-item__icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-item__icon::after {
  width: 1.5px;
  height: 10px;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  border-color: var(--color-accent);
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 var(--space-md) var(--space-md);
  overflow: hidden;
}

.faq-item__answer p {
  font-size: 0.9375rem;
  color: var(--color-text-2);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   19. FINAL CTA
   ============================================================ */
.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-2);
  text-align: center;
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.cta-final__bg svg {
  width: min(700px, 90vw);
  height: auto;
  animation: orbit 80s linear infinite;
}

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

.cta-final__content {
  max-width: 640px;
  margin-inline: auto;
}

.cta-final__content h2 {
  margin-bottom: var(--space-sm);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
}

.cta-final__sub {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.cta-final__body {
  font-size: 1rem;
  color: var(--color-text-2);
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.cta-final__content .btn--primary {
  margin-inline: auto;
}

.cta-final__footnote {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-3);
  margin-bottom: var(--space-lg);
}

.cta-final__contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cta-contact-link {
  font-size: 0.85rem;
  color: var(--color-text-3);
  transition: color var(--dur-fast) var(--ease);
}
.cta-contact-link:hover { color: var(--color-accent); }

.cta-contact-sep {
  color: var(--color-border);
  font-size: 0.8rem;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-lg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--color-text-3);
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--color-text-3);
  transition: color var(--dur-fast) var(--ease);
}
.footer__link:hover { color: var(--color-text-2); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-3);
  margin: 0;
}

/* ============================================================
   21. STICKY WHATSAPP (MOBILE ONLY)
   ============================================================ */
.sticky-wa {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 10px var(--pad-x-mob);
  background: rgba(17, 24, 32, 0.96);
  border-top: 1px solid rgba(134, 150, 254, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sticky-wa__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease);
}
.sticky-wa__btn:hover { background: #9aa8ff; }

.sticky-wa__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================
   22. REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 150ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   23. RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --pad-x: var(--pad-x-tab);
    --space-xxl: 96px;
  }

  .main-service__container { grid-template-columns: 1fr; }
  .main-service__metrics { grid-template-columns: repeat(2, 1fr); }
  .main-service__bg-graphic { display: none; }

  .diff__container { grid-template-columns: 1fr; gap: var(--space-lg); }

  .method__steps { grid-template-columns: repeat(3, 1fr); }

  .about__container { grid-template-columns: 1fr; }
  .about__visual { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .about__symbol { width: min(200px, 40%); }

  .authority__grid { grid-template-columns: repeat(2, 1fr); }
  .authority-stat { border-right: none; border-bottom: 1px solid var(--color-border); }
  .authority-stat:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .authority-stat:last-child,
  .authority-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .hero__graphic { width: min(400px, 45vw); opacity: 0.7; }
}

/* ============================================================
   24. RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --pad-x: var(--pad-x-mob);
    --space-xxl: 72px;
    --space-xl: 56px;
  }

  .br--desk { display: inline; }

  /* Navbar */
  .navbar__links { display: none; }
  .navbar__cta   { display: none; }
  .navbar__burger { display: flex; }

  /* Hero */
  .hero__graphic { display: none; }
  .hero__h1 { font-size: 2.1rem; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  /* Pain */
  .pain__grid { grid-template-columns: 1fr; }

  /* Main service */
  .main-service__metrics { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
  .metric-card__value { font-size: 1.75rem; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Method */
  .method__steps { grid-template-columns: 1fr; }
  .method__bg-graphic { display: none; }
  .method-step__num { font-size: 2.5rem; top: 10px; right: 12px; }

  /* Cases */
  .cases__grid { grid-template-columns: 1fr; }

  /* Authority */
  .authority__grid { grid-template-columns: 1fr 1fr; }
  .authority-stat { border-right: none; border-bottom: 1px solid var(--color-border); }
  .authority-stat:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .authority-stat:last-child { border-bottom: none; }
  .authority-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* About */
  .about__container { grid-template-columns: 1fr; }
  .about__visual { align-items: center; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .footer__links { gap: var(--space-sm); }

  /* Sticky WA */
  .sticky-wa { display: block; }
  /* Add bottom padding to prevent content being hidden under sticky bar */
  body { padding-bottom: 72px; }

  /* FAQ container full width */
  .faq__container { max-width: 100%; }

  /* CTA final */
  .cta-final__content .btn--xl { padding: 16px 28px; font-size: 0.9rem; }
  .cta-final__contacts { flex-direction: column; gap: var(--space-xs); }
  .cta-contact-sep { display: none; }
}

/* ============================================================
   25. RESPONSIVE — SMALL MOBILE (≤400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero__h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  .main-service__metrics { grid-template-columns: 1fr; }
  .authority__grid { grid-template-columns: 1fr; }
  .authority-stat { border-right: none; }
  .authority-stat:nth-child(odd) { border-right: none; }
}


.responsive-video {
  width: 100%;        /* Ocupa el 100% del ancho del contenedor */
  height: auto;       /* Mantiene la proporción del video */
  max-width: 100%;    /* No se desborda del contenedor */
  display: block;     /* Elimina espacios extra */
}

/* ============================================================
   HOVER EFFECT FOR AUTHORITY STAT IMAGES - SMOOTH VERSION
   ============================================================ */
.authority-stat__num {
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
}

.authority-stat__num img {
  width: 100%;
  height: auto;
  transition: transform var(--dur-slow) cubic-bezier(0.34, 1.56, 0.64, 1); /* Efecto elástico */
  display: block;
}

.authority-stat__num:hover img {
  transform: scale(1.12);
}