/*
 * SmallTraders PWA – Mobile App CSS v3.0
 * ✅ Scroll habilitado correctamente (arriba y abajo)
 * ✅ WhatsApp flotante eliminado (CSS + JS)
 * ✅ Header fijo con logo en todas las páginas
 * ✅ Corrección total de layout: hero, tokens, simulador, wallet, planes, comunidad, footer
 * ✅ Colores exactos del sitio: #0c0c0e fondo, #c9a227 gold, #00e5a0 verde SBLTT
 */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════
   VARIABLES – colores exactos smalltraders.es
═══════════════════════════════════════════ */
:root {
  --bg:          #0c0c0e;
  --bg2:         #111115;
  --surface:     #17171e;
  --surface2:    #1e1e28;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.12);
  --gold:        #c9a227;
  --gold-lt:     #e0b840;
  --gold-dim:    rgba(201,162,39,.15);
  --green:       #00e5a0;
  --green-dim:   rgba(0,229,160,.12);
  --purple:      #7c3aed;
  --text:        #f5f5fa;
  --text2:       #b0b0c8;
  --muted:       #72728a;
  --nav-h:       62px;
  --header-h:    56px;
  --safe-b:      env(safe-area-inset-bottom, 0px);
  --safe-t:      env(safe-area-inset-top, 0px);
  --r:           14px;
  --r-lg:        20px;
  --shadow:      0 8px 40px rgba(0,0,0,.55);
  --fd:          'Syne', system-ui, sans-serif;
  --fb:          'DM Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════
   1. ELIMINAR WHATSAPP / CHAT FLOTANTE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* JoinChat (plugin WP más popular en España/LATAM) */
  #joinchat,
  .joinchat,
  .joinchat__button,
  #joinchat__button,
  [id^="joinchat"],
  [class^="joinchat"],
  /* WhatsApp genéricos */
  .whatsapp-float,
  .whatsapp-button,
  .wa-chat-btn,
  .wa-float,
  #whatsapp-button,
  .wspclk,
  .wts-whatsapp,
  [class*="whatsapp-chat"],
  [id*="whatsapp-chat"],
  /* Woowbot / WP Social Chat */
  #woowbot,
  .woowbot,
  .woowbot-chatbox,
  /* Tawk / Tidio / Crisp / Intercom */
  #tidio-chat,
  #crisp-chatbox,
  .intercom-lightweight-app,
  [id*="tawkto"],
  /* El popup de "Jhoan Asesor" que se ve en el sitio */
  [class*="wp-chat"],
  [id*="wp-chat"],
  /* Div fixed genérico con link de WA (fallback) */
  div.fixed-wa,
  div.btn-wa,
  .fab-btn,
  .chat-fab {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    clip: rect(0,0,0,0) !important;
  }

  iframe[src*="tawk.to"],
  iframe[src*="tidio"],
  iframe[src*="crisp.chat"],
  iframe[title*="chat"],
  iframe[title*="Chat"],
  iframe[title*="WhatsApp"] {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════
   2. RESET BASE MOBILE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {

  *, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    /* ✅ SCROLL HABILITADO – no bloquear */
    overflow-y: auto;
    scroll-behavior: smooth;
    /* Solo bloquar bounce lateral */
    overscroll-behavior-x: none;
  }

  body {
    font-family: var(--fb);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    /* Espacio para header fijo arriba + bottom nav abajo */
    padding-top: calc(var(--header-h) + var(--safe-t));
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
    overflow-x: hidden;
    /* ✅ SCROLL LIBRE arriba y abajo */
    overflow-y: auto;
    min-height: 100vh;
    /* Suavidad nativa tipo iOS */
    -webkit-overflow-scrolling: touch;
    /* Solo bloquear rubber-band horizontal */
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Quitar scrollbar visual */
  ::-webkit-scrollbar { width: 0; background: transparent; }
  * { scrollbar-width: none; -ms-overflow-style: none; }

  img, video, svg { max-width: 100%; height: auto; }
  a  { color: inherit; }

  /* ── Contenedores principales ── */
  .site-wrap,
  .container,
  #page,
  #content,
  .wp-site-blocks {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }

} /* end @media 1024 */

/* ═══════════════════════════════════════════
   3. HEADER – OCULTAR ORIGINAL / MOSTRAR APP HEADER
═══════════════════════════════════════════ */

/* Ocultar SOLO en móvil */
@media (max-width: 1024px) {
  .site-header,
  header.site-header,
  #site-header,
  #masthead,
  .main-header,
  #main-header,
  .header-main,
  .header-wrap,
  .header-inner,
  nav.main-navigation,
  nav.navbar,
  .nav-container,
  .top-bar,
  /* Header del tema específico del sitio */
  body > header:first-of-type {
    display: none !important;
  }
}

/* App Header – siempre oculto en desktop */
#st-app-header {
  display: none;
}

@media (max-width: 1024px) {
  #st-app-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9200;
    height: calc(var(--header-h) + var(--safe-t));
    padding-top: var(--safe-t);
    background: rgba(12,12,14,.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,.5);
  }

  .st-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }

  .st-header-logo img {
    height: 32px;
    width: auto;
    /* Logo oscuro → invertir para que sea blanco sobre fondo negro */
    filter: brightness(0) invert(1);
    display: block;
    border-radius: 0;
  }

  /* Si el logo tiene fondo transparente claro → quitar el filtro y usar saturación */
  .st-header-logo img.logo-light {
    filter: none;
  }

  .st-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .st-header-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-dim);
    border: 1px solid rgba(201,162,39,.3);
    border-radius: 99px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--fd);
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .st-header-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: st-blink 1.8s ease infinite;
    flex-shrink: 0;
  }
}

/* ═══════════════════════════════════════════
   4. SPLASH SCREEN
═══════════════════════════════════════════ */
#st-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

#st-splash.st-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1025px) {
  #st-splash { display: none !important; }
}

.st-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: st-up .55s ease both;
}

.st-splash-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(201,162,39,.6));
  animation: st-glow 2.4s ease infinite;
}

.st-splash-sub {
  margin: 0;
  font-family: var(--fb);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.st-splash-loader {
  width: 130px;
  height: 2px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  overflow: hidden;
}

.st-splash-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 99px;
  animation: st-progress 1.4s ease infinite;
}

.st-splash-token {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   5. BOTTOM NAVIGATION
═══════════════════════════════════════════ */
#st-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9100;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(12,12,14,.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 9px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}

@media (min-width: 1025px) {
  #st-bottom-nav     { display: none !important; }
  #st-install-banner { display: none !important; }
}

.st-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  padding: 3px 6px;
  min-width: 50px;
  position: relative;
  transition: color .2s ease;
  /* Anular min-height que ponemos en links globales */
  min-height: unset !important;
  line-height: 1 !important;
}

.st-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  display: block;
}

.st-nav-item span {
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .1px;
  display: block !important;
  min-height: unset !important;
}

.st-nav-item.active {
  color: var(--gold);
}

.st-nav-item.active::after {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}

.st-nav-item:active {
  transform: scale(.88);
}

/* Wallet – botón central elevado */
.st-nav-center {
  margin-top: -20px;
  color: var(--muted);
}

.st-nav-center-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(201,162,39,.5);
  flex-shrink: 0;
  transition: box-shadow .2s, transform .15s;
}

.st-nav-center-btn svg {
  stroke: #000 !important;
  stroke-width: 2.2;
  width: 23px;
  height: 23px;
}

.st-nav-center:active .st-nav-center-btn {
  transform: scale(.88);
  box-shadow: 0 2px 12px rgba(201,162,39,.3);
}

/* ═══════════════════════════════════════════
   6. INSTALL BANNER
═══════════════════════════════════════════ */
#st-install-banner {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
  left: 12px;
  right: 12px;
  z-index: 9000;
  background: var(--surface2);
  border: 1px solid rgba(201,162,39,.22);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: st-up-banner .4s cubic-bezier(.22,1,.36,1) both;
}

.st-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.st-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.st-banner-icon img {
  width: 30px;
  height: auto;
  filter: brightness(0) invert(1);
}

.st-banner-text {
  min-width: 0;
}

.st-banner-text strong {
  display: block;
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.st-banner-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-banner-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

#st-install-btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--fd);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}

#st-install-btn:active { opacity: .8; }

#st-dismiss-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   7. CORRECCIÓN GLOBAL MOBILE LAYOUT
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ─ Tipografía ─ */
  h1 {
    font-size: clamp(28px, 9vw, 42px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.5px !important;
  }
  h2 {
    font-size: clamp(22px, 7vw, 32px) !important;
    line-height: 1.15 !important;
  }
  h3 {
    font-size: clamp(17px, 5.5vw, 22px) !important;
  }
  p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  /* ─ Secciones – padding lateral ─ */
  section,
  .section,
  [class*="section-"],
  .wp-block-group,
  .container,
  .content-wrap,
  .page-content {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* ─ Columnas → stack vertical ─ */
  .wp-block-columns,
  [class*="columns"],
  .grid,
  [class*="grid-"],
  .flex-row,
  .row {
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .wp-block-column,
  [class*="col-"],
  .card,
  [class*="card-"],
  [class*="feature-"],
  [class*="box-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* ─ Botones ─ */
  .wp-block-button__link,
  .btn, .button,
  a.button,
  input[type="submit"],
  button[type="submit"],
  .cta-btn,
  [class*="btn-"],
  [class*="-btn"] {
    min-height: 52px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    padding: 14px 24px !important;
  }

  /* ─ Formularios – sin zoom en iOS ─ */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 50px;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    width: 100%;
    background: var(--surface) !important;
    border: 1px solid var(--border2) !important;
    color: var(--text) !important;
  }

  textarea { min-height: 100px; }

  /* Sliders / range */
  input[type="range"] {
    width: 100%;
    height: 6px;
    accent-color: var(--gold);
    cursor: pointer;
    -webkit-appearance: none;
  }

  /* ─ Tablas → scroll horizontal ─ */
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap;
    border-collapse: collapse;
  }

  /* ─ Imágenes ─ */
  img {
    border-radius: 12px;
    max-width: 100%;
  }

  /* ─ Elementos decorativos pesados ─ */
  .decorative,
  [class*="decoration"],
  [class*="bg-shape"],
  [class*="background-shape"],
  [class*="blob"],
  canvas:not([id]) {
    display: none !important;
  }

  /* ─ Anclas con header fijo (offset correcto) ─ */
  :target::before {
    content: '';
    display: block;
    height: calc(var(--header-h) + var(--safe-t) + 10px);
    margin-top: calc(-1 * (var(--header-h) + var(--safe-t) + 10px));
  }

  /* ─ Links genéricos – no forzar min-height en texto ─ */
  p a, li a, td a, span a, label a, figcaption a {
    min-height: unset !important;
    display: inline !important;
    line-height: inherit !important;
  }

}

/* ═══════════════════════════════════════════
   8. CORRECCIONES ESPECÍFICAS smalltraders.es
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── HERO SECTION ── */
  .hero,
  [class*="hero-"],
  .banner-section,
  [class*="banner-"],
  section:first-of-type {
    padding-top: 36px !important;
    padding-bottom: 44px !important;
    text-align: center !important;
    min-height: unset !important;
  }

  /* Ticker / marquee de "TOKEN SBLTT · MAINNET ACTIVA" */
  .ticker-wrap,
  .marquee,
  [class*="ticker"],
  [class*="marquee"] {
    overflow: hidden;
    font-size: 11px !important;
    padding: 8px 0 !important;
    letter-spacing: .8px;
    white-space: nowrap;
  }

  /* ── TOKEN INFO CARD ── */
  [class*="token-card"],
  [class*="token-info"],
  .sbltt-card {
    border-radius: var(--r-lg) !important;
    padding: 20px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Grid de datos del token (Supply, Red, Explorer, Retiro, Valor) */
  [class*="token-grid"],
  [class*="token-data"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* ── SECCIÓN "¿CÓMO GANÁS SBLTT?" ── */
  /* Cards de recompensas +10, +25, etc. */
  [class*="reward-"],
  [class*="recompensa-"],
  [class*="earn-"],
  [class*="gana-"] {
    border-radius: var(--r) !important;
    padding: 16px !important;
    width: 100% !important;
  }

  /* Números grandes de SBLTT */
  [class*="sbltt-amount"],
  [class*="token-amount"],
  .amount-display,
  [class*="big-number"] {
    font-size: clamp(36px, 12vw, 56px) !important;
    font-family: var(--fd) !important;
    font-weight: 800 !important;
  }

  /* Planes de bono mensual (Gratuito / Trader / Pro) */
  [class*="plan-badge"],
  [class*="bonus-badge"],
  [class*="tier-"] {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 99px !important;
    display: inline-flex !important;
    white-space: nowrap !important;
  }

  /* ── SIMULADOR ── */
  [class*="simulator"],
  [class*="simulador"],
  #simulator,
  #simulador {
    padding: 20px !important;
    border-radius: var(--r-lg) !important;
  }

  /* Output del simulador: 1,180 SBLTT / mes */
  [class*="simulator-output"],
  [class*="sim-result"],
  [class*="result-display"] {
    text-align: center !important;
    padding: 20px !important;
  }

  /* ── WALLET FORM ── */
  #wallet,
  [id="wallet"],
  [class*="wallet-section"],
  [class*="wallet-form"] {
    padding: 24px 18px !important;
  }

  /* Pasos del proceso (Completás acciones → Registrás wallet → Aprobación → Retiro) */
  [class*="steps-"],
  [class*="step-"],
  [class*="proceso-"],
  ol.process,
  .how-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  [class*="step-item"],
  .process-step {
    border-radius: var(--r) !important;
    padding: 16px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
  }

  /* Checkboxes de acciones (Registro, Post, Comentario, etc.) */
  [class*="action-check"],
  .checkbox-list label,
  .actions-list label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    min-height: unset !important;
  }

  /* ── PLANES SECTION ── */
  [class*="plan-card"],
  [class*="pricing-card"],
  [class*="membership-card"],
  .plan-box {
    border-radius: var(--r-lg) !important;
    padding: 24px 20px !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  /* Precio */
  [class*="plan-price"],
  [class*="price-display"],
  .plan-amount {
    font-size: clamp(32px, 10vw, 44px) !important;
    font-family: var(--fd) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* Lista de features del plan */
  [class*="plan-features"],
  [class*="features-list"],
  .plan-perks {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Botón CTA del plan */
  [class*="plan-cta"],
  [class*="plan-btn"],
  .plan-action {
    width: 100% !important;
    text-align: center !important;
  }

  /* Badge "MÁS ELEGIDO" */
  [class*="popular-badge"],
  [class*="badge-popular"],
  .most-popular-tag {
    font-size: 10px !important;
    padding: 4px 10px !important;
    letter-spacing: .8px !important;
    border-radius: 99px !important;
    white-space: nowrap !important;
  }

  /* ── TABLA DE COMPARACIÓN ── */
  .comparison-table,
  [class*="compare-"],
  table.planes-compare {
    font-size: 12px !important;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px !important;
    min-width: 70px;
  }

  /* Columna SmallTraders destacada */
  .comparison-table td:first-child,
  .comparison-table th:first-child {
    min-width: 90px;
    font-weight: 600;
    color: var(--gold);
  }

  /* ── ECOSISTEMA SBLTT – usos (Descuentos / Pago / Cashback) ── */
  [class*="ecosystem-"],
  [class*="ecosistema-"],
  [class*="uso-"],
  [class*="use-case"] {
    border-radius: var(--r) !important;
    padding: 18px !important;
    width: 100% !important;
  }

  /* Número de ítem (01, 02, 03) */
  [class*="item-number"],
  [class*="step-num"],
  .number-label {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    color: var(--gold) !important;
  }

  /* ── TESTIMONIOS ── */
  [class*="testimonial-"],
  [class*="review-card"],
  .quote-card {
    border-radius: var(--r-lg) !important;
    padding: 20px !important;
    width: 100% !important;
  }

  /* Avatar testimonio */
  [class*="avatar-initials"],
  [class*="reviewer-avatar"] {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    background: var(--gold-dim) !important;
    color: var(--gold) !important;
    flex-shrink: 0 !important;
  }

  /* ── NEWSLETTER EMAIL ── */
  [class*="newsletter"],
  [class*="suscribite"],
  [class*="subscribe-"] {
    border-radius: var(--r-lg) !important;
    padding: 20px !important;
  }

  /* Input + botón inline → stack en móvil */
  [class*="email-row"],
  [class*="input-row"],
  .inline-form {
    flex-direction: column !important;
    gap: 10px !important;
  }

  [class*="email-row"] input,
  [class*="input-row"] input,
  .inline-form input {
    width: 100% !important;
    border-radius: 12px !important;
  }

  [class*="email-row"] button,
  [class*="input-row"] button,
  .inline-form button {
    width: 100% !important;
    border-radius: 12px !important;
  }

  /* ── FLUENT COMMUNITY – padding bottom para bottom nav ── */
  .fcom-wrap,
  .fcom-layout,
  .fcom-portal,
  #fcom-app,
  [class*="fcom-"] {
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px) !important;
  }

  /* ── FOOTER ── */
  footer,
  .site-footer,
  #colophon,
  [class*="footer"] {
    padding: 32px 18px calc(var(--nav-h) + var(--safe-b) + 20px) !important;
    text-align: center !important;
  }

  [class*="footer-links"],
  [class*="footer-nav"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  [class*="footer-links"] a,
  [class*="footer-nav"] a {
    font-size: 13px !important;
    min-height: unset !important;
    display: inline !important;
  }

  /* Footer logo */
  footer img,
  .site-footer img {
    height: 30px !important;
    width: auto !important;
    filter: brightness(0) invert(.7) !important;
    margin-bottom: 12px !important;
  }

  /* ── SECCIÓN FINAL CTA "EMPEZÁ HOY" ── */
  [class*="final-cta"],
  [class*="cta-section"],
  [class*="sin-riesgo"],
  section[class*="cta"] {
    padding: 40px 18px !important;
    text-align: center !important;
  }

  [class*="final-cta"] .wp-block-buttons,
  [class*="cta-section"] .wp-block-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  [class*="final-cta"] .wp-block-button,
  [class*="cta-section"] .wp-block-button {
    width: 100% !important;
  }

}

/* ═══════════════════════════════════════════
   9. AJUSTES iOS / ANDROID ESPECÍFICOS
═══════════════════════════════════════════ */

/* iOS – safe area cuando la app está en modo standalone */
@media (display-mode: standalone) {
  body {
    padding-top: calc(var(--header-h) + var(--safe-t) + 4px);
  }
}

/* Notch de iPhone (landscape) */
@media (max-width: 900px) and (orientation: landscape) {
  body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  #st-bottom-nav {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

/* ═══════════════════════════════════════════
   10. KEYFRAMES
═══════════════════════════════════════════ */
@keyframes st-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes st-up-banner {
  from { transform: translateY(70px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes st-progress {
  0%   { transform: translateX(-100%); width: 35%; }
  50%  { width: 55%; }
  100% { transform: translateX(380%);  width: 35%; }
}

@keyframes st-glow {
  0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(201,162,39,.4)); }
  50%       { filter: brightness(0) invert(1) drop-shadow(0 0 26px rgba(201,162,39,.85)); }
}

@keyframes st-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}
