/* La imagen y el texto tienen áreas propias: no se tapa el equipo con titulares. */
.fleet-gallery { margin-top: 42px; border: 1px solid #d4d8d5; background: #fff; }
.gallery-heading { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 28px 30px; }
.gallery-eyebrow { font-size: 9px; letter-spacing: .16em; font-weight: 700; color: #686d71; }
.gallery-heading h3 { font-size: 23px; font-weight: 600; letter-spacing: -.035em; line-height: 1.3; margin-top: 7px; }
.gallery-actions { display: flex; gap: 9px; align-items: center; }
.gallery-actions button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-width: 44px; min-height: 44px; border: 1px solid #d0d5d2; color: #30353a;
  background: white; transition: color .2s, background .2s, border-color .2s;
}
.gallery-actions .gallery-play { margin-right: 8px; padding: 0 14px; font-size: 11px; }
.gallery-play .icon { width: 16px; height: 16px; }
.gallery-actions button:not(:disabled):hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-actions button:disabled { opacity: .45; cursor: not-allowed; }
.gallery-panel { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); background: #272b30; min-height: 470px; }
.gallery-image { position: relative; overflow: hidden; min-width: 0; height: 470px; background: #1b2025; }
.gallery-image > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.gallery-image-crane > img, .gallery-image-lighting > img { object-fit: contain; }
.gallery-image-crane { background: #1a2026; }
.gallery-image-lighting { background: radial-gradient(ellipse at center, #3b4147, #22282e 80%); }
.gallery-photo-label { position: absolute; bottom: 20px; left: 20px; padding: 8px 11px; background: #171c22e8; color: #e2e5e7; font-size: 8px; letter-spacing: .12em; line-height: 1.6; }
.gallery-story { padding: 39px 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: white; min-width: 0; }
.gallery-category { color: #c7cdd1; font-size: 8px; letter-spacing: .16em; font-weight: 600; }
.gallery-story h4 { font-size: clamp(27px, 2.7vw, 36px); line-height: 1.13; letter-spacing: -.04em; font-weight: 550; margin: 24px 0 21px; }
.gallery-story h4 em { color: #ffb25a; }
.gallery-story p { font-size: 13px; color: #c7cdd1; line-height: 1.85; max-width: 290px; }
.gallery-attributes { width: 100%; margin-top: 26px; padding-top: 18px; border-top: 1px solid #53595f; }
.gallery-attributes span { display: block; font-size: 10px; color: #d2d6d9; line-height: 1.7; margin: 5px 0; }
.gallery-attributes span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--orange); }
.gallery-link { display: inline-flex; align-items: center; gap: 14px; color: #ffc47e; font-size: 11px; font-weight: 600; line-height: 1.6; padding-top: 25px; min-height: 44px; }
.gallery-link .icon { width: 17px; height: 17px; transition: transform .25s; }
.gallery-link:hover .icon { transform: translate(3px, -3px); }
.gallery-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 24px; }
.gallery-tabs button { display: flex; align-items: center; gap: 17px; min-width: 0; min-height: 112px; position: relative; padding: 22px 16px; background: white; color: #60666c; border: 0; text-align: left; transition: background .2s, color .2s; }
.gallery-tabs button::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.gallery-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
.gallery-tabs button[aria-selected="true"] { color: #25282c; }
.gallery-tabs button:hover { background: #faf9f6; }
.gallery-tabs button > span:not(.gallery-thumb) { font-size: 14px; font-weight: 650; }
.gallery-tabs small { display: block; font-size: 8px; letter-spacing: .08em; font-weight: 600; color: #73797e; margin-bottom: 6px; }
.gallery-tabs button > .icon { width: 16px; height: 16px; margin-left: auto; color: #aa5600; opacity: 0; transition: opacity .25s; }
.gallery-tabs button[aria-selected="true"] > .icon { opacity: 1; }
.gallery-thumb { display: block; width: 78px; height: 52px; flex-shrink: 0; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; filter: saturate(.5); opacity: .75; transition: filter .3s, opacity .3s; }
.gallery-tabs button[aria-selected="true"] .gallery-thumb img { filter: none; opacity: 1; }
.gallery-stage { touch-action: pan-y pinch-zoom; }
.gallery-panel.is-arriving .gallery-image img { animation: photo-arrive .6s var(--ease) both; }
.gallery-panel.is-arriving .gallery-story { animation: story-arrive .5s var(--ease) both; }
.fleet-gallery.is-playing .gallery-play { border-color: #b26411; color: #99501a; }
@keyframes photo-arrive { from { opacity: .2; } to { opacity: 1; } }
@keyframes story-arrive { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .gallery-story { padding: 30px 25px; }
  .gallery-story h4 { font-size: 30px; }
  .gallery-image { height: 450px; }
  .gallery-panel { min-height: 450px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .gallery-tabs { padding: 0 10px; }
  .gallery-tabs button { gap: 12px; padding: 19px 13px; }
  .gallery-thumb { width: 62px; height: 48px; }
  .gallery-tabs button > .icon { display: none; }
}
@media (max-width: 800px) {
  .gallery-heading { padding: 23px; gap: 18px; align-items: flex-start; }
  .gallery-heading h3 { font-size: 21px; }
  .gallery-actions { gap: 6px; }
  .gallery-actions .gallery-play { padding: 0; min-width: 44px; margin-right: 2px; }
  .gallery-play > span { display: none; }
  .gallery-panel { grid-template-columns: 1fr; }
  .gallery-image { height: 370px; }
  .gallery-story { padding: 29px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
  .gallery-category { grid-column: 1; }
  .gallery-story h4 { grid-column: 1; margin: 12px 0 0; }
  .gallery-story p { grid-column: 2; grid-row: 1 / 3; max-width: none; }
  .gallery-attributes { grid-column: 2; margin-top: 17px; padding-top: 12px; }
  .gallery-link { grid-column: 1; grid-row: 3; align-self: end; padding-top: 18px; }
  .gallery-tabs button { min-height: 95px; gap: 11px; }
  .gallery-tabs button > span:not(.gallery-thumb) { font-size: 13px; }
  .gallery-tabs small { font-size: 7px; }
  .technical-item summary { grid-template-columns: 31px 1fr 22px; gap: 13px; }
  .technical-body { padding-left: 44px; }
}
@media (max-width: 550px) {
  .fleet-gallery { margin-top: 30px; }
  .gallery-heading { display: block; padding: 23px 20px 18px; }
  .gallery-heading h3 { font-size: 23px; max-width: 265px; }
  .gallery-actions { margin-top: 20px; }
  .gallery-actions .gallery-play { margin-right: auto; padding: 0 12px; }
  .gallery-play > span { display: inline; }
  .gallery-image { height: 300px; }
  .gallery-photo-label { left: 15px; bottom: 15px; font-size: 7px; }
  .gallery-story { display: flex; min-height: 345px; padding: 29px 24px; }
  .gallery-story h4 { font-size: 33px; margin: 17px 0; }
  .gallery-story h4 br { display: none; }
  .gallery-story h4 em::before { content: " "; }
  .gallery-story p { font-size: 14px; }
  .gallery-attributes { margin-top: 20px; padding-top: 12px; }
  .gallery-link { font-size: 12px; padding-top: 23px; align-self: flex-start; }
  .gallery-tabs { padding: 0 6px; }
  .gallery-tabs button { padding: 16px 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; }
  .gallery-tabs button::before { left: 8px; right: 8px; }
  .gallery-tabs small { display: none; }
  .gallery-thumb { width: 74px; max-width: 100%; height: 46px; }
  .gallery-tabs button > span:not(.gallery-thumb) { font-size: 12px; }
  .gallery-tabs button > .icon { display: none; }
  .icon-tile { width: 54px; height: 54px; }
  .rental-icon { width: 64px; height: 64px; }
  .technical-item summary { grid-template-columns: 29px 1fr 20px; gap: 12px; font-size: 22px; }
  .technical-icon .icon { width: 26px; height: 26px; }
  .technical-body { padding-left: 41px; }
  .safety-icon .icon { width: 39px; height: 39px; }
}
@media (max-width: 380px) {
  .gallery-image { height: 265px; }
  .gallery-story { padding: 26px 21px; min-height: 360px; }
  .gallery-story h4 { font-size: 30px; }
  .gallery-thumb { width: 62px; height: 42px; }
  .technical-item summary { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-panel.is-arriving .gallery-image img, .gallery-panel.is-arriving .gallery-story { animation: none; }
}

/* Ajuste de legibilidad para etiquetas y descripciones de la galería. */
.gallery-eyebrow, .gallery-photo-label, .gallery-category,
.gallery-tabs small { font-size: 10px; }
.gallery-actions .gallery-play, .gallery-link,
.gallery-tabs button > span:not(.gallery-thumb) { font-size: 14px; }
.gallery-story p, .gallery-attributes span { font-size: 15px; }
