/* Urban Bikes V25 — correcciones móviles puntuales (home + experiencia Urban) */

@media (max-width: 809.98px) {
  /* Home: impedir que Framer reactive el ticker/título original tras hidratar. */
  #main section.framer-yhu7ww[data-framer-name="hero"] .framer-1jpi9nc-container,
  #main section.framer-yhu7ww[data-framer-name="hero"] .framer-HJmZs,
  #main section.framer-yhu7ww[data-framer-name="hero"] [data-framer-name="Your text here"] {
    display: none !important;
    visibility: hidden !important;
  }

  #main section.framer-yhu7ww[data-framer-name="hero"] {
    position: relative !important;
    display: block !important;
    height: clamp(500px, 65svh, 545px) !important;
    min-height: 500px !important;
    max-height: 545px !important;
    overflow: hidden !important;
    background: #050705 !important;
  }

  #main section.framer-yhu7ww[data-framer-name="hero"] .framer-m52w65 {
    position: absolute !important;
    inset: 0 0 auto !important;
    width: 100% !important;
    height: 56% !important;
    min-height: 0 !important;
    max-height: 56% !important;
    overflow: hidden !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #main section.framer-yhu7ww[data-framer-name="hero"] .framer-5h11pt-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #050705 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #main section.framer-yhu7ww[data-framer-name="hero"] video {
    object-fit: contain !important;
    object-position: 50% 66% !important;
    background: #050705 !important;
    opacity: 1 !important;
    transform: translateY(3%) scale(.88) !important;
    transform-origin: 50% 50% !important;
  }

  #main section.framer-yhu7ww[data-framer-name="hero"] .framer-1lp6wn0-container {
    opacity: .22 !important;
  }

  #main section.framer-yhu7ww[data-framer-name="hero"]::after {
    background: linear-gradient(180deg, rgba(3,5,3,0) 0%, rgba(3,5,3,.02) 34%, rgba(3,5,3,.82) 54%, #050705 70%, #050705 100%) !important;
  }

  .urban-mobile-hero-copy {
    right: 22px !important;
    bottom: 22px !important;
    left: 22px !important;
    max-width: 540px !important;
  }

  .urban-mobile-hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(40px, 12.8vw, 54px) !important;
    line-height: .86 !important;
    letter-spacing: -.035em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .urban-mobile-hero-copy p {
    max-width: 34ch !important;
    margin-top: 16px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .urban-mobile-hero-copy a {
    min-height: 44px !important;
    margin-top: 18px !important;
  }

  /* Urban: una secuencia compacta y estable en vez de largos vacíos negros. */
  main.wgm-exp-el,
  main.wgm-exp-el .track,
  main.wgm-exp-el .sticky-stage {
    background: #050705 !important;
  }

  main.wgm-exp-el .sticky-stage {
    height: 100svh !important;
    min-height: 560px !important;
    padding: 0 !important;
  }

  main.wgm-exp-el #scene-3d,
  main.wgm-exp-el #camera-rig,
  main.wgm-exp-el #carousel {
    width: 100% !important;
    height: 100% !important;
  }

  main.wgm-exp-el .sphere-panel {
    width: 135vw !important;
    height: 135svh !important;
  }

  main.wgm-exp-el .sphere-scene {
    width: 100vw !important;
    height: 100svh !important;
  }

  main.wgm-exp-el .sphere-shell {
    width: min(104vw, 620px) !important;
    height: min(104vw, 620px) !important;
  }

  /* Los textos cinéticos de escritorio se solapaban y quedaban cortados en móvil. */
  main.wgm-exp-el .sphere-h-top,
  main.wgm-exp-el .sphere-h-bottom,
  main.wgm-exp-el .sphere-body,
  main.wgm-exp-el #marquee-layer {
    display: none !important;
  }

  main.wgm-exp-el .track::before,
  main.wgm-exp-el .track::after {
    height: 5svh !important;
  }

  /* Videos horizontales: tarjetas completas y proporcionadas en pantallas altas. */
  #portfolio {
    justify-content: center !important;
    padding: clamp(76px, 10svh, 104px) 0 max(44px, 6svh) !important;
    background: #050705 !important;
  }

  #portfolio .pf-view {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: min(70svh, 680px) !important;
    min-height: 460px !important;
  }

  #portfolio .pf-track {
    height: 100% !important;
    gap: 14px !important;
    padding: 0 14px !important;
  }

  #portfolio .pf-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    height: 100% !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }

  #portfolio .pf-card video {
    object-position: center center !important;
  }

  #portfolio .pf-tags {
    gap: 7px !important;
    font-size: clamp(9px, 2.4vw, 12px) !important;
    line-height: 1.3 !important;
  }

  #portfolio .pf-card h3 {
    max-width: 92% !important;
    font-size: clamp(43px, 13vw, 70px) !important;
    line-height: .9 !important;
  }
}

@media (max-width: 390px) {
  #main section.framer-yhu7ww[data-framer-name="hero"] {
    height: clamp(485px, 64svh, 525px) !important;
    min-height: 485px !important;
    max-height: 525px !important;
  }

  .urban-mobile-hero-copy {
    right: 18px !important;
    left: 18px !important;
  }

  .urban-mobile-hero-copy h1 {
    font-size: clamp(39px, 12.6vw, 49px) !important;
  }

  #portfolio .pf-card {
    flex-basis: 86vw !important;
    width: 86vw !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 809.98px) {
  #portfolio,
  #portfolio .pf-track,
  main.wgm-exp-el #camera-rig,
  main.wgm-exp-el .sphere-shell {
    will-change: auto !important;
  }
}

/* Menú móvil ligero y determinista: evita las anclas antiguas del export de Framer. */
#urban-mobile-drawer {
  display: none;
}

/* La colección nativa de seis Urban se reemplazó por la colección filtrable.
   Forzamos su salida también después de que Framer hidrata la página. */
body.urban-detail-page #bicicletas,
body.urban-detail-page section[data-framer-name="Get Cycle Section"] {
  display: none !important;
}

@media (max-width: 809.98px) {
  html.urban-mobile-menu-open,
  html.urban-mobile-menu-open body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  #urban-mobile-drawer {
    position: fixed;
    z-index: 2147483500;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    padding: 0 22px max(22px, env(safe-area-inset-bottom));
    background: #050705;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease, visibility 0s linear .14s;
    contain: layout paint;
    overflow: hidden;
  }

  #urban-mobile-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .urban-mobile-drawer__head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: max(88px, calc(72px + env(safe-area-inset-top)));
    padding-top: env(safe-area-inset-top);
    background: #050705;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .urban-mobile-drawer__head img {
    width: 118px;
    height: 78px;
    object-fit: contain;
    object-position: left center;
  }

  .urban-mobile-drawer__close {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .urban-mobile-drawer__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .urban-mobile-drawer__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .urban-mobile-drawer__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 0 28px;
    -webkit-overflow-scrolling: touch;
  }

  .urban-mobile-drawer__nav > a,
  .urban-mobile-drawer__group > button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;
    background: transparent;
    color: #f5f5f5;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(17px, 4.6vw, 21px);
    font-weight: 500;
    letter-spacing: .13em;
    line-height: 1.1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
  }

  .urban-mobile-drawer__nav > a::after {
    content: "→";
    margin-left: auto;
    color: #ceff00;
    font-size: 18px;
  }

  .urban-mobile-drawer__nav a:active,
  .urban-mobile-drawer__nav a:focus-visible {
    color: #ceff00;
    outline: none;
  }

  .urban-mobile-drawer__group > button i {
    color: #ceff00;
    font-size: 18px;
    font-style: normal;
    transition: transform .16s ease;
  }

  .urban-mobile-drawer__group > button[aria-expanded="true"] {
    color: #ceff00;
  }

  .urban-mobile-drawer__group > button[aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  .urban-mobile-drawer__panel {
    display: none;
    padding: 8px 0 14px 16px;
    border-bottom: 1px solid rgba(202, 255, 0, .24);
  }

  .urban-mobile-drawer__panel.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .urban-mobile-drawer__panel a {
    min-height: 42px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .74);
    font: 500 12px/1.35 Montserrat, Arial, sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .urban-mobile-drawer__panel .urban-mobile-drawer__overview {
    margin:2px 0 8px!important;
    padding:13px 14px!important;
    border:1px solid rgba(202,255,0,.55)!important;
    border-radius:10px!important;
    background:rgba(202,255,0,.08)!important;
    color:#ceff00!important;
    font-weight:700!important;
  }
}
