/* Concepto: cartelería de ruta argentina sobre cielo nublado de la pampa.
   Verde monte como tinta, amarillo de señal vial como único acento. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --cielo: #E8ECE7;      /* fondo: cielo encapotado */
  --papel: #F8F9F6;      /* superficies */
  --monte: #1E3A2C;      /* verde profundo: tinta y bandas */
  --monte-2: #2C5140;
  --texto: #1F2620;
  --apagado: #5D665E;
  --linea: #CBD2C9;
  --senal: #F2B705;      /* amarillo de cartel vial */
  --senal-osc: #D9A200;
  --wa: #1FAF55;
  --asfalto: #3A3F3B;
  --campo-a: #C9D4BE;
  --campo-b: #BFCBB2;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texto: "Barlow", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --ancho: 1240px;
  --radio: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cielo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--senal); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
[hidden] { display: none !important; }

.saltar { position: absolute; left: 16px; top: -60px; background: var(--senal); color: var(--monte); padding: 10px 14px; z-index: 100; font-weight: 600; }
.saltar:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
  padding: .7em 1.25em; border-radius: var(--radio); border: 2px solid transparent;
  text-decoration: none; transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--senal { background: var(--senal); color: var(--monte); }
.btn--senal:hover { background: var(--senal-osc); }
.btn--monte { background: var(--monte); color: var(--papel); }
.btn--monte:hover { background: var(--monte-2); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #179447; }
.btn--linea { border-color: var(--monte); color: var(--monte); background: transparent; }
.btn--linea:hover { background: var(--monte); color: var(--papel); }
.btn--linea-oscura { border-color: var(--monte); color: var(--monte); }
.btn--linea-oscura:hover { background: var(--monte); color: var(--papel); }
.btn--chico { font-size: 1rem; padding: .5em .95em; }
.btn--grande { font-size: 1.3rem; padding: .85em 1.5em; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cielo) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.cabecera.con-borde { border-bottom-color: var(--linea); }
.cabecera__in {
  max-width: var(--ancho); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.marca { text-decoration: none; display: grid; line-height: 1; margin-right: auto; }
.marca__nombre { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .01em; color: var(--monte); }
.marca__sub { font-size: .8rem; color: var(--apagado); margin-top: 3px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--texto); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--senal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a.activo::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--monte); transition: transform .25s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Cartel de ruta (elemento firma) ---------- */
.cartel { display: inline-flex; align-items: center; gap: 12px; }
.cartel__escudo {
  display: inline-grid; place-items: center; line-height: .9;
  width: 64px; height: 70px; padding-top: 4px;
  background: var(--papel); color: var(--monte);
  border: 3px solid var(--monte);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 50% 100%, 0 66%);
  font-family: var(--f-display); font-weight: 800; font-size: 1.75rem;
  box-shadow: inset 0 0 0 3px var(--papel), inset 0 0 0 5px var(--monte);
}
.cartel__escudo small { display: block; font-size: .7rem; letter-spacing: .08em; font-weight: 700; }
.cartel__lugar { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.05; color: var(--monte); }
.cartel__lugar small { font-family: var(--f-texto); font-weight: 500; font-size: .82rem; color: var(--apagado); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--ancho); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero__texto { min-width: 0; display: grid; gap: 22px; justify-items: start; }
.hero__titulo {
  font-family: var(--f-display); font-weight: 800; color: var(--monte);
  font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: .92; letter-spacing: -.01em;
  margin: 0; text-wrap: balance;
}
.hero__bajada { margin: 0; max-width: 46ch; font-size: 1.1rem; color: var(--apagado); }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foto {
  position: relative; display: block; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--monte); text-decoration: none; color: var(--papel);
  box-shadow: 0 30px 60px -30px rgba(30, 58, 44, .55);
}
.hero__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hero__foto:hover img { transform: scale(1.035); }
.hero__ficha {
  position: absolute; left: 16px; bottom: 16px; display: grid; gap: 2px;
  background: var(--monte); color: var(--papel); padding: 14px 18px 16px; border-radius: var(--radio);
  font-size: .9rem; max-width: calc(100% - 32px);
}
.hero__ficha strong { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; font-weight: 800; }
.hero__ficha-tag { justify-self: start; background: var(--senal); color: var(--monte); font-weight: 600; font-size: .75rem; padding: 2px 8px; border-radius: 3px; margin-bottom: 6px; }
.hero__ficha-precio { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: var(--senal); margin-top: 4px; }

/* Secuencia de entrada única del hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__texto > * { animation: subir .7s var(--ease) both; }
  .hero__texto > :nth-child(2) { animation-delay: .08s; }
  .hero__texto > :nth-child(3) { animation-delay: .16s; }
  .hero__texto > :nth-child(4) { animation-delay: .24s; }
  .hero__foto { animation: revelar 1s var(--ease) both .1s; }
  .cartel__escudo { animation: cartel .8s var(--ease) both .35s; }
}
@keyframes subir { from { opacity: .001; transform: translateY(14px); } }
@keyframes revelar { from { clip-path: inset(0 0 0 100% round 10px); } to { clip-path: inset(0 0 0 0 round 10px); } }
@keyframes cartel { from { transform: rotate(-12deg) translateY(-8px); } }

/* ---------- Rubros (accesos por categoría) ---------- */
.rubros {
  max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.rubro {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 12px; border-radius: 8px; background: var(--papel); border: 1px solid var(--linea);
  text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.rubro:hover { border-color: var(--monte); transform: translateY(-2px); }
.rubro__img { grid-row: span 2; width: 56px; height: 56px; border-radius: 5px; object-fit: cover; background: var(--campo-a); }
.rubro__nombre { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: var(--monte); line-height: 1.05; }
.rubro__cant { font-size: .85rem; color: var(--apagado); }

/* ---------- Catálogo ---------- */
.titulo-sec { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: .95; color: var(--monte); margin: 0; text-wrap: balance; }
.titulo-sec--claro { color: var(--papel); }
.catalogo { max-width: var(--ancho); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 96px); }
.catalogo__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 24px; margin-bottom: 18px; }
.catalogo__cuenta { margin: 6px 0 0; color: var(--apagado); font-size: .95rem; }
.filtros { display: flex; flex-wrap: nowrap; gap: 10px; flex: 0 1 560px; justify-content: flex-end; min-width: 0; }
.buscar { display: flex; align-items: center; gap: 8px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 0 12px; flex: 1 1 240px; min-width: 0; color: var(--apagado); transition: border-color .2s; }
.buscar:focus-within { border-color: var(--monte); }
.buscar input { border: 0; background: transparent; font: inherit; font-size: .98rem; padding: 11px 0; width: 100%; color: var(--texto); outline: none; }
.orden select { font: inherit; font-size: .98rem; padding: 11px 36px 11px 12px; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231E3A2C' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; color: var(--texto); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--linea); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: .95rem; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip span { color: var(--apagado); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--monte); }
.chip[aria-selected="true"] { background: var(--monte); color: var(--papel); border-color: var(--monte); }
.chip[aria-selected="true"] span { color: var(--senal); }

.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.tarjeta {
  display: flex; flex-direction: column; background: var(--papel); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: inherit; border: 1px solid var(--linea);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(30, 58, 44, .5); border-color: color-mix(in srgb, var(--monte) 35%, var(--linea)); }
.tarjeta__foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--campo-a); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.tarjeta__foto .alt { position: absolute; inset: 0; opacity: 0; }
.tarjeta:hover .tarjeta__foto .alt { opacity: 1; }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.04); }
.tarjeta__badges { position: absolute; inset: 12px 12px auto 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 1; }
.badge { background: var(--senal); color: var(--monte); font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 3px; }
.badge--fotos { background: rgba(20, 30, 24, .72); color: #fff; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; backdrop-filter: blur(4px); }
.tarjeta__cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarjeta__cat { font-size: .85rem; color: var(--apagado); }
.tarjeta__nombre { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--monte); margin: -4px 0 0; }
.puntos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.puntos li { font-size: .82rem; background: var(--cielo); padding: 3px 9px; border-radius: 3px; }
.tarjeta__pie { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--linea); display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; }
.tarjeta__pie .precio { font-size: 1.4rem; }
.tarjeta__ver.tarjeta__ver { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid !important; place-items: center; background: var(--cielo); transition: background-color .25s, color .25s; }
.tarjeta__ver .ico { width: 18px; height: 18px; }
.tarjeta:hover .tarjeta__ver.tarjeta__ver { background: var(--monte); color: var(--papel); }
.precio { white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; color: var(--texto); font-variant-numeric: tabular-nums; }
.precio--consultar { font-size: 1.2rem; font-weight: 700; color: var(--apagado); }
.tarjeta__ver { font-weight: 600; font-size: .92rem; color: var(--monte); display: inline-flex; align-items: center; gap: 4px; }
.tarjeta__ver .ico { transition: transform .25s var(--ease); }
.tarjeta:hover .tarjeta__ver .ico { transform: translateX(4px); }

.vacio { text-align: center; padding: 48px 16px; background: var(--papel); border: 1px dashed var(--linea); border-radius: 10px; display: grid; gap: 14px; justify-items: center; }
.vacio h3 { font-family: var(--f-display); font-size: 1.8rem; margin: 0; color: var(--monte); }
.vacio p { margin: 0; color: var(--apagado); max-width: 46ch; }

/* ---------- Consignaciones ---------- */
.consigna { background: var(--monte); color: color-mix(in srgb, var(--papel) 82%, var(--monte)); }
.consigna__in { max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.consigna__intro { display: grid; gap: 18px; justify-items: start; }
.consigna__intro p { margin: 0; max-width: 44ch; font-size: 1.08rem; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: paso; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-top: 1px solid rgba(248, 249, 246, .16); }
.pasos li:last-child { border-bottom: 1px solid rgba(248, 249, 246, .16); }
.pasos li::before { content: counter(paso); grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; line-height: .85; color: var(--senal); }
.pasos strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: var(--papel); line-height: 1.1; }
.pasos span { font-size: 1rem; }

/* ---------- Ubicación ---------- */
.ubicacion { max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ubicacion__mapa { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--linea); }
.ubicacion__mapa svg { width: 100%; height: 100%; display: block; }
.cartel--mapa { position: absolute; left: 50%; top: 18%; transform: translateX(-30%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.ubicacion__texto { display: grid; gap: 16px; justify-items: start; }
.ubicacion__texto p { margin: 0; max-width: 42ch; color: var(--apagado); }
.ubicacion__dir { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: var(--texto) !important; }

/* ---------- Contacto ---------- */
.contacto { background: var(--asfalto); color: color-mix(in srgb, var(--papel) 80%, var(--asfalto)); position: relative; }
.contacto::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--senal) 0 40px, transparent 40px 70px); }
.contacto__in { max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.contacto__persona { display: flex; gap: 22px; align-items: center; }
.contacto__persona p { margin: 10px 0 0; font-size: 1.08rem; }
.avatar { flex: none; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--senal); color: var(--monte); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 2rem; position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contacto__datos { display: grid; gap: 14px; justify-items: start; }
.dato { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 16px; }
.dato__lbl { grid-column: 1 / -1; font-size: .85rem; }
.dato__val { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; color: var(--papel); line-height: 1.05; font-variant-numeric: tabular-nums; }
.copiar { background: transparent; border: 1px solid rgba(248, 249, 246, .35); color: var(--papel); border-radius: 4px; padding: 4px 10px; font-size: .82rem; }
.copiar:hover { border-color: var(--senal); color: var(--senal); }

/* ---------- Pie ---------- */
.pie { background: var(--monte); color: color-mix(in srgb, var(--papel) 72%, var(--monte)); font-size: .92rem; padding-bottom: env(safe-area-inset-bottom, 0px); }
.pie__in { max-width: var(--ancho); margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.pie__in > div:first-child { display: grid; }
.pie__marca { font-family: var(--f-display); font-size: 1.3rem; color: var(--papel); }
.pie__links { display: flex; flex-wrap: wrap; gap: 18px; }
.pie__links a { text-decoration: none; }
.pie__links a:hover { color: var(--senal); }
.pie__ruta { color: var(--senal); font-weight: 500; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .25s var(--ease);
}
.fab .ico { width: 30px; height: 30px; }
.fab:hover { transform: scale(1.07); }

/* ================== DETALLE ================== */
.det { max-width: var(--ancho); margin: 0 auto; padding: 20px var(--gutter) clamp(56px, 8vw, 96px); }
.migas { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--apagado); margin-bottom: 18px; align-items: center; }
.migas a { text-decoration: none; color: var(--monte); font-weight: 500; }
.migas a:hover { text-decoration: underline; }
.volver { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); text-decoration: none !important; }
.volver:hover { border-color: var(--monte); }
.det__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

.galeria { min-width: 0; display: grid; gap: 12px; }
.galeria__principal { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--monte); touch-action: pan-y; }
.galeria__pista { display: flex; height: 100%; transition: transform .5s var(--ease); }
.galeria__slide { flex: 0 0 100%; height: 100%; position: relative; }
.galeria__slide img, .galeria__slide video { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.galeria__slide video { object-fit: contain; background: #000; cursor: auto; }
.galeria__nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(248, 249, 246, .92); color: var(--monte); display: grid; place-items: center; z-index: 2; transition: transform .2s var(--ease), opacity .2s; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.galeria__nav:hover { transform: scale(1.08); }
.galeria__nav:disabled { opacity: 0; pointer-events: none; }
.galeria__nav--ant { left: 12px; } .galeria__nav--sig { right: 12px; }
.galeria__nav .ico { width: 22px; height: 22px; }
.galeria__cont { position: absolute; left: 12px; bottom: 12px; background: rgba(20, 30, 24, .72); color: #fff; font-size: .85rem; padding: 4px 10px; border-radius: 3px; font-variant-numeric: tabular-nums; z-index: 2; }
.galeria__ampliar { position: absolute; right: 12px; bottom: 12px; z-index: 2; border: 0; background: rgba(20, 30, 24, .72); color: #fff; border-radius: 4px; padding: 6px 10px; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.miniaturas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mini { flex: 0 0 auto; width: 92px; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--campo-a); position: relative; opacity: .7; transition: opacity .2s, border-color .2s; scroll-snap-align: start; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini:hover { opacity: 1; }
.mini[aria-current="true"] { border-color: var(--monte); opacity: 1; }
.mini--video::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 26px; }

.ficha { position: sticky; top: 92px; display: grid; gap: 18px; }
.ficha__cat { font-size: .9rem; color: var(--apagado); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ficha__titulo { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: .92; color: var(--monte); margin: 0; text-wrap: balance; }
.ficha__precio { display: grid; gap: 2px; padding: 16px 18px; background: var(--papel); border-radius: 8px; border: 1px solid var(--linea); }
.ficha__precio small { color: var(--apagado); font-size: .85rem; }
.ficha__precio .precio { font-size: 2.4rem; line-height: 1; }
.ficha__precio .precio--consultar { font-size: 1.7rem; color: var(--monte); }
.ficha__financiado { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--linea); color: var(--apagado); font-size: .98rem; }
.ficha__financiado strong { font-family: var(--f-display); font-size: 1.35rem; color: var(--monte); font-weight: 700; margin-left: 4px; }
.ficha__resumen { margin: 0; font-size: 1.05rem; }
.datos { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 1px solid var(--linea); }
.datos dt, .datos dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--linea); }
.datos dt { color: var(--apagado); padding-right: 20px; font-size: .95rem; }
.datos dd { font-weight: 600; }
.ficha__acciones { display: grid; gap: 10px; }
.ficha__acciones .btn { width: 100%; }
.ficha__sec { display: flex; gap: 10px; }
.ficha__sec .btn { flex: 1; }
.ficha__nota { font-size: .9rem; color: var(--apagado); display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.ficha__nota .ico { margin-top: 3px; color: var(--monte); }

.relacionados { margin-top: clamp(48px, 7vw, 88px); }
.relacionados h2 { margin-bottom: 20px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.barra-movil { display: none; }

/* ---------- Visor pantalla completa ---------- */
.visor { position: fixed; inset: 0; z-index: 80; background: rgb(12, 18, 14); display: grid; place-items: center; padding: 56px 16px; animation: fundido .25s ease both; }
.visor__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.visor__fig img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 4px; }
.visor__cerrar, .visor__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.visor__cerrar:hover, .visor__nav:hover { background: rgba(255,255,255,.24); }
.visor__cerrar { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.visor__nav { top: 50%; translate: 0 -50%; }
.visor__nav--ant { left: 12px; } .visor__nav--sig { right: 12px; }
.visor__cont { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0; color: #fff; font-variant-numeric: tabular-nums; font-size: .95rem; }
@keyframes fundido { from { opacity: 0; } }

/* ---------- Aviso ---------- */
.aviso { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; background: var(--monte); color: var(--papel); padding: 10px 18px; border-radius: 6px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s var(--ease); z-index: 90; }
.aviso.ver { opacity: 1; translate: -50% 0; }

/* ---------- Transiciones entre vistas (View Transitions) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-salir; }
::view-transition-new(root) { animation-name: vt-entrar; }
::view-transition-group(foto-equipo) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(foto-equipo), ::view-transition-new(foto-equipo) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: hidden; }
::view-transition-group(titulo-equipo) { animation-duration: .5s; animation-timing-function: var(--ease); }
@keyframes vt-salir { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-entrar { from { opacity: 0; transform: translateY(12px); } }
.vista-entrando { animation: vt-entrar .4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .consigna__in, .ubicacion, .contacto__in, .det__grid { grid-template-columns: minmax(0, 1fr); }
  .rubros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rubro:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ficha { position: static; }
  .ubicacion__mapa { order: 2; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .cabecera__wa { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--cielo); border-bottom: 1px solid var(--linea); padding: 8px var(--gutter) 16px;
    clip-path: inset(0 0 100% 0); transition: clip-path .35s var(--ease); visibility: hidden;
  }
  .nav.abierto { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linea); font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: var(--monte); }
  .nav a::after { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .rubro { grid-template-columns: 44px minmax(0, 1fr); padding: 10px; gap: 2px 10px; }
  .rubro__img { width: 44px; height: 44px; }
  .rubro__nombre { font-size: 1.05rem; }
  .filtros { flex-wrap: wrap; }
  .filtros, .buscar, .orden, .orden select { width: 100%; }
  .migas > span:last-child, .migas > span:nth-last-child(2) { display: none; }
  .hero__acciones .btn { flex: 1 1 100%; }
  .hero__ficha { left: 10px; bottom: 10px; padding: 10px 14px 12px; }
  .hero__ficha strong { font-size: 1.3rem; }
  .contacto__persona { flex-direction: column; align-items: flex-start; }
  .dato__val { font-size: 1.6rem; }
  .galeria__principal { border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
  .galeria__nav { width: 40px; height: 40px; }
  .mini { width: 74px; }
  body.en-detalle .fab { display: none; }
  body.en-detalle .barra-movil {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; gap: 10px; align-items: center;
    background: var(--papel); border-top: 1px solid var(--linea); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 20px -12px rgba(0,0,0,.25);
  }
  .barra-movil .precio { font-size: 1.35rem; white-space: nowrap; }
  .barra-movil .btn { flex: 1; }
  body.en-detalle .pie { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Equipo vendido */
.badge--vendido { background: var(--asfalto); color: var(--papel); }
.tarjeta--vendida .tarjeta__foto img { filter: grayscale(.85); opacity: .8; }
.tarjeta--vendida .precio { text-decoration: line-through; color: var(--apagado); }
