/* Home móvil: reglas aisladas para conservar escritorio y otras plantillas. */
.home-rutina__controls { display: none; }
@media (max-width: 767px) {
    #kueshi-home { --padding-desktop: 20px; }
    #kueshi-home *, #kueshi-home *::before, #kueshi-home *::after { box-sizing: border-box; }
    #kueshi-home h2 { font-size: clamp(24px, 7.5vw, 32px); line-height: 1.05; letter-spacing: 0; }
    #kueshi-home .btn-kueshi { min-height: 44px; max-width: 100%; padding: 12px 28px; font-size: 12px; font-weight: 500; white-space: normal; }

    #kueshi-home .home-hero { --hero-width: min(81vw, 390px); --hero-height: calc(var(--hero-width) * 1.53); display: block; height: auto; min-height: 100svh; padding: 90px 0 84px; }
    #kueshi-home .home-hero__media-wrap { position: relative; left: auto; top: auto; transform: none; width: var(--hero-width); height: var(--hero-height); max-height: none; margin: 0 auto; aspect-ratio: auto; }
    #kueshi-home .home-hero__media-content { padding: 30px 24px; }
    #kueshi-home .home-hero__claim { max-width: 250px; font-size: clamp(14px, 4.3vw, 18px); line-height: 1.05; }
    #kueshi-home .home-hero__brand-stack { top: 90px; height: var(--hero-height); padding: 0; transform: none; }
    #kueshi-home .home-hero__brand { position: absolute; top: 34%; left: 5%; width: 90%; }
    #kueshi-home .home-hero__brand img { width: 100%; }
    #kueshi-home .home-hero__marquee { position: absolute; top: 55%; width: 100%; margin: 0; }
    #kueshi-home .home-hero__marquee-track span { font-size: clamp(21px, 6.7vw, 29px); }
    #kueshi-home .home-hero__brand-stack .btn-kueshi { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); margin: 0; min-width: 170px; }
    #kueshi-home .home-hero__bottom-texts { position: relative; bottom: auto; left: auto; margin-top: 28px; padding: 0 30px; gap: 28px; align-items: center; }
    #kueshi-home .home-hero__text { max-width: 340px; font-size: 15px; font-weight: 400; line-height: 1.05; text-align: center; }

    #kueshi-home .home-lineas { padding: 40px 0 45px; }
    #kueshi-home .home-lineas__header { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 20px; margin-bottom: 64px; }
    #kueshi-home .home-lineas__title { display: flex; flex-direction: column; gap: 0; text-align: center; color: #A480C6; }
    #kueshi-home .home-lineas__title span:last-child { text-align: center; }
    #kueshi-home .home-lineas__claim { position: static; transform: none; max-width: 340px; }
    #kueshi-home .home-lineas__claim p { margin: 0; padding: 0; font-size: 16px; line-height: 1.12; }
    #kueshi-home .carrusel-circular__viewport { overflow: visible; }
    #kueshi-home .carrusel-circular__track { min-height: calc(min(75vw, 350px) / .92 + 118px); }
    #kueshi-home .carrusel-circular__item { width: min(75vw, 350px); }
    #kueshi-home .carrusel-circular__image-wrap { aspect-ratio: .92; border-radius: 8px; }
    #kueshi-home .carrusel-circular__item[style*="--carousel-offset: -1"] { transform: translateX(calc(-50% - min(86vw, 395px))) translateY(42px) rotate(-12deg); }
    #kueshi-home .carrusel-circular__item[style*="--carousel-offset: 1"] { transform: translateX(calc(-50% + min(86vw, 395px))) translateY(42px) rotate(12deg); }
    #kueshi-home .carrusel-circular__content { margin-top: 30px; }
    #kueshi-home .carrusel-circular__title { font-size: 16px; line-height: 1.2; }
    #kueshi-home .carrusel-circular__description { margin-top: 20px; padding-bottom: 0; font-size: 14px; line-height: 1.15; }
    #kueshi-home .carrusel-circular__arrow, #kueshi-home .home-rutina__card-arrow { top: 10px; right: 10px; bottom: auto; width: 32px; height: 32px; opacity: 1; visibility: visible; transform: none; }
    #kueshi-home .carrusel-circular__arrow img, #kueshi-home .home-rutina__card-arrow img { width: 18px; height: 18px; transform: none; }
    #kueshi-home .carrusel-circular__controls, #kueshi-home .home-rutina__controls { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; width: 100%; max-width: 420px; padding: 0 4px; margin: 20px auto 0; }
    #kueshi-home .carrusel-circular__button { width: 44px; height: 44px; background: transparent; }
    #kueshi-home .carrusel-circular__button img { width: 24px; height: 24px; }
    #kueshi-home .carrusel-circular__progress { background: #d1ccd5; }
    #kueshi-home .carrusel-circular__progress-bar { background: #666; }

    #kueshi-home .home-experiencia { height: auto; min-height: 0; padding: 75px 15px 70px; }
    #kueshi-home .home-experiencia__canvas { position: relative; inset: auto; height: calc(min(90vw, 390px) + 190px); min-height: 0; max-width: 420px; margin: 0 auto; transform: none; }
    #kueshi-home .home-experiencia__main-image { top: 95px; width: min(90vw, 390px); transform: translateX(-50%); }
    #kueshi-home .home-experiencia__emoji { top: calc(95px + min(90vw, 390px) - 72px); left: 0; width: 72px; transform: none; padding: 0; }
    #kueshi-home .home-experiencia__floating--image { width: 72px; }
    #kueshi-home .home-experiencia__floating--bubble { max-width: calc(100% - 88px); padding: 20px; border-radius: 24px; font-size: 13px; line-height: 1.15; }
    #kueshi-home .home-experiencia__floating--superior-izquierda { top: 0; left: 0; }
    #kueshi-home .home-experiencia__floating--superior-derecha { top: 0; right: 0; }
    #kueshi-home .home-experiencia__floating--inferior-izquierda { bottom: 0; left: 16%; }
    #kueshi-home .home-experiencia__floating--inferior-derecha { bottom: 0; right: 0; }
    #kueshi-home .home-experiencia__floating--bubble[class*="-derecha"] { border-bottom-left-radius: 0; }
    #kueshi-home .home-experiencia__floating--bubble[class*="-izquierda"] { border-bottom-right-radius: 0; }
    #kueshi-home .home-experiencia__floating--inferior-izquierda.home-experiencia__floating--bubble { max-width: calc(84% - 84px); }
    #kueshi-home .home-experiencia__marquee { top: calc(95px + min(45vw, 195px)); width: 160vw; gap: 8px; }
    #kueshi-home .home-experiencia__marquee-track span { font-size: clamp(22px, 7vw, 30px); }
    #kueshi-home .home-experiencia__cta { position: relative; left: auto; bottom: auto; transform: none; margin-top: 44px; }
    #kueshi-home .home-experiencia__cta .btn-kueshi { min-width: 175px; }

    #kueshi-home .home-naturalidad { padding: 65px 0 75px; }
    #kueshi-home .home-naturalidad__header { gap: 18px; margin-bottom: 50px; }
    #kueshi-home .home-naturalidad__title { max-width: 320px; }
    #kueshi-home .home-naturalidad__description { max-width: 290px; padding: 0; font-size: 14px; line-height: 1.15; text-align: center; }
    #kueshi-home .home-naturalidad .carrusel-organico, #kueshi-home .home-naturalidad .carrusel-organico__viewport { overflow: visible; }
    #kueshi-home .home-naturalidad .carrusel-organico__viewport { padding: 0; }
    #kueshi-home .home-naturalidad .carrusel-organico__track { display: block; width: 100%; transform: none !important; }
    #kueshi-home .home-naturalidad .carrusel-organico__sequence { display: flex; flex-direction: column; width: min(75vw, 460px); margin: 0 auto; padding: 0; }
    #kueshi-home .home-naturalidad .carrusel-organico__sequence[aria-hidden="true"], #kueshi-home .home-naturalidad .carrusel-organico__item.is-mobile-repeat { display: none; }
    #kueshi-home .home-naturalidad .carrusel-organico__item { position: relative; flex: none; width: 100%; max-width: none; margin: -8% 0 0; z-index: auto; transform: rotate(7deg); filter: none; }
    #kueshi-home .home-naturalidad .carrusel-organico__item:first-child { margin-top: 0; }
    #kueshi-home .home-naturalidad .carrusel-organico__item:nth-child(odd) { transform: rotate(-7deg); }
    #kueshi-home .home-naturalidad .carrusel-organico__media, #kueshi-home .home-naturalidad .carrusel-organico__text-card { min-height: 0; aspect-ratio: 1; height: auto; border-radius: 10px; box-shadow: none; animation: none; }
    #kueshi-home .home-naturalidad .carrusel-organico__text-card { padding: 30px 22px; font-size: clamp(14px, 4.6vw, 22px); line-height: 1.15; }
    #kueshi-home .home-naturalidad .carrusel-organico__text-card p { margin: 0; padding: 0; }

    #kueshi-home .home-novedad { min-height: 0; padding: 70px 0 45px; }
    #kueshi-home .home-novedad__content { min-height: 0; padding: 0 28px; }
    #kueshi-home .home-novedad__stage { min-height: 0; height: clamp(360px, 120vw, 500px); }
    #kueshi-home .home-novedad__background { top: 70px; width: 100%; padding: 0 10px; transform: translateX(-50%); }
    #kueshi-home .home-novedad__background { height: clamp(360px, 120vw, 500px); background-image: var(--novedad-background); background-repeat: repeat-y; background-size: calc(100% - 20px) auto; background-position: center top; }
    #kueshi-home .home-novedad__background img { visibility: hidden; height: 100%; }
    #kueshi-home .home-novedad__product { top: 62%; width: min(67vw, 320px); }
    #kueshi-home .home-novedad__claims { display: grid; position: relative; z-index: 4; padding-top: 25px; }
    #kueshi-home .home-novedad__claim { position: relative; grid-area: 1 / 1; inset: auto; align-self: center; width: 100%; max-width: 330px; margin: auto; padding: 13px 24px; border: 2px solid #81CDFF; border-radius: 40px; font-size: 14px; line-height: 1.15; transform: none; animation: none; box-shadow: none; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
    #kueshi-home .home-novedad__claim:first-child { opacity: 1; visibility: visible; }
    #kueshi-home .home-novedad__claims.is-rotating .home-novedad__claim { opacity: 0; visibility: hidden; }
    #kueshi-home .home-novedad__claims.is-rotating .home-novedad__claim.is-current { opacity: 1; visibility: visible; }
    #kueshi-home .home-novedad__cta { margin-top: 50px; }

    #kueshi-home .home-rutina { padding: 60px 15px 40px; }
    #kueshi-home .home-rutina__inner { padding: 0; }
    #kueshi-home .home-rutina__title { max-width: 300px; margin-bottom: 60px; }
    #kueshi-home .home-rutina__cards { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
    #kueshi-home .home-rutina__cards::-webkit-scrollbar { display: none; }
    #kueshi-home .home-rutina__card { flex: 0 0 100%; min-width: 0; min-height: 0; height: clamp(320px, 109vw, 460px); border-radius: 8px; scroll-snap-align: start; scroll-snap-stop: always; }
    #kueshi-home .home-rutina__card-media { top: 43%; width: 72%; height: 72%; }
    #kueshi-home .home-rutina__product-image { height: 100%; max-height: none; }
    #kueshi-home .home-rutina__card-claim { top: auto; bottom: 26px; width: calc(100% - 30px); font-size: 17px; line-height: 1.1; }
    #kueshi-home .home-rutina__controls { margin-top: 26px; }
    #kueshi-home .home-rutina__controls[hidden] { display: none; }
    #kueshi-home .home-rutina__cta { margin-top: 26px; }

    #kueshi-home .home-instagram { padding: 65px 0 75px; }
    #kueshi-home .home-instagram__header { align-items: center; gap: 4px; margin-bottom: 56px; padding: 0 20px; }
    #kueshi-home .home-instagram__title, #kueshi-home .home-instagram__title--right { width: 100%; text-align: center; font-weight: 500; }
    #kueshi-home .home-instagram__snake { top: -56px; bottom: auto; }
    #kueshi-home .home-instagram__snake .texto-serpiente__svg { width: 200vw; min-width: 0; }
    #kueshi-home .home-instagram__snake .texto-serpiente__ribbon { stroke-width: 78px; }
    #kueshi-home .home-instagram__snake .texto-serpiente__text, #kueshi-home .home-instagram__snake .texto-serpiente__measure { font-size: 44px; }
    #kueshi-home #instagram-gallery-feed-0 { --qligg-spacing: 0px !important; }
    #kueshi-home .home-instagram__cta { margin-top: 28px; padding: 0 25px; }

    #footer-outer .Footer-Contenido { padding: 65px 15px 25px; }
    #footer-outer .Footer-Superior { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    #footer-outer .Footer-Columna { align-items: center; gap: 20px; }
    #footer-outer .Footer-Columna a, #footer-outer .Footer-Columna p { max-width: 280px; font-size: 13px; line-height: 1.2; padding: 0; font-weight: 500; }
    #footer-outer .Footer-Columna-Identidad { margin-bottom: 16px; }
    #footer-outer .Footer-Redes { justify-content: center; margin-top: 4px; gap: 16px; }
    #footer-outer .Footer-Redes img { height: 24px; }
    #footer-outer .Footer-Logo { margin-top: 64px; }
    #footer-outer .Footer-Inferior { width: calc(100% + 30px); margin-left: -15px; margin-top: 25px; padding: 25px 10px 0; }
    #footer-outer .Footer-Inferior p { font-size: 12px; padding: 0; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    #kueshi-home *, #kueshi-home *::before, #kueshi-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 767px) {
    /* La composición móvil usa las dos fotos y los dos bocadillos de referencia. */
    #kueshi-home .home-experiencia__floating--inferior-izquierda.home-experiencia__floating--image { display: none; }
    #kueshi-home .home-experiencia__floating--centro-izquierda.home-experiencia__floating--bubble { top: auto; bottom: 0; left: 16%; max-width: calc(84% - 84px); }
}
