/* Teléfono: vertical ≤720px, o girado (poco alto). No pisa una PC de verdad. */

@media (max-width: 720px), (orientation: landscape) and (max-height: 600px), (pointer: coarse) and (hover: none) {
  html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .kpc-layout-desk { display: none; }
  .kpc-layout-phone { display: inline; }

  /* En teléfono el hover se pega al toque y el recuadro tapa los botones. */
  .kpc-has-tip[data-tip]::after,
  .kpc-has-tip[data-tip]:hover::after,
  .kpc-has-tip[data-tip]:focus::after,
  .kpc-has-tip[data-tip]:focus-visible::after,
  .kpc-has-tip[data-tip]:active::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .kpc-top {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    overflow: hidden;
    max-width: 100%;
    padding: 10px 14px;
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 8px;
  }

  body[class*="is-"] .kpc-brand-sub {
    display: none;
  }

  .kpc-top-actions {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .kpc-nav-group {
    gap: 4px;
  }

  .kpc-nav-group + .kpc-nav-group {
    padding-left: 0;
    border-left: 0;
  }

  .kpc-top-actions .kpc-ghost,
  .kpc-top-actions .kpc-nav-pill {
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .kpc-lbl-long {
    display: none;
  }

  .kpc-top-actions .kpc-nav-arrow {
    min-width: 34px;
    padding: 0 8px;
  }

  .kpc-page-no {
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .kpc-top-actions .kpc-music-btn {
    width: 100%;
    min-width: auto;
    padding: 0 10px;
    font-size: 11px;
  }

  .kpc-music-dock {
    min-width: 0;
    max-width: 118px;
    flex: 0 1 118px;
  }

  .kpc-music-dock:has(.kpc-music-btn[aria-pressed="false"]) .kpc-music-vol-wrap {
    display: none;
  }

  .kpc-music-vol-wrap {
    min-height: 44px;
    justify-content: center;
    touch-action: none;
    pointer-events: auto;
  }

  .kpc-music-vol {
    height: 44px;
    touch-action: none;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
  }

  .kpc-music-vol::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c4a46a var(--kpc-vol, 38%), #2a3036 var(--kpc-vol, 38%));
  }

  .kpc-music-vol::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #2a3036;
  }

  .kpc-music-vol::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #c4a46a;
  }

  .kpc-music-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -10px;
    border-radius: 50%;
    background: #f3e6c8;
    border: 2px solid #8a7040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .kpc-music-vol::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3e6c8;
    border: 2px solid #8a7040;
  }

  .kpc-top-actions .kpc-ana-gear,
  .kpc-top-actions .kpc-lang:not(.kpc-music-btn) {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
  }

  .kpc-top-actions .kpc-lang {
    padding: 0 8px;
    width: auto;
  }

  .kpc-lang {
    height: 32px;
    padding: 0 10px;
  }

  .kpc-page,
  .kpc-video-page {
    max-width: 100%;
    overflow-x: hidden;
    padding: 18px 14px 72px;
    padding-bottom: max(72px, calc(24px + env(safe-area-inset-bottom)));
  }

  .kpc-intro-hero,
  .kpc-hero {
    min-width: 0;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 0 8px;
  }

  .kpc-hero-logo {
    margin-bottom: 16px;
  }

  .kpc-hero-logo img,
  .kpc-offer-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .kpc-intro-hero h1,
  .kpc-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    margin: 8px 0 12px;
  }

  .kpc-lead,
  .kpc-hero p {
    font-size: 16px;
    line-height: 1.5;
  }

  .kpc-intro-photo img {
    min-height: 200px;
    max-height: 260px;
  }

  .kpc-section {
    padding: 36px 0 6px;
  }

  .kpc-section h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .kpc-section-title {
    font-size: clamp(20px, 5.4vw, 26px);
    letter-spacing: 0.02em;
    margin: 26px 0 10px;
  }

  .kpc-section p {
    font-size: 15px;
    line-height: 1.55;
  }

  .kpc-facts {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .kpc-fact {
    padding: 14px 13px;
  }

  .kpc-offer {
    margin-top: 28px;
    padding-top: 20px;
  }

  .kpc-offer-head {
    flex-direction: column;
    gap: 12px;
  }

  .kpc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .kpc-card {
    min-height: 0;
    padding: 16px 14px 14px;
  }

  .kpc-videos-button {
    min-width: 0;
    width: 100%;
    letter-spacing: 0.16em;
    text-indent: 0;
    padding: 0 18px;
  }

  .kpc-video-hero {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .kpc-video-hero h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .kpc-openness {
    gap: 6px;
    margin: 8px 0 10px;
  }

  .kpc-openness button {
    min-width: 46px;
    height: 36px;
    font-size: 12px;
  }

  .kpc-openness .kpc-tone {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    flex: 0 0 36px;
  }

  .kpc-tones {
    flex-wrap: wrap;
    margin: 0 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .kpc-tones .kpc-open-label {
    flex: 1 0 100%;
    margin: 0 0 8px;
  }

  .kpc-tone i {
    width: 18px;
    height: 18px;
  }

  .kpc-unit.is-window,
  .kpc-unit.is-french {
    min-height: 0;
  }

  .kpc-pair {
    padding: 12px 10px 12px;
    gap: 22px;
    margin-top: 14px;
  }

  .kpc-unit.is-window .kpc-wall-under {
    flex: 0 0 14px;
    min-height: 14px;
  }

  .kpc-unit.is-french .kpc-arch {
    min-height: 300px;
  }

  .kpc-win3 {
    aspect-ratio: 16 / 10;
  }

  .kpc-motor-play {
    gap: 22px;
  }

  .kpc-motor-room,
  .kpc-color-wall {
    padding: 12px 10px 12px;
    border-radius: 4px;
  }

  .kpc-motor-room .kpc-unit {
    display: flex;
    flex-direction: column;
  }
  .kpc-motor-room .kpc-unit > .kpc-unit-label { order: 0; }
  .kpc-motor-room .kpc-unit > .kpc-hang { order: 1; }
  .kpc-motor-room .kpc-unit > .kpc-openness:not(.kpc-tones) { order: 2; }
  .kpc-motor-room .kpc-unit > .kpc-tones { order: 3; }

  .kpc-motor-room .kpc-openness {
    margin: 8px 0 6px;
  }

  .kpc-motor-room .kpc-openness .kpc-open-label {
    flex: 1 0 100%;
  }

  .kpc-motor-room .kpc-tones {
    margin: 0 0 8px;
    flex-wrap: wrap;
  }

  .kpc-zb-play > div:has(.kpc-zb-stage) {
    display: flex;
    flex-direction: column;
  }

  .kpc-zb-play .kpc-zb-stage {
    order: 1;
  }

  .kpc-zb-play .kpc-tones {
    order: 2;
    margin: 10px 0 8px;
    flex-wrap: wrap;
  }

  .kpc-sec-play > div:has(.kpc-sec-stage) {
    display: flex;
    flex-direction: column;
  }

  .kpc-sec-play .kpc-sec-stage {
    order: 1;
  }

  .kpc-sec-play .kpc-openness:not(.kpc-tones) {
    order: 2;
    margin: 10px 0 6px;
  }

  .kpc-sec-play .kpc-tones {
    order: 3;
    margin: 0 0 8px;
    flex-wrap: wrap;
  }

  .kpc-sec-play .kpc-openness .kpc-open-label {
    flex: 1 0 100%;
  }

  .kpc-motor-room .kpc-unit.is-window,
  .kpc-motor-room .kpc-unit.is-french,
  .kpc-color-wall .kpc-unit.is-window {
    flex: 0 0 auto;
    min-height: 0;
  }

  .kpc-motor-room .kpc-unit.is-french .kpc-arch {
    min-height: 300px;
  }

  .kpc-motor-block .kpc-remote,
  .kpc-sec-play .kpc-remote,
  .kpc-end-play .kpc-remote,
  .kpc-motor-room .kpc-remote,
  .kpc-color-wall .kpc-remote,
  .kpc-sg-play .kpc-remote,
  .kpc-zb-play .kpc-remote {
    position: static;
    width: 100%;
    max-width: none;
    margin: 10px 0 0;
    z-index: auto;
  }

  .kpc-remote {
    width: 100%;
    max-width: none;
    border-radius: 26px;
    padding: 10px 12px 12px;
  }

  .kpc-remote-cap {
    margin-bottom: 6px;
  }

  .kpc-remote-brand {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .kpc-remote h3 {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .kpc-ch {
    margin-bottom: 8px;
    gap: 6px;
  }

  .kpc-ch button,
  .kpc-pad button {
    min-height: 44px;
    height: 44px;
    font-size: 12px;
    border-radius: 12px;
  }

  .kpc-pad {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .kpc-pad .up,
  .kpc-pad .dn,
  .kpc-pad .my {
    height: 48px;
    border-radius: 16px;
    font-size: 16px;
  }

  .kpc-pad .my {
    letter-spacing: 0.12em;
    font-size: 13px;
  }

  .kpc-remote small {
    margin-top: 8px;
    font-size: 9px;
  }

  .kpc-sec-play,
  .kpc-end-play,
  .kpc-sg-play,
  .kpc-zb-play {
    gap: 12px;
  }

  .kpc-zb-stage canvas {
    width: 100%;
    height: auto;
  }

  .kpc-stage.is-row {
    min-height: 0;
    padding: 28px 8px 10px;
    gap: 6px;
  }

  .kpc-stage.is-row .kpc-vano {
    height: 168px;
  }

  .kpc-colors {
    gap: 8px;
    margin: 6px 0 12px;
  }

  .kpc-color {
    min-width: 0;
    flex: 1 1 calc(25% - 8px);
    max-width: 72px;
    padding: 8px 4px 6px;
  }

  .kpc-color i {
    width: 28px;
    height: 28px;
  }

  .kpc-color small {
    font-size: 9px;
  }

  .kpc-home-blink {
    min-width: 0;
    width: 100%;
  }

  .kpc-solid,
  .kpc-video-back {
    height: 48px;
    width: 100%;
  }

  .kpc-cta-row {
    margin-top: 22px;
  }

  .kpc-foot {
    margin-top: 28px;
    gap: 8px;
  }

  .kpc-sx-sheet {
    width: calc(100% - 16px);
    min-height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    padding: 16px 14px 20px;
    border-radius: 12px;
  }

  .kpc-sx-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kpc-sx-dual-live {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 6px;
  }

  .kpc-sx-pair.is-chain-pair {
    grid-template-columns: 1fr;
  }

  .kpc-sx-solo-live,
  .kpc-sx-solo-live.is-right {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .kpc-sx-solo-live.is-right .kpc-sx-chain-live {
    order: -1;
  }

  .kpc-sx-photo img {
    height: 170px;
  }

  .kpc-sx-chain-live {
    padding: 6px 2px 8px;
  }

  .kpc-sx-chain-live > button {
    width: 32px;
    height: 32px;
  }

  .kpc-sx-chain-hand,
  .kpc-sx-chain-live[data-sx-lift="sc"] .kpc-sx-chain-hand,
  .kpc-sx-chain-live[data-sx-lift="bo"] .kpc-sx-chain-hand {
    left: 50%;
    right: auto;
    width: 24px;
    height: 32px;
    transform: translate(-50%, -50%);
  }

  .kpc-sx-live-win {
    min-height: 200px;
  }

  .kpc-hw {
    width: 13px;
  }

  .kpc-dlever {
    height: 36px;
  }

  .kpc-dlever::after {
    width: 20px;
  }

  .kpc-sx-fingers-board .kpc-sx-pair {
    grid-template-columns: 1fr;
  }

  .kpc-sx-motor-live .kpc-remote {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .kpc-sx-chain-live small {
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .kpc-sx-motor-live {
    grid-template-columns: 1fr;
  }

  .kpc-sx-openings {
    grid-template-columns: 1fr;
  }

  .kpc-pp-all-fabrics,
  .kpc-rf-all-fabrics {
    flex-direction: column;
    align-items: stretch;
  }

  .kpc-pp-all-fabrics > div,
  .kpc-rf-all-fabrics > div {
    justify-content: flex-start;
  }

  .kpc-pp-open-picks,
  .kpc-rf-open-picks {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kpc-pp-open-picks button,
  .kpc-rf-open-picks button {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    padding: 10px 12px;
    gap: 10px;
  }

  .kpc-pp-open-picks button b,
  .kpc-rf-open-picks button b {
    font-size: 16px;
  }

  .kpc-pp-open-picks button small,
  .kpc-rf-open-picks button small {
    justify-self: end;
  }

  .kpc-sx-sheet h3 {
    margin-right: 40px;
    font-size: 22px;
  }

  .kpc-sx-lead {
    font-size: 15px;
  }

  .kpc-sx-x {
    width: 44px;
    height: 44px;
  }

  .kpc-sx-return {
    width: 100%;
    min-height: 52px;
    font-size: 14px;
  }

  .kpc-sx-zb-height {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kpc-sx-zb-height-win {
    width: min(100%, 262px);
    max-height: 210px;
    aspect-ratio: 5 / 4;
    margin-inline: auto;
  }

  .kpc-sx-zb-height-pad {
    padding: 12px 10px 14px;
  }

  .kpc-sx-zb-height-pad p {
    font-size: 11px;
  }

  .kpc-ana-work {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.kpc-foto-page,
  html:has(body.kpc-foto-page) {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  body.kpc-foto-page {
    display: block;
  }

  body.kpc-foto-page .kpc-foto-main {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 20px 16px 40px;
  }

  body.kpc-foto-page .kpc-ana-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0 0 10px;
  }

  body.kpc-foto-page .kpc-ana-intro-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex: 1 1 auto;
    min-width: 0;
  }

  body.kpc-foto-page .kpc-ana-foto-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
  }

  body.kpc-foto-page .kpc-kicker,
  body.kpc-foto-page .kpc-ana-lugar,
  body.kpc-foto-page .kpc-ana-abbr,
  body.kpc-foto-page .kpc-ana-leads,
  body.kpc-foto-page .kpc-foto-foot,
  body.kpc-foto-page .kpc-ana-carta-note,
  body.kpc-foto-page .kpc-read-more {
    display: none !important;
  }

  body.kpc-foto-page .kpc-read-full {
    display: inline;
  }

  body.kpc-foto-page .kpc-ana-readmore {
    margin: 0;
  }

  body.kpc-foto-page .kpc-ana-readmore-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
  }

  body.kpc-foto-page .kpc-ana-intro-tools {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  body.kpc-foto-page .kpc-ana-work {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  body.kpc-foto-page .kpc-ana-stage {
    height: auto;
    max-height: none;
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    container-type: normal;
    background: #0a0d10;
  }

  body.kpc-foto-page .kpc-ana-stage svg {
    shape-rendering: optimizeSpeed;
  }

  body.kpc-foto-page .kpc-ana-stage {
    touch-action: pan-y;
  }

  body.kpc-foto-page .kpc-ana-stage.is-zoomed,
  body.kpc-foto-page .kpc-ana-stage.is-dragging {
    touch-action: none;
  }

  body.kpc-foto-page .kpc-ana-zoom {
    width: auto;
    max-width: none;
    height: auto;
    margin: 0 auto;
    transform-origin: center center;
    flex: 0 0 auto;
  }

  body.kpc-foto-page .kpc-ana-tag {
    pointer-events: none !important;
  }

  body.kpc-foto-page .kpc-ana-zoom > img:first-of-type {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body.kpc-foto-page .kpc-ana-fabric {
    max-width: 100%;
    gap: 12px;
    padding: 10px;
  }

  body.kpc-foto-page .kpc-ana-fabric img {
    width: 64px;
    height: 64px;
  }

  body.kpc-foto-page .kpc-ana-fabric figcaption {
    display: none;
  }

  body.kpc-foto-page .kpc-ana-fabrics,
  body.kpc-foto-page .kpc-ana-fabric-side {
    max-width: min(280px, 100%);
    margin: 10px auto 0;
  }

  body.kpc-foto-page .kpc-ana-fabrics.is-chip {
    max-width: none;
    width: auto;
    margin: 8px 0 0;
  }

  body.kpc-foto-page .kpc-ana-fabric-side img {
    height: 72px;
  }

  body.kpc-foto-page .kpc-ana-lead {
    font-size: 14px;
    line-height: 1.45;
  }

  body.kpc-foto-page .kpc-vti,
  body.kpc-foto-page .kpc-situo {
    transform: none;
    margin-bottom: 0;
  }

  .kpc-vti-chs button {
    min-height: 40px;
    font-size: 15px;
  }

  .kpc-situo-ch button {
    height: 40px;
    font-size: 13px;
  }

  body.kpc-foto-page .kpc-vti-chs button {
    min-height: 42px;
    font-size: 16px;
  }

  body.kpc-foto-page .kpc-situo-ch button {
    height: 42px;
    font-size: 14px;
  }

  body.kpc-foto-page .kpc-vti small,
  body.kpc-foto-page .kpc-situo small {
    display: block;
  }

  body.kpc-foto-page .kpc-foto-foot {
    display: flex;
  }

  body.kpc-foto-page .kpc-foto-foot .kpc-legal {
    display: block;
  }

  .kpc-ana-side {
    width: min(280px, 100%);
    margin: 0 auto;
    position: static;
  }

  body.kpc-foto-page .kpc-ana-carta {
    margin-top: 10px;
  }

  .kpc-ana-work .kpc-remote,
  .kpc-vti,
  .kpc-situo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: static;
  }

  .kpc-ana-photos {
    grid-template-columns: 1fr;
  }

  .kpc-ana-lead {
    font-size: 15px;
  }

  body.kpc-album-home .kpc-ana-lead,
  body.kpc-album-home .kpc-kicker-proposal {
    display: none !important;
  }

  body.kpc-album-home .kpc-index-read {
    margin: 0 0 12px;
  }

  /* En teléfono el remoto/cuadro no se queda tapando la foto. */
  #kpc-ana-remote.is-float,
  #kpc-zip-remote.is-float,
  .kpc-ana-carta.is-float {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 236px;
    z-index: auto;
  }

  .kpc-remote-grab {
    display: none;
  }

  .kpc-prop-toolbar {
    margin: 10px 0 8px;
  }

  body.kpc-prop-body .kpc-top {
    flex-wrap: wrap;
  }

  body.kpc-prop-body .kpc-top-actions {
    width: 100%;
  }

  body.kpc-prop-body #kpc-ana-to-album {
    flex: 1 1 100%;
    order: -1;
    height: 44px;
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  body.kpc-prop-body .kpc-prop-pdf-wrap,
  body.kpc-prop-body .kpc-prop-pdf-wrap iframe,
  body.kpc-prop-body .kpc-prop-pdf-open {
    display: none !important;
  }

  body.kpc-foto-page .kpc-vti,
  body.kpc-foto-page .kpc-situo,
  .kpc-ana-work .kpc-vti,
  .kpc-ana-work .kpc-situo {
    max-width: 176px;
    padding: 8px 8px 10px;
  }

  body.kpc-area-gazebo-exterior .kpc-situo,
  body.kpc-zip-page .kpc-situo,
  #kpc-zip-remote .kpc-situo {
    max-width: 140px;
    padding: 8px 6px 8px;
  }

  body.kpc-foto-page .kpc-vti-chs button {
    min-height: 32px;
    font-size: 12px;
  }

  body.kpc-foto-page .kpc-situo-ch button,
  body.kpc-zip-page .kpc-situo-ch button {
    height: 30px;
    font-size: 10px;
  }

  body.kpc-foto-page .kpc-situo-pad button,
  body.kpc-zip-page .kpc-situo-pad button {
    height: 32px;
  }

  #kpc-ana-remote.is-float,
  #kpc-zip-remote.is-float {
    max-width: 176px;
  }
}

/* Teléfono de lado: la foto cabe y se puede bajar al control. */
@media (orientation: landscape) and (max-height: 600px) {
  .kpc-top {
    padding: 4px 10px;
    padding-top: max(4px, env(safe-area-inset-top));
  }

  body.kpc-foto-page .kpc-brand-name {
    font-size: 10px;
  }

  body.kpc-foto-page .kpc-music-dock {
    min-width: 88px;
    gap: 2px;
  }

  body.kpc-foto-page .kpc-music-vol-wrap {
    min-height: 28px;
  }

  body.kpc-foto-page .kpc-music-vol {
    height: 28px;
  }

  body.kpc-foto-page .kpc-music-vol::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6px;
  }

  body.kpc-foto-page .kpc-foto-main {
    padding: 8px 12px 12px;
  }

  body.kpc-foto-page .kpc-ana-intro {
    margin: 0 0 6px;
    gap: 6px 8px;
  }

  body.kpc-foto-page .kpc-ana-foto-title {
    font-size: 16px;
  }

  body.kpc-foto-page .kpc-ana-readmore-btn {
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  body.kpc-foto-page .kpc-ana-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(108px, 132px);
    align-items: start;
    gap: 8px 10px;
  }

  body.kpc-foto-page .kpc-ana-side {
    width: 100%;
    margin: 0;
    max-height: calc(100dvh - 72px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  body.kpc-foto-page .kpc-vti,
  body.kpc-foto-page .kpc-situo {
    max-width: 100%;
    transform-origin: top center;
  }

  body.kpc-area-master-room .kpc-vti,
  body.kpc-area-gazebo-exterior .kpc-situo,
  body.kpc-zip-page .kpc-situo {
    max-width: 100%;
    transform: none;
  }

  body.kpc-album-home .kpc-ana-photos {
    grid-template-columns: 1fr 1fr;
  }

  .kpc-portada {
    padding-top: 12px;
  }

  .kpc-portada-logo {
    width: min(280px, 46vw);
    margin: 4px auto 12px;
  }
}

/* Safari “sitio de escritorio” en iPhone: gana el teléfono, no el CSS de PC. */
html.kpc-is-phone,
html.kpc-is-phone body {
  overflow-x: hidden;
  max-width: 100%;
}

html.kpc-is-phone:has(body.kpc-album-home),
html.kpc-is-phone body.kpc-album-home {
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
  display: block !important;
}

html.kpc-is-phone body.kpc-album-home .kpc-page,
html.kpc-is-phone body.kpc-album-home #kpc-ana-album {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}

html.kpc-is-phone body.kpc-album-home .kpc-ana-photos {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
}

html.kpc-is-phone.kpc-foto-solo,
html.kpc-is-phone.kpc-foto-solo body.kpc-foto-page {
  height: 100% !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  background: #0a0d10 !important;
}

html.kpc-is-phone.kpc-foto-solo body.kpc-foto-page {
  display: flex !important;
  flex-direction: column !important;
}

html.kpc-is-phone .kpc-foto-solo-bar {
  display: none;
}

html.kpc-is-phone.kpc-foto-solo .kpc-foto-solo-bar {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #0a0d10;
}

html.kpc-is-phone.kpc-foto-solo .kpc-foto-solo-back {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #e4c98a, #8a7040);
  color: #1a1408;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

html.kpc-is-phone.kpc-foto-solo .kpc-foto-solo-name {
  min-width: 0;
  color: #e4c98a;
  font-weight: 700;
  font-size: 14px;
}

html.kpc-is-phone.kpc-foto-solo .kpc-top,
html.kpc-is-phone.kpc-foto-solo .kpc-ana-intro,
html.kpc-is-phone.kpc-foto-solo .kpc-foto-foot,
html.kpc-is-phone.kpc-foto-solo .kpc-ana-carta {
  display: none !important;
}

html.kpc-is-phone.kpc-foto-solo .kpc-foto-main {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 6px 10px 10px !important;
}

html.kpc-is-phone.kpc-foto-solo .kpc-ana-work {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  grid-template-columns: none !important;
  gap: 8px !important;
}

html.kpc-is-phone.kpc-land.kpc-foto-solo .kpc-ana-work {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 168px !important;
  align-items: center !important;
  gap: 8px 10px !important;
}

html.kpc-is-phone .kpc-prop-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

html.kpc-is-phone .kpc-prop-tab {
  width: 100%;
  text-align: center;
}

html.kpc-is-phone .kpc-situo-ch {
  grid-template-columns: 1fr 1fr !important;
}

html.kpc-is-phone .kpc-situo-ch button {
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px !important;
}

html.kpc-is-phone body.kpc-prop-body .kpc-prop-pdf-wrap,
html.kpc-is-phone body.kpc-prop-body .kpc-prop-pdf-wrap iframe,
html.kpc-is-phone body.kpc-prop-body .kpc-prop-pdf-open,
html.kpc-is-phone .kpc-prop-toolbar .kpc-prop-print {
  display: none !important;
}

html.kpc-is-phone.kpc-foto-solo body.kpc-foto-page .kpc-ana-stage {
  touch-action: pan-y !important;
  cursor: default;
}

html.kpc-is-phone.kpc-foto-solo body.kpc-foto-page .kpc-ana-stage.is-zoomed,
html.kpc-is-phone.kpc-foto-solo body.kpc-foto-page .kpc-ana-stage.is-dragging {
  touch-action: none !important;
}

html.kpc-is-phone.kpc-foto-solo:not(.kpc-land) .kpc-ana-print-sheet {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html.kpc-is-phone.kpc-foto-solo:not(.kpc-land) .kpc-ana-print-sheet,
html.kpc-is-phone.kpc-foto-solo:not(.kpc-land) .kpc-ana-zoom,
html.kpc-is-phone.kpc-foto-solo:not(.kpc-land) .kpc-ana-stage {
  max-width: 100% !important;
  max-height: calc(100dvh - 16.5rem) !important;
}

html.kpc-is-phone.kpc-land.kpc-foto-solo .kpc-ana-print-sheet {
  min-width: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html.kpc-is-phone.kpc-land.kpc-foto-solo .kpc-ana-zoom,
html.kpc-is-phone.kpc-land.kpc-foto-solo .kpc-ana-stage {
  max-width: 100% !important;
  max-height: calc(100dvh - 3.8rem) !important;
  margin-left: auto;
  margin-right: auto;
}

html.kpc-is-phone.kpc-foto-solo .kpc-ana-side {
  width: 168px !important;
  max-width: 168px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  display: flex !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

html.kpc-is-phone.kpc-foto-solo .kpc-vti,
html.kpc-is-phone.kpc-foto-solo .kpc-situo,
html.kpc-is-phone.kpc-foto-solo #kpc-ana-remote,
html.kpc-is-phone.kpc-foto-solo #kpc-ana-remote.is-float {
  max-width: 168px !important;
  width: 168px !important;
  transform: none !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
}

html.kpc-is-phone .kpc-vti-cap,
html.kpc-is-phone .kpc-situo-cap {
  display: none !important;
}

html.kpc-is-phone .kpc-vti-brand,
html.kpc-is-phone .kpc-situo-brand {
  margin: 0 !important;
  font-size: 8px !important;
  letter-spacing: 0.04em !important;
}

html.kpc-is-phone .kpc-vti-name,
html.kpc-is-phone .kpc-situo-name {
  margin: 0 0 4px !important;
  font-size: 8px !important;
}

html.kpc-is-phone .kpc-vti-lcd {
  min-height: 22px !important;
  margin-bottom: 6px !important;
  padding: 4px 8px !important;
}

html.kpc-is-phone .kpc-vti-lcd-line {
  font-size: 13px !important;
}

html.kpc-is-phone .kpc-vti-chs,
html.kpc-is-phone .kpc-vti-chs[data-cols="3"],
html.kpc-is-phone .kpc-vti-chs[data-cols="4"],
html.kpc-is-phone .kpc-vti-chs[data-cols="5"],
html.kpc-is-phone .kpc-situo-ch {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  gap: 4px !important;
  margin-bottom: 6px !important;
}

html.kpc-is-phone .kpc-vti-chs button,
html.kpc-is-phone .kpc-situo-ch button {
  min-width: 0 !important;
  min-height: 36px !important;
  height: 36px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px !important;
  padding: 4px 2px !important;
}

html.kpc-is-phone .kpc-vti-pad,
html.kpc-is-phone .kpc-situo-pad {
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 4px !important;
  margin-bottom: 4px !important;
}

html.kpc-is-phone .kpc-vti-pad button,
html.kpc-is-phone .kpc-situo-pad button {
  height: 36px !important;
  min-height: 36px !important;
}

html.kpc-is-phone .kpc-vti-spd,
html.kpc-is-phone .kpc-situo-spd {
  margin: 0 0 4px !important;
  font-size: 8px !important;
}

html.kpc-is-phone .kpc-vti-spd input[type="range"],
html.kpc-is-phone .kpc-situo-spd input[type="range"] {
  height: 22px !important;
}

html.kpc-is-phone .kpc-vti-batt {
  height: 30px !important;
  min-height: 30px !important;
  margin-bottom: 2px !important;
  font-size: 10px !important;
}

html.kpc-is-phone .kpc-vti small,
html.kpc-is-phone .kpc-situo small {
  font-size: 7px !important;
  margin: 0 !important;
}

html.kpc-is-phone .kpc-remote-grab {
  display: none !important;
}

html.kpc-is-phone.kpc-land body.kpc-foto-page .kpc-ana-zoom > img:first-of-type {
  object-fit: contain !important;
}

/* Safari “sitio de escritorio”: la barra tiene que caber igual. */
html.kpc-is-phone .kpc-top {
  flex-wrap: wrap !important;
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100%;
  gap: 8px;
}
html.kpc-is-phone .kpc-top-actions {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 1 !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 6px;
}
html.kpc-is-phone .kpc-nav-group + .kpc-nav-group {
  padding-left: 0;
  border-left: 0;
}
html.kpc-is-phone .kpc-lbl-long {
  display: none;
}
html.kpc-is-phone .kpc-music-dock {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
}
html.kpc-is-phone .kpc-music-btn {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 44px;
  padding: 0 14px !important;
  font-size: 12px;
}
html.kpc-is-phone .kpc-music-vol-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html.kpc-is-phone .kpc-music-dock:has(.kpc-music-btn[aria-pressed="false"]) .kpc-music-vol-wrap {
  display: none;
}
html.kpc-is-phone .kpc-music-vol {
  width: 100%;
  height: 44px;
  touch-action: none;
}
html.kpc-is-phone .kpc-music-vol::-webkit-slider-thumb {
  width: 32px;
  height: 32px;
  margin-top: -12px;
}
html.kpc-is-phone .kpc-music-vol::-moz-range-thumb {
  width: 32px;
  height: 32px;
}
html.kpc-is-phone .kpc-foto-main,
html.kpc-is-phone .kpc-ana-work,
html.kpc-is-phone .kpc-page {
  max-width: 100%;
  overflow-x: hidden;
}
html.kpc-is-phone body.kpc-foto-page .kpc-ana-carta {
  max-width: min(280px, 100%);
  margin-inline: auto;
}
