/* ==========================================================================
   BRERA RENTAL — Páginas de equipos (catálogo, categorías, ficha de máquina)
   Usa las variables y componentes base de styles.css
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 980px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(234,241,242,.04);
  font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.kicker {
  margin: 0 0 12px; font-family: var(--f-label); font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--yellow);
}

/* ------------------------------------------------------------------ hero */
.eq-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 28px) 0 clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--teal-800) 0%, var(--teal-900) 100%);
  border-bottom: 1px solid var(--line);
}
.eq-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.eq-hero .wrap { position: relative; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .4; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--yellow); }
.crumbs [aria-current] { color: var(--ink); }

.eq-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

.eq-title {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(26px, 2.9vw, 46px); line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase;
}
.eq-title em { font-style: normal; color: var(--yellow); }
.eq-title--list { font-size: clamp(32px, 4.6vw, 76px); max-width: 15em; }
.eq-lead { max-width: 40em; margin: 24px 0 0; font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); }

.eq-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 36px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line);
}
.eq-stat { padding: 18px 20px; background: var(--teal-900); }
.eq-stat dt { font-family: var(--f-label); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eq-stat dd { margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(18px, 1.7vw, 26px); font-weight: 700; color: var(--ink); white-space: nowrap; }
.eq-stat:first-child dd { color: var(--yellow); }
.eq-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Regla de altura con la máquina a escala */
.gauge {
  --gh: min(64vh, 560px);
  position: relative; height: var(--gh);
  margin-left: 48px; margin-top: 24px;
}
.gauge__ruler { position: absolute; left: -48px; top: 0; bottom: 0; width: 40px; }
.gauge__ruler span {
  position: absolute; right: 8px; bottom: calc(var(--y) * 100%); transform: translateY(50%);
  font-family: var(--f-display); font-size: 11px; font-weight: 600; color: var(--muted);
}
.gauge__ruler span::after { content: ""; position: absolute; right: -10px; top: 50%; width: 6px; height: 1px; background: var(--muted); }
.gauge__track { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gauge__fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--h) * 100%); background: linear-gradient(0deg, var(--yellow-600), var(--yellow)); transform-origin: bottom; }
.gauge__mark {
  position: absolute; left: 0; right: -8px; bottom: calc(var(--y) * 100%);
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  border-bottom: 1px dashed rgba(237,200,98,.55);
  font-size: 12px; color: var(--muted); white-space: nowrap; z-index: 2;
}
.gauge__mark > span {
  transform: translateY(50%); padding: 5px 12px; border-radius: 999px;
  background: var(--teal-900); border: 1px solid rgba(237,200,98,.35);
}
.gauge__mark--plat > span { border-color: var(--line); }
.gauge__mark strong { font-family: var(--f-display); font-size: 18px; color: var(--yellow); }
.gauge__mark--plat { border-bottom-color: rgba(234,241,242,.22); font-size: 11px; }
.gauge__mark i { display: none; }
.gauge__machine {
  position: absolute; left: 4%; bottom: 0;
  height: calc(var(--s) * 100%); aspect-ratio: 800 / 1040;
}
.gauge__svg { width: 100%; height: 100%; }
.gauge__machine.is-live { height: 100%; aspect-ratio: auto; }
.gauge__person { fill: var(--ink); }

/* Íconos de máquinas */
.mach { display: block; overflow: visible; fill: var(--yellow); }
.mach line { stroke: var(--yellow); stroke-width: 26; stroke-linecap: square; }
.mach .boom-arms line { stroke-width: 58; stroke-linecap: round; }

/* ------------------------------------------------------------------ secciones */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec--tight { padding-top: clamp(32px, 5vw, 56px); }
.sec--alt { background: var(--teal-900); border-block: 1px solid var(--line); }
.sec__head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.01em; max-width: 22em; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--yellow); }
.link-arrow::after { content: "→"; transition: transform .4s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Ficha técnica (sección clara, se lee como una hoja de datos) */
.sec:has(.specs) { background: #F4F2EC; color: var(--teal-800); }
.sec:has(.specs) .kicker { color: var(--rust); }
.specs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.specs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs tr { border-bottom: 1px solid rgba(5,46,55,.12); }
.specs tr:first-child { border-top: 1px solid rgba(5,46,55,.12); }
.specs th { padding: 13px 16px 13px 0; text-align: left; font-weight: 400; color: rgba(5,46,55,.72); }
.specs td { padding: 13px 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.specs tr:hover { background: rgba(237,200,98,.18); }
.specs__src { margin: 16px 0 0; font-size: 13px; color: rgba(5,46,55,.6); }
.specs__src a { color: var(--teal-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.specs__equip { position: sticky; top: calc(var(--nav-h) + 24px); padding: 28px; border-radius: 20px; background: var(--teal-800); color: var(--ink); }
.specs__equip h3 { margin: 0 0 16px; font-family: var(--f-display); font-size: 18px; color: var(--yellow); }
.specs__equip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.specs__equip li { position: relative; padding-left: 20px; }
.specs__equip li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 6px; background: var(--yellow); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }

/* Usos */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.use { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: rgba(234,241,242,.03); }
.use__n { font-family: var(--f-display); font-size: 40px; font-weight: 800; color: var(--yellow); }
.use p { margin: 18px 0 0; font-size: 16px; }
.uses__help { margin: 28px 0 0; color: var(--muted); }
.uses__help a { color: var(--yellow); font-weight: 600; }

/* Comparador de flota */
.fleet { position: relative; padding-left: 48px; }
.fleet__ticks { position: absolute; left: 0; right: 0; top: 0; height: 320px; pointer-events: none; }
.fleet__ticks span { position: absolute; left: 0; right: 0; bottom: calc(var(--y) * 100%); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 0; }
.fleet__list { position: relative; display: grid; grid-template-columns: repeat(12, minmax(56px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.fleet__item a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fleet__val { order: 0; font-family: var(--f-display); font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--muted); }
.fleet__bar {
  width: 100%; max-width: 44px; height: calc(var(--h) * 320px);
  border-radius: 8px 8px 2px 2px; background: var(--petrol);
  transform-origin: bottom; transition: background-color .3s, transform .3s var(--ease-out);
}
.fleet__item a { height: 100%; justify-content: flex-end; }
.fleet__list { align-items: end; min-height: 380px; }
.fleet__name { margin-top: 12px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.fleet__kind { font-size: 10px; color: var(--muted); }
.fleet__item a:hover .fleet__bar { background: #3d7088; }
.fleet__item.is-current .fleet__bar { background: var(--yellow); }
.fleet__item.is-current .fleet__val, .fleet__item.is-current .fleet__name { color: var(--yellow); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: clamp(15px, 1.2vw, 18px); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease-out), background-color .3s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--yellow); transform: translate(-50%, -50%); }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.faq__item[open] summary i { background: rgba(237,200,98,.1); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item summary:hover { color: var(--yellow); }
.faq__a p { margin: 0; padding: 0 60px 24px 0; color: var(--muted); }

/* ------------------------------------------------------------------ tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--teal-900);
  transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out);
}
.card:hover { transform: translateY(-6px); border-color: rgba(237,200,98,.45); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.card.is-hidden { display: none; }
.card__visual {
  position: relative; height: 230px; display: grid; place-items: end center; padding: 28px 0 22px;
  background:
    radial-gradient(70% 80% at 50% 100%, rgba(43,85,103,.55), transparent 70%),
    var(--teal-800);
  border-bottom: 1px solid var(--line);
}
.card__visual .mach { height: 176px; width: auto; transition: transform .7s var(--ease-out); }
.card:hover .card__visual .mach { transform: translateY(-6px) scale(1.03); }
.card__h { position: absolute; left: 20px; top: 18px; font-family: var(--f-display); font-size: 13px; color: var(--muted); }
.card__h strong { font-size: 30px; color: var(--yellow); font-weight: 800; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card__tag { margin: 0; font-family: var(--f-label); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__name { margin: 10px 0 0; font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.card__sum { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.card__specs { display: flex; gap: 20px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.card__specs dt { font-size: 11px; color: var(--muted); }
.card__specs dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 14px; color: var(--yellow); }
.card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease-out); }
.card:hover .card__more svg { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 600 14px var(--f-body); transition: all .3s var(--ease-out);
}
.chip:hover { color: var(--ink); border-color: rgba(234,241,242,.3); }
.chip.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--teal-800); }
.cat-switch { margin: 32px 0 0; color: var(--muted); }

/* Listado: hero */
.eq-hero--list { padding-bottom: clamp(56px, 8vw, 110px); }
.list-rayo { position: absolute; right: -4%; top: -10%; height: 130%; width: auto; aspect-ratio: 4500/5325; fill: var(--petrol); opacity: .5; }

/* Guía */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { padding: 28px; border-radius: 20px; background: var(--teal-800); border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--teal-800); font-family: var(--f-display); font-weight: 800; }
.step h3 { margin: 20px 0 8px; font-family: var(--f-display); font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Banda CTA */
.band { padding: 0 var(--pad) clamp(64px, 9vw, 120px); }
.band__inner {
  position: relative; overflow: hidden; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 32px;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px;
  background: var(--yellow); color: var(--teal-800);
}
.band__inner > div { position: relative; }
.band__rayo { position: absolute; right: 18%; top: -30%; height: 170%; width: auto; aspect-ratio: 4500/5325; fill: rgba(5,46,55,.07); }
.band__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.05; text-transform: uppercase; }
.band__text { margin: 14px 0 0; max-width: 34em; color: rgba(5,46,55,.75); }
.band__actions { display: grid; justify-items: start; gap: 14px; }
.band__phone { font-size: 14px; color: rgba(5,46,55,.75); }
.band__phone strong { color: var(--teal-800); }
.btn--dark { background: var(--teal-800); color: var(--ink); }
.btn--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--teal-900); clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); transition: clip-path .7s var(--ease-io); }
.btn--dark:hover { color: var(--yellow); }
.btn--dark:hover::before { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--teal-900); border-top: 1px solid var(--line); }
.foot__inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--pad) 48px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 40px;
}
.foot__logo { display: block; width: 150px; }
.foot__brand p { margin: 20px 0 24px; max-width: 24em; color: var(--muted); font-size: 14px; }
.foot__col h3 { margin: 0 0 18px; font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.foot__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.foot__col li a { display: flex; justify-content: space-between; gap: 12px; transition: color .3s; }
.foot__col li a span { color: var(--muted); font-size: 12px; }
.foot__col a:hover { color: var(--yellow); }
.foot__legal { max-width: var(--max); margin: 0 auto; padding: 22px var(--pad); display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; padding-right: calc(var(--pad) + 80px); }
.foot__credit { color: var(--ink); font-weight: 600; transition: color .3s; }
.foot__credit:hover { color: var(--yellow); }

/* ------------------------------------------------------------------ entrada */
html.js .reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
html.js .reveal-up.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .eq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .eq-hero__grid { grid-template-columns: 1fr; }
  .gauge { --gh: 420px; max-width: 420px; }
  .specs { grid-template-columns: 1fr; }
  .uses, .steps, .cards--3 { grid-template-columns: 1fr; }
  .band__inner { grid-template-columns: 1fr; }
  .fleet { overflow-x: auto; padding-bottom: 8px; }
  .fleet__list { min-width: 760px; }
}
@media (max-width: 560px) {
  .foot__inner { grid-template-columns: 1fr; }
  .eq-cta .btn { flex: 1 1 100%; justify-content: space-between; }
  .eq-cta .btn--ghost { justify-content: center; }
  .faq__a p { padding-right: 0; }
  .specs th, .specs td { font-size: 14px; }
  .specs td { white-space: normal; }
}

/* En los brazos la canasta queda a la derecha: las etiquetas van a la izquierda */
.gauge[data-kind="brazo"] .gauge__mark { justify-content: flex-start; padding-left: 14px; }

/* ------------------------------------------------------------------ fotos reales */
/* Fotos de ambiente (máquina trabajando): ocupan toda la tarjeta */
.card__visual.has-photo { padding: 0; display: block; overflow: hidden; background: var(--teal-800); }
.card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__photo { transform: scale(1.06); }
.card__visual.has-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,34,42,.75) 0%, rgba(3,34,42,0) 38%, rgba(3,34,42,0) 70%, rgba(3,34,42,.35) 100%);
}
.card__visual.has-photo .card__h { z-index: 1; color: var(--ink); }

/* Foto + usos (la foto nunca supera su tamaño real: se ve nítida) */
.uses-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.uses-split__fig { margin: 0; max-width: 620px; }
.uses-split__fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); }
.uses-split__fig figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.uses--stack { grid-template-columns: 1fr; gap: 12px; }
.uses--stack .use { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
.uses--stack .use__n { font-size: 30px; flex: none; }
.uses--stack .use p { margin: 0; }
@media (max-width: 960px) { .uses-split { grid-template-columns: 1fr; } }

/* Páginas por localidad */
.loc__more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.loc__zona { margin: 18px 0 0; max-width: 46em; color: var(--muted); font-size: 16px; }
