/* Cardinal — componentes del sitio público (docs/CORRECCIONES-DISENO.md §3).
   Se carga DESPUÉS de tokens.css. Regla de oro: aquí no hay ningún font-size,
   font-weight, color ni border-radius escrito a mano; todo sale de las variables.
   Las medidas fijas que quedan (alturas de controles, anchos de columnas) son las
   que dicta la §3 para cada componente. */

/* ───────────── Utilidades ───────────── */
.oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js-hidden { display: none; }
.no-scroll { overflow: hidden; }
.centered { text-align: center; margin-top: var(--s-5); }
.narrow { max-width: 820px; }
.scrim { position: fixed; inset: 0; background: var(--c-scrim); z-index: 60; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico-wa { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.note { font-size: var(--fs-small); color: var(--c-muted); }
.stack > * + * { margin-top: var(--s-4); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-surface); color: var(--c-ink); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); font-weight: var(--fw-title);
}
.skip:focus { top: var(--s-4); }

/* ───────────── Botones (§3.1): principal, WhatsApp y secundario. Sin negros. ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) 20px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: var(--fs-body); font-weight: var(--fw-title); line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn--primary { background: var(--c-accent-strong); color: var(--c-white); font-weight: var(--fw-strong); }
.btn--primary:hover { background: var(--c-accent-strong-hover); color: var(--c-white); }
.btn--wa { background: var(--c-wa); color: var(--c-white); }
.btn--wa:hover { background: var(--c-wa-hover); color: var(--c-white); }
.btn--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-border-strong); }
.btn--secondary:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--sm { min-height: 40px; padding: var(--s-2) 14px; font-size: var(--fs-ui); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn {
  background: none; border: 0; padding: var(--s-2) 0; cursor: pointer;
  color: var(--c-ink); font-size: var(--fs-ui); font-weight: var(--fw-ui);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Botón cuadrado solo con ícono (encabezado móvil, visor, galería). */
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-sm); border: 1px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-ink); cursor: pointer; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--wa { background: var(--c-wa); border-color: var(--c-wa); color: var(--c-white); }
.icon-btn--wa:hover { background: var(--c-wa-hover); color: var(--c-white); }

/* ───────────── Avisos ───────────── */
.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); border: 1px solid; font-size: var(--fs-ui); max-width: none; }
.alert--ok { background: var(--c-ok-bg); border-color: var(--c-ok-border); color: var(--c-ok-text); }
.alert--error { background: var(--c-error-bg); border-color: var(--c-error-border); color: var(--c-error); }
.alert--warn { background: var(--c-warn-bg); border-color: var(--c-warn-border); color: var(--c-warn-text); }
.preview-strip {
  background: var(--c-warn-bg); border-bottom: 1px solid var(--c-warn-border); color: var(--c-warn-text);
  padding: var(--s-3) var(--s-4); text-align: center; font-size: var(--fs-small);
}
.preview-strip a { color: var(--c-warn-text); font-weight: var(--fw-title); }

/* ───────────── Encabezado (§3.7) ───────────── */
.header { background: var(--c-surface); border-top: 4px solid var(--c-accent); border-bottom: 1px solid var(--c-border); position: relative; z-index: 30; }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h-movil); }
.header__logo { display: block; line-height: 0; }
.header__logo img { height: 32px; width: auto; }
.header__nav { display: none; }
.header__movil { display: flex; align-items: center; gap: var(--s-2); }
@media (min-width: 768px) {
  .header__row { min-height: var(--header-h); }
  .header__logo img { height: 40px; }
  .header__nav { display: flex; align-items: center; gap: var(--s-5); }
  .header__movil { display: none; }
}
.header__link {
  font-size: var(--fs-ui); font-weight: var(--fw-ui); color: var(--c-ink); text-decoration: none;
  padding: var(--s-2) 0; border-bottom: 2px solid transparent;
}
.header__link:hover, .header__link[aria-current="page"] { color: var(--c-ink); border-bottom-color: var(--c-accent); }

/* Menú móvil: <details>, abre un panel a pantalla completa. El botón queda encima para cerrar. */
.menu-movil > summary { position: relative; z-index: 2; }
.menu-movil .ico--cerrar, .menu-movil[open] .ico--abrir { display: none; }
.menu-movil[open] .ico--cerrar { display: block; }
.menu-movil__panel {
  position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--header-h-movil) + 4px); z-index: 1;
  background: var(--c-surface); padding: var(--s-5) var(--s-4) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-5); overflow-y: auto; border-top: 1px solid var(--c-border);
}
.menu-movil__panel nav { display: flex; flex-direction: column; }
.menu-movil__link {
  font-size: var(--fs-menu-movil); font-weight: var(--fw-ui); color: var(--c-ink); text-decoration: none;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border);
}
.menu-movil__link[aria-current="page"] { color: var(--c-accent-strong); }
.menu-movil__panel .btn { min-height: 56px; }

/* ───────────── Migas ───────────── */
.breadcrumbs { padding: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--c-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.breadcrumbs li + li::before { content: '/'; margin-right: var(--s-2); color: var(--c-border-strong); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-ink); }

/* ───────────── Encabezado de sección ───────────── */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.section-head .section__title { margin-bottom: var(--s-1); }
.page-head { padding: var(--s-5) 0 var(--s-5); }
.page-head h1 { margin-bottom: var(--s-2); }

/* Venta / Alquiler en el inicio */
.segmented { display: inline-flex; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface); }
.segmented a { padding: var(--s-2) var(--s-4); font-size: var(--fs-ui); font-weight: var(--fw-ui); color: var(--c-ink); text-decoration: none; min-height: 40px; display: flex; align-items: center; }
.segmented a + a { border-left: 1px solid var(--c-border); }
.segmented a[aria-current] { background: var(--c-accent-soft); color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-accent-strong); }

/* ───────────── Chips (el único lugar con --r-pill) ───────────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; max-width: none; }
.chips--over { position: absolute; top: var(--s-3); left: var(--s-3); right: var(--s-3); z-index: 1; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-ink);
  font-size: var(--fs-small); font-weight: var(--fw-title); line-height: 1.2; white-space: nowrap;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--c-accent); flex-shrink: 0; }
.chip--plain::before { display: none; }
.chip--soft { background: var(--c-bg); border: 1px solid var(--c-border); }
.chip--count {
  position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 1; text-decoration: none;
  border-radius: var(--r-sm); min-height: 40px; padding: var(--s-2) var(--s-3);
}
.chip--count::before { display: none; }
.chip--count svg { width: 18px; height: 18px; }

/* ───────────── Tarjeta de propiedad (§3.2) ───────────── */
.cards-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 767px) { .cards-grid { grid-template-columns: 1fr; } }
.cards-grid--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.property-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.property-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-photo-placeholder); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property-card__nophoto { display: grid; place-items: center; height: 100%; font-size: var(--fs-small); color: var(--c-muted); }
.property-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); flex: 1; }
.property-card__title { font-size: var(--fs-h3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-card__link { color: var(--c-ink); text-decoration: none; }
.property-card__link::after { content: ''; position: absolute; inset: 0; }   /* enlace estirado: toda la tarjeta lleva a la ficha */
.property-card__link:focus-visible { outline: none; }
.property-card:has(.property-card__link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.property-card__facts { font-size: var(--fs-small); color: var(--c-muted); }
.property-card__price { font-size: var(--fs-price-card); font-weight: var(--fw-strong); color: var(--c-ink); line-height: 1.2; }
.property-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); }
.property-card__actions .btn { position: relative; z-index: 1; padding-left: var(--s-2); padding-right: var(--s-2); }
@media (hover: hover) {
  .property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  .property-card:hover .property-card__media img { transform: scale(1.03); }
}
/* Tarjeta grande (inicio con dos propiedades): el resumen también entra. */
.property-card--big .property-card__title { font-size: var(--fs-h2); }
.property-card__summary { font-size: var(--fs-ui); color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ───────────── Galería (§3.3) ───────────── */
.gallery {
  position: relative; display: grid; gap: var(--s-2); grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-lg); overflow: hidden;
}
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--c-photo-placeholder); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item--main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (hover: hover) { .gallery__item:hover img { transform: scale(1.03); } }
.gallery--few { grid-template-columns: 1fr; }
.gallery--few .gallery__item { display: none; }
.gallery--few .gallery__item--main { display: block; grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
.gallery__empty { grid-column: 1 / -1; display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--c-muted); font-size: var(--fs-small); background: var(--c-photo-placeholder); }
.gallery__tools { display: none; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr; border-radius: var(--r-md); }
  .gallery__item { display: none; }
  .gallery__item--main { display: block; grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__tools { display: flex; justify-content: space-between; position: absolute; top: var(--s-3); left: var(--s-3); right: var(--s-3); z-index: 2; pointer-events: none; }
  .gallery__tools > * { pointer-events: auto; }
  .gallery__item--main .chips--over { top: auto; bottom: var(--s-3); }
}

/* ───────────── Hero de la propiedad (§3.3) ───────────── */
.prop-hero { display: grid; gap: var(--s-6); padding-top: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .prop-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-7); } }
.prop-hero__main { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.prop-hero__main .stats { margin-top: var(--s-2); }

.price-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
}
@media (min-width: 1024px) { .price-card--sticky { position: sticky; top: var(--s-5); } }
.price-card__label { font-size: var(--fs-small); color: var(--c-muted); }
.price-card__amount { font-size: var(--fs-price); font-weight: var(--fw-strong); color: var(--c-ink); line-height: 1.15; }
.price-card__equiv { font-size: var(--fs-small); color: var(--c-muted); }
.price-card__note { font-size: var(--fs-caption); color: var(--c-muted); }
.price-card__sep { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-2) 0; width: 100%; }
.price-card__buttons { display: flex; flex-direction: column; gap: var(--s-3); }

/* Precio en línea, bajo el título, en celular y tablet (la columna lateral queda abajo). */
.price-inline { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
.price-inline .price-card__amount { font-size: var(--fs-price); }
@media (min-width: 1024px) { .price-inline { display: none; } }

/* Agente a cargo */
.agent { display: flex; align-items: center; gap: var(--s-3); }
.agent__avatar { width: 48px; height: 48px; border-radius: var(--r-pill); object-fit: cover; flex-shrink: 0; background: var(--c-bg); }
.agent__avatar--empresa { object-fit: contain; padding: var(--s-2); border: 1px solid var(--c-border); background: var(--c-surface); }
.agent__name { font-size: var(--fs-ui); font-weight: var(--fw-title); color: var(--c-ink); line-height: 1.3; }
.agent__role { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.4; }

/* ───────────── Datos clave (§3.4) ─────────────
   Opción B elegida por Pablo (2026-10-15): etiquetas redondeadas (único otro uso de
   --r-pill, junto con los chips), ícono naranja y la frase completa: "7 dormitorios".
   El marcado sigue siendo <dl>; el ícono se dibuja con CSS (máscara del SVG de Tabler). */
.stats { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.stat {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: var(--s-2) var(--s-4) var(--s-2) 14px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-pill);
}
.stat::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0;
  background: var(--c-accent-strong); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.stat dd { margin: 0; font-size: var(--fs-ui); font-weight: var(--fw-ui); color: var(--c-ink); line-height: 1.3; }
.stat__note { font-weight: var(--fw-text); color: var(--c-muted); }
.stat--ruler-measure { --ico: url('/assets/iconos/ruler-measure.svg'); }
.stat--home { --ico: url('/assets/iconos/home.svg'); }
.stat--bed { --ico: url('/assets/iconos/bed.svg'); }
.stat--bath { --ico: url('/assets/iconos/bath.svg'); }
.stat--car { --ico: url('/assets/iconos/car.svg'); }
.stat--stairs { --ico: url('/assets/iconos/stairs.svg'); }
.stat--calendar { --ico: url('/assets/iconos/calendar.svg'); }

/* ───────────── Por qué vale la pena verla (§3.5) ───────────── */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.highlight { background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.highlight__icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--c-accent-soft);
  color: var(--c-accent-strong); display: grid; place-items: center; margin-bottom: var(--s-2); }
.highlight__icon svg { width: 22px; height: 22px; }
.highlight p { font-size: var(--fs-ui); color: var(--c-text); }

/* ───────────── Formularios (§3.6): un solo estilo para todos ───────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: var(--fs-ui); font-weight: var(--fw-ui); color: var(--c-ink); }
.field__optional { font-weight: var(--fw-text); color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) 14px;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  background: var(--c-surface); color: var(--c-ink); font-size: var(--fs-body);   /* 16px evita el zoom automático del iPhone */
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231B1B1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-accent-strong); box-shadow: 0 0 0 3px var(--c-focus); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--c-error); }
.field__error { font-size: var(--fs-small); color: var(--c-error); font-weight: var(--fw-ui); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); color: var(--c-text); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-accent-strong); flex-shrink: 0; }
.check--error label { color: var(--c-error); }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.form-grid--one { grid-template-columns: 1fr; }
.form-grid--one .span-2 { grid-column: auto; }
.consent { display: flex; flex-direction: column; gap: var(--s-3); }
.legal-note { font-size: var(--fs-caption); color: var(--c-muted); line-height: 1.5; max-width: none; }
.legal-note a, .check a { color: inherit; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
@media (max-width: 767px) { .form-actions .btn { width: 100%; } }
.form-thanks:focus { outline: none; }

/* Caja "¿Buscas algo distinto?" (§3.6) */
.avisame {
  background: var(--c-surface); border: 2px solid var(--c-accent); border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-5);
}
@media (min-width: 1024px) { .avisame { grid-template-columns: 5fr 7fr; gap: var(--s-7); padding: var(--s-7); align-items: start; } }
.avisame__text { display: flex; flex-direction: column; gap: var(--s-3); }

/* Franja "¿No es lo que buscas?" bajo la grilla */
.cta-strip {
  margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-5);
}
.cta-strip__title { font-size: var(--fs-h3); font-weight: var(--fw-title); color: var(--c-ink); }
.cta-strip__text { font-size: var(--fs-ui); color: var(--c-muted); }

/* ───────────── Propietarios, fondo oscuro (§3.10) ───────────── */
.owners { background: var(--c-ink); color: var(--c-white); padding: var(--s-8) 0; }
@media (max-width: 767px) { .owners { padding: var(--s-7) 0; } }
.owners__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) { .owners__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } .owners__grid--form { align-items: start; } }
.owners__text { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.owners .eyebrow { color: var(--c-accent); }
.owners h1, .owners h2 { color: var(--c-white); }
.owners .lead { color: var(--c-on-dark); }
.owners .breadcrumbs, .owners .breadcrumbs a, .owners .breadcrumbs [aria-current] { color: var(--c-on-dark); }
.owners .text-on-dark { color: var(--c-on-dark); font-size: var(--fs-small); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); width: 100%; }
.step { background: var(--c-dark-2); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); display: flex; gap: var(--s-4); align-items: center; font-size: var(--fs-body); color: var(--c-white); }
.step__n { font-size: var(--fs-stat); font-weight: var(--fw-title); color: var(--c-accent); min-width: 24px; }
.step strong { font-weight: var(--fw-title); }
.step span + span { line-height: 1.5; }
.form-card { background: var(--c-surface); color: var(--c-text); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
@media (min-width: 768px) { .form-card { padding: var(--s-6); } }
.form-card h2 { color: var(--c-ink); }

/* ───────────── Ficha (§3.11) ───────────── */
.ficha .gallery { margin-top: var(--s-4); }
.ficha__title-meta { font-size: var(--fs-ui); color: var(--c-muted); }
.ficha__body { display: grid; gap: var(--s-6); align-items: start; padding-top: var(--s-6); }
@media (min-width: 1024px) { .ficha__body { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-7); } }
.ficha__main { min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.ficha__aside { align-self: stretch; }   /* ocupa todo el alto de la fila: la tarjeta de precio viaja pegada (sticky) */
.block { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.block--box { background: var(--c-surface); border: 2px solid var(--c-accent); border-radius: var(--r-lg); padding: var(--s-5); }

.prose { max-width: 68ch; color: var(--c-text); }
.prose > * + * { margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 0; }
.prose li + li { margin-top: var(--s-1); }
.prose strong { color: var(--c-ink); font-weight: var(--fw-title); }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--s-6); }
.prose h3 { font-size: var(--fs-body); margin-top: var(--s-5); }

.floors { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.floor { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-ui); line-height: 1.5; }
.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--c-accent); }

.features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.features li {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); background: var(--c-surface);
  font-size: var(--fs-small); color: var(--c-ink);
}

.map { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--c-photo-placeholder); border: 1px solid var(--c-border); }
.map img { width: 100%; height: auto; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__activate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.map-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2) var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: var(--fs-ui); }
@media (max-width: 767px) { .nearby { grid-template-columns: 1fr; } }
.nearby li { display: flex; gap: var(--s-2); align-items: flex-start; line-height: 1.4; }
.nearby svg { width: 18px; height: 18px; color: var(--c-accent-strong); margin-top: 1px; flex-shrink: 0; }
.nearby span { color: var(--c-muted); }

/* Compartir */
.share { max-width: 520px; gap: var(--s-3); }
.share__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.share .ico-wa { color: var(--c-wa); }

/* Agenda una visita: dentro de la tarjeta de precio; en celular y tablet, panel desde abajo. */
.visit { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-5); scroll-margin-top: var(--s-5); }
.visit__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
@media (max-width: 1023px) {
  .visit.is-open {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 90vh; overflow-y: auto; margin: 0;
    background: var(--c-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s-5) var(--s-4) var(--s-6);
    border-top: 0; box-shadow: var(--shadow-menu);
  }
}

/* Barra fija inferior en celular y tablet (especificación 5.3) */
.sticky-bar { display: none; }
@media (max-width: 1023px) {
  .sticky-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--c-surface); border-top: 1px solid var(--c-border);
    padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  }
  .pag-ficha { padding-bottom: 76px; }
}

/* Visor de fotos */
.viewer { position: fixed; inset: 0; z-index: 90; background: var(--c-viewer); display: grid; place-items: center; padding: var(--s-7) var(--s-2); }
.viewer__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.viewer__figure img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.viewer__figure figcaption { font-size: var(--fs-small); color: var(--c-on-dark); text-align: center; }
.viewer__count { color: var(--c-white); font-weight: var(--fw-title); margin-left: var(--s-2); }
.viewer .icon-btn { position: absolute; background: var(--c-surface); border-color: var(--c-surface); }
.viewer__close { top: var(--s-4); right: var(--s-4); }
.viewer__prev, .viewer__next { top: 50%; transform: translateY(-50%); }
.viewer__prev { left: var(--s-3); }
.viewer__next { right: var(--s-3); }

/* ───────────── Listado y filtros ───────────── */
.filters { margin-top: var(--s-4); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.filters__toggle { display: none; }
.filters__groups { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.filters__panel-head, .filters__panel-foot { display: none; }
.sort { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; font-size: var(--fs-ui); }
.sort label { font-weight: var(--fw-ui); color: var(--c-ink); white-space: nowrap; }
.sort .select { min-height: 40px; padding-top: var(--s-2); padding-bottom: var(--s-2); width: auto; font-size: var(--fs-ui); }

.filter { position: relative; }
.filter > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 40px; padding: var(--s-2) 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  background: var(--c-surface); color: var(--c-ink); font-size: var(--fs-ui); font-weight: var(--fw-title);
}
.filter > summary::-webkit-details-marker { display: none; }
.filter > summary svg { width: 16px; height: 16px; transition: transform .15s; }
.filter[open] > summary svg { transform: rotate(180deg); }
.filter--active > summary { border-color: var(--c-accent-strong); background: var(--c-accent-soft); }
.filter__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 300px; max-height: 70vh; overflow-y: auto;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-menu);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3);
}
.filter__menu fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter__sub { font-size: var(--fs-caption); font-weight: var(--fw-title); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin: var(--s-3) 0 var(--s-1); }
.filter__sub:first-child { margin-top: 0; }
.filter__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); border-top: 1px solid var(--c-border); padding-top: var(--s-3); }
.options { display: flex; flex-direction: column; }
.option { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; font-size: var(--fs-ui); color: var(--c-ink); cursor: pointer; }
.option input { width: 18px; height: 18px; accent-color: var(--c-accent-strong); margin: 0; flex-shrink: 0; }
.option__n { margin-left: auto; font-size: var(--fs-caption); color: var(--c-muted); padding-left: var(--s-3); }
.options--chips { flex-direction: row; flex-wrap: wrap; gap: var(--s-2); }
.options--chips .option { border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); padding: 0 var(--s-3); min-height: 36px; font-size: var(--fs-small); }
.options--chips .option:has(input:checked) { border-color: var(--c-accent-strong); background: var(--c-accent-soft); }
.options--chips .option__n { padding-left: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.help { font-size: var(--fs-caption); color: var(--c-muted); }

/* Venta / Alquiler dentro de la barra */
.seg-filter { display: inline-flex; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); overflow: hidden; margin: 0; padding: 0; background: var(--c-surface); }
.seg-filter .option { min-height: 38px; padding: 0 var(--s-3); gap: var(--s-1); font-weight: var(--fw-ui); }
.seg-filter .option + .option { border-left: 1px solid var(--c-border); }
.seg-filter .option input { position: absolute; opacity: 0; pointer-events: none; }
.seg-filter .option:has(input:checked) { background: var(--c-accent-soft); box-shadow: inset 0 -2px 0 var(--c-accent-strong); }
.seg-filter .option:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: -3px; }
.seg-filter .option__n { padding-left: var(--s-1); }

@media (max-width: 1023px) {
  .filters__toggle { display: inline-flex; }
  .filters__panel {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 88vh;
    background: var(--c-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-menu);
    flex-direction: column;
  }
  html:not(.js) .filters__panel { display: flex; position: static; box-shadow: none; border: 1px solid var(--c-border); border-radius: var(--r-md); max-height: none; }
  .filters__panel.is-open { display: flex; }
  .filters__panel-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) var(--s-4) var(--s-2); }
  .filters__panel-head h2 { font-size: var(--fs-h3); }
  .filters__groups { flex-direction: column; align-items: stretch; flex-wrap: nowrap; overflow-y: auto; padding: 0 var(--s-4); gap: 0; }
  .filters__panel-foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-border); }
  .filter { border-bottom: 1px solid var(--c-border); }
  .filter > summary { width: 100%; justify-content: space-between; border: 0; padding: var(--s-4) 0; min-height: 56px; background: none; }
  .filter--active > summary { background: none; color: var(--c-accent-strong); }
  .filter__menu { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 var(--s-4); max-height: none; }
  .filter__foot { display: none; }
  .seg-filter { margin: var(--s-3) 0; align-self: flex-start; }
  .sort { margin-left: 0; }
}

.active-chips { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.chip-remove {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); background: var(--c-accent-soft); border: 1px solid var(--c-accent);
  color: var(--c-ink); font-size: var(--fs-small); font-weight: var(--fw-ui); text-decoration: none;
}
.chip-remove:hover { border-color: var(--c-accent-strong); color: var(--c-ink); }
.clear-all { font-size: var(--fs-small); font-weight: var(--fw-ui); color: var(--c-ink); }

/* ───────────── Libro de Reclamaciones y Mis datos ───────────── */
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.sheet-head h1 { margin-bottom: var(--s-1); }
.sheet-number {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); background: var(--c-surface);
  font-size: var(--fs-caption); color: var(--c-muted);
}
.sheet-number strong { font-size: var(--fs-h3); color: var(--c-ink); font-weight: var(--fw-title); }
.provider { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: var(--s-4); font-size: var(--fs-small); color: var(--c-text); }
.provider strong { color: var(--c-ink); }
.form-block { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); padding: var(--s-5); margin: 0; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.form-block legend { font-size: var(--fs-h3); font-weight: var(--fw-title); color: var(--c-ink); padding: 0 var(--s-2); margin-left: calc(-1 * var(--s-2)); }
.form-page { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-5); }
.choice-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .choice-cards { grid-template-columns: 1fr; } }
.choice-cards label {
  display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); padding: var(--s-4); font-size: var(--fs-small); color: var(--c-text);
}
.choice-cards label:has(input:checked) { border-color: var(--c-accent-strong); background: var(--c-accent-soft); }
.choice-cards input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-accent-strong); flex-shrink: 0; }
.choice-cards strong { display: block; font-size: var(--fs-ui); color: var(--c-ink); font-weight: var(--fw-title); }
.choice-cards--error label { border-color: var(--c-error); }
.legal-texts { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-caption); color: var(--c-muted); }
.record { display: grid; grid-template-columns: 1fr; gap: var(--s-1) var(--s-5); margin: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-5); font-size: var(--fs-ui); }
@media (min-width: 768px) { .record { grid-template-columns: 180px 1fr; } }
.record dt { font-size: var(--fs-small); font-weight: var(--fw-title); color: var(--c-muted); padding-top: var(--s-2); }
.record dd { margin: 0; color: var(--c-ink); padding-top: var(--s-2); }
@media (min-width: 768px) { .record dt, .record dd { border-top: 1px solid var(--c-border); } .record dt:first-of-type, .record dd:first-of-type { border-top: 0; } }

/* ───────────── Páginas legales ───────────── */
.legal .prose { margin-top: var(--s-5); }
.legal .prose h2:first-child { margin-top: 0; }

/* ───────────── Pie (§3.8) ───────────── */
.footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: var(--s-8) 0 var(--s-5); font-size: var(--fs-small); color: var(--c-text); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: 1.4fr 1fr 1fr auto; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__title { font-size: var(--fs-caption); font-weight: var(--fw-title); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); margin: 0 0 var(--s-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer a { color: var(--c-text); text-decoration: none; }
.footer a:hover { color: var(--c-ink); text-decoration: underline; }
.footer__logo { height: 36px; width: auto; margin-bottom: var(--s-4); align-self: flex-start; }
.footer__brand { display: flex; flex-direction: column; }
.footer__redes { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.footer__redes a { color: var(--c-ink); display: inline-grid; place-items: center; width: 32px; height: 32px; }
.footer__redes svg { width: 24px; height: 24px; }
.footer__libro {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); background: var(--c-surface);
  color: var(--c-ink); font-weight: var(--fw-title); max-width: 260px;
}
.footer a.footer__libro { color: var(--c-ink); }
.footer__libro-icono { width: 32px; height: 32px; flex-shrink: 0; color: var(--c-accent-strong); }
.footer__bottom { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--c-border); font-size: var(--fs-caption); color: var(--c-muted); max-width: none; }

/* ───────────── Banner de cookies: tres botones del mismo peso ───────────── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--c-surface); border-top: 1px solid var(--c-border); box-shadow: var(--shadow-menu);
  padding: var(--s-4) 0 calc(var(--s-4) + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto;
}
.cookie-banner__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.cookie-banner__row p { font-size: var(--fs-small); flex: 1 1 420px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cookie-banner__actions form { margin: 0; }
@media (max-width: 767px) {
  .cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .cookie-banner__actions .btn { width: 100%; padding-left: var(--s-2); padding-right: var(--s-2); }
}
.cookie-config { display: flex; flex-direction: column; gap: 0; padding-top: var(--s-4); }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); border-top: 1px solid var(--c-border); padding: var(--s-3) 0; }
.cookie-cat strong { display: block; color: var(--c-ink); font-size: var(--fs-ui); font-weight: var(--fw-title); }
.cookie-cat span { font-size: var(--fs-small); color: var(--c-muted); }
.cookie-config .btn { align-self: flex-start; margin-top: var(--s-3); }
.switch { position: relative; display: inline-block; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.switch__track { display: block; width: 44px; height: 24px; border-radius: var(--r-pill); background: var(--c-border-strong); position: relative; transition: background-color .15s; }
.switch__track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: var(--r-pill); background: var(--c-white); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--c-accent-strong); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: .6; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* ───────────── Impresión (constancia del Libro) ───────────── */
@media print {
  .header, .footer, .cookie-banner, .no-print, .breadcrumbs { display: none !important; }
  body { background: var(--c-white); }
  .record, .provider { border-color: var(--c-border-strong); }
}

/* ───────────── Destacada del inicio (grilla): foto + texto, toda la tarjeta lleva a la ficha ───────────── */
.feature {
  position: relative; display: grid; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s;
}
@media (min-width: 1024px) { .feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.feature__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-photo-placeholder); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feature__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); justify-content: center; min-width: 0; }
@media (min-width: 768px) { .feature__body { padding: var(--s-6); } }
.feature__link { color: var(--c-ink); text-decoration: none; }
.feature__link::after { content: ''; position: absolute; inset: 0; }
.feature__link:focus-visible { outline: none; }
.feature:has(.feature__link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.feature .form-actions .btn, .feature .chip--count { position: relative; z-index: 1; }
.feature .chip--count { position: absolute; }
@media (hover: hover) {
  .feature:hover { box-shadow: var(--shadow-hover); }
  .feature:hover .feature__media img { transform: scale(1.03); }
}
@media (min-width: 1024px) { .price-inline--always { display: flex; } }
@media (min-width: 1024px) { .filters__panel { flex: 1 1 auto; } }
.section--top { padding-top: var(--s-6); }
@media (max-width: 767px) { .section--top { padding-top: var(--s-4); } }
.ficha__body { padding-bottom: var(--s-8); }
.nowrap { white-space: nowrap; }
.section + .section { padding-top: 0; }   /* dos secciones seguidas no suman su aire */
@media (min-width: 1024px) {
  .feature__media { aspect-ratio: auto; min-height: 100%; }            /* la foto llena todo el alto de la tarjeta */
  .feature__media img { position: absolute; inset: 0; }
}
.agent__avatar--iniciales { display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent-strong); font-size: var(--fs-ui); font-weight: var(--fw-title); }

/* Resumen de la descripción bajo los datos clave (inicio con una propiedad) */
.excerpt { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); }
.excerpt p { color: var(--c-text); }
.excerpt__more { display: inline-flex; align-items: center; gap: var(--s-1); align-self: flex-start; font-weight: var(--fw-title); color: var(--c-accent-strong); text-decoration: none; }
.excerpt__more:hover { color: var(--c-accent-strong-hover); text-decoration: underline; }
.excerpt__more svg { width: 18px; height: 18px; transition: transform .15s; }
.excerpt__more:hover svg { transform: translateX(3px); }

/* Columna izquierda del hero: el texto ocupa todo el ancho disponible, hasta la tarjeta de precio
   (el tope general de 68ch dejaba un hueco grande a la derecha). */
.prop-hero__main p, .ficha__main > p { max-width: none; }
@media (min-width: 1024px) { .prop-hero, .ficha__body { gap: var(--s-6); } }

/* Distribución v2 (pedido de Pablo 2026-10-15: tres columnas angostas se veían apretadas):
   una sola tarjeta con una fila por piso; el nombre del piso a la izquierda y sus
   ambientes en dos columnas a la derecha. En celular, apilado. */
.floors { display: block; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 0 var(--s-5); }
.floor { background: none; border: 0; border-radius: 0; padding: var(--s-5) 0; display: grid; gap: var(--s-3); }
.floor + .floor { border-top: 1px solid var(--c-border); }
@media (min-width: 768px) {
  .floor { grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  .floor .bullets { display: block; columns: 2; column-gap: var(--s-6); }
  .floor .bullets li { break-inside: avoid; margin-bottom: var(--s-2); }
}
.ficha__main .prose { max-width: none; }
/* Un solo grupo (típico de un departamento): sin la columna del nombre, ambientes en 3 columnas. */
.floors--single .floor h3 { display: none; }
@media (min-width: 768px) { .floors--single .floor { grid-template-columns: 1fr; } .floors--single .floor .bullets { columns: 3; } }
.ficha__main .prose p, .ficha__main .block p { max-width: none; }   /* en la ficha el texto llega hasta la tarjeta de precio */

/* Páginas de lectura (legales, Libro, Mis datos): bloque centrado y el texto usa todo su ancho. */
.narrow { margin-left: auto; margin-right: auto; }
.narrow p, .narrow .prose p, .narrow li { max-width: none; }

/* Bloques del Libro: el título va DENTRO de la tarjeta (no montado sobre el borde, como
   pone el navegador a una <legend> por defecto). */
.form-block { display: block; }
.form-block > legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--s-4); }
.form-block > legend + * { clear: both; }
.form-block > * + * { margin-top: var(--s-4); }
.form-block > legend + * { margin-top: 0; }
.sheet-head + .note { margin-top: var(--s-5); }
.note + .provider { margin-top: var(--s-2); }

/* Compartir v2 (pedido de Pablo 2026-10-15: se veía pegado a la izquierda): tarjeta a todo el
   ancho de la columna, los cuatro botones en una fila y el PDF como fila propia abajo. */
.share { max-width: none; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-5); gap: var(--s-4); }
.share__head { display: flex; flex-direction: column; gap: var(--s-1); }
.share__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .share__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.share__pdf { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; border-top: 1px solid var(--c-border); padding-top: var(--s-4); }
.share__pdf-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--c-accent-soft); color: var(--c-accent-strong); display: grid; place-items: center; flex-shrink: 0; }
.share__pdf-icon svg { width: 22px; height: 22px; }
.share__pdf p { flex: 1 1 220px; display: flex; flex-direction: column; font-size: var(--fs-small); color: var(--c-muted); }
.share__pdf strong { font-size: var(--fs-ui); color: var(--c-ink); font-weight: var(--fw-title); }
@media (max-width: 767px) { .share__pdf .btn { width: 100%; } }
.share__grid .btn { white-space: nowrap; padding-left: var(--s-2); padding-right: var(--s-2); }
.page-head .form-actions { margin-top: var(--s-5); }
.page-head + .section__title { margin-top: var(--s-6); }
