/* ============================================================
   Stars Prompt — versión móvil
   Hoja independiente: solo se carga por debajo de 860px.
   El diseño de escritorio no se toca.
   ============================================================ */

@media (max-width: 860px) {

  .nav{ padding-top: env(safe-area-inset-top); }
  .nav-in{ height: calc(58px + env(safe-area-inset-top)); }
  .menu-movil{ top: calc(58px + env(safe-area-inset-top)); }

  :root{
    --m-gutter: 20px;
    --m-radius: 18px;
  }

  html{ scroll-behavior:auto; -webkit-text-size-adjust:100%; }

  body{
    font-size: 16.5px;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
  }

  .wrap{ width: calc(100% - (var(--m-gutter) * 2)); }

  /* ---------- barra superior: compacta, con icono ---------- */
  .nav-in{ height: 58px; }
  .brand{ font-size: 17.5px; gap: 8px; min-height: 44px; }
  .brand svg{ width: 17px; height: 17px; }
  .brand span{ font-size: 11.5px; letter-spacing: .12em; }

  .nav-burger{
    width: 44px; height: 44px; min-height: 44px; padding: 0;
    border-radius: 50%; border: 1px solid var(--line);
    font-size: 0; /* el texto "Menu" desaparece */
    position: relative;
  }
  .nav-burger::before,
  .nav-burger::after{
    content:""; position: absolute; left: 13px; right: 13px; height: 1.5px;
    background: var(--ink); border-radius: 2px;
    transition: transform .22s var(--ease), opacity .18s var(--ease);
  }
  .nav-burger::before{ top: 17px; }
  .nav-burger::after{ bottom: 17px; }
  .nav-burger[aria-expanded="true"]::before{ transform: translateY(5.5px) rotate(45deg); }
  .nav-burger[aria-expanded="true"]::after{ transform: translateY(-5.5px) rotate(-45deg); }

  .menu-movil{ top: 58px; padding: 6px var(--m-gutter) 18px; }
  .menu-movil a{ min-height: 56px; font-size: 17px; }

  /* ---------- portada ---------- */
  .hero{ padding: 26px 0 34px; }
  .hero::before{ inset: -6% -30% auto -30%; height: 60%; }

  .hero .eyebrow{
    font-size: 10px; letter-spacing: .1em; gap: 7px;
    white-space: nowrap; max-width: 100%;
    background: rgba(168,37,29,.06); border: 1px solid rgba(168,37,29,.14);
    color: var(--ink-2); padding: 7px 12px; border-radius: 999px;
    display: inline-flex; margin-bottom: 18px;
  }
  .hero .eyebrow b{ color: var(--accent); }

  .hero h1{
    font-size: clamp(33px, 8.6vw, 43px);
    line-height: 1.02;
    letter-spacing: -.028em;
    margin-top: 0;
  }

  .hero .lede{
    font-size: 16.5px; line-height: 1.58; color: var(--ink-2);
    margin-top: 16px;
  }

  .hero-actions{
    display: grid; gap: 10px; margin-top: 24px;
  }
  .hero-actions .btn{ width: 100%; min-height: 54px; font-size: 16px; border-radius: 999px; }
  .btn:active, summary:active, .cat-row:active{ transform: scale(.985); transition-duration: .08s; }
  .hero-actions .btn-line{ background: var(--white); }

  .hero .trust{
    display: flex; flex-wrap: wrap; gap: 6px 0;
    margin-top: 20px; font-size: 12.5px; color: var(--muted);
  }
  .hero .trust i{ width: 1px; height: 11px; background: var(--line); margin: 0 10px; }

  /* la tarjeta del prompt, protagonista */
  .mock{
    margin-top: 26px;
    border-radius: var(--m-radius);
    box-shadow: 0 24px 48px -28px rgba(21,18,15,.42), 0 2px 0 rgba(21,18,15,.04);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .mock-bar{ height: 38px; padding: 0 12px; }
  .mock-bar span{ font-size: 11px; }
  .mock-body{ padding: 0; }
  .mock-code{ padding: 14px 14px 16px; font-size: 11.5px; line-height: 1.8; }
  .badge-float{
    /* el hero es el contenedor: se alinea con el borde de la tarjeta, no con la pantalla */
    right: calc(var(--m-gutter) + 8px); bottom: 20px;
    padding: 9px 12px; font-size: 12px;
    box-shadow: 0 14px 28px -14px rgba(21,18,15,.34);
  }

  /* ---------- franja: quieta y entera ---------- */
  .marquee{ padding: 11px 0; }
  .marquee-track{ animation: none; width: auto; justify-content: center; gap: 0; }
  .marquee span:nth-child(n+2){ display: none; }
  .marquee span{ font-size: 11px; letter-spacing: .15em; gap: 0; }
  .marquee span::after{ display: none; }

  /* ---------- cifras: 2×2 con números grandes ---------- */
  .figures{
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line); border-radius: var(--m-radius);
    overflow: hidden; background: var(--white);
    margin-top: 22px;
  }
  .figure{
    padding: 18px 16px; border: 0;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    display: flex; flex-direction: column; gap: 2px;
  }
  .figure:nth-child(2n){ border-right: 0; }
  .figure:nth-child(n+3){ border-bottom: 0; }
  .figure b{ font-size: 30px; line-height: 1; }
  .figure span{ font-size: 11px; letter-spacing: .14em; }

  /* ---------- ritmo de secciones ---------- */
  main section{ padding: 44px 0; }
  .sec-head{ gap: 12px; margin-bottom: 26px; }
  .sec-head h2{ font-size: clamp(26px, 7vw, 32px); line-height: 1.08; }
  .sec-head p{ font-size: 15.5px; line-height: 1.55; }

  /* ---------- anatomía: línea de tiempo ---------- */
  .anat{ grid-template-columns: 1fr; gap: 0; border: 0; background: none; border-radius: 0; }
  .anat > *{
    border: 0; border-top: 1px solid var(--line-soft);
    padding: 18px 0 18px 44px; position: relative; background: none;
  }
  .anat > *:first-child{ border-top: 0; }
  .anat > *::before{
    content: ""; position: absolute; left: 12px; top: 24px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(168,37,29,.1);
  }
  .anat > *::after{
    content: ""; position: absolute; left: 16px; top: 37px; bottom: -6px;
    width: 1px; background: var(--line);
  }
  .anat > *:last-child::after{ display: none; }

  /* ---------- tabla: se desplaza sola, cabecera fija ---------- */
  .tabla-scroll{ border-radius: 14px; }
  .compare{ min-width: 460px; font-size: 13.5px; }
  .compare th, .compare td{ padding: 12px 14px; }
  .compare thead th{ position: sticky; top: 0; background: var(--paper-2); z-index: 2; }
  .compare td:first-child, .compare th:first-child{
    position: sticky; left: 0; background: var(--paper); z-index: 1;
  }
  .compare thead th:first-child{ background: var(--paper-2); z-index: 3; }

  /* ---------- catálogo: tarjetas ---------- */
  .cat{ border: 0; background: none; gap: 0; }
  .cat-row{
    grid-template-columns: 40px 1fr; gap: 12px;
    padding: 16px 14px; border: 1px solid var(--line-soft);
    border-radius: 14px; margin-bottom: 10px; background: var(--white);
  }
  .cat-num{ font-size: 13px; }
  .cat-name{ font-size: 16px; line-height: 1.35; }

  /* ---------- precios: carrusel con snap ---------- */
  .prices{ scroll-padding: 0 var(--m-gutter);
    display: flex; flex-wrap: nowrap; gap: 14px; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px var(--m-gutter) 18px;
    margin: 0 calc(var(--m-gutter) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .prices::-webkit-scrollbar{ display: none; }
  .price{
    flex: 0 0 min(84%, 400px);
    scroll-snap-align: center; scroll-snap-stop: always;
    padding: 22px 18px;
    border-radius: var(--m-radius);
    box-shadow: 0 18px 36px -26px rgba(21,18,15,.3);
  }
  .price h3{ font-size: 24px; }
  .price .amount{ font-size: 42px; }
  .price ul{ font-size: 14.5px; gap: 10px; }
  .price .btn{ min-height: 52px; font-size: 15.5px; }
  .price{ transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
  .price[data-centro="1"]{ box-shadow: 0 22px 42px -24px rgba(21,18,15,.42); }
  .price.dark{ box-shadow: 0 22px 44px -24px rgba(21,18,15,.5); }
  .price.dark[data-centro="1"]{ box-shadow: 0 26px 52px -22px rgba(21,18,15,.55); }

  /* aviso de deslizar, se va al primer movimiento */
  .swipe-hint{
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 0 0 6px; font-size: 11px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
    transition: opacity .3s var(--ease);
  }
  .swipe-hint[data-off="1"]{ opacity: 0; }
  .swipe-hint svg{ width: 13px; height: 13px; }

  .precios-dots{
    display: flex; justify-content: center; gap: 0; margin-top: 0;
  }
  /* el punto se ve pequeño, pero el área que toca el dedo es de 44px */
  .precios-dots button{
    width: 44px; height: 44px; padding: 0; background: none;
    display: grid; place-items: center; border-radius: 50%;
  }
  .precios-dots button::before{
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--line);
    transition: background .2s var(--ease), width .2s var(--ease);
  }
  .precios-dots button[data-on="1"]::before{
    background: var(--accent); width: 20px; border-radius: 999px;
  }

  .trust{ font-size: 12.5px; }

  /* ---------- faq ---------- */
  summary{ padding: 16px 0; font-size: 16px; line-height: 1.4; }
  details p{ font-size: 15px; line-height: 1.6; padding-bottom: 16px; }

  /* ---------- cierre ---------- */
  .cta{ padding: 30px 22px; border-radius: var(--m-radius); }
  .cta h2{ font-size: clamp(26px, 7vw, 32px); }
  .cta .btn{ width: 100%; min-height: 54px; }

  .foot{ padding-top: 40px; }
  .foot-top{ gap: 24px; }
  .foot-brand{ font-size: 30px; }
  .foot-links{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; font-size: 14px; }
  .foot-links a{ min-height: 44px; display: flex; align-items: center; }
  .foot-bottom{ flex-direction: column; gap: 10px; font-size: 12px; padding-bottom: 96px; }

  /* ---------- barra de compra fija ---------- */
  .buybar{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; align-items: center; gap: 12px;
    padding: 10px var(--m-gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 28px -22px rgba(21,18,15,.5);
    transform: translateY(120%);
    transition: transform .28s var(--ease);
  }
  .buybar[data-show="1"]{ transform: none; }
  .buybar-meta{ min-width: 0; line-height: 1.25; }
  .buybar-meta b{ display: block; font-family: var(--serif); font-size: 18px; letter-spacing: -.01em; }
  .buybar-meta span{ display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .buybar .btn{ margin-left: auto; min-height: 46px; padding: 0 20px; font-size: 15px; flex: 0 0 auto; }

  @media (prefers-reduced-motion: reduce){
    .buybar{ transition: none; }
  }
}
