/**
 * TipsterPage — capa “app nativa” SOLO móvil.
 * Desktop intacto. Media: misma query del tema (≤860 / coarse portrait).
 */

/* Header: CTA naranja "Iniciar sesión" SOLO en viewport móvil (≤860). Desktop intacto. */
html body nav .navright > a.nav-cta.nav-cta--login{
  display:none !important;
}
@media (max-width:860px){
  html body nav .navright > a.nav-cta.nav-cta--register{
    display:none !important;
  }
  html body nav .navright > a.nav-cta.nav-cta--login{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
  }
}

@media (max-width:860px),
((hover: none) and (pointer: coarse) and (orientation: portrait)),
((any-pointer: coarse) and (orientation: portrait) and (max-width:1400px)){

  /* —— Platform / native feel —— */
  html{
    -webkit-tap-highlight-color:transparent;
  }
  html, body{
    overscroll-behavior-y:none;
  }
  button, a, .btn, .nav-cta, .mob-cta, .mob-login, .ft-lang, .mob-lang,
  .lang-opt, .hamburger, .mob-close{
    -webkit-user-select:none;
    user-select:none;
    touch-action:manipulation;
  }
  /* Press feedback (táctil): no hover pegajoso */
  .btn:active,
  .nav-cta:active,
  .mob-cta:active,
  a.btn:active{
    transform:scale(0.97);
  }

  /* —— Tokens app —— */
  :root{
    --tp-m-pad:16px;
    --tp-m-radius:14px;
    --tp-m-ink:#09090b;
    --tp-m-mute:#52525b;
    --tp-m-ground:#fafafa;
  }

  /* —— Nav tipo app bar —— */
  nav.nav,
  .site-top nav{
    padding-left:max(12px, env(safe-area-inset-left, 0px));
    padding-right:max(12px, env(safe-area-inset-right, 0px));
  }
  .nav-cta{
    min-height:40px;
    padding:0 16px;
    border-radius:100px !important;
    font-size:13px;
  }
  .hamburger{
    width:44px;
    height:44px;
    border-radius:50%;
    display:inline-grid;
    place-items:center;
  }

  /* —— Hero home: tipografía app (texto centrado) —— */
  .hero.hero-v3,
  .hero.hero-light.hero-v3,
  html.tp-mobile-ui .hero.hero-v3{
    padding:calc(var(--tope-h, 98px) + 18px) 0 0 !important;
    min-height:auto !important;
    overflow:visible !important;
    text-align:center !important;
  }
  .hero.hero-v3 .hv-grid,
  .hero.hero-v3 .inner.hv-grid,
  html.tp-mobile-ui .hero.hero-v3 .hv-grid{
    display:flex !important;
    flex-direction:column !important;
    padding-left:var(--tp-m-pad) !important;
    padding-right:var(--tp-m-pad) !important;
    gap:16px !important;
    text-align:center !important;
    align-items:center !important;
    justify-content:flex-start !important;
    max-width:100% !important;
    margin:0 !important;
    width:100% !important;
  }
  .hero.hero-v3 .hv-txt{
    width:100% !important;
    max-width:100% !important;
    text-align:center !important;
    align-items:center !important;
    margin:0 auto !important;
  }
  .hero.hero-v3 .hv-h1,
  html.tp-mobile-ui .hero.hero-v3 .hv-h1{
    font-size:clamp(36px, 11vw, 46px) !important;
    line-height:1.0 !important;
    letter-spacing:-0.045em !important;
    text-align:center !important;
    max-width:14ch !important;
    margin:0 auto !important;
    margin-inline:auto !important;
  }
  .hero.hero-v3 .hv-lead,
  html.tp-mobile-ui .hero.hero-v3 .hv-lead{
    font-size:16px !important;
    line-height:1.45 !important;
    color:var(--tp-m-mute) !important;
    text-align:center !important;
    max-width:36ch !important;
    margin:14px auto 0 !important;
    margin-inline:auto !important;
  }
  .hero.hero-v3 .hv-actions{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    width:100% !important;
    margin-top:18px !important;
  }
  .hero.hero-v3 .hv-actions .btn{
    width:100% !important;
    max-width:320px !important;
    justify-content:center !important;
    min-height:54px !important;
    border-radius:100px !important;
    font-size:16.5px !important;
    font-weight:800 !important;
    box-shadow:none !important;
  }

  /* Escenario: teléfono centrado sobre el paper del hero (sin disco naranja) */
  .hero-v3 .hv-visual{
    width:100% !important;
    position:relative;
    margin-top:8px !important;
    overflow:visible !important;
  }
  .hero-v3 .hv-stage{
    position:relative;
    margin:0 !important;
    padding:8px 0 16px !important;
    overflow:visible !important;
    background:transparent !important;
  }
  .hero-v3 .hv-stage::before{
    content:none !important;
    display:none !important;
  }
  .hero-v3 .hv-chip{ display:none !important; }
  .hero-v3 .hero-dashboard,
  .hero-v3 .hero-dash-pane.hdp-mob{
    position:relative;
    z-index:1;
    padding-bottom:8px !important;
    background:transparent !important;
  }
  .hero-v3 .hero-dash-pane.hdp-mob .hero-phone{
    margin:0 auto !important;
    filter:none;
    max-width:min(320px, 86vw);
  }
  .hero-v3 .hdp-mob .mdash{
    border-radius:28px !important;
    box-shadow:none !important;
  }

  /* —— Landings .tp-hero —— */
  .tp-hero{
    padding:calc(var(--tope-h, 98px) + 28px) var(--tp-m-pad) 56px !important;
    text-align:center !important;
    min-height:auto;
  }
  .tp-hero-inner{
    align-items:center !important;
    max-width:100% !important;
  }
  .tp-hero-eyebrow{
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .tp-hero-title{
    text-align:center !important;
    font-size:clamp(32px, 9.5vw, 42px) !important;
    max-width:16ch !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .tp-hero-lead{
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
    font-size:16px !important;
  }
  .tp-hero-cta{
    justify-content:center !important;
    width:100%;
  }
  .tp-hero-btn,
  .tp-hero-cta .btn{
    width:100%;
    justify-content:center;
    min-height:52px;
    border-radius:100px !important;
  }

  /* —— Secciones: ritmo de app (menos marketing padding) —— */
  .section,
  section.section{
    padding:64px var(--tp-m-pad) !important;
  }
  .section h2,
  section h2{
    font-size:clamp(26px, 7.2vw, 34px) !important;
    letter-spacing:-0.035em;
    line-height:1.08;
    text-wrap:balance;
  }
  .section .lead,
  section .lead,
  .section > p,
  .sec-head p{
    font-size:16px !important;
    line-height:1.5;
    color:var(--tp-m-mute);
  }

  /* Drawer: targets táctiles. Footer cols: no inflar hueco entre enlaces */
  .mob-list a{
    min-height:44px;
  }
  .ft-cols{
    gap:20px 16px !important;
  }
  .ft-cols li{
    margin-bottom:6px !important;
  }
  .ft-cols a{
    min-height:0 !important;
    line-height:1.35;
  }

  /* Bandas naranjas = motivo a escala sección */
  .fin-band,
  .fus-band,
  .cta-band,
  .beyond-cta{
    border-radius:0 !important;
  }
  .py2-close{
    border-radius:22px !important;
    padding:28px 22px !important;
    gap:18px !important;
  }
  .py2-close .pg-lab{
    margin-bottom:0 !important;
  }
  .py2-close h2{
    color:#fafafa !important;
    -webkit-text-fill-color:#fafafa !important;
    margin-top:10px !important;
    margin-bottom:0 !important;
  }
  .py2-close p{
    margin-top:10px !important;
  }

  /* —— Drawer móvil: sheet a pantalla completa —— */
  .mobmenu{
    width:100% !important;
    max-width:100% !important;
    left:0 !important;
    right:0 !important;
    background:var(--tp-m-ground) !important;
    padding-top:env(safe-area-inset-top, 0px);
  }
  .mob-top{
    padding:12px var(--tp-m-pad) !important;
    min-height:56px;
  }
  .mob-close{
    width:44px !important;
    height:44px !important;
    border-radius:50% !important;
  }
  .mob-scroll{
    padding:12px var(--tp-m-pad) 20px !important;
    gap:16px !important;
  }
  .mob-actions{
    padding:14px var(--tp-m-pad) calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    gap:10px !important;
    background:rgba(244,244,241,0.96) !important;
    border-top:1px solid rgba(10,10,10,0.06);
  }
  .mob-login,
  .mob-cta{
    min-height:52px !important;
    border-radius:100px !important;
    font-size:15.5px !important;
  }
  .mob-cta:active{
    transform:scale(0.97);
  }
  #langMobWrap .mob-lang{
    min-height:44px;
    border-radius:100px;
  }

  /* —— Footer app —— */
  /* El premio es el borde superior: sin padding-top fantasma ni solape con el CTA naranja */
  footer.ft{
    padding:0 var(--tp-m-pad) calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .ft-brand img,
  .ft-logo{
    height:22px;
  }
  /* Premio IGB: sin margin negativo (recortaba el padding superior contra el CTA) */
  .ft-award{
    margin:0 calc(-1 * var(--tp-m-pad)) 28px !important;
    background:linear-gradient(120deg, rgba(227,160,51,0.10) 0%, rgba(227,160,51,0.04) 45%, rgba(255,138,6,0.03) 100%) !important;
  }
  .ft-award-in{
    padding:20px var(--tp-m-pad) !important;
    row-gap:14px !important;
    align-content:center;
    align-items:center;
    box-sizing:border-box;
  }
  .fa-txt b{
    color:var(--tp-m-ink, #0A0A0A) !important;
  }
  .fa-txt em{
    color:var(--tp-m-mute, #5C5C58) !important;
  }
  .ft-main{
    padding-top:32px !important;
  }
  .ft-bottom{
    gap:14px !important;
  }
  .ft-lang{
    min-height:40px;
    border-radius:100px !important;
    padding:8px 14px !important;
  }

  /* Chat: no tapa acciones del footer */
  .chat-widget{
    bottom:max(18px, env(safe-area-inset-bottom, 0px)) !important;
    right:max(14px, env(safe-area-inset-right, 0px)) !important;
    width:52px !important;
    height:52px !important;
    border-radius:50% !important;
  }

  /* —— CTAs sticky sutiles en home (no tapa contenido crítico) —— */
  #page-home .fin-cta .btn,
  #page-home .beyond-cta .btn,
  .pagehero .btn.pri{
    min-height:52px;
    border-radius:100px !important;
    width:100%;
    justify-content:center;
  }

  /* Cards / tiles: sin sombra “IA”, radio del sistema (baraja: ver tp-bento-stack.css) */
  .res-c,
  .testi-card,
  .chan-card,
  .pj-card{
    border-radius:var(--tp-m-radius) !important;
    box-shadow:none !important;
  }

  /* Press-band más compacto */
  .press-band{
    margin-left:var(--tp-m-pad);
    margin-right:var(--tp-m-pad);
    border-radius:16px !important;
  }
}
