/* ============================================================
   Estilos de los componentes
   Los usa tanto el lienzo del editor como la web publicada,
   para que lo que ves editando sea lo que se ve de verdad.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--f-texto); color: var(--c-texto); background: var(--c-fondo);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Contenedores ---------- */
.k-caja { margin: 0 auto; padding-left: 22px; padding-right: 22px; width: 100%; position: relative; z-index: 1; }
.k-ancho-estrecho { max-width: var(--ancho-estrecho); }
.k-ancho-normal   { max-width: var(--ancho-normal); }
.k-ancho-ancho    { max-width: var(--ancho-ancho); }
.k-ancho-completo { max-width: none; padding-left: 0; padding-right: 0; }

.k-seccion { position: relative; }
.k-overlay { position: absolute; inset: 0; background: #000; z-index: 0; }

.k-cols { display: grid; align-items: start; }
.k-rep-1-1     { grid-template-columns: 1fr 1fr; }
.k-rep-1-1-1   { grid-template-columns: repeat(3, 1fr); }
.k-rep-1-1-1-1 { grid-template-columns: repeat(4, 1fr); }
.k-rep-2-1     { grid-template-columns: 2fr 1fr; }
.k-rep-1-2     { grid-template-columns: 1fr 2fr; }
.k-rep-3-1     { grid-template-columns: 3fr 1fr; }
.k-rep-1-3     { grid-template-columns: 1fr 3fr; }
.k-vert-centro  { align-items: center; }
.k-vert-abajo   { align-items: end; }
.k-vert-estirar { align-items: stretch; }

.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }

.k-hueco-0 { gap: 0; }
.k-hueco-s { gap: 10px; }
.k-hueco-m { gap: 22px; }
.k-hueco-l { gap: 40px; }

/* ---------- Texto ---------- */
.k-tit { margin: 0 0 .4em; font-weight: 400; line-height: 1.18; }
.k-tit-serif { font-family: var(--f-titulo); }
.k-tit-sans  { font-family: var(--f-texto); font-weight: 700; letter-spacing: -.01em; }
.k-tit-destacado { font-family: var(--f-titulo); letter-spacing: .16em; text-transform: uppercase; font-size: .82em; }
h1.k-tit { font-size: clamp(2rem, 5vw, 3.4rem); }
h2.k-tit { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3.k-tit { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h4.k-tit { font-size: 1.2rem; }
h5.k-tit, h6.k-tit { font-size: 1.02rem; }

.k-txt p { margin: 0 0 1em; }
.k-txt p:last-child { margin-bottom: 0; }
.k-txt-pequeno { font-size: .88rem; }
.k-txt-grande  { font-size: 1.14rem; }
.k-txt a { color: var(--c-acento); }

.k-cita { margin: 0; padding-left: 20px; border-left: 3px solid var(--c-acento); font-family: var(--f-titulo); font-size: 1.2rem; }
.k-cita cite { display: block; margin-top: 10px; font-size: .82rem; font-style: normal;
  color: var(--c-texto-suave); letter-spacing: .08em; text-transform: uppercase; font-family: var(--f-texto); }

.k-lista { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 9px 26px; }
.k-lista li { display: flex; gap: 10px; align-items: flex-start; }
.k-lista .k-svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--c-acento); }

/* ---------- Imágenes ---------- */
.k-figura { margin: 0; }
.k-figura figcaption { margin-top: 8px; font-size: .82rem; color: var(--c-texto-suave); }
.k-img { width: 100%; border-radius: inherit; }
.k-prop-1-1  { aspect-ratio: 1;    object-fit: cover; }
.k-prop-4-3  { aspect-ratio: 4/3;  object-fit: cover; }
.k-prop-3-2  { aspect-ratio: 3/2;  object-fit: cover; }
.k-prop-16-9 { aspect-ratio: 16/9; object-fit: cover; }
.k-prop-3-4  { aspect-ratio: 3/4;  object-fit: cover; }
.k-prop-2-3  { aspect-ratio: 2/3;  object-fit: cover; }
.k-prop-9-16 { aspect-ratio: 9/16; object-fit: cover; }
.k-foco-arriba    { object-position: top; }
.k-foco-abajo     { object-position: bottom; }
.k-foco-izquierda { object-position: left; }
.k-foco-derecha   { object-position: right; }

/* ---------- Galerías ---------- */
.k-gal { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.k-gal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border-radius: 8px;
  transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.k-gal-i { overflow: hidden; border-radius: 8px; }
.k-gal-i:hover img { transform: scale(1.05); }
.k-gal-mosaico { display: block; column-count: var(--cols, 3); column-gap: 10px; }
.k-gal-mosaico .k-gal-i { break-inside: avoid; margin-bottom: 10px; }
.k-gal-mosaico img { aspect-ratio: auto; height: auto; }
.k-gal-carrusel, .k-gal-tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.k-gal-carrusel .k-gal-i, .k-gal-tira .k-gal-i { flex: 0 0 min(74%, 330px); scroll-snap-align: center; }
.k-gal-justificada { display: flex; flex-wrap: wrap; }
.k-gal-justificada .k-gal-i { flex: 1 1 200px; }
.k-gal-justificada img { aspect-ratio: 3/2; }

/* ---------- Vídeo ---------- */
.k-video { position: relative; width: 100%; overflow: hidden; border-radius: inherit; }
.k-video.k-prop-16-9 { aspect-ratio: 16/9; }
.k-video.k-prop-4-3  { aspect-ratio: 4/3; }
.k-video.k-prop-1-1  { aspect-ratio: 1; }
.k-video.k-prop-9-16 { aspect-ratio: 9/16; max-width: 420px; margin: 0 auto; }
.k-video iframe, .k-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; object-fit: cover; }

/* ---------- Antes / después ---------- */
.k-comp { position: relative; overflow: hidden; border-radius: var(--radio); user-select: none; }
.k-comp img { width: 100%; display: block; }
.k-comp-b { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.k-comp-b img { width: 100vw; max-width: none; height: 100%; object-fit: cover; }
.k-comp-tira { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff;
  cursor: ew-resize; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.k-comp-tira::after { content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #333; }
.k-comp em { position: absolute; bottom: 12px; background: rgba(0,0,0,.55); color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: .74rem; font-style: normal; letter-spacing: .05em; }
.k-comp-e1 { left: 12px; } .k-comp-e2 { right: 12px; }

/* ---------- Botones ---------- */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 30px; border-radius: 999px; text-decoration: none; font-weight: 600;
  font-size: .88rem; letter-spacing: .04em; cursor: pointer; transition: all .2s; border: 1.5px solid transparent; }
.k-btn-primario   { background: var(--c-acento); color: #fff; }
.k-btn-primario:hover { filter: brightness(.92); transform: translateY(-1px); }
.k-btn-secundario { background: var(--c-primario); color: #fff; }
.k-btn-contorno   { border-color: currentColor; color: inherit; }
.k-btn-contorno:hover { background: var(--c-acento); border-color: var(--c-acento); color: #fff; }
.k-btn-texto { padding: 6px 0; border-radius: 0; border-bottom: 1.5px solid currentColor; }
.k-btn-s { padding: 9px 20px; font-size: .8rem; }
.k-btn-l { padding: 16px 40px; font-size: .96rem; }
.k-btn-full { width: 100%; }
.k-btn .k-svg { width: 18px; height: 18px; }

.k-iconos { display: flex; gap: 12px; flex-wrap: wrap; }
.k-seccion[style*="text-align:center"] .k-iconos,
.k-titulo + .k-iconos { justify-content: inherit; }
.k-ico { display: grid; place-items: center; color: inherit; text-decoration: none; transition: all .2s; }
.k-ico:hover { color: var(--c-acento); transform: translateY(-2px); }
.k-ico-s .k-svg { width: 19px; height: 19px; }
.k-ico-m .k-svg { width: 24px; height: 24px; }
.k-ico-l .k-svg { width: 31px; height: 31px; }
.k-icoforma-circulo .k-ico, .k-icoforma-cuadrado .k-ico {
  width: 44px; height: 44px; border: 1px solid currentColor; }
.k-icoforma-circulo .k-ico { border-radius: 50%; }
.k-icoforma-cuadrado .k-ico { border-radius: 10px; }

/* ---------- Tarjetas ---------- */
.k-card { background: var(--c-fondo); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radio);
  overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all .28s; }
.k-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(50,35,25,.11); }
.k-card-img { position: relative; }
.k-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.k-card-etq { position: absolute; top: 11px; left: 11px; background: var(--c-acento); color: #fff;
  padding: 3px 11px; border-radius: 20px; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; }
.k-card-cuerpo { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.k-card-cuerpo h3 { margin: 0; font-family: var(--f-titulo); font-weight: 400; font-size: 1.22rem; }
.k-card-cuerpo p { margin: 0; color: var(--c-texto-suave); font-size: .92rem; }
.k-card-precio { font-family: var(--f-titulo); font-size: 1.7rem; color: var(--c-acento); }
.k-card-ico .k-svg { width: 30px; height: 30px; color: var(--c-acento); }
.k-card .k-btn { margin-top: auto; }

/* ---------- Acordeón y pestañas ---------- */
.k-acc { border-bottom: 1px solid rgba(0,0,0,.09); }
.k-acc summary { padding: 17px 30px 17px 0; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
.k-acc summary::-webkit-details-marker { display: none; }
.k-acc summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--c-acento); transition: transform .25s; }
.k-acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.k-acc-c { padding: 0 0 18px; color: var(--c-texto-suave); }

.k-tabs-b { display: flex; gap: 5px; border-bottom: 1px solid rgba(0,0,0,.1); margin-bottom: 22px; flex-wrap: wrap; }
.k-tab { background: none; border: none; padding: 11px 20px; cursor: pointer; font-weight: 600;
  font-size: .9rem; color: var(--c-texto-suave); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.k-tab.on { color: var(--c-acento); border-bottom-color: var(--c-acento); }

/* ---------- Cifras y cuenta atrás ---------- */
.k-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px; }
.k-cifra { text-align: center; }
.k-cifra b { display: block; font-family: var(--f-titulo); font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 400; color: var(--c-acento); line-height: 1; }
.k-cifra span { display: block; margin-top: 7px; font-size: .8rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--c-texto-suave); }

.k-cuenta { text-align: center; }
.k-cuenta-t { margin: 0 0 12px; letter-spacing: .09em; text-transform: uppercase; font-size: .8rem; color: var(--c-texto-suave); }
.k-cuenta-n { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.k-cuenta-n div { min-width: 74px; }
.k-cuenta-n b { display: block; font-family: var(--f-titulo); font-size: 2.2rem; font-weight: 400; color: var(--c-acento); }
.k-cuenta-n span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texto-suave); }

/* ---------- Otros ---------- */
.k-mapa { width: 100%; border: none; border-radius: var(--radio); display: block; }
.k-forma { height: 60px; width: 100%; }
.k-forma-ola      { background: currentColor; mask: radial-gradient(circle at 50% 0, transparent 70%, #000 71%) 0 0/50px 60px repeat-x; }
.k-forma-curva    { background: currentColor; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.k-forma-diagonal { background: linear-gradient(to bottom right, transparent 49.6%, currentColor 50%); }
.k-forma-zigzag   { background: currentColor; mask: conic-gradient(from -45deg at 50% 0, #000 90deg, transparent 0) 0 0/44px 60px repeat-x; }

/* ---------- Animaciones al aparecer ---------- */
.anim { opacity: 0; transition: opacity .7s ease var(--d,0ms), transform .7s cubic-bezier(.2,.8,.3,1) var(--d,0ms); }
.anim-fade     { }
.anim-fadeUp   { transform: translateY(28px); }
.anim-fadeDown { transform: translateY(-28px); }
.anim-slideIzq { transform: translateX(-34px); }
.anim-slideDer { transform: translateX(34px); }
.anim-zoom     { transform: scale(.93); }
.anim-reveal   { clip-path: inset(0 100% 0 0); opacity: 1; }
.anim.visible  { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .anim { opacity: 1; transform: none; transition: none; clip-path: none; } }

/* ---------- Solo dentro del editor ---------- */
body.editando { min-height: 100vh; }
/* Mientras editas, lo que lleva animación se ve ya puesto: si no,
   estarías trabajando sobre elementos invisibles. */
body.editando .anim { opacity: 1; transform: none; clip-path: none; transition: none; }
body.editando [data-c] { position: relative; }
body.editando [data-c]:hover { outline: 1px dashed rgba(184,132,106,.55); outline-offset: -1px; }
body.editando [data-oculto="1"] { opacity: .35; }
body.editando [data-oculto="1"]::after { content: 'oculto'; position: absolute; top: 3px; right: 3px;
  background: #555; color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; letter-spacing: .05em; z-index: 5; }
body.editando [data-bloqueado="1"]::before { content: '🔒'; position: absolute; top: 3px; left: 3px; font-size: 11px; z-index: 5; }
body.editando [data-edit] { cursor: text; }
body.editando [contenteditable="true"] { outline: 2px solid var(--c-acento); outline-offset: 3px; border-radius: 3px; }
body.editando [data-zona="1"]:empty { min-height: 70px; border: 1px dashed rgba(184,132,106,.5);
  border-radius: 8px; display: grid; place-items: center; }
body.editando [data-zona="1"]:empty::after { content: 'Suelta elementos aquí'; font-size: .78rem; color: rgba(0,0,0,.35); }
.k-vacio { padding: 22px; text-align: center; color: rgba(0,0,0,.35); font-size: .84rem;
  border: 1px dashed rgba(0,0,0,.16); border-radius: 9px; }
.lienzo-vacio { min-height: 60vh; display: grid; place-items: center; color: rgba(0,0,0,.3); font-size: .95rem; }

/* ---------- Móvil ---------- */
@media (max-width: 780px) {
  .k-cols, .k-rep-1-1, .k-rep-1-1-1, .k-rep-1-1-1-1, .k-rep-2-1, .k-rep-1-2, .k-rep-3-1, .k-rep-1-3 {
    grid-template-columns: 1fr;
  }
  .k-gal { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); }
  .k-gal-mosaico { column-count: 2; }
  .k-caja { padding-left: 17px; padding-right: 17px; }
}

/* ============================================================
   Formularios
   ============================================================ */
.kf { display: grid; gap: 0; }
.kf-desc { color: var(--c-texto-suave); margin: 0 0 18px; }
.kf-paso { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; }
.kf-campo { grid-column: span 6; }
.kf-mitad { grid-column: span 3; }
.kf-tercio { grid-column: span 2; }
.kf-campo > label { display: block; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--c-texto-suave); font-weight: 700; margin-bottom: 6px; }
.kf-campo > label i { color: var(--c-error); font-style: normal; }
.kf input[type=text], .kf input[type=email], .kf input[type=tel], .kf input[type=number],
.kf input[type=date], .kf input[type=time], .kf input[type=datetime-local], .kf input[type=file],
.kf select, .kf textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 10px;
  background: #fff; font: inherit; color: inherit; }
.kf textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.kf input:focus, .kf select:focus, .kf textarea:focus {
  outline: none; border-color: var(--c-acento); box-shadow: 0 0 0 3px rgba(184,132,106,.16); }
.kf-ayuda { display: block; color: var(--c-texto-suave); font-size: .78rem; margin-top: 5px; line-height: 1.45; }
.kf-error { display: none; color: var(--c-error); font-size: .8rem; margin-top: 5px; }
.kf-campo.mal .kf-error { display: block; }
.kf-campo.mal input, .kf-campo.mal select, .kf-campo.mal textarea { border-color: var(--c-error); }

.kf-ops { display: grid; gap: 8px; }
.kf-op, .kf-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .94rem; }
.kf-op input, .kf-consent input { width: auto; margin-top: 3px; flex-shrink: 0; }
.kf-consent i { color: var(--c-error); font-style: normal; }

.kf-switch { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.kf-switch input { display: none; }
.kf-palanca { width: 44px; height: 25px; border-radius: 20px; background: rgba(0,0,0,.18);
  position: relative; transition: background .2s; flex-shrink: 0; }
.kf-palanca::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: transform .2s; }
.kf-switch input:checked + .kf-palanca { background: var(--c-acento); }
.kf-switch input:checked + .kf-palanca::after { transform: translateX(19px); }

.kf-nota h3 { font-family: var(--f-titulo); font-weight: 400; font-size: 1.25rem; margin: 12px 0 4px; }
.kf-nota p { color: var(--c-texto-suave); margin: 0; }
.kf-trampa { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.kf-firma canvas { width: 100%; height: 170px; border: 1px dashed rgba(0,0,0,.22);
  border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.kf-borrar-firma { margin-top: 7px; background: none; border: none; color: var(--c-acento);
  cursor: pointer; font: inherit; font-size: .82rem; text-decoration: underline; }

.kf-progreso { margin-bottom: 24px; }
.kf-barra { height: 4px; background: rgba(0,0,0,.09); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.kf-barra i { display: block; height: 100%; background: var(--c-acento); transition: width .4s cubic-bezier(.2,.8,.3,1); }
.kf-progreso ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.kf-progreso li { display: flex; align-items: center; gap: 7px; font-size: .8rem;
  color: var(--c-texto-suave); flex: 1; min-width: 110px; }
.kf-progreso li b { width: 25px; height: 25px; border-radius: 50%; background: rgba(0,0,0,.08);
  display: grid; place-items: center; font-size: .76rem; flex-shrink: 0; font-weight: 700; }
.kf-progreso li.on { color: var(--c-texto); font-weight: 600; }
.kf-progreso li.on b { background: var(--c-acento); color: #fff; }
.kf-progreso li.hecho b { background: var(--c-exito); color: #fff; }

.kf-pie { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.kf-aviso { margin-top: 16px; padding: 14px 17px; border-radius: 11px; font-size: .92rem; line-height: 1.55; }
.kf-aviso.bien { background: #e8f1e8; color: #2f6a2d; }
.kf-aviso.mal  { background: #f9e7e4; color: #a3392b; }
.kf-enviando { opacity: .6; pointer-events: none; }

@media (max-width: 700px) {
  .kf-mitad, .kf-tercio { grid-column: span 6; }
}

/* Un display: grid o flex gana al atributo "hidden" del HTML.
   Sin esto, los pasos de un formulario se verían todos a la vez. */
.kf-paso[hidden], .kf-pie[hidden], .kf-progreso[hidden],
.kf-campo[hidden], .kf-ops[hidden], .kf [hidden] { display: none !important; }

/* ============================================================
   Ventanas emergentes
   ============================================================ */
.kp { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 20px; }
.kp[hidden] { display: none !important; }
.kp-fondo { position: absolute; inset: 0; background: rgba(30,22,18,.62); animation: kpFade .3s ease; }
.kp-caja { position: relative; background: var(--c-fondo); border-radius: var(--radio); width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 34px 32px; box-shadow: 0 26px 70px rgba(30,20,14,.4);
  animation: kpSube .38s cubic-bezier(.2,.9,.3,1.05); }
.kp-pequeno { max-width: 420px; } .kp-medio { max-width: 620px; } .kp-grande { max-width: 900px; }
.kp-cerrar { position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 1.2rem; cursor: pointer; color: var(--c-texto-suave); line-height: 1; padding: 6px; }
.kp-cerrar:hover { color: var(--c-texto); }
@keyframes kpFade { from { opacity: 0 } }
@keyframes kpSube { from { opacity: 0; transform: translateY(26px) scale(.97) } }
@media (max-width: 600px) { .kp-caja { padding: 28px 20px; } }

/* ============================================================
   Menús, cabecera y pie
   ============================================================ */
.km ul { list-style: none; margin: 0; padding: 0; }
.km-horizontal > ul { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.km-vertical > ul { display: grid; gap: 10px; }
.km li { position: relative; }
.km a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 0; font-size: .9rem; transition: color .18s; }
.km a:hover { color: var(--c-acento); }
.km-destacado > a { background: var(--c-acento); color: #fff; padding: 9px 20px; border-radius: 999px; }
.km-destacado > a:hover { filter: brightness(.92); color: #fff; }
.km-flecha { font-style: normal; font-size: .7em; opacity: .6; }
.km .k-svg { width: 17px; height: 17px; }

.km-n2, .km-mega { position: absolute; top: 100%; left: 0; background: var(--c-fondo);
  border: 1px solid rgba(0,0,0,.09); border-radius: var(--radio); padding: 12px 16px;
  min-width: 210px; box-shadow: 0 14px 44px rgba(50,35,25,.14); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(7px); transition: all .2s; }
.km-vertical .km-n2 { position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: none; padding: 6px 0 6px 16px; }
.km li:hover > .km-n2, .km li:hover > .km-mega,
.km li:focus-within > .km-n2, .km li:focus-within > .km-mega {
  opacity: 1; visibility: visible; transform: translateY(0); }
.km-mega { left: 50%; transform: translateX(-50%) translateY(7px); padding: 22px 26px; }
.km li:hover > .km-mega { transform: translateX(-50%) translateY(0); }
.km-mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; min-width: 520px; }
.km-mega-i { display: grid; gap: 5px; padding: 0; }
.km-mega-i img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; }
.km-mega-i b { font-weight: 600; }
.km-mega-i span { font-size: .8rem; color: var(--c-texto-suave); line-height: 1.4; }

.k-cabecera { position: sticky; top: 0; z-index: 500; background: var(--c-fondo);
  border-bottom: 1px solid rgba(0,0,0,.06); }
.k-pie { border-top: 1px solid rgba(0,0,0,.07); }

@media (max-width: 860px) {
  .km-horizontal > ul { gap: 14px; }
  .km-mega-cols { min-width: 0; grid-template-columns: 1fr 1fr; }
  .km-n2, .km-mega { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 4px 0 4px 14px; min-width: 0; }
}

/* ============================================================
   Tarifas con extras
   ============================================================ */
.kt-tit { font-family: var(--f-titulo); font-weight: 400; font-size: clamp(1.7rem,3.6vw,2.5rem);
  text-align: center; margin: 0 0 .3em; }
.kt-sub { text-align: center; color: var(--c-texto-suave); max-width: 620px; margin: 0 auto 34px; }

/* ---------- Los packs ---------- */
.kt-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: start; }
.kt-pack { position: relative; display: flex; flex-direction: column; background: var(--c-fondo);
  border: 1.5px solid rgba(0,0,0,.09); border-radius: var(--radio); overflow: hidden;
  cursor: pointer; transition: all .25s cubic-bezier(.2,.8,.3,1); }
.kt-pack:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(50,35,25,.12); }
.kt-pack input { position: absolute; opacity: 0; pointer-events: none; }
.kt-pack:has(input:checked) { border-color: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 22%, transparent); }
.kt-destacado { border-color: var(--pc); }

.kt-cinta { position: absolute; top: 13px; right: -30px; background: var(--pc); color: #fff;
  font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 34px; transform: rotate(45deg); z-index: 3; }
.kt-foto img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.kt-banda { background: var(--pc); color: #fff; padding: 13px 18px; text-align: center; }
.kt-banda b { display: block; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.kt-banda i { display: block; font-style: normal; font-size: .78rem; opacity: .85; margin-top: 3px; }
.kt-precio { font-family: var(--f-titulo); font-size: 2.7rem; text-align: center; padding: 20px 0 14px; line-height: 1; }
.kt-precio sup { font-size: .42em; vertical-align: super; margin-left: 2px; }

.kt-incluye { display: block; padding: 0 20px 14px; }
.kt-incluye span { display: flex; gap: 9px; align-items: flex-start; font-size: .87rem;
  padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.06); color: var(--c-texto-suave); }
.kt-incluye span:last-child { border-bottom: none; }
.kt-incluye .k-svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--pc); }

.kt-elegir { display: block; margin: 0 20px 20px; padding: 11px; text-align: center;
  border-radius: 999px; background: var(--pc); color: #fff; font-weight: 600;
  font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; transition: all .2s; }
.kt-pack:has(input:checked) .kt-elegir::after { content: ' ✓'; }
.kt-pack:not(:has(input:checked)) .kt-elegir { background: transparent; color: var(--pc);
  border: 1.5px solid var(--pc); }

/* ---------- Los extras ---------- */
.kt-extras { margin-top: 44px; }
.kt-extras-t { font-family: var(--f-titulo); font-weight: 400; font-size: 1.4rem; text-align: center; margin-bottom: 20px; }
.kt-grupo { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-texto-suave); margin: 22px 0 9px; font-weight: 700; }
.kt-lista { display: grid; gap: 9px; }
.kt-extra { display: flex; align-items: center; gap: 14px; background: var(--c-fondo);
  border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 13px 17px; transition: all .18s; }
.kt-extra:hover { border-color: var(--c-acento); }
.kt-extra:has(input:checked), .kt-extra:has(.kt-num:not([value="0"])) {
  border-color: var(--c-acento); background: color-mix(in srgb, var(--c-acento) 6%, var(--c-fondo)); }
.kt-extra-img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.kt-extra-txt { flex: 1; min-width: 0; }
.kt-extra-txt b { display: block; font-size: .95rem; font-weight: 600; }
.kt-extra-txt span { font-size: .82rem; color: var(--c-texto-suave); line-height: 1.45; }
.kt-extra-p { font-weight: 700; color: var(--c-acento); white-space: nowrap; text-align: right; }
.kt-extra-p i { display: block; font-style: normal; font-size: .68rem; font-weight: 400;
  color: var(--c-texto-suave); }

.kt-check input { display: none; }
.kt-palanca { display: block; width: 46px; height: 26px; border-radius: 20px; background: rgba(0,0,0,.16);
  position: relative; transition: background .2s; cursor: pointer; flex-shrink: 0; }
.kt-palanca::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.kt-check input:checked + .kt-palanca { background: var(--c-acento); }
.kt-check input:checked + .kt-palanca::after { transform: translateX(20px); }

.kt-cant { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.kt-cant button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14);
  background: var(--c-fondo); cursor: pointer; font-size: 1.1rem; line-height: 1; color: inherit;
  display: grid; place-items: center; transition: all .15s; }
.kt-cant button:hover { background: var(--c-acento); border-color: var(--c-acento); color: #fff; }
.kt-num { width: 42px; text-align: center; border: none; background: none; font-weight: 700;
  font-size: 1rem; color: inherit; font-family: inherit; -moz-appearance: textfield; }
.kt-num::-webkit-inner-spin-button { display: none; }

/* ---------- El total, pegado abajo ---------- */
.kt-total { position: sticky; bottom: 14px; z-index: 20; margin-top: 30px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--c-primario); color: #fff; border-radius: var(--radio);
  padding: 17px 24px; box-shadow: 0 12px 40px rgba(30,20,14,.28); }
.kt-total-det { flex: 1; min-width: 190px; }
.kt-total-txt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.kt-total-lista { list-style: none; margin: 5px 0 0; padding: 0; font-size: .84rem; opacity: .92;
  display: flex; flex-wrap: wrap; gap: 4px 12px; }
.kt-total-lista li::before { content: '· '; opacity: .5; }
.kt-total-num { text-align: right; }
.kt-total-num span { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.kt-total-num b { font-family: var(--f-titulo); font-size: 2.1rem; font-weight: 400; line-height: 1.1; }
.kt-reservar { flex-shrink: 0; }
.kt-nota { text-align: center; font-size: .8rem; color: var(--c-texto-suave); margin-top: 14px; }

@media (max-width: 640px) {
  .kt-total { flex-direction: column; align-items: stretch; text-align: center; gap: 12px;
    padding: 15px 18px; bottom: 8px; }
  .kt-total-num { text-align: center; }
  .kt-reservar { width: 100%; }
  .kt-extra { flex-wrap: wrap; }
  .kt-extra-txt { flex-basis: 100%; order: -1; }
}
