.site-content:has(> .ast-container > .tp-ficha) { background: #F5F6F7; }

.tp-ficha {
  --tp-ink: #071B30;
  --tp-green: #A2BD30;
  --tp-line: #DDE3E8;
  width: 100%;
  min-width: 0;
  padding-block: clamp(18px, 3.5vw, 48px);
  background: #F5F6F7;
  color: var(--tp-ink);
  font: 400 16px/1.6 Inter, sans-serif;
}
.tp-ficha__inner {
  box-sizing: border-box;
  max-width: 1200px;
  margin: auto;
  padding: clamp(18px, 2.7vw, 32px);
  background: #fff;
  border: 1px solid #E5E9ED;
  border-radius: 16px;
}
.tp-ficha__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}
.tp-ficha :is(h1, h2) { color: var(--tp-ink); font-family: 'Nunito Sans', sans-serif; font-weight: 500; }
.tp-ficha h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; }
.tp-ficha h2 { margin: 0 0 12px; font-size: 24px; }
.tp-ficha__gallery + .tp-ficha__gallery { margin-top: 28px; }
.tp-ficha__stage { overflow: hidden; border: 1px solid #E8EDF1; border-radius: 12px; background: #F7F9FA; }
.tp-ficha__stage img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.tp-ficha__stage [hidden] { display: none; }
.tp-ficha__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tp-ficha__thumbs button { padding: 4px; border: 2px solid #E2E8F0; border-radius: 12px; background: #fff; cursor: pointer; }
.tp-ficha__thumbs button[aria-pressed="true"] {
  border-color: var(--tp-green);
  background: #F7F9FA;
}
.tp-ficha__thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.tp-ficha .tp-ficha__category { margin: 0 0 8px; color: #054076; font-weight: 600; font-size: 14px; }
.tp-ficha .tp-ficha__model { margin: 0 0 8px; color: #475569; }
.tp-ficha .tp-ficha__version {
  display: table;
  margin: 0 0 18px;
  padding: 3px 9px;
  border: 1px solid #E5E9ED;
  border-radius: 6px;
  background: #F5F7F9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.tp-ficha__description {
  min-width: 0;
  max-width: 65ch;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.tp-ficha__description > p { margin: 0 0 12px; }
.tp-ficha__description > :last-child { margin-bottom: 0; }
.tp-ficha .tp-ficha__quote { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 40px; background: var(--tp-green); color: #000; text-decoration: none; font-weight: 500; }
.tp-ficha .tp-ficha__quote:hover { background: #BDD65B; color: #000; }
.tp-ficha :is(a, button):focus-visible { outline: 2px solid #054076; outline-offset: 3px; }
.tp-ficha__technical { margin-top: clamp(26px, 4vw, 44px); }
.tp-ficha__technical section {
  margin: 0 0 16px;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--tp-line);
  border-radius: 12px;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.6;
}

.tp-ficha__technical .tp-ficha__tabs ~ [data-tp-panel] { border-radius: 0 0 12px 12px; }
.tp-ficha__technical table { width: 100%; margin: 0; }
.tp-ficha__technical :is(th, td) { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .tp-ficha__inner { padding: 16px; }
  .tp-ficha__top { grid-template-columns: minmax(0, 1fr); }
}

.tp-ficha__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: -1px;
}
.tp-ficha .tp-ficha__tabs button,
.tp-ficha .tp-ficha__lightbox-tools button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #D6E0E8;
  border-radius: 8px;
  background: #fff;
  color: var(--tp-ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
}
.tp-ficha .tp-ficha__tabs button {
  position: relative;
  border-color: var(--tp-line);
  border-radius: 8px 8px 0 0;
  background: #F3F5F7;
  color: #445467;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease;
}
.tp-ficha .tp-ficha__tabs button:hover,
.tp-ficha .tp-ficha__lightbox-tools button:hover { background: #F7F9FA; }
.tp-ficha .tp-ficha__tabs [aria-selected="true"],
.tp-ficha .tp-ficha__tabs [aria-selected="true"]:hover {
  z-index: 1;
  background: #fff;
  border-bottom-color: #fff;
  box-shadow: inset 0 2px var(--tp-green);
  color: var(--tp-ink);
  font-weight: 600;
}
.tp-ficha .tp-ficha__tabs button:focus-visible {
  z-index: 2;
  outline-offset: -4px;
}
.tp-ficha__technical [data-tp-panel][hidden],
.tp-ficha__lightbox [hidden] { display: none; }
.tp-ficha__technical [data-tp-panel]:focus-visible {
  outline: 2px solid #054076;
  outline-offset: 3px;
}
.tp-ficha__technical table { table-layout: fixed; }
.tp-ficha__technical thead th:first-child { width: 45%; }
.tp-ficha__technical thead th:last-child { width: 20%; }

.tp-ficha__zoom {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.tp-ficha__zoom:focus-visible { outline-offset: -4px; }
.tp-ficha__zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--tp-line);
  border-radius: 50%;
  color: var(--tp-ink);
  background: rgb(255 255 255 / 94%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .tp-ficha__zoom img {
    transform: scale(var(--tp-scale, 1));
    transform-origin: var(--tp-origin, center);
    transition: transform 140ms ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tp-ficha__zoom img,
  .tp-ficha .tp-ficha__tabs button { transition: none; }
}

.tp-ficha__lightbox {
  width: min(940px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  color: var(--tp-ink);
  background: #fff;
}
.tp-ficha__lightbox::backdrop { background: rgb(7 27 48 / 80%); }
.tp-ficha__lightbox-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.tp-ficha__lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 145px);
  max-height: calc(100dvh - 145px);
  object-fit: contain;
}

@media (max-width: 560px) {
  .site-content:has(> .ast-container > .tp-ficha) > .ast-container { padding-inline: 12px; }
  .tp-ficha__inner { padding-inline: 14px; }
  .tp-ficha__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .tp-ficha .tp-ficha__tabs button { padding-inline: 4px; font-size: 13.5px; overflow-wrap: anywhere; }
  .tp-ficha .tp-ficha__tabs:has(button:nth-child(3)) [aria-selected="true"]:nth-child(-n+2) {
    border-bottom-color: var(--tp-line);
  }
  .tp-ficha .tp-ficha__tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tp-ficha__technical section { padding: 12px; }
  .tp-ficha__technical table { font-size: 14px; }
  .tp-ficha__technical :is(th, td) { padding: 6px 4px; }
  .tp-ficha__technical thead th:first-child { width: 41%; }
  .tp-ficha__technical thead th:last-child { width: 29%; }
  .tp-ficha .tp-ficha__lightbox-tools button { padding-inline: 8px; }
}
