/* ============================================================
   GRÜNTEN — mobile.css
   Experiencia tipo app en pantallas chicas (≤ 640px).
   ============================================================ */
.mbar, .swipe-dots, .mm-cta { display: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; gap: 16px; }
  .h-section { font-size: 32px; }
  .lead { font-size: 17px; }

  /* Hero: botones en una fila, cifras compactas */
  .hero { min-height: 92svh; }
  .hero h1 { font-size: 40px; margin-top: 20px; }
  .hero-sub { margin-top: 22px; gap: 24px; }
  .hero-sub p { font-size: 16px; }
  .hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn { flex: 1; justify-content: center; padding: 14px 12px; font-size: 14.5px; }
  .hero-stat { padding: 16px 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-stat strong { font-size: 24px; }
  .hero-stat span { font-size: 12px; line-height: 1.3; }
  .page-hero h1 { font-size: 36px; }

  /* Carruseles deslizables */
  .swipe { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px; scroll-padding-left: var(--gutter); scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; }
  .swipe > .reveal, .swipe > .person { opacity: 1 !important; transform: none !important; }
  .people.small.swipe > * { flex-basis: 46%; }
  .audiences.swipe .audience { min-height: 0; }
  .swipe-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .35s var(--ease), background .35s; }
  .swipe-dots i.on { width: 22px; background: var(--navy); }
  .dark .swipe-dots i, .darker .swipe-dots i { background: rgba(255,255,255,.25); }
  .dark .swipe-dots i.on, .darker .swipe-dots i.on { background: var(--accent-2); }

  /* Cifras 2×2 */
  .results.four { grid-template-columns: 1fr 1fr; border-top: 0; gap: 10px; }
  .results.four .result { background: var(--paper); border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 18px 14px 16px !important; }
  .results.four .figure { font-size: 34px; margin-bottom: 8px; }
  .results.four .result p { font-size: 13.5px; line-height: 1.4; }

  /* Problemas más compactos */
  .problem { padding: 24px 20px; }
  .problem h3 { font-size: 23px; margin: 8px 0; }

  /* Feedback al tocar */
  .card:active, .audience:active, .format:active, .problem:active, .cross a:active { transform: scale(.985); }
  .btn:active { transform: scale(.97); }

  /* Barra inferior fija (reemplaza el botón flotante) */
  .wa { display: none !important; }
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; gap: 8px; padding: 8px;
    background: rgba(2,26,54,.92); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid rgba(255,255,255,.1); border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(2,26,54,.6);
    transform: translateY(140%); transition: transform .5s var(--ease); }
  .mbar.show { transform: none; }
  .mbar a { display: grid; place-items: center; height: 46px; border-radius: 12px; text-decoration: none; color: #fff; }
  .mbar .go { flex: 1; background: var(--accent); color: var(--navy-900); font-weight: 700; font-size: 15px; display: flex; gap: 10px; justify-content: center; align-items: center; }
  .mbar .ic { width: 46px; background: rgba(255,255,255,.08); }
  .mbar svg { width: 21px; height: 21px; fill: currentColor; }
  .site-footer { padding-bottom: 96px; }

  /* Menú móvil numerado, con CTA */
  .mobile-menu { justify-content: flex-start; padding-top: 104px; counter-reset: mm; }
  .mobile-menu > a { font-size: 28px; line-height: 1.2; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: baseline; gap: 14px; counter-increment: mm; }
  .mobile-menu > a::before { content: "0" counter(mm); font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--accent-2); font-weight: 700; }
  .mobile-menu > a[aria-current="page"] { color: var(--accent-2); }
  .mm-cta { display: flex; gap: 10px; margin-top: 28px; opacity: 0; transition: opacity .5s .45s; }
  .menu-open .mm-cta { opacity: 1; }
  .mm-cta a { flex: 1; justify-content: center; }
  .mobile-menu .meta { margin-top: 20px; font-size: 13.5px; }
}

@media (max-width: 640px) {
  /* Los botones del menú no heredan el estilo grande de los links */
  .mobile-menu .mm-cta a { font-family: var(--sans); font-size: 15px; line-height: 1; padding: 15px 12px; display: inline-flex; align-items: center;
    opacity: 1; transform: none; border-bottom: 0; }
  .mobile-menu .mm-cta a::before { content: none; }
  .mobile-menu .mm-cta .btn-primary { color: var(--navy-900); }
  .mobile-menu .mm-cta .btn-ghost { color: #fff; }
  .hero { min-height: 86svh; }
}

/* Cerros del hero en móvil: franja superior, sin cruzar el texto */
@media (max-width: 640px) {
  .hero-ridges { inset: 64px 0 auto 0; height: 30svh; transform: none !important; }
  .hero-ridges::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(4,48,97,0)); pointer-events: none; }
  .page-hero .hero-ridges { inset: 56px 0 auto 0; height: 150px; opacity: .55; }
  .ridge-dots circle[r="14"], .ridge-dots circle[r="10"] { transform: scale(1.4); transform-box: fill-box; transform-origin: center; }
}

/* Cerros en móvil — franja propia bajo el logo (reemplaza el ajuste anterior) */
@media (max-width: 640px) {
  .hero .hero-ridges { inset: 72px 0 auto 0; height: 190px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .hero { padding-top: calc(72px + 190px); min-height: 0; }
  .hero .hero-inner { padding-bottom: 40px; }
  .page-hero .hero-ridges { inset: 64px 0 auto 0; height: 150px; opacity: 1; }
  .hero.page-hero { padding-top: calc(64px + 150px); }
  .page-hero .hero-inner { padding-bottom: 56px; }
}
