/* ===========================================================
   Keytrail — propiedades en la página web
   Tarjetas (destacadas, listado, similares), /propiedades y la ficha.
   Usa los colores y tipografías del cliente (variables de styles.css).
=========================================================== */
.kp-sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tarjeta ---------- */
.kp-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
@media (min-width: 640px){ .kp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px){ .kp-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kp-card{ display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.kp-card:hover{ color: var(--ink); }
.kp-foto{ position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: linear-gradient(160deg, #EFE9E1 0%, #DCD3C6 100%); }
.kp-foto img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kp-card:hover .kp-foto img{ transform: scale(1.03); }
.kp-card.is-cerrada .kp-foto img{ filter: saturate(.6); }
.kp-sinfoto{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.kp-badges{ position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.kp-badge{ display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.kp-badge.is-dark{ background: var(--ink); color: var(--white); }
.kp-badge.is-accent{ background: var(--primary); color: var(--on-primary); }
.kp-badge.is-line{ background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.kp-nfotos{ position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 18, 16, .72); color: #fff; font-size: 12px; }
.kp-txt{ display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.kp-precio{ font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 500; }
.kp-precio small, .kp-precio-g small{ font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); }
.kp-exp{ font-size: 13px; color: var(--muted); }
.kp-tit{ margin-top: 8px; font-size: 15.5px; line-height: 1.4; font-weight: 600; }
.kp-zona{ display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-soft); }
.kp-zona svg{ flex-shrink: 0; }
.kp-datos{ display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.kp-datos span{ display: inline-flex; align-items: center; gap: 6px; }
.kp-datos svg{ color: var(--muted); flex-shrink: 0; }

/* ---------- Sección "Propiedades destacadas" (página principal) ---------- */
.kp-sec-head{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.kp-sec-txt{ margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 639px){ .kp-ver-todas{ order: 3; width: 100%; } .kp-destacadas .kp-grid{ margin-bottom: 4px; } }

/* ---------- Página /propiedades ---------- */
.kp-pagina main{ padding-bottom: 24px; }
.kp-top .wrap{ padding-top: 28px; padding-bottom: 8px; }
.kp-top .eyebrow{ color: var(--primary); margin-bottom: 12px; }
.kp-top h1{ font-size: 34px; line-height: 1.12; }
.kp-buscar{ margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.kp-op{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--bg-alt); border-radius: 4px; max-width: 420px; }
.kp-op label{ position: relative; display: block; cursor: pointer; }
.kp-op input{ position: absolute; opacity: 0; pointer-events: none; }
.kp-op span{ display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 3px; font-size: 14.5px; color: var(--ink-soft); }
.kp-op input:checked + span{ background: var(--ink); color: var(--white); font-weight: 600; }
.kp-op input:focus-visible + span{ outline: 2px solid var(--primary); outline-offset: 2px; }
.kp-q{ display: flex; gap: 8px; }
.kp-q-in{ flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.kp-q-in:focus-within{ border-color: var(--ink); }
.kp-q-in input{ flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.kp-q-btn{ height: 52px; }
@media (max-width: 520px){ .kp-q-btn{ padding: 0 16px; } }
.kp-chips{ display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.kp-chips::-webkit-scrollbar{ display: none; }
.kp-chip{ flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 14px; white-space: nowrap; }
.kp-chip:hover{ color: var(--ink); border-color: var(--ink); }
.kp-chip.is-on{ background: var(--ink); border-color: var(--ink); color: var(--white); }
.kp-chip b{ display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; }
.kp-chip-filtros{ border-color: var(--ink); font-weight: 600; }
.kp-chip-limpiar{ border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }

.kp-res .wrap{ padding-top: 18px; }
.kp-res-wrap{ display: flex; gap: 40px; align-items: flex-start; }
.kp-res-main{ flex: 1; min-width: 0; }
.kp-res-bar{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; min-height: 44px; }
.kp-total{ font-size: 15px; color: var(--ink-soft); }
.kp-total b{ color: var(--ink); }
.kp-orden select{ height: 42px; padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23211E1B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; color: var(--ink); }
.kp-pags{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 44px; }
.kp-pags a:last-child{ justify-self: end; }
.kp-pag-n{ font-size: 14px; color: var(--ink-soft); }
.kp-vacio{ padding: 44px 24px; border: 1px dashed var(--line); text-align: center; background: var(--white); }
.kp-vacio b{ display: block; font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.kp-vacio p{ margin: 10px auto 0; max-width: 46ch; color: var(--ink-soft); line-height: 1.6; }
.kp-vacio-btns{ display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Panel de filtros: hoja desde abajo en el celular, columna fija en la compu */
.kp-panel{ display: none; }
.kp-fform{ display: flex; flex-direction: column; min-height: 0; }
.kp-panel-top{ display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.kp-panel-top b{ font-size: 16px; }
.kp-x{ width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border-radius: 50%; }
.kp-x:hover{ background: var(--bg-alt); }
.kp-panel-in{ flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 8px; }
.kp-fsec{ border-bottom: 1px solid var(--line); }
.kp-fsec:last-child{ border-bottom: 0; }
.kp-fsec summary{ display: flex; align-items: center; gap: 10px; min-height: 56px; cursor: pointer; list-style: none; }
.kp-fsec summary::-webkit-details-marker{ display: none; }
.kp-fsec summary:focus-visible{ outline: 2px solid var(--primary); outline-offset: 2px; }
.kp-fsec-t{ font-size: 14.5px; font-weight: 600; flex-shrink: 0; }
.kp-fsec-r{ flex: 1; min-width: 0; text-align: right; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-fsec[open] .kp-fsec-r{ visibility: hidden; }
.kp-fsec summary svg{ flex-shrink: 0; color: var(--ink-soft); transition: transform .2s; }
.kp-fsec[open] summary svg{ transform: rotate(180deg); }
.kp-fsec-in{ padding: 2px 0 18px; }
.kp-fchips{ display: flex; flex-wrap: wrap; gap: 8px; }
.kp-fchips label{ position: relative; display: inline-flex; cursor: pointer; }
.kp-fchips input{ position: absolute; opacity: 0; pointer-events: none; }
.kp-fchips span{ display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; color: var(--ink); }
.kp-fchips input:checked + span{ background: var(--ink); border-color: var(--ink); color: var(--white); }
.kp-fchips input:focus-visible + span{ outline: 2px solid var(--primary); outline-offset: 2px; }
.kp-fmon{ margin-bottom: 12px; }
.kp-dos{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kp-num{ display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.kp-num input{ height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); width: 100%; }
.kp-num input:focus{ outline: none; border-color: var(--ink); }
.kp-tog{ position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; font-size: 15px; }
.kp-tog > span{ display: flex; flex-direction: column; gap: 2px; }
.kp-tog small{ font-size: 13px; color: var(--muted); }
.kp-tog input{ position: absolute; opacity: 0; pointer-events: none; }
.kp-tog i{ flex-shrink: 0; position: relative; width: 46px; height: 28px; border-radius: 999px; background: #D9D3C7; transition: background .15s; }
.kp-tog i::after{ content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.kp-tog input:checked + i{ background: var(--ink); }
.kp-tog input:checked + i::after{ transform: translateX(18px); background: var(--primary); }
.kp-tog input:focus-visible + i{ outline: 2px solid var(--primary); outline-offset: 2px; }
.kp-panel-foot{ display: flex; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.kp-panel-foot .btn{ flex: 1; white-space: nowrap; }
.kp-panel-foot .btn-outline{ flex: 0 0 auto; padding: 0 18px; }
@media (max-width: 999px){
  .kp-panel.is-open{ display: block; position: fixed; inset: 0; z-index: 100; background: rgba(20, 18, 16, .45); }
  .kp-panel.is-open .kp-fform{ position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; height: auto; background: var(--white); border-radius: 14px 14px 0 0; animation: kpSube .22s ease; }
  body.kp-bloq{ overflow: hidden; }
}
@keyframes kpSube{ from{ transform: translateY(40px); opacity: .4; } to{ transform: none; opacity: 1; } }
@media (min-width: 1000px){
  .kp-chip-filtros{ display: none; }
  .kp-panel{ display: flex; flex-direction: column; flex: 0 0 300px; position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
  .kp-panel .kp-fform{ flex: 1 1 auto; }
  .kp-res-wrap{ min-height: min(640px, calc(100vh - 116px)); }
  .kp-panel-top .kp-x{ display: none; }
  .kp-panel-top{ padding: 16px 20px; }
  .kp-panel-foot{ position: sticky; bottom: 0; }
  .kp-top h1{ font-size: 44px; }
  .kp-buscar{ flex-direction: row; align-items: center; }
  .kp-op{ flex: 0 0 340px; }
  .kp-q{ flex: 1; }
  .kp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-destacadas .kp-grid, .kp-sim .kp-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1240px){ .kp-res-main .kp-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Ficha ---------- */
.kp-ficha{ padding-top: 16px; }
.kp-migas{ display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.kp-migas a{ color: var(--ink-soft); }
.kp-migas a:hover{ color: var(--primary); }
.kp-gal{ position: relative; margin: 0 -20px; }
.kp-gal-track{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.kp-gal-track::-webkit-scrollbar{ display: none; }
.kp-g{ flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; padding: 0; background: #E2DAD0; cursor: zoom-in; overflow: hidden; display: block; }
.kp-g img{ width: 100%; height: 100%; object-fit: cover; }
.kp-g.kp-sinfoto{ display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: default; }
.kp-gal-n{ position: absolute; right: 14px; bottom: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(20, 18, 16, .72); color: #fff; font-size: 12.5px; pointer-events: none; }
.kp-gal-btns{ position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.kp-gal-btn{ display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.kp-solo-compu{ display: none; }
.kp-share{ position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
@media (min-width: 760px){
  .kp-gal{ margin: 0; }
  .kp-gal-track{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: min(56vw, 520px); overflow: hidden; border-radius: 4px; }
  .kp-g{ aspect-ratio: auto; height: 100%; }
  .kp-g:first-child{ grid-column: span 2; grid-row: span 2; }
  .kp-g:nth-child(n+6){ display: none; }
  .kp-gal.is-una .kp-gal-track{ grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .kp-gal.is-una .kp-g{ grid-column: auto; grid-row: auto; }
  .kp-gal-track:has(.kp-g:nth-child(2)):not(:has(.kp-g:nth-child(4))){ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kp-gal-n{ display: none; }
  .kp-gal-btns{ left: auto; right: 16px; bottom: 16px; }
  .kp-solo-compu{ display: inline-flex; }
}

.kp-cols{ display: flex; flex-direction: column; gap: 40px; margin-top: 24px; }
.kp-main{ min-width: 0; }
.kp-badges-f{ display: flex; flex-wrap: wrap; gap: 6px; }
.kp-precio-g{ margin-top: 16px; font-family: var(--font-display); font-size: 40px; line-height: 1.05; font-weight: 500; }
.kp-exp-g{ margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }
.kp-h1{ margin-top: 16px; font-family: var(--font-body); font-size: 21px; line-height: 1.35; font-weight: 600; }
.kp-zona-g{ display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.kp-zona-g svg{ flex-shrink: 0; }
.kp-datos-g{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.kp-datos-g li{ display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.kp-datos-g svg{ color: var(--primary); margin-bottom: 4px; }
.kp-datos-g b{ font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1; }
.kp-datos-g span{ font-size: 12.5px; color: var(--ink-soft); }
@media (min-width: 760px){ .kp-datos-g{ grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); } }
.kp-bloque{ margin-top: 40px; }
.kp-bloque h2{ font-size: 26px; margin-bottom: 14px; }
.kp-desc p{ font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }
.kp-desc p + p{ margin-top: 12px; }
.kp-desc.is-corta{ max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.kp-leer{ margin-top: 10px; height: 40px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.kp-car{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 640px){ .kp-car{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.kp-car h3{ font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.kp-car ul{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
@media (min-width: 640px){ .kp-car ul{ grid-template-columns: minmax(0, 1fr); } }
.kp-car li{ display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.kp-car li svg{ color: var(--primary); flex-shrink: 0; }
.kp-mas{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (min-width: 760px){ .kp-mas{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kp-mas div{ padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.kp-mas dt{ font-size: 12.5px; color: var(--muted); }
.kp-mas dd{ margin: 3px 0 0; font-size: 15px; font-weight: 500; }
.kp-mapa{ position: relative; height: 320px; overflow: hidden; border-radius: 3px; background: #E7E4DC; border: 1px solid var(--line); }
.kp-mapa iframe{ width: 100%; height: 100%; border: 0; display: block; }
.kp-mapa-txt{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.kp-mapa-txt a{ font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.kp-aside{ scroll-margin-top: 96px; }
.kp-ag{ padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.kp-ag-top{ display: flex; align-items: center; gap: 14px; }
.kp-ag-top b{ display: block; font-size: 17px; }
.kp-ag-top small{ display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-soft); }
.kp-ag-foto{ width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.kp-ag-ini{ display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft-2); color: var(--primary-dark); font-family: var(--font-display); font-size: 26px; }
.kp-ag-nota{ font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.kp-form{ display: flex; flex-direction: column; gap: 12px; }
.kp-campo{ display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.kp-campo em{ font-style: normal; font-weight: 400; color: var(--muted); }
.kp-campo input, .kp-campo textarea{ width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font: inherit; font-size: 16px; color: var(--ink); line-height: 1.45; }
.kp-campo input{ height: 48px; padding: 0 13px; }
.kp-campo textarea{ resize: vertical; min-height: 92px; }
.kp-campo input:focus, .kp-campo textarea:focus{ outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(33,30,27,.06); }
.kp-motivos{ border: 0; padding: 0; margin: 0; min-width: 0; }
.kp-motivos legend{ padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.kp-motivos .kp-fchips span{ min-height: 38px; font-size: 13.5px; }
.kp-ancho{ width: 100%; }
.kp-wa{ gap: 8px; }
.kp-nota, .kp-cod{ font-size: 13px; color: var(--muted); text-align: center; }
.kp-err{ font-size: 14px; color: var(--error); background: var(--error-bg); border: 1px solid var(--error-border); padding: 10px 12px; border-radius: 3px; }
.kp-ok{ padding: 18px; background: var(--primary-soft); border-radius: 3px; text-align: center; }
.kp-ok b{ display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.kp-ok p{ margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }
.kp-sim{ padding-top: 8px; border-top: 1px solid var(--line); padding-top: 36px; margin-top: 56px; }

/* Barra fija del celular (WhatsApp + Consultar) */
.kp-barra{ position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 248, 245, .97); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.kp-barra .btn{ flex: 1; height: 50px; gap: 8px; }
.kp-pagina:has(.kp-barra) footer{ padding-bottom: 80px; }
@media (min-width: 1000px){
  .kp-barra{ display: none; }
  .kp-pagina:has(.kp-barra) footer{ padding-bottom: 0; }
  .kp-cols{ flex-direction: row; align-items: flex-start; gap: 56px; margin-top: 36px; }
  .kp-main{ flex: 1; }
  .kp-aside{ flex: 0 0 380px; position: sticky; top: 100px; }
  .kp-ag{ box-shadow: 0 14px 40px rgba(33, 30, 27, .07); }
  .kp-precio-g{ font-size: 48px; }
  .kp-h1{ font-size: 26px; }
}

/* ---------- Galería a pantalla completa ---------- */
.kp-lb{ width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0E0D0C; color: #fff; overflow: hidden; }
.kp-lb[open]{ display: flex; flex-direction: column; }
.kp-lb::backdrop{ background: #0E0D0C; }
.kp-lb-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; flex-shrink: 0; }
.kp-lb-n{ font-size: 14px; font-weight: 600; min-width: 64px; }
.kp-lb-x{ color: #fff; }
.kp-lb-x:hover{ background: rgba(255,255,255,.12); }
.kp-lb-tabs{ display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.kp-lb-tabs button{ display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; color: #D8D2C8; font-size: 13.5px; font-weight: 600; }
.kp-lb-tabs button[aria-selected="true"]{ background: #fff; color: #111; }
.kp-lb-fotos{ position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.kp-lb-track{ flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.kp-lb-track::-webkit-scrollbar{ display: none; }
.kp-lb-track figure{ flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 0 0 8px; touch-action: pan-x pinch-zoom; }
.kp-lb-track img{ max-width: 100%; max-height: 100%; object-fit: contain; }
.kp-lb-nav{ position: absolute; top: calc(50% - 60px); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.kp-lb-nav:hover{ background: rgba(255,255,255,.24); }
.kp-lb-nav.is-izq{ left: 14px; }
.kp-lb-nav.is-der{ right: 14px; }
@media (max-width: 759px){ .kp-lb-nav{ width: 44px; height: 44px; background: rgba(0,0,0,.35); } .kp-lb-nav.is-izq{ left: 6px; } .kp-lb-nav.is-der{ right: 6px; } }
.kp-lb-mini{ flex-shrink: 0; display: flex; gap: 6px; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.kp-lb-mini button{ flex: 0 0 64px; height: 48px; padding: 0; border-radius: 4px; overflow: hidden; opacity: .5; border: 2px solid transparent; background: #222; }
.kp-lb-mini button.is-on{ opacity: 1; border-color: var(--primary); }
.kp-lb-mini img{ width: 100%; height: 100%; object-fit: cover; }
.kp-lb-video{ flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kp-lb-vid{ position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; background: #000; }
.kp-lb-vid iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.kp-lb-abierto{ overflow: hidden; }
