/* OPCIÓN 2 — MINIMALISTA MODERNA */
:root {
  --bg: #f7f6f3; --card: #fff; --ink: #121212; --ink2: #3a3a3a; --muted: #6b6a66; --line: #e6e3dc; --line2: #d9d5cc;
  --gold: #b8913f; --gold-t: #85661f; --gold-bg: #f3ecdc; --ok: #1d7a43;
  --sans: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --r: 16px; --focus: #121212;
  --on-ink: #fff; --ink-hover: #2b2b2b; --hover: #ecebe6; --top-bg: rgba(247,246,243,.86); --chip-bg: rgba(255,255,255,.94); --img-bg: #eee; --band: #121212;
  --ok-bg: #e7f4ec; --bad: #c62828; --bad-t: #8e2b25; --bad-bg: #fdecea; --dis: #b5b2ab;
}
/* Modo oscuro: solo el sitio público (el script del <head> pone data-theme="dark"); admin.html no lo usa y queda claro. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121110; --card: #1b1a18; --ink: #f2f0eb; --ink2: #c9c6bf; --muted: #a09d96; --line: #2b2a27; --line2: #3d3b36;
  --gold: #c9a24a; --gold-t: #d9bd7e; --gold-bg: #2a2418; --ok: #4cc47f; --focus: #f2f0eb;
  --on-ink: #121110; --ink-hover: #fff; --hover: #262522; --top-bg: rgba(18,17,16,.86); --chip-bg: rgba(27,26,24,.92); --img-bg: #26251f; --band: #24221e;
  --ok-bg: #16301f; --bad: #ff8a80; --bad-t: #ffb4ab; --bad-bg: #3a1d1b; --dis: #5a5852;
}
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
/* Fondo del sitio: dos luces doradas difusas que se desplazan muy lento, fijas detrás del contenido (opción 4 de pruebas/fondos.html).
   Quietas con "reducir movimiento". El panel (admin.html) las desactiva. Intensidad: --luz. */
:root { --luz: 15%; } html[data-theme="dark"] { --luz: 20%; }
/* Cuadrícula fina, fija, que se desvanece desde arriba a la derecha (opción 5 de pruebas/fondos.html). Sin movimiento. */
html::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--line2) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--line2) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 20%, transparent 72%); mask-image: radial-gradient(120% 90% at 80% 0%, #000 20%, transparent 72%); }
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; width: max(75vw, 520px); aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) var(--luz), transparent), transparent); animation: deriva 40s ease-in-out infinite alternate; }
body::before { top: -28vw; right: -20vw; }
body::after { bottom: -34vw; left: -24vw; opacity: .6; animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes deriva { to { transform: translate(-12%, 10%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-t); margin-bottom: 14px; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn .ico { width: 18px; height: 18px; }
.btn-dark, .btn-wa { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover, .btn-wa:hover { background: var(--ink-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.btn-out, .btn-sec { background: var(--card); border-color: var(--line2); color: var(--ink); }
.btn-out:hover, .btn-sec:hover { border-color: var(--ink); }

/* Header */
/* Arriba del todo la barra no tiene corte: su fondo se difumina hacia abajo hasta desaparecer (::before, que sobresale 32 px).
   Al bajar (o con el menú móvil abierto) pasa a la barra recta: fondo translúcido con desenfoque y línea inferior. */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, backdrop-filter .3s, border-color .3s; }
.top::before { content: ""; position: absolute; inset: 0 0 -32px; z-index: -1; pointer-events: none; background: linear-gradient(var(--top-bg) 30%, transparent); transition: opacity .3s; }
.scrolled .top, .menu-open .top { background: var(--top-bg); backdrop-filter: blur(12px); }
.scrolled .top { border-color: var(--line); }
.scrolled .top::before, .menu-open .top::before { opacity: 0; }
.top-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 500; transition: background .2s; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--hover); }
.top-wa { min-height: 44px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); position: relative; }
.burger span:not(.vh) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: block; }
  .top-in { gap: 10px; } /* WhatsApp y menú quedan juntos a la derecha */
  .top-wa { margin-left: auto; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 20px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.06); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 480px) { .top-wa-t { display: none; } .top-wa { width: 44px; padding: 0; } .logo img { height: 44px; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 100px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; font: 500 13px var(--mono); color: var(--ink2); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(29,122,67,.15); }
.hero h1 { font-size: clamp(42px, 6vw, 80px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 22px 0 20px; }
.hero h1 span { color: var(--gold-t); } /* --gold sobre el fondo claro daba 2,7:1 */
.lead { color: var(--muted); font-size: 18px; max-width: 52ch; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-acts .btn { min-height: 52px; }
.buscador { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 6px; margin-top: 32px; padding: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.18); }
.buscador label { display: grid; padding: 8px 12px 6px; border-radius: 12px; transition: background .2s; }
.buscador label:hover { background: var(--bg); }
.buscador label + label { border-left: 1px solid var(--line); border-radius: 0; }
.buscador span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.buscador select { border: 0; background: none; padding: 2px 0; font-weight: 600; font-size: 15px; min-height: 32px; cursor: pointer; outline: none;
  width: 100%; min-width: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.buscador label { min-width: 0; }
/* Si el buscador es angosto (pantallas medianas), el botón baja a su propia fila y los 3 filtros usan todo el ancho */
.hero-copy { container-type: inline-size; }
@container (min-width: 560px) and (max-width: 700px) {
  .buscador { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buscador .btn { grid-column: 1 / -1; min-height: 50px; }
}
@container (min-width: 440px) and (max-width: 559px) {
  .buscador { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .buscador label:nth-of-type(3) { border-left: 0; }
  .buscador .btn { min-height: 100%; }
}
/* El foco se marca en toda la celda (etiqueta + valor), sin tapar el nombre del filtro */
.buscador label:focus-within { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 12px; }
.buscador .btn { min-height: 56px; border-radius: 12px; }
.hero-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; min-height: 44px; }
.hero-wa .ico { color: var(--ok); }
.hero-wa:hover { text-decoration-color: var(--ink); }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
/* Carrusel: fotos superpuestas con fundido; puntos con barra de progreso de 5 s y botón de pausa */
.hero-art .slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 5.8s ease-out; }
.hero-art .slide.on { opacity: 1; transform: scale(1); }
.hero-chip.cambia { opacity: 0; transform: translateY(6px); }
.hero-ctrl { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; z-index: 2; }
.hero-dots { display: flex; gap: 6px; padding: 8px 10px; border-radius: 99px; background: rgba(18,18,18,.35); backdrop-filter: blur(8px); }
.hero-dots button { position: relative; width: 22px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); overflow: hidden; transition: width .3s; }
.hero-dots button::before { content: ""; position: absolute; inset: -10px -2px; } /* área de toque más grande */
.hero-dots button[aria-current] { width: 40px; }
.hero-dots i { position: absolute; inset: 0; width: 0; background: #fff; border-radius: inherit; }
.hero-art.tick .hero-dots button[aria-current] i { animation: hero-prog var(--dur, 5s) linear forwards; }
.hero-art:not(.corriendo) .hero-dots button[aria-current] i { animation: none; width: 100%; }
@keyframes hero-prog { from { width: 0; } to { width: 100%; } }
.hero-pp { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(18,18,18,.35); color: #fff; fill: currentColor; backdrop-filter: blur(8px); }
.hero-pp:hover { background: rgba(18,18,18,.55); }
.hero-pp .i-play { display: none; } .hero-art.pausado .hero-pp .i-play { display: block; } .hero-art.pausado .hero-pp .i-pausa { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-art .slide { transition: opacity .01ms; transform: none; } }
.hero-chip { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; background: var(--chip-bg);
  backdrop-filter: blur(10px); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .25s, opacity .18s; }
.hero-chip:hover { transform: translateY(-3px); }
.hero-chip span { display: grid; flex: 1; line-height: 1.3; }
.hero-chip small { font: 500 12px var(--mono); color: var(--muted); }
.hero-chip b { font-size: 17px; }
.hero-chip strong { font: 600 18px var(--sans); }
.hero-chip .ico { width: 20px; height: 20px; }
@media (max-width: 600px) { .hero-art { display: none; } } /* En celular el inicio va sin carrusel */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4 / 3.4; border-radius: 20px; }
  .buscador { grid-template-columns: 1fr 1fr; }
  .buscador label + label { border-left: 0; }
  .buscador label { border: 1px solid var(--line) !important; border-radius: 12px !important; }
  .buscador .btn { grid-column: 1 / -1; }
}

/* Catálogo */
.catalogo { background: var(--card); border-block: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
.cat-in { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; }
.side { position: sticky; top: 100px; }
/* La barra de filtros es un <dialog>: en pantallas grandes se ve siempre como barra lateral; en celular es una hoja que sube desde abajo */
dialog.side { display: block; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.cat-bar, .sheet-foot, .fil-x { display: none; }
.filtros .ord { padding-top: 22px; border-top: 1px solid var(--line); } /* escritorio: "Ordenar por" va separado de los filtros */
.cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font: 600 12px var(--mono); }
.cnt[hidden] { display: none; }
.side-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 20px; }
.side-head h2 { font-size: 34px; }
.limpiar { border: 0; background: none; color: var(--ink2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.limpiar:disabled { color: var(--dis); text-decoration: none; cursor: default; }
.filtros { display: grid; gap: 22px; }
.filtros > label > span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: block; }
.filtros select { width: 100%; appearance: none; min-height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: 15px; }
.cuenta { font: 500 13px var(--mono); color: var(--muted); margin-bottom: 18px; min-height: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, border-color .3s, transform .3s; }
.card:hover { box-shadow: 0 18px 40px -20px rgba(0,0,0,.22); border-color: var(--line2); transform: translateY(-3px); }
.card-img { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--img-bg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.estado, .nfotos { position: absolute; top: 12px; font: 500 12px var(--mono); padding: 5px 9px; border-radius: 8px; background: var(--chip-bg); }
.estado { left: 12px; color: var(--ok); }
.estado.est-reservado { background: #ffd84d; color: #3d2e00; font-weight: 600; }
.estado.est-vendido { background: #c62828; color: #fff; font-weight: 600; }
.card.vendido .card-img img { filter: grayscale(.55); }
.card.vendido .precio { color: var(--muted); }
.btn-vendido { background: var(--bad-bg); color: var(--bad); cursor: default; }
.dt-vendido { flex-basis: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad-t); font-weight: 600; }
.nfotos { right: 12px; color: var(--ink2); }
.card-body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card-title p { font-size: 14px; color: var(--muted); }
.card-title b { color: var(--gold-t); font-weight: 600; }
.precio { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { font: 500 12.5px var(--mono); padding: 4px 8px; border-radius: 6px; background: var(--bg); color: var(--ink2); }
.card-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-acts .btn { min-height: 44px; font-size: 14px; padding: 0 10px; }
.mas-wrap { display: flex; justify-content: center; margin-top: 32px; }
.vacio { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding: 36px; border: 1px dashed var(--line2); border-radius: var(--r); }
.vacio p { flex-basis: 100%; font-weight: 600; font-size: 18px; }
@media (max-width: 900px) {
  .cat-in { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; }
  .filtros { grid-template-columns: 1fr 1fr; gap: 14px; }
  .filtros > label:first-child { grid-column: 1 / -1; }
  /* Celular: encabezado y filtros más compactos para que el primer auto se vea sin scroll largo */
  .page-head .lead { display: none; }
  .page-head { padding-block: 24px 12px; }
  .side-head { margin-bottom: 8px; } .side-head h2 { font-size: 22px; }
  .filtros { gap: 10px 12px; } .filtros select { min-height: 44px; }
  /* Botón "Filtros" (con contador) y hoja inferior: mismo estilo que el inventario del panel */
  .cat-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .filtros .ord { display: none; } /* en celular el orden está en la barra */
  .cat-bar .mas { position: relative; }
  .cat-bar summary { list-style: none; cursor: pointer; } .cat-bar summary::-webkit-details-marker { display: none; }
  .cat-bar .mas[open] summary { border-color: var(--ink); }
  .cat-bar .mas-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; max-width: calc(100vw - 32px); padding: 6px; display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); }
  .cat-bar .mas:last-child .mas-menu { left: auto; right: 0; min-width: 180px; }
  .cat-bar .mas-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 15px var(--sans); color: var(--ink); }
  .cat-bar .mas-menu button:hover, .cat-bar .mas-menu button:focus-visible { background: var(--bg); }
  .cat-bar .mas-menu [aria-checked="true"] { font-weight: 600; background: var(--gold-bg); }
  .cat-bar .mas-menu [aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--gold-t); }
  /* Ver: cuadrícula = 2 columnas con tarjetas compactas */
  .grid[data-vista="cuadricula"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid[data-vista="cuadricula"] .card-img { aspect-ratio: 4 / 3; }
  .grid[data-vista="cuadricula"] .nfotos { display: none; }
  .grid[data-vista="cuadricula"] .estado { top: 8px; left: 8px; font-size: 11px; padding: 4px 7px; }
  .grid[data-vista="cuadricula"] .card-body { padding: 12px; gap: 6px; }
  .grid[data-vista="cuadricula"] .card-title h3 { font-size: 15px; }
  .grid[data-vista="cuadricula"] .card-title p { font-size: 12.5px; }
  .grid[data-vista="cuadricula"] .precio { font-size: 18px; }
  .grid[data-vista="cuadricula"] .specs li:nth-child(n+3) { display: none; }
  .grid[data-vista="cuadricula"] .specs li { font-size: 11.5px; padding: 3px 6px; }
  .grid[data-vista="cuadricula"] .card-acts { grid-template-columns: 1fr; gap: 6px; padding-top: 4px; }
  /* Ver: lista = una fila por auto, con la foto a la izquierda, los datos a la derecha y los botones abajo a todo el ancho */
  .grid[data-vista="lista"] { grid-template-columns: 1fr; gap: 12px; }
  .grid[data-vista="lista"] .card { display: grid; grid-template-columns: 104px minmax(0, 1fr) 44px; grid-template-areas: "i t b" "i p b" "i s b"; grid-template-rows: auto auto 1fr; gap: 4px 12px; padding: 10px; }
  .grid[data-vista="lista"] .card-img { grid-area: i; aspect-ratio: auto; min-height: 112px; border-radius: 12px; }
  .grid[data-vista="lista"] .card-img img { position: absolute; inset: 0; }
  .grid[data-vista="lista"] .nfotos { display: none; }
  .grid[data-vista="lista"] .estado { top: 6px; left: 6px; font-size: 10.5px; padding: 3px 6px; border-radius: 6px; }
  .grid[data-vista="lista"] .card-body { display: contents; }
  .grid[data-vista="lista"] .card-title { grid-area: t; }
  .grid[data-vista="lista"] .card-title h3 { font-size: 16px; }
  .grid[data-vista="lista"] .card-title p { font-size: 12.5px; }
  .grid[data-vista="lista"] .precio { grid-area: p; font-size: 19px; }
  .grid[data-vista="lista"] .specs { grid-area: s; align-self: start; gap: 4px; }
  .grid[data-vista="lista"] .specs li { font-size: 11.5px; padding: 3px 6px; }
  .grid[data-vista="lista"] .specs li:nth-child(n+3) { display: none; }
  /* Botones chicos a la derecha, uno sobre otro: "Ver detalles" (flecha) arriba y WhatsApp abajo, solo con icono (el texto queda para lectores de pantalla) */
  .grid[data-vista="lista"] .card-acts { grid-area: b; grid-template-columns: 44px; align-self: center; gap: 8px; margin: 0; padding: 0; }
  .grid[data-vista="lista"] .card-acts .btn { width: 44px; min-height: 44px; height: 44px; padding: 0; gap: 0; border-radius: 12px; font-size: 0; overflow: hidden; } /* font-size 0: el texto no se ve pero sigue siendo el nombre accesible */
  .grid[data-vista="lista"] .card-acts .btn-vendido { display: none; }
  .grid[data-vista="lista"] .card-acts .btn-out::after { content: "→"; font: 600 22px/1 var(--sans); }
  .grid[data-vista="lista"] .card-acts .ico { flex: none; width: 20px; height: 20px; }
  .fil-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink); font: 600 15px var(--sans); }
  .fil-btn:hover { border-color: var(--ink); }
  dialog.side:not([open]) { display: none; }
  dialog.side[open] { position: fixed; inset: auto 0 0; width: 100%; max-height: 88dvh; overflow: auto; margin: 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--card); color: var(--ink);
    box-shadow: 0 -20px 60px -20px rgba(0,0,0,.45); animation: hoja-sube .28s cubic-bezier(.2,.7,.2,1); }
  dialog.side::backdrop { background: rgba(20,20,20,.45); backdrop-filter: blur(4px); }
  @keyframes hoja-sube { from { transform: translateY(100%); } }
  dialog.side .side-head { position: relative; flex-wrap: nowrap; align-items: center; gap: 8px; padding-top: 14px; margin-bottom: 14px; }
  dialog.side .side-head::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--line2); }
  dialog.side .side-head h2 { margin-right: auto; }
  .fil-x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
  .fil-x:hover { background: var(--bg); color: var(--ink); }
  dialog.side .filtros { grid-template-columns: 1fr; gap: 16px; }
  .sheet-foot { display: block; margin-top: 18px; } .sheet-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { dialog.side[open] { animation: none; } }

/* Consignación */
.page-first { padding-block: clamp(24px, 4vw, 48px) 0; }
.consigna h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.consigna { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--gold-bg); border-radius: 28px; overflow: hidden; }
.consigna-copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.consigna-copy > p:not(.kicker) { color: var(--ink2); font-size: 17px; max-width: 48ch; }
.checks { display: grid; gap: 10px; margin: 6px 0 12px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checks .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.consigna-img { position: relative; min-height: 320px; }
.consigna-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .consigna { grid-template-columns: 1fr; } .consigna-img { order: -1; min-height: 260px; } }
/* Formulario de consignación (patente y kilometraje antes de abrir WhatsApp) */
.form-c { display: grid; gap: 16px; width: 100%; max-width: 440px; margin-top: 8px; }
.form-c .btn { justify-self: start; }
.campo { display: grid; gap: 8px; }
fieldset.campo { border: 0; padding: 0; margin: 0; min-width: 0; }
.campo legend { padding: 0; margin-bottom: 8px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.campo .opciones label { position: relative; text-transform: none; letter-spacing: 0; font: 600 15px var(--sans); color: var(--ink); }
.opciones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opciones span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); transition: background .15s, border-color .15s; }
.opciones input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.opciones input:focus-visible + span { outline: 2px solid var(--focus, #c9a24a); outline-offset: 3px; }
.campo label { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.campo .opc { text-transform: none; letter-spacing: 0; color: var(--muted); }
.campo input, .campo textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.campo textarea { resize: vertical; min-height: 96px; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--muted); opacity: 1; }
.campo #patente { text-transform: uppercase; font-family: var(--mono); letter-spacing: .08em; }
.campo #patente::placeholder { text-transform: none; font-family: inherit; letter-spacing: 0; }
.campo-km { position: relative; }
.campo-km input { padding-right: 48px; }
.campo-km span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.campo [aria-invalid="true"] { border-color: #b3261e; }
.campo-err { color: #b3261e; font-size: 14px; }
html[data-theme="dark"] .campo [aria-invalid="true"] { border-color: #f2b8b5; }
html[data-theme="dark"] .campo-err { color: #f2b8b5; }

/* Servicios */
.servicios { padding-block: clamp(64px, 8vw, 110px); }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head > p:not(.kicker) { color: var(--muted); margin-top: 14px; font-size: 17px; }
.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.serv { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; transition: border-color .3s; }
.serv:hover { border-color: var(--gold); }
.serv-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-bg); color: var(--gold-t); margin-bottom: 8px; }
.serv-ico .ico { width: 24px; height: 24px; }
.serv h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.serv p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .serv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .serv-grid { grid-template-columns: 1fr; } }

/* Contacto */
.contacto { padding-bottom: clamp(64px, 8vw, 110px); }
.cto { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--band); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 64px); }
.cto .kicker { color: #d9bd7e; }
.cto h2 + p { color: #b9b7b1; margin-top: 12px; }
.cto-list { display: grid; gap: 10px; }
.cto-list a, .cto-list li > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #2f2f2f; border-radius: 14px; text-decoration: none; transition: background .2s, border-color .2s; }
.cto-list a:hover { background: #1d1d1d; border-color: #4a4a4a; }
.cto-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #1f1f1f; color: #d9bd7e; flex: none; }
.cto-ico .ico { width: 22px; height: 22px; }
.cto-list small { display: block; font: 500 12px var(--mono); color: #9a9892; text-transform: uppercase; }
.cto-list b { font-size: 18px; font-weight: 600; }
@media (max-width: 800px) { .cto { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--card); padding-top: 56px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px; } /* auto: el usuario de Instagram no se corta */
.foot-brand img { height: 60px; width: auto; margin-bottom: 12px; }
.foot h3 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.foot a, .foot p { display: block; color: var(--ink2); text-decoration: none; font-size: 15px; padding: 3px 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-redes a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; }
.foot-redes .ico { width: 20px; height: 20px; flex: none; }
.foot-redes [data-cfg="whatsappVisible"] { white-space: nowrap; }
.foot-legal { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 22px; }
.foot-legal p { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand, .foot-redes { grid-column: 1 / -1; } }

/* WhatsApp flotante */
.wa-float { background: #1a8f4c; }

/* Ficha */
.detalle { background: var(--card); color: var(--ink); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.detalle::backdrop { background: rgba(20,20,20,.5); }
.dt-galeria { padding: 14px 0 0 14px; }
.dt-main { border-radius: 16px; }
.dt-x, .dt-nav { background: var(--chip-bg); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.dt-thumbs { padding: 10px 0; }
.dt-thumbs button { border-radius: 10px; }
.dt-thumbs button[aria-current] { border-color: var(--ink); }
.dt-kicker span { font: 500 12px var(--mono); padding: 5px 9px; border-radius: 8px; background: var(--bg); color: var(--ink2); }
.dt-kicker .dt-estado { color: var(--ok); background: var(--ok-bg); }
.dt-kicker .dt-est-reservado { background: #ffd84d; color: #3d2e00; font-weight: 600; }
.dt-kicker .dt-est-vendido { background: #c62828; color: #fff; font-weight: 600; }
.dt h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.035em; line-height: 1.05; }
.dt-marca { color: var(--muted); font-weight: 500; }
.dt-version { color: var(--muted); font: 500 14px var(--mono); }
.dt-precio { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.dt-precio small { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dt-datos { gap: 10px; }
.dt-datos > div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.dt-datos .ico { color: var(--gold-t); }
.dt-datos dt { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; }
.dt-datos dd { font-weight: 600; }
.dt-desc { color: var(--ink2); font-size: 17px; }
.dt-extras h3 { font: 500 12px var(--mono); text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.dt-extras li { font-size: 15px; } .dt-extras .ico { color: var(--ok); }
.dt-acciones .btn { flex: 1 1 200px; }
.dt-share { right: 66px; }
@media (max-width: 860px) { .dt-acciones .btn { flex-basis: 140px; min-width: 0; padding-inline: 10px; font-size: 14px; line-height: 1.2; white-space: normal; text-align: center; } }
.dt-volver { color: var(--ink2); font-weight: 500; }
@media (max-width: 860px) { .detalle { border-radius: 0; } .dt-galeria { padding: 0; } .dt-main { border-radius: 0; } .dt-thumbs { padding: 10px; } .dt-acciones { background: var(--card); padding: 12px 0; border-top: 1px solid var(--line); } }

/* ---------- Sitio multipágina ---------- */
@media (max-width: 1040px) and (min-width: 901px) { .nav a { padding: 10px 9px; font-size: 14px; } .top-in { gap: 16px; } }
@media (max-width: 900px) { .nav a[aria-current="page"] { background: none; color: var(--gold-t); } }

/* Encabezado de páginas interiores */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); max-width: 1240px; }
.page-head h1 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 600; max-width: 18ch; }
.page-head .lead { margin-top: 18px; }

/* Portada: destacados y accesos */
.destacados { padding-block: clamp(48px, 7vw, 96px) 0; }
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.sec-row .btn .ico, .dest-mas .ico { width: 16px; height: 16px; }
/* En celular el botón de Destacados baja al final de las tarjetas, para no repetir el del hero que queda justo arriba */
.dest-mas { display: none; }
@media (max-width: 600px) {
  .sec-row .btn { display: none; }
  .dest-mas { display: flex; margin-top: 20px; min-height: 52px; }
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); } }
.accesos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: clamp(56px, 8vw, 110px) 0; }
.acceso { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .3s, transform .3s, box-shadow .3s; }
.acceso:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.25); }
.acceso h2 { font-size: 22px; letter-spacing: -.02em; }
.acceso p { color: var(--muted); }
.acceso-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.acceso-link .ico { width: 16px; height: 16px; transition: transform .25s; }
.acceso:hover .acceso-link .ico { transform: translateX(4px); }
@media (max-width: 800px) { .accesos { grid-template-columns: 1fr; } }

/* Banda de llamada a la acción */
.cta-wrap { padding-block: clamp(56px, 8vw, 110px); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: var(--band); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 40px); }
.cta-band p { color: #b9b7b1; margin-top: 8px; }
.cta-acts, .cto-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cto-acts { margin-top: 24px; }
.btn-light { background: #fff; color: #121212; }
.btn-light:hover { background: #f1efe9; transform: translateY(-1px); }
.btn-ghost-l { border-color: #4a4a4a; color: #fff; background: transparent; }
.btn-ghost-l:hover { border-color: #fff; }

/* Consignación: pasos */
.pasos-sec { padding-block: clamp(64px, 8vw, 110px); }
.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.paso { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 10px; align-content: start; }
.paso-n { font: 500 13px var(--mono); color: var(--gold-t); }
.paso h3 { font-size: 20px; letter-spacing: -.02em; }
.paso p { color: var(--muted); }
.center { display: flex; justify-content: center; }
@media (max-width: 800px) { .pasos { grid-template-columns: 1fr; } }

/* Nosotros: cómo trabajamos */
.servicios { padding-block: 0 clamp(56px, 8vw, 96px); }
.principios { padding-block: 0; }
.prin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.prin-grid li { display: grid; gap: 8px; align-content: start; }
.prin-grid .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--ink); color: var(--on-ink); margin-bottom: 6px; }
.prin-grid h3 { font-size: 18px; }
.prin-grid p { color: var(--muted); }
@media (max-width: 800px) { .prin-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Ubicación */
.ubic { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; padding-bottom: 20px; }
.ubic-info { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 28px; }
.ubic-list { display: grid; gap: 18px; }
.ubic-list li { display: flex; align-items: center; gap: 14px; }
.ubic-list .cto-ico { background: var(--gold-bg); color: var(--gold-t); }
.ubic-list small { display: block; font: 500 12px var(--mono); text-transform: uppercase; color: var(--muted); }
.ubic-list b { font-size: 18px; font-weight: 600; }
.ubic-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.ubic-mapa { min-height: 420px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--gold-bg); }
.ubic-mapa iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.mapa-vacio { height: 100%; min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 32px;
  background: repeating-linear-gradient(45deg, transparent 0 22px, rgba(133,102,31,.06) 22px 23px), var(--gold-bg); }
.mapa-vacio p { color: var(--ink2); max-width: 32ch; }
@media (max-width: 860px) { .ubic { grid-template-columns: 1fr; } .ubic-mapa, .ubic-mapa iframe, .mapa-vacio { min-height: 300px; } }

/* Contacto */
.cto h2 { font-size: clamp(28px, 3.2vw, 40px); }
/* Modo oscuro: flechas de los desplegables, logo y botón de tema */
@supports not (appearance: base-select) { html[data-theme="dark"] .filtros select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f2f0eb' stroke-width='1.5'/%3E%3C/svg%3E"); } }
html[data-theme="dark"] .logo img, html[data-theme="dark"] .foot-brand img { filter: drop-shadow(0 0 .7px var(--gold)) drop-shadow(0 0 .7px var(--gold)); } /* el óvalo negro del logo se perdería sobre el fondo oscuro */
.tema { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink); }
.tema:hover { border-color: var(--ink); }
.tema svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tema .sol, html[data-theme="dark"] .tema .luna { display: none; } html[data-theme="dark"] .tema .sol { display: block; }

/* ---------- Desplegables con el diseño del sitio ----------
   Desplegable personalizable nativo (appearance: base-select): Chrome/Edge 135+.
   Safari y Firefox mantienen su lista nativa (en iPhone, la rueda del sistema). */
@supports (appearance: base-select) {
  .buscador select, .filtros select, .buscador select::picker(select), .filtros select::picker(select) { appearance: base-select; }
  .buscador select, .filtros select { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .filtros select { background-image: none; padding-right: 14px; }
  .buscador select::picker-icon, .filtros select::picker-icon {
    content: ""; width: 10px; height: 10px; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: rotate .2s ease; }
  html[data-theme="dark"] :is(.buscador, .filtros) select::picker-icon { filter: invert(1); }
  .buscador select:open::picker-icon, .filtros select:open::picker-icon { rotate: 180deg; }

  .buscador select::picker(select), .filtros select::picker(select) {
    border: 1px solid var(--line); border-radius: 14px; padding: 6px; margin-block: 8px;
    background: var(--card); color: var(--ink); min-width: max(anchor-size(width), 200px);
    box-shadow: 0 22px 44px -18px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.05);
    opacity: 1; translate: 0 0;
    transition: opacity .16s ease, translate .16s ease, overlay .16s allow-discrete, display .16s allow-discrete; }
  @starting-style { .buscador select:open::picker(select), .filtros select:open::picker(select) { opacity: 0; translate: 0 -6px; } }

  .buscador option, .filtros option {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
    font: 500 15px var(--sans); color: var(--ink2); cursor: pointer; transition: background .12s; }
  .buscador option:hover, .filtros option:hover, .buscador option:focus-visible, .filtros option:focus-visible { background: var(--bg); color: var(--ink); outline: none; }
  .buscador option:checked, .filtros option:checked { color: var(--ink); font-weight: 600; background: var(--gold-bg); }
  .buscador option::checkmark, .filtros option::checkmark { order: 1; margin-left: auto; color: var(--gold-t); font-weight: 700; }
  .buscador selectedcontent, .filtros selectedcontent { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .buscador select::picker(select), .filtros select::picker(select) { transition: none; } }

/* Horarios en lista (ubicación y contacto): un renglón por día o grupo de días; si no caben en una línea, las horas pasan abajo */
.hr { display: grid; gap: 6px; margin-top: 2px; font-size: 16px; line-height: 1.35; container-type: inline-size; }
.hr-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 14px; }
.hr-d { font-weight: 500; opacity: .75; }
.hr-h { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hr-h.cer { font-weight: 500; opacity: .6; }
/* Si el espacio es muy angosto (p. ej. contacto en celular), cada día va con su horario debajo, todos igual */
@container (max-width: 235px) { .hr { gap: 10px; } .hr-f { display: block; } .hr-h { display: block; } }
li:has(.hr), li:has(.hr) > div, li:has(.hr) > a { align-items: flex-start !important; }
li:has(.hr) > span:last-child, li:has(.hr) > a > span:last-child, li:has(.hr) > div > span:last-child { flex: 1; min-width: 0; }
li:has(.hr) .cto-ico { margin-top: 2px; }
