/* Presentación compartida de las fichas de corte, pernos y plegados. */
.ficha-dialog.ficha-styled {
  width: calc(100% - 32px);
  max-width: 800px;
  max-height: 92dvh;
  padding: 30px;
  border: 1px solid #4a4b49;
  border-radius: 18px;
  background: #202220;
  color: #f5f4ee;
  box-shadow: 0 28px 100px #0008;
  scrollbar-width: thin;
  scrollbar-color: #666860 #202220;
}
.ficha-dialog.ficha-styled::backdrop {
  background: #080a09cc;
  backdrop-filter: blur(7px);
}
.ficha-styled .dialog-top { gap: 16px; }
.ficha-styled .ficha-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ficha-styled .ficha-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border: 1px solid #f7683545;
  border-radius: 12px;
  background: #f7683512;
  color: #ff936c;
}
.ficha-styled .ficha-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ficha-styled .ficha-heading .eyebrow { color: #ffac8c; font-size: 9px; letter-spacing: 1.8px; line-height: 1.6; }
.ficha-styled .ficha-service { display: block; margin-top: 3px; color: #c4c7be; font-size: 12px; line-height: 1.5; }
.ficha-styled .close-dialog {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #4b4e47;
  border-radius: 50%;
  background: #ffffff05;
  color: #d1d3ca;
  font-size: 26px;
  line-height: 1;
  transition: color .2s, background .2s, border-color .2s;
}
.ficha-styled .close-dialog:hover { color: #fff; background: #ffffff0c; border-color: #ff936c; }
.ficha-dialog.ficha-styled h2 { margin-top: 24px; font-size: clamp(27px, 4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -1.1px; }
.ficha-styled .dialog-intro { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.ficha-styled .dialog-intro:not([data-kind="success"]) { color: #bdc1b7; }
.ficha-styled .dialog-intro[data-kind="error"] { padding: 12px 14px; border: 1px solid #ac6555; border-radius: 8px; background: #4b2922; color: #ffd0c2; }
.ficha-styled .ficha-document {
  margin-block: 24px;
  overflow: hidden;
  border: 1px solid #444a40;
  border-radius: 10px;
  background: #171a17;
  color: #fff;
  box-shadow: 0 5px 18px #0002;
}
.ficha-styled .ficha-document-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #3e4439; background: #232722; }
.ficha-styled .ficha-document-title { color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; line-height: 1.6; text-transform: uppercase; }
.ficha-styled .ficha-document-format { flex-shrink: 0; padding: 4px 8px; border: 1px solid #59624f; border-radius: 5px; background: #292e25; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.ficha-styled .ficha-summary,
.ficha-styled #quote-summary,
.ficha-styled #bolt-ficha-summary,
.ficha-styled #fold-ficha-summary {
  max-height: 270px;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 12px/1.85 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: #666e60 #171a17;
}
.ficha-styled .ficha-summary .material-name { color: #fff; font-weight: 700; }
.ficha-styled .dialog-actions { gap: 12px; }
.ficha-dialog.ficha-styled .dialog-actions .ficha-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 84px;
  padding: 16px;
  border: 1px solid #51554b;
  border-radius: 10px;
  background: #292c27;
  color: #f5f4ee;
  text-align: left;
}
.ficha-styled .button .ficha-action-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #ffffff07; color: #ffa17b; }
.ficha-styled .button .ficha-action-copy { min-width: 0; font-size: 14px; font-weight: 600; }
.ficha-styled .ficha-action-copy strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ficha-styled .ficha-action-copy small { display: block; margin-top: 4px; color: #b7bdb0; font-size: 11px; font-weight: 400; line-height: 1.5; }
.ficha-styled .button .ficha-action-arrow { color: #b7bdb0; font-size: 19px; line-height: 1; }
.ficha-dialog.ficha-styled .dialog-actions .ficha-action:hover:not(:disabled):not([aria-disabled="true"]),
.ficha-dialog.ficha-styled .dialog-actions .ficha-action[aria-expanded="true"] { border-color: #f58c62; background: #33372f; box-shadow: 0 5px 16px #0002; }
.ficha-dialog.ficha-styled .dialog-actions .ficha-send {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 16px 20px;
  border: 1px solid var(--orange);
  border-radius: 9px;
  background: var(--orange);
  color: #191c16;
}
.ficha-styled .ficha-send .submit-label { font-size: 14px; font-weight: 700; line-height: 1.4; }
.ficha-styled .ficha-send .ficha-icon { width: 19px; height: 19px; }
.ficha-dialog.ficha-styled .ficha-send:hover:not(:disabled) { border-color: #ff946b; background: #ff946b; }
.ficha-styled .button:disabled,
.ficha-styled .button[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }
.ficha-styled .ficha-share { margin-top: 18px; padding: 20px; border: 1px solid #495044; border-radius: 10px; background: #191c18; }
.ficha-styled .ficha-share-heading { display: flex; align-items: center; gap: 12px; }
.ficha-styled .ficha-share-heading > .ficha-icon { color: #ffa17b; }
.ficha-styled .ficha-share-heading h3 { color: #eeeee6; font-size: 15px; font-weight: 600; letter-spacing: -.2px; line-height: 1.5; }
.ficha-styled .ficha-share > p { margin-top: 10px; color: #b9c0b1; font-size: 12px; line-height: 1.8; }
.ficha-styled .ficha-share-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.ficha-styled .ficha-share-options button { min-height: 46px; padding: 12px 10px; border: 1px solid #59624f; border-radius: 7px; background: #262c21; color: #e7edde; font-size: 11px; font-weight: 600; line-height: 1.5; text-align: center; transition: border-color .2s, background .2s, color .2s; }
.ficha-styled .ficha-share-options button:hover:not(:disabled) { border-color: #ffa17b; background: #32392b; color: #ffc1a4; }
.ficha-styled .ficha-share-page select { border-color: #59624f; border-radius: 6px; background: #262c21; }
.ficha-styled .ficha-share-preview { width: 190px; border-color: #626a58; border-radius: 6px; }
.ficha-styled .ficha-share [data-share-status] { color: #c2cbb8; }
.ficha-styled .ficha-share [data-share-status]:empty { display: none; }
.ficha-styled .ficha-secondary { margin-top: 17px; gap: 10px 18px; }
.ficha-styled .ficha-copy { border-bottom-color: #737a68; color: #c4cabb; }
.ficha-styled .ficha-copy:hover { border-bottom-color: #ffa17b; color: #ffa17b; }
.ficha-styled .form-footnote { color: #b9bfb0; font-size: 11px; line-height: 1.7; }
.ficha-styled > .form-footnote { margin-top: 16px; text-align: center; }
.ficha-styled .copy-status:empty { display: none; }
.ficha-styled :is(button, a, select, .ficha-summary):focus-visible { outline: 2px solid #ffac87; outline-offset: 4px; }
.ficha-styled .ficha-summary:focus-visible { outline-color: #ffac87; outline-offset: -4px; }
.ficha-styled .ficha-share[hidden],
.ficha-styled .ficha-share-page[hidden],
.ficha-styled .ficha-share-preview[hidden] { display: none; }
@media (max-width: 560px) {
  .ficha-dialog.ficha-styled { width: calc(100% - 20px); max-height: 94dvh; padding: 22px 18px; border-radius: 14px; }
  .ficha-styled .ficha-heading { gap: 10px; }
  .ficha-styled .ficha-heading-icon { flex-basis: 40px; height: 40px; border-radius: 10px; }
  .ficha-styled .ficha-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .ficha-styled .ficha-service { font-size: 11px; }
  .ficha-dialog.ficha-styled h2 { margin-top: 21px; }
  .ficha-styled .ficha-document { margin-block: 20px; }
  .ficha-styled .ficha-document-top { padding: 12px 15px; }
  .ficha-styled .ficha-document-title { font-size: 9px; letter-spacing: .8px; }
  .ficha-styled .ficha-summary, .ficha-styled #quote-summary, .ficha-styled #bolt-ficha-summary, .ficha-styled #fold-ficha-summary { padding: 16px; max-height: 230px; font-size: 11px; }
  .ficha-styled .ficha-share { padding: 16px; }
  .ficha-styled .ficha-share-options { grid-template-columns: 1fr; }
  .ficha-styled .ficha-share-options button { text-align: left; padding-inline: 14px; }
}
@media (max-width: 480px) {
  .ficha-dialog.ficha-styled .dialog-actions { grid-template-columns: 1fr; gap: 9px; }
  .ficha-dialog.ficha-styled .dialog-actions .ficha-action { min-height: 70px; padding: 13px 14px; }
  .ficha-styled .ficha-secondary { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .ficha-styled *, .ficha-styled *::before, .ficha-styled *::after { animation: none !important; transition: none !important; }
  .ficha-styled .button:hover { transform: none; }
}
