/* Versión para el cliente: presentación comercial del proyecto y explorador de opciones.
   Tipografía y colores de la marca: salen de la inmobiliaria (variables --brand y --font-brand; Dkasa usa Kumbh Sans, carmín y gris carbón). */

.cl {
  --cl-gutter: max(20px, env(safe-area-inset-left, 0px));
  font-family: var(--font-brand);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
.cl h1, .cl h2, .cl h3, .cl dialog h3 { font-family: inherit; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
.cl p { margin: 0; }
.cl-wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.cl section, .cl-top { scroll-margin-top: 72px; }

.cl-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.cl h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; text-wrap: balance; }
.cl-lead { font-size: 19px; color: var(--text-2); max-width: 56ch; margin-top: 18px; }

.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 999px;
  padding: 14px 28px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.cl-btn:hover { background: var(--accent); border-color: var(--accent); }
.cl-btn:active { transform: translateY(1px); }
.cl-btn:disabled { background: var(--line-strong); border-color: var(--line-strong); cursor: default; }
.cl-btn--light { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.cl-btn--light:hover { background: #fff; border-color: #fff; color: var(--brand-dark); }
.cl-btn--sm { padding: 10px 20px; font-size: 15px; }
.cl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl button:focus-visible, .cl a:focus-visible, .ex button:focus-visible, .ex a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.cl-hero .cl-btn:focus-visible, .cl-visit .cl-btn:focus-visible { outline-color: #fff; }

/* Barra de vista previa para agentes */
.cl-preview { display: flex; justify-content: center; align-items: center; gap: 6px 18px; flex-wrap: wrap; padding: 9px 16px; background: var(--brand-dark); color: #fff; font-size: 14px; }
.cl-preview a { color: #fff; font-weight: 700; }

/* Encabezado */
.cl-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.cl-top-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.cl-logo { font-weight: 700; font-size: 30px; letter-spacing: -.03em; color: var(--brand-dark); text-decoration: none; line-height: 1; }
.cl-logo b { color: var(--brand); font-weight: 700; }
.cl-nav { display: flex; gap: 4px; margin-left: auto; }
.cl-nav button { background: none; border: 0; font-family: inherit; font-weight: 600; font-size: 15px; color: var(--text-2); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.cl-nav button:hover { color: var(--brand); }

/* Portada */
.cl-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 88svh, 860px); background: var(--brand-dark); color: #fff; overflow: hidden; }
.cl-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 37% 60%; }
.cl-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(24, 22, 23, .72) 0%, rgba(24, 22, 23, .4) 38%, rgba(24, 22, 23, 0) 66%),
    linear-gradient(to top, rgba(24, 22, 23, .9) 0%, rgba(24, 22, 23, .5) 34%, rgba(24, 22, 23, .06) 66%, rgba(24, 22, 23, .25) 100%);
}
.cl-hero h1, .cl-hero-sub, .cl-hero .cl-eyebrow { text-shadow: 0 2px 28px rgba(0, 0, 0, .4); }
.cl-hero-copy { position: relative; width: 100%; padding-bottom: 96px; padding-top: 120px; }
.cl-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 40px; flex-wrap: wrap; }
.cl-hero .cl-eyebrow { color: #fff; opacity: .92; }
.cl-hero h1 { font-size: clamp(76px, 15vw, 190px); font-weight: 700; line-height: .86; letter-spacing: -.045em; padding-bottom: .1em; }
.cl-hero-sub { font-size: clamp(18px, 2.2vw, 24px); margin-top: 30px; max-width: 28ch; opacity: .95; }
.cl-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cl-price { text-align: right; }
.cl-price small { display: block; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.cl-price strong { display: block; font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.cl-price span { display: block; font-size: 13px; opacity: .75; margin-top: 4px; }

/* En pantallas anchas el edificio queda a la izquierda y el texto a la derecha, sin taparse */
@media (min-width: 801px) {
  .cl-hero > img { object-position: 100% 60%; }
  .cl-hero-shade {
    background:
      linear-gradient(to left, rgba(24, 22, 23, .74) 0%, rgba(24, 22, 23, .4) 36%, rgba(24, 22, 23, 0) 64%),
      linear-gradient(to top, rgba(24, 22, 23, .85) 0%, rgba(24, 22, 23, .35) 30%, rgba(24, 22, 23, 0) 62%, rgba(24, 22, 23, .22) 100%);
  }
  .cl-hero-row { flex-direction: column; align-items: flex-end; gap: 28px; }
  .cl-hero-row > div { width: min(540px, 100%); }
  .cl-price { text-align: left; }
}

/* Datos clave */
.cl-facts { position: relative; z-index: 2; margin-top: -56px; }
.cl-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; border-radius: 20px; box-shadow: 0 22px 50px rgba(48, 48, 48, .14); overflow: hidden; }
.cl-fact { padding: 26px 28px; display: grid; gap: 4px; align-content: center; border-left: 1px solid var(--border); }
.cl-fact:first-child { border-left: 0; }
.cl-fact strong { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.cl-fact span { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }

/* Presentación */
.cl-deptos { padding-block: clamp(72px, 10vw, 128px); }

/* Tipologías */
.cl-deptos-head { max-width: 62ch; margin-bottom: 44px; }
.cl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(48, 48, 48, .06); transition: box-shadow .2s, transform .2s; }
.cl-card:hover { box-shadow: 0 18px 44px rgba(48, 48, 48, .14); transform: translateY(-3px); }
.cl-card-plan { display: grid; place-items: center; height: 250px; padding: 22px; background: var(--bg); }
.cl-card-plan img { display: block; max-width: 100%; max-height: 206px; width: auto; height: auto; object-fit: contain; }
.cl-card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; flex: 1; }
.cl-card h3 { font-size: 26px; font-weight: 700; }
.cl-card-area { font-size: 16px; color: var(--text-2); }
.cl-card-area strong { font-size: 34px; letter-spacing: -.02em; color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.cl-chips li { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--brand-dark); }
.cl-card-note { font-size: 14px; color: var(--text-2); }
.cl-card .cl-btn { margin-top: auto; width: 100%; }

/* Visita */
.cl-visit { background: var(--brand-dark); color: #fff; padding-block: clamp(72px, 10vw, 120px); }
.cl-visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cl-visit .cl-eyebrow { color: #fff; opacity: .8; }
.cl-visit .cl-lead { color: #D6D2D3; }
.cl-visit-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cl-info { display: grid; gap: 4px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 12px; }
.cl-info-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 16px; }
.cl-info-row + .cl-info-row { border-top: 1px solid rgba(255, 255, 255, .12); }
.cl-info-row svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--brand); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-info-row small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #BDB8B9; }
.cl-info-row strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; }

/* Pie */
.cl-foot { background: #232122; color: #B9B5B6; padding-block: 36px 44px; font-size: 14px; }
.cl-foot-row { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; align-items: flex-start; }
.cl-foot .cl-logo { color: #fff; font-size: 26px; }
.cl-foot p { max-width: 78ch; line-height: 1.6; }
.cl-foot a { color: #fff; }

/* ---------- Explorador de opciones (ventana grande) ---------- */

.ex { border: 0; padding: 0; margin: auto; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; overflow: hidden; background: #fff; color: var(--text); font-family: var(--font-brand); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.ex::backdrop { background: rgba(24, 22, 23, .82); backdrop-filter: blur(4px); }
.ex-shell { display: flex; flex-direction: column; height: 100%; }
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 14px 26px; border-bottom: 1px solid var(--border); }
.ex-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0; }
.ex-head h2 { margin: 2px 0 0; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ex-headbtns { display: flex; gap: 8px; flex-shrink: 0; }
.ex-iconbtn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--brand-dark); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.ex-iconbtn:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand); }
.ex-iconbtn svg, .ex-nav svg, .ex-fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ex-iconbtn[aria-pressed="true"] { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

.ex-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.ex-rooms { display: flex; gap: 8px; flex: 0 0 auto; overflow-x: auto; padding: 2px 2px 6px; }
.ex-room { flex: 0 0 auto; display: grid; grid-template-columns: 56px auto; gap: 10px; align-items: center; text-align: left; font-family: inherit; color: var(--text); background: var(--bg); border: 2px solid transparent; border-radius: 14px; padding: 5px 14px 5px 5px; cursor: pointer; }
.ex-room:hover { border-color: var(--line-strong); }
.ex-room[aria-current="true"] { border-color: var(--brand); background: #fff; box-shadow: 0 6px 16px rgba(193, 2, 48, .12); }
.ex-room .t { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg); }
.ex-room .t svg { width: 100%; height: 100%; display: block; }
.ex-room strong { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.ex-room small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ex-room small svg { width: 13px; height: 13px; fill: var(--brand); stroke: var(--brand); stroke-width: 2; }

.ex-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; padding: 14px 20px 16px; }
.ex-figure { position: relative; flex: 1; min-height: 240px; display: grid; place-items: center; container-type: size; border-radius: 18px; overflow: hidden; background: #ECE8E6; touch-action: pan-y; }
.ex-frame { position: relative; width: min(100cqw, 160cqh); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: #ECE8E6; }
.ex-img, .ex-img svg { display: block; width: 100%; height: 100%; }
.ex-img.is-new { animation: ex-in .35s ease; }
@keyframes ex-in { from { opacity: .25; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.ex-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--brand-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); cursor: pointer; }
.ex-nav:hover { background: var(--brand); color: #fff; }
.ex-nav svg { width: 24px; height: 24px; stroke-width: 2.4; }
.ex-heart { position: absolute; top: 14px; right: 14px; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); cursor: pointer; }
.ex-heart svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ex-heart:hover { background: var(--brand-soft); }
.ex-heart[aria-pressed="true"] { background: var(--brand); color: #fff; }
.ex-heart[aria-pressed="true"] svg { fill: currentColor; }
.ex-strip, .ex-rooms { scrollbar-width: thin; }
.ex-prev { left: 16px; }
.ex-next { right: 16px; }
.ex-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 56px 24px 18px; color: #fff; background: linear-gradient(to top, rgba(24, 22, 23, .78), transparent); pointer-events: none; }
.ex-caption strong { display: block; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.01em; line-height: 1.15; }
.ex-caption span { font-size: 15px; opacity: .9; }
.ex-caption .ex-count { font-size: 14px; font-weight: 700; background: rgba(0, 0, 0, .4); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

.ex-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.ex-opt { flex: 0 0 112px; scroll-snap-align: start; display: grid; gap: 6px; text-align: left; font-family: inherit; color: var(--text); background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 6px 6px 8px; cursor: pointer; }
.ex-opt:hover { border-color: var(--line-strong); }
.ex-opt[aria-pressed="true"] { border-color: var(--brand); }
.ex-opt .t { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg); }
.ex-opt .t svg { width: 100%; height: 100%; display: block; }
.ex-opt strong { font-size: 14px; line-height: 1.2; padding: 0 4px; display: flex; align-items: center; gap: 4px; }
.ex-opt strong svg { width: 13px; height: 13px; fill: var(--brand); stroke: var(--brand); stroke-width: 2; flex-shrink: 0; }
.ex-opt small { font-size: 12px; color: var(--text-2); padding: 0 4px; line-height: 1.25; }

.ex-side { display: flex; flex-direction: column; gap: 18px; padding: 18px 20px; overflow-y: auto; border-left: 1px solid var(--border); background: #fff; }
.ex-side h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; }
.ex-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 15px; }
.ex-dl dt { color: var(--text-2); }
.ex-dl dd { margin: 0; font-weight: 700; text-align: right; }
.ex-fav { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-family: inherit; font-weight: 700; font-size: 16px; color: var(--brand); background: #fff; border: 2px solid var(--brand); border-radius: 999px; padding: 13px 18px; cursor: pointer; }
.ex-fav:hover { background: var(--brand-soft); }
.ex-fav[aria-pressed="true"] { background: var(--brand); color: #fff; }
.ex-fav[aria-pressed="true"] svg { fill: currentColor; }
.ex-sel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ex-sel li button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font-family: inherit; font-size: 14px; color: var(--text); background: none; border: 0; border-radius: 8px; padding: 7px 8px; cursor: pointer; }
.ex-sel li button:hover { background: var(--bg); }
.ex-sel li span { color: var(--text-2); text-align: right; }
.ex-sel li.is-set span { color: var(--brand); font-weight: 700; }
.ex-plan img { width: 100%; max-height: 190px; object-fit: contain; background: var(--bg); border-radius: 12px; padding: 10px; display: block; }
.ex-plan p { margin: 6px 0 0; font-size: 12px; color: var(--text-2); }

/* Modo ampliado: solo la imagen y las opciones */
.ex--cinema .ex-body { grid-template-columns: minmax(0, 1fr); }
.ex--cinema .ex-rooms, .ex--cinema .ex-side, .ex--cinema .ex-strip { display: none; }
.ex--cinema .ex-figure { background: #232122; }
.ex--cinema .ex-stage { padding-bottom: 20px; }

body.cl-lock { overflow: hidden; }

/* Tablet y celular */
@media (max-width: 1000px) {
  .ex-body { grid-template-columns: minmax(0, 1fr); overflow-y: auto; align-content: start; }
  .ex-stage { min-height: min(560px, 80dvh); }
  .ex-side { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 800px) {
  .cl { font-size: 16px; }
  .cl-nav { display: none; }
  .cl-top-row { justify-content: space-between; }
  .cl-hero-copy { padding-bottom: 80px; }
  .cl-price { text-align: left; }
  .cl-fact { border-left: 0; border-top: 1px solid var(--border); padding: 20px 22px; }
  .cl-fact:first-child { border-top: 0; }
  .cl-visit-grid { grid-template-columns: 1fr; }

  .ex { width: 100vw; height: 100dvh; border-radius: 0; }
  .ex-head { padding: 12px 14px 12px 18px; padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .ex-iconbtn span { display: none; }
  .ex-iconbtn { padding: 10px; }
  .ex-body { display: flex; flex-direction: column; overflow-y: auto; }
  .ex-room { grid-template-columns: 1fr; width: 118px; gap: 6px; padding: 6px; }
  .ex-room strong { white-space: normal; }
  .ex-stage { flex: 0 0 auto; min-height: 0; padding: 12px 14px; }
  .ex-figure { flex: 0 0 auto; min-height: 0; aspect-ratio: 4 / 3; container-type: normal; display: block; }
  .ex-frame { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .ex-nav { width: 44px; height: 44px; }
  .ex-prev { left: 10px; }
  .ex-next { right: 10px; }
  .ex-caption { padding: 40px 16px 12px; }
  .ex-opt { flex-basis: 116px; }
  .ex-side { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
  .ex--cinema .ex-figure { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-card, .cl-btn { transition: none; }
  .ex-img.is-new { animation: none; }
}

/* ---------- Registro, favoritas y avisos ---------- */

.cl-btn--ghost { background: #fff; color: var(--brand); }
.cl-btn--ghost:hover { background: var(--brand-soft); color: var(--accent); border-color: var(--accent); }

.cl-preview button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #fff; text-decoration: underline; cursor: pointer; }
.cl-hello { font-weight: 600; font-size: 15px; color: var(--text-2); white-space: nowrap; }
.cl-favbtn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 700; font-size: 15px; color: var(--brand); background: #fff; border: 1.5px solid var(--brand); border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }
.cl-favbtn:hover { background: var(--brand-soft); }
.cl-favbtn svg { width: 18px; height: 18px; fill: var(--brand); stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.cl-favbtn b { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; }

.cl-card-plan { position: relative; }
.cl-card-heart { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--brand); cursor: pointer; box-shadow: 0 4px 14px rgba(48, 48, 48, .12); }
.cl-card-heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cl-card-heart:hover { background: var(--brand-soft); }
.cl-card-heart[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.cl-card-heart[aria-pressed="true"] svg { fill: currentColor; }

.cl-toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; max-width: min(92vw, 520px); padding: 12px 20px; border-radius: 999px; background: var(--brand-dark); color: #fff; font-weight: 600; font-size: 15px; text-align: center; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }

/* Registro */
.rg { border: 0; padding: 0; margin: auto; width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 24px; background: #fff; color: var(--text); font-family: var(--font-brand); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.rg::backdrop { background: rgba(24, 22, 23, .82); backdrop-filter: blur(4px); }
.rg .rg-form, .rg .rg-done { padding: clamp(24px, 5vw, 40px); display: grid; gap: 16px; }
.rg-brand { margin: 0; font-weight: 700; font-size: 24px; letter-spacing: -.02em; color: var(--brand-dark); }
.rg-brand span { color: var(--brand); }
.rg h2 { margin: 0; font-family: inherit; font-size: clamp(26px, 4.4vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.rg-lead { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rg label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.rg input.rg-in { font: 500 16px var(--font-brand); padding: 13px 14px; width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text); }
.rg input.rg-in:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.rg input.rg-in[aria-invalid="true"] { border-color: var(--danger); }
.rg-err { min-height: 0; font-size: 13px; font-weight: 500; color: var(--danger); }
.rg-err:empty { display: none; }
.rg label.rg-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--text-2); }
.rg .rg-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; }
.rg .cl-btn { width: 100%; padding: 15px 24px; }
.rg-skip { justify-self: center; background: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--text-2); text-decoration: underline; cursor: pointer; padding: 4px 8px; }
.rg-note { margin: 0; text-align: center; font-size: 13px; color: var(--text-2); }

/* Mis favoritas */
.fv { border: 0; padding: 0; margin: auto; width: min(800px, 100vw); max-height: min(900px, 100dvh); border-radius: 24px; overflow: hidden; background: #fff; color: var(--text); font-family: var(--font-brand); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.fv::backdrop { background: rgba(24, 22, 23, .82); backdrop-filter: blur(4px); }
.fv-shell { display: flex; flex-direction: column; max-height: min(900px, 100dvh); }
.fv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.fv-body > * { flex-shrink: 0; }
.fv-lead { margin: 14px 0 0; color: var(--text-2); }
.fv-typ { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.fv-typ > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--bg); }
.fv-typ h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.fv-typ h3 span { font-size: 14px; font-weight: 600; color: var(--text-2); margin-left: 6px; }
.fv-tip { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-weight: 700; font-size: 13px; color: var(--brand); background: #fff; border: 1.5px solid var(--brand); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.fv-tip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fv-tip[aria-pressed="true"] { background: var(--brand); color: #fff; }
.fv-tip[aria-pressed="true"] svg { fill: currentColor; }
.fv-typ ul { list-style: none; margin: 0; padding: 6px 12px 12px; display: grid; gap: 4px; }
.fv-typ li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 6px; border-radius: 12px; }
.fv-typ li:hover { background: var(--bg); }
.fv-typ li .t { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px dashed var(--line-strong); }
.fv-typ li .t svg { width: 100%; height: 100%; display: block; }
.fv-typ li strong { display: block; font-size: 16px; }
.fv-typ li small { font-size: 14px; color: var(--text-2); }
.fv-typ li button { font-family: inherit; font-weight: 700; font-size: 14px; color: var(--brand); background: none; border: 1.5px solid var(--brand); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.fv-typ li button:hover { background: var(--brand-soft); }
.fv-link, .fv-advisor { border-radius: 18px; padding: 20px 22px; display: grid; gap: 12px; }
.fv-link { background: var(--bg); }
.fv-advisor { background: var(--brand-dark); color: #fff; }
.fv-link h3, .fv-advisor h3 { margin: 0; font-size: 20px; font-weight: 700; }
.fv-link p, .fv-advisor p { margin: 0; font-size: 15px; color: var(--text-2); }
.fv-advisor p { color: #D6D2D3; }
.fv-input { width: 100%; font: 500 14px ui-monospace, Consolas, monospace; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text); }
.fv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fv-actions .cl-btn, .fv-advisor .cl-btn { padding: 12px 22px; font-size: 15px; }
.fv-advisor .cl-btn[aria-disabled="true"] { background: #6b6869; border-color: #6b6869; pointer-events: none; }
.fv-hint { font-size: 13px !important; }

/* Encabezado: el bloque derecho siempre se alinea a la derecha */
.cl-top-row .cl-nav { margin-left: auto; }
.cl-top-row .cl-nav ~ .cl-hello, .cl-top-row .cl-nav ~ .cl-favbtn { margin-left: 0; }

@media (max-width: 800px) {
  .cl-hello { display: none; }
  .cl-top-row { gap: 10px; }
  .cl-top-row .cl-favbtn { margin-left: auto; }
  .cl-top-row .cl-favbtn[hidden] + .cl-top-cta { margin-left: auto; }
  .fv { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .fv-shell { max-height: 100dvh; height: 100%; }
  .fv-body { padding: 4px 16px 28px; }
  .fv-typ li { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
}
@media (max-width: 560px) {
  .rg-grid { grid-template-columns: 1fr; }
  .cl-top-cta { display: none; }
  .cl-favbtn span { display: none; }
  .cl-favbtn { padding: 8px 12px; }
}

/* ---------- Registro con DNI y enlace único ---------- */

.rg-full { grid-column: 1 / -1; }
.rg-hint { font-size: 13px; font-weight: 600; color: var(--brand); }
.rg-hint:empty { display: none; }
.rg-linkbox { display: grid; gap: 8px; background: var(--bg); border-radius: 14px; padding: 14px; }
.rg-linkbox > label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.rg input.rg-in[readonly] { font: 500 13px ui-monospace, Consolas, monospace; }
.rg-linkbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.rg .rg-linkbtns .cl-btn { width: auto; padding: 10px 18px; font-size: 14px; }
.rg-sim { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: 13px; }

.cl-toast { font-family: var(--font-brand); }
.cl-active { font-weight: 700; }

/* Imágenes realistas en lugar de ilustraciones */
.ex-room .t img, .ex-opt .t img, .ex-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cl-logo img { display: block; max-height: 40px; width: auto; }

/* Registro: datos opcionales del cliente (solo los ve el asesor) */
.rg-opt { font-weight: 400; color: var(--text-2); font-size: 13px; }
.rg-more { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.rg-more[hidden] { display: none; }
.rg-more summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.rg-more[open] summary { margin-bottom: 12px; }
.rg select.rg-in { font: 500 16px var(--font-brand); padding: 12px 14px; width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text); }
.rg select.rg-in:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
