/* ============================================================
   ANIMACIONES DE ESCRITORIO EN EL MÓVIL (ver movil/movil.js)
   Solo se aplican cuando movil.js añade la clase `movil-anim` a <html>,
   así, si el script fallara, el móvil se queda como estaba.
   ============================================================ */
@media (max-width: 991px) {
  /* ---- Scroll horizontal («cuando bajas, va para la izquierda») ---- */
  html.movil-anim .loc-scroll-area_screen {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    overflow: hidden;
    margin-left: calc(var(--_special-units---offset-l) * -1);
    margin-right: calc(var(--_special-units---offset-r) * -1);
  }

  html.movil-anim .loc-scroll-area_track {
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    will-change: transform;
  }

  html.movil-anim .loc-info-w,
  html.movil-anim .loc-intro-w,
  html.movil-anim .loc-path-w {
    flex: 0 0 auto;
    width: 100vw;
    height: 100%;
    padding-left: var(--_special-units---offset-l);
    padding-right: var(--_special-units---offset-r);
    overflow: hidden;
  }

  /* El panel del mapa es más ancho: la línea pasa entera mientras bajas */
  html.movil-anim .loc-path-w {
    width: 240vw;
  }

  html.movil-anim .loc-info-s,
  html.movil-anim .loc-intro-s,
  html.movil-anim .loc-path-s {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  html.movil-anim .loc-intro-s_img img {
    max-height: 30svh;
    width: auto;
    margin: 0 auto;
    object-fit: cover;
  }

  html.movil-anim .loc-path-s_path {
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
  }

  html.movil-anim .loc-path-s_path_c {
    width: 100%;
  }

  /* Etiquetas del mapa algo más grandes en el panel ancho del móvil */
  html.movil-anim .mapa-lugares_nombre {
    font-size: 13px;
  }
  html.movil-anim .mapa-lugares_tipo {
    font-size: 11px;
  }

}

@media (max-width: 991px) {
  /* El panel central tiene más contenido: menos separación y foto más baja */
  html.movil-anim .loc-intro-s [class*="u-"] {
    height: 12px !important;
    min-height: 0 !important;
    flex: none !important;
  }
  html.movil-anim .loc-intro-s_img img {
    max-height: 22svh;
  }
}

@media (max-width: 991px) {
  /* Título del panel central un poco más pequeño para que quepa entero */
  html.movil-anim .loc-intro-s_title .h1 {
    font-size: 68px;
  }
}

/* ============================================================
   FLORES EN EL MÓVIL
   Más grandes y ancladas a esquinas y bordes, con la masa de flores dentro
   de la pantalla y el arranque de las ramas fuera: parecen ramas que entran
   desde fuera, no flores colgando en el aire. Siempre cuadradas (aspect-ratio)
   para que el lienzo no se deforme. Solo posición y tamaño: el parallax usa
   transform y se respeta.
   ============================================================ */
@media (max-width: 991px) {
  .flower.loc-info,
  .flower.loc-intro,
  .flower.apart-info,
  .flower.interior,
  .flower.other {
    height: auto;
    aspect-ratio: 1 / 1;
    right: auto;
    bottom: auto;
  }

  /* Panel 1 del scroll horizontal: rama desde la esquina superior izquierda */
  .flower.loc-info {
    width: 520px;
    top: -100px;
    left: -130px;
  }

  /* Panel 2: rama que sube desde la esquina inferior izquierda */
  .flower.loc-intro {
    width: 520px;
    top: auto;
    bottom: -130px;
    left: -110px;
  }

  /* Entradilla de la agenda: mata que nace del borde inferior */
  .flower.apart-info {
    width: 500px;
    top: auto;
    bottom: -60px;
    left: -110px;
  }

  /* Galería: entra por la esquina de la foto en vez de taparla */
  .flower.interior {
    width: 300px;
    top: -60px;
    left: auto;
    right: -45px;
  }

  /* «Organiza»: rama desde la esquina superior derecha */
  .flower.other {
    width: 470px;
    top: -40px;
    left: auto;
    right: -160px;
  }
}
