/* Legibilidad, teclado y controles táctiles; conserva la identidad visual original. */
:where(a, button, input, select, summary, [tabindex="0"]):focus-visible {
  outline: 3px solid #315f4e;
  outline-offset: 3px;
}

.mobile-navigation { display: none; }
.desktop-nav a, .header-cta { font-size: 14px; }
.eyebrow { font-size: 12px; line-height: 1.4; }
.hero-chip, .text-link, .toast, .three-loading small, .three-error small { font-size: 14px; line-height: 1.45; }
.hero-proof, .step-indicator, .section-heading > p,
.how-section > .section-heading > p, .ideas-copy > p:not(.eyebrow),
.faq-intro > p:not(.eyebrow), .footer-inner > p, .footer-links { font-size: 13px; color: #596761; }
.control-number { font-size: 12px; }
.control-title h3 { font-size: 16px; line-height: 1.35; }
.control-title p, .field-hint, .optional, .char-count,
.range-labels, .print-note p, .privacy-note, .model-name,
.preview-meta, .step-card p, .idea-card p, .faq-list details p { font-size: 14px; line-height: 1.5; }
.field-label, .upload-logo strong, .color-control strong,
.shape-option strong, .button-primary strong { font-size: 14px; }
.input-shell input, .text-input, .segment, .secondary-downloads button,
.shape-option small, .upload-logo small, .upload-action,
.button-primary small, .button-secondary, .faq-list summary { font-size: 14px; }
.live-badge, .preview-label, .preview-caption, .rotate-hint,
.ad-slot span, .ad-slot small, .idea-card small, .step-index { font-size: 12px; }
.field-label { margin-bottom: 8px; }
.field-hint { margin-top: 8px; color: #596761; }
.segment, .shape-option, .secondary-downloads button,
.button-secondary, .password-toggle, .viewer-controls button,
.mobile-navigation summary, .header-cta { min-height: 44px; }
.color-control { min-height: 48px; }
.shape-option { padding-block: 9px; }
.secondary-downloads button { padding: 10px 12px; }
.upload-logo { position: relative; min-height: 58px; }
.upload-logo:focus-within { outline: 3px solid #315f4e; outline-offset: 3px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.password-shell { position: relative; }
.password-shell .text-input { padding-right: 84px; }
.password-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: #eef3ec;
  color: #263f35;
  font-size: 14px;
  cursor: pointer;
}
.password-toggle:disabled { opacity: .55; cursor: not-allowed; }
.input-error { margin: 9px 0 0; color: #8a2d20; font-size: 14px; line-height: 1.45; }
.print-note { padding: 12px; }
.print-note.is-warning { background: #fbf0e8; color: #704336; }
.print-note p { color: inherit; }
.qr-preview { padding: 12px; }
.preview-two-up { align-items: center; }
.object-preview-wrap { position: relative; }
.model-message {
  position: absolute;
  z-index: 5;
  inset: 30% 8% auto;
  margin: 0;
  border: 1px solid #dbe4d9;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: #344940;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 5px 20px #233b3112;
}
.model-message[hidden] { display: none; }
.viewer-controls {
  position: absolute;
  z-index: 4;
  bottom: 35px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.viewer-controls button {
  width: 44px;
  border: 1px solid #b8c6ba;
  border-radius: 8px;
  background: #fff;
  color: #20372e;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 2px 8px #20372e18;
}
.rotate-hint { bottom: 4px; left: 50%; right: auto; width: max-content; max-width: 95%; transform: translateX(-50%); }
.download-actions { gap: 12px; }
.download-mode {
  border: 1px solid #e1e8e1;
  border-radius: 12px;
  padding: 15px;
  background: #fcfdfb;
}
.download-mode-2d { background: #f8faf7; }
.download-mode-3d { background: #f6f8f4; }
.download-mode-heading h4 { margin: 0; font-size: 17px; line-height: 1.35; }
.download-mode-heading p { margin: 5px 0 12px; color: #52615a; font-size: 14px; line-height: 1.5; }
.download-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.button-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9c8bb;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: #20372e;
  text-align: center;
  line-height: 1.35;
  cursor: pointer;
}
.button-secondary:hover { background: #f0f5ee; border-color: #819b86; }
.button-primary { min-height: 56px; }
.download-mode .field-hint { margin: 9px 0 0; }
.ad-slot { min-height: 60px; }

/* Preserve the palette while keeping small supporting text readable. */
.eyebrow, .control-title p, .field-hint, .optional, .char-count,
.range-labels, .text-link, .upload-logo small, .upload-action,
.shape-option small, .color-control small, .live-badge, .preview-label,
.preview-caption, .rotate-hint, .preview-meta, .model-layers,
.privacy-note, .step-index, .step-card p, .idea-card small,
.idea-card p, .faq-intro > p:not(.eyebrow), .faq-list details p,
.footer-inner > p, .footer-links, .ad-slot, .ad-slot small {
  color: #596761;
}
.print-note { color: #596761; }
.print-note.is-warning { color: #704336; }
@media (max-width: 640px) {
  .desktop-nav { display: none !important; }
  .mobile-navigation { display: block; position: relative; margin-left: auto; }
  .mobile-navigation summary {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0 12px;
    border: 1px solid #d6ddd6;
    border-radius: 99px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
  }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 2px;
    width: max-content;
    min-width: 190px;
    padding: 8px;
    border: 1px solid #dfe5de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px #20372e20;
  }
  .mobile-navigation nav a { padding: 10px; font-size: 14px; }
  .mobile-navigation nav a:focus-visible { border-radius: 6px; }
  .header-cta { margin-left: 8px; font-size: 13px; }
  .hero-proof { font-size: 13px; }
  .preview-two-up { grid-template-columns: 1fr; gap: 8px; }
  .qr-preview { width: min(100%, 230px); }
  .object-preview-wrap, .three-view { min-height: 250px; }
  .download-buttons { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 15px; }
  .step-card p, .idea-card p { font-size: 14px; }
  .field-row { align-items: start; }
}

@media (max-width: 385px) {
  .header-cta { padding-inline: 9px; }
  .controls-panel { padding-inline: 15px; }
  .color-control strong, .color-control small { font-size: 13px; white-space: normal; }
  .color-row { gap: 7px; }
  .viewer-controls { gap: 4px; }
  .viewer-controls button { width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  :where(a, button, input, select, summary, [tabindex="0"]):focus-visible { outline: 3px solid Highlight; }
  .button-primary, .button-secondary, .segment, .shape-option { border: 1px solid ButtonText; }
}
