/* TAAP · ficha técnica y visor 3D */
.pg-ficha { background: var(--paper); }
.ficha { padding: calc(var(--nav) + 26px) 0 70px; }
.fw { width: min(1220px, 100% - 2 * clamp(16px, 4vw, 48px)); margin: 0 auto; }
.f-cargando { padding: 120px 0; text-align: center; color: var(--muted); }
.f-miga { color: var(--muted); margin-bottom: 14px; }
.f-miga a { text-decoration: none; border-bottom: 2px solid var(--green); }
.f-h1 { font-size: clamp(38px, 5.4vw, 74px); line-height: .96; font-weight: 850; font-stretch: 112%; letter-spacing: -.02em; }
.f-h1 em { color: var(--greenT); }
.f-modelos { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.f-modelos li { font-family: var(--m); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 11px; background: #FFFDF6; }
.f-resumen { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; max-width: 62ch; margin-top: 18px; color: #2c2b26; }

.f-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 26px; margin-top: 30px; align-items: start; }
.f-top--solo { grid-template-columns: 1fr; }
.f-top--solo .f-lado { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.visor[hidden] { display: none; }
.tarjeta { background: #FFFDF6; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 7px 7px 0 var(--ink); }

/* ---------- visor ---------- */
.visor { overflow: hidden; }
.visor__lienzo { position: relative; aspect-ratio: 16 / 11; background: radial-gradient(ellipse at 50% 38%, #FFFDF6 0%, #F1ECDD 62%, #E6DFCB 100%); touch-action: pan-y; }
.visor__gl { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.visor__gl:active { cursor: grabbing; }
.visor__capa { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.visor__n, .visor__cota, .visor__sel { opacity: 0; }
.visor__n { all: unset; position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; pointer-events: auto; transition: opacity .25s; will-change: transform; -webkit-tap-highlight-color: transparent; }
/* en reposo, un punto pequeño: el número aparece al pasar el ratón, al tocarlo o al elegir la pieza */
.visor__n span { box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-family: var(--m); font-size: 0; font-weight: 600; line-height: 1; color: var(--paper); background: var(--ink); border: 2.5px solid var(--paper); box-shadow: 0 0 0 1px rgba(23, 23, 20, .45), 0 1px 3px rgba(23, 23, 20, .35); transition: width .15s, height .15s, font-size .15s, background .15s, opacity .2s; }
.visor__n.es-int span { background: var(--fireT); }
.visor__n:hover, .visor__n:focus-visible, .visor__n.ver, .visor__n.on { z-index: 2; }
.visor__n:hover span, .visor__n:focus-visible span, .visor__n.ver span, .visor__n.on span { width: 24px; height: 24px; border-width: 2px; font-size: 11.5px; opacity: 1; }
.visor__n.on span { background: var(--greenT); }
.visor__n:focus-visible { outline: none; }
@media (hover: none) { .visor__n { width: 40px; height: 40px; } .visor__n span { width: 14px; height: 14px; } }
.visor__sel { position: absolute; pointer-events: none; z-index: 3; left: 0; top: 0; font-family: var(--m); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--paper); background: var(--greenT); border-radius: 999px; padding: 4px 11px; }
.visor__cota { position: absolute; left: 0; top: 0; font-family: var(--m); font-size: 10.5px; font-weight: 600; white-space: nowrap; color: var(--greenT); background: rgba(255, 253, 246, .92); border: 1.5px solid var(--greenT); border-radius: 6px; padding: 1px 6px; }
.visor__pista { position: absolute; left: 14px; bottom: 12px; font-family: var(--m); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255, 253, 246, .85); border-radius: 999px; padding: 4px 10px; pointer-events: none; }
.visor__var { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.visor__sin { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.visor__sin[hidden] { display: none; }
.visor__sin img, .visor__sin svg { max-height: 100%; width: auto; max-width: 100%; }
.visor__barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-top: 2.5px solid var(--ink); background: var(--sand); }
.seg { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #FFFDF6; }
.seg button, .chip { all: unset; cursor: pointer; font-size: 14px; font-weight: 700; font-stretch: 104%; padding: 7px 15px; }
.seg button + button { border-left: 2.5px solid var(--ink); }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:focus-visible, .chip:focus-visible { outline: 3px solid var(--greenT); outline-offset: -3px; }
.chip { border: 2.5px solid var(--ink); border-radius: 999px; background: #FFFDF6; font-size: 13px; padding: 5px 13px; }
.visor__corte { display: flex; align-items: center; gap: 8px; font-family: var(--m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.visor__corte input { width: 130px; accent-color: var(--greenT); }
.visor__corte[hidden] { display: none; }
.visor__ley { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-family: var(--m); font-size: 11px; color: var(--muted); }
.visor__ley i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--ink); }
.visor__pieza { padding: 13px 16px 14px; border-top: 2.5px solid var(--ink); min-height: 76px; }
.visor__pieza b { font-size: 16px; font-stretch: 105%; }
.visor__pieza p { font-size: 14.5px; line-height: 1.42; color: var(--muted); margin-top: 2px; }
.visor__foto { display: none; }

/* ---------- columna lateral ---------- */
.f-lado { display: grid; gap: 18px; }
.f-nums { padding: 6px 20px; }
.f-nums li { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 2px solid var(--line); }
.f-nums li:last-child { border: 0; }
.f-nums b { font-size: 25px; line-height: 1.05; font-weight: 850; font-stretch: 106%; white-space: nowrap; }
.f-nums span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.f-caso { padding: 18px 20px; }
.f-caso h3 { font-family: var(--m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.f-caso h3.p { color: var(--fireT); } .f-caso h3.s { color: var(--greenT); margin-top: 14px; }
.f-caso p { font-size: 15px; line-height: 1.45; }
.f-acc { display: grid; gap: 10px; }
.f-acc .btn { width: 100%; }

/* ---------- secciones ---------- */
.f-sec { margin-top: 62px; }
.f-sec > h2 { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.05; font-weight: 850; font-stretch: 110%; letter-spacing: -.015em; padding-bottom: 12px; border-bottom: 2.5px solid var(--ink); margin-bottom: 22px; display: flex; align-items: baseline; gap: 14px; }
.f-sec > h2 small { font-family: var(--m); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.f-piezas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.f-piezas button { all: unset; cursor: pointer; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #FFFDF6; }
.f-piezas button:hover, .f-piezas button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.f-piezas i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--m); font-size: 12px; font-weight: 600; background: var(--ink); color: var(--paper); }
.f-piezas .int i { background: var(--fireT); }
.f-piezas b { display: block; font-size: 15.5px; line-height: 1.2; }
.f-piezas small { display: block; font-family: var(--m); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fireT); margin-top: 2px; }
.f-piezas span { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.f-pasos { list-style: none; padding: 0; margin: 0; counter-reset: paso; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 26px; }
.f-pasos li { counter-increment: paso; padding: 16px 0 16px 46px; position: relative; border-bottom: 2px solid var(--line); }
.f-pasos li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--m); font-size: 13px; font-weight: 600; color: var(--greenT); border: 2px solid var(--greenT); border-radius: 999px; padding: 1px 7px; }
.f-pasos b { display: block; font-size: 16.5px; }
.f-pasos span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.f-car { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.f-car li { border-top: 2.5px solid var(--ink); padding-top: 12px; }
.f-car b { display: block; font-size: 17px; line-height: 1.2; font-stretch: 104%; }
.f-car span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 5px; }
.f-tabla { margin-bottom: 30px; }
.f-tabla h3 { font-size: 17px; font-stretch: 105%; margin-bottom: 8px; }
.f-tabla__sc { overflow-x: auto; border: 2.5px solid var(--ink); border-radius: 12px; background: #FFFDF6; }
.f-tabla table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.35; }
.f-tabla th, .f-tabla td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--line); }
.f-tabla thead th { background: var(--ink); color: var(--paper); font-family: var(--m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.f-tabla tbody th { font-weight: 650; min-width: 190px; background: var(--sand); }
.f-tabla tbody tr:last-child > * { border-bottom: 0; }
.f-tabla td { font-variant-numeric: tabular-nums; }
.f-nota { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 8px; max-width: 90ch; }
.f-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.f-lista li { position: relative; padding: 7px 0 7px 22px; font-size: 15px; line-height: 1.45; border-bottom: 1.5px solid var(--line); }
.f-lista li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; background: var(--green); border: 1.5px solid var(--ink); border-radius: 2px; }
.f-lista.av li::before { background: var(--fire); border-radius: 50%; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 13px; font-size: 14px; font-weight: 600; background: var(--lime); }
.f-op details { border: 2.5px solid var(--ink); border-radius: 12px; background: #FFFDF6; margin-bottom: 10px; }
.f-op summary { cursor: pointer; padding: 13px 16px; font-weight: 750; font-size: 16.5px; font-stretch: 104%; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.f-op summary::-webkit-details-marker { display: none; }
.f-op summary::after { content: '+'; font-family: var(--m); font-weight: 600; }
.f-op details[open] summary::after { content: '−'; }
.f-op details ul { padding: 0 16px 12px; }
.f-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.f-fotos img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; }
.f-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.f-videos--uno { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.f-video { margin: 0; }
.f-videos--uno .f-video { display: contents; }
.f-video video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; }
.f-video--v video { aspect-ratio: 1; }
.f-videos--uno .f-video video { aspect-ratio: 16 / 9; background: var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.f-video figcaption { padding-top: 10px; }
.f-video b { display: block; font-size: 17px; line-height: 1.2; font-stretch: 104%; }
.f-video span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.f-video ol { list-style: decimal; padding-left: 20px; margin-top: 12px; font-size: 14.5px; line-height: 1.45; }
.f-video ol li { margin-bottom: 6px; }
@media (max-width: 760px) { .f-videos--uno { grid-template-columns: 1fr; } }
.f-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.f-docs a { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; padding: 14px 16px; border: 2.5px solid var(--ink); border-radius: 12px; background: #FFFDF6; font-weight: 700; font-size: 15px; line-height: 1.25; }
.f-docs a:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.f-docs a::after { content: '↓'; font-family: var(--m); }
.f-docs a[href^="http"]::after, .f-docs a[href^="manual.html"]::after { content: '↗'; }
.f-cta { margin-top: 62px; padding: 30px clamp(20px, 4vw, 44px); background: var(--lime); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.f-cta h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; font-weight: 850; font-stretch: 108%; }
.f-cta p { font-size: 15.5px; margin-top: 6px; max-width: 54ch; }
.f-membrete { display: none; }

/* ---------- manual ---------- */
.man { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; margin-top: 34px; align-items: start; }
.man__toc { position: sticky; top: calc(var(--nav) + 18px); max-height: calc(100vh - var(--nav) - 40px); overflow: auto; font-size: 13.5px; line-height: 1.3; border-left: 2.5px solid var(--ink); padding-left: 14px; }
.man__toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--muted); }
.man__toc a:hover { color: var(--ink); }
.man__sec { margin-bottom: 46px; scroll-margin-top: calc(var(--nav) + 16px); }
.man__sec > h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; font-weight: 850; font-stretch: 108%; padding-bottom: 10px; border-bottom: 2.5px solid var(--ink); margin-bottom: 16px; }
.man__sec h3 { font-size: 18px; font-stretch: 105%; margin: 22px 0 8px; }
.man__sec p { font-size: 15.5px; line-height: 1.55; margin-bottom: 10px; max-width: 78ch; white-space: pre-line; }
.man__sec ol, .man__sec ul.vi { padding-left: 24px; margin-bottom: 12px; max-width: 78ch; font-size: 15.5px; line-height: 1.5; }
.man__sec ol { list-style: decimal; } .man__sec ul.vi { list-style: disc; }
.man__sec li { margin-bottom: 5px; }
.aviso { border: 2.5px solid var(--ink); border-left-width: 10px; border-radius: 10px; padding: 11px 14px; margin: 12px 0; max-width: 78ch; font-size: 15px; line-height: 1.45; background: #FFFDF6; white-space: pre-line; }
.aviso b { display: block; font-family: var(--m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.aviso--peligro { border-left-color: #D9482B; } .aviso--advertencia { border-left-color: var(--fire); } .aviso--precaucion { border-left-color: var(--gold); } .aviso--nota { border-left-color: var(--green); }
.man__fig { margin: 14px 0 18px; max-width: 560px; }
.man__fig img { border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; }
.man__fig figcaption { font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 6px; }

@media (max-width: 980px) {
  .f-top { grid-template-columns: 1fr; }
  .man { grid-template-columns: 1fr; } .man__toc { position: static; max-height: none; columns: 2; }
}
@media (max-width: 620px) {
  .tarjeta { box-shadow: 4px 4px 0 var(--ink); border-radius: 14px; }
  .visor__lienzo { aspect-ratio: 1 / 1; }
  .visor__ley { margin-left: 0; }
  .pg-ficha .nav__links { display: none; }
  .f-nums b { font-size: 21px; }
}

/* ---------- impresión: la ficha como documento TAAP ---------- */
@media print {
  @page { size: A4; margin: 14mm 13mm; }
  body { background: #fff; font-size: 10.5pt; }
  .nav, .foot, .f-acc, .visor__barra, .visor__pista, .visor__var, .f-cta .btn, .f-miga a::after, .visor__gl, .visor__capa { display: none !important; }
  .f-membrete { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 2.5px solid #171714; padding-bottom: 8px; margin-bottom: 14px; }
  .f-membrete img { height: 54px; width: auto; }
  .f-membrete p { font-family: var(--m); font-size: 8pt; text-align: right; line-height: 1.4; }
  .ficha { padding: 0; } .fw { width: 100%; }
  .tarjeta { box-shadow: none; border-width: 1.5px; }
  .f-h1 { font-size: 30pt; }
  .f-top { grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 14px; }
  .visor__foto { display: block; width: 100%; height: 100%; object-fit: contain; }
  .visor__lienzo { background: #fff; }
  .f-sec { margin-top: 20px; }
  .f-sec > h2 { font-size: 15pt; margin-bottom: 10px; padding-bottom: 5px; break-after: avoid; }
  .f-tabla, .f-piezas button, .f-pasos li, .f-car li, .f-op details, .aviso, .man__fig { break-inside: avoid; }
  .f-tabla__sc { overflow: visible; border-width: 1.5px; }
  .f-tabla table { font-size: 8pt; } .f-tabla th, .f-tabla td { padding: 3px 6px; }
  .f-tabla thead th { position: static; white-space: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .f-op details { border-width: 1.5px; } .f-op details > ul { display: block; }
  .f-cta { margin-top: 20px; padding: 12px 16px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .f-fotos img { border-width: 1.5px; } .f-fotos { grid-template-columns: repeat(4, 1fr); }
  .man { display: block; } .man__toc { display: none; }
  a { text-decoration: none; }
}

@media print { #videos { display: none; } }
