/* ==========================================================================
   Apple Design System — "White room with a single blue switch"
   Official Design Tokens & Variables (DESIGN.md / variables.css)
   ========================================================================== */

:root {
  /* Apple Official Colors */
  --color-apple-blue: #0071e3;
  --color-link-blue: #0066cc;
  --color-signal-blue: #2997ff;
  --color-carbon: #1d1d1f;
  --color-frost: #f5f5f7;
  --color-ice: #f4f8fb;
  --color-smoke: #333333;
  --color-graphite: #474747;
  --color-ash: #707070;
  --color-mist: #858585;
  --color-onyx: #000000;
  --color-pebble: #e2e2e5;

  /* Surfaces & Functional Tokens */
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-canvas: #f5f5f7;
  --surface-elevated: #ffffff;
  --surface-wash: #f4f8fb;
  --surface-pebble: #e2e2e5;

  --border: #e2e2e5;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hairline: #d2d2d7;
  --border-focus: #0071e3;

  --text: #1d1d1f;
  --text-muted: #858585;
  --text-secondary: #474747;
  --text-ash: #707070;

  --checker-bg: #ffffff;
  --checker-accent: #e5e5ea;
  --checker-a: #e5e5ea;
  --checker-b: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --input-bg: #ffffff;

  /* Typography — Font Families (SF Pro + System UI native fallback) */
  --font-sf-pro-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-sf-pro-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  /* Typography — Scale & Negative Tracking (Apple Signature) */
  --text-caption: 12px;
  --leading-caption: 1.33;
  --tracking-caption: -0.264px;

  --text-body-sm: 14px;
  --leading-body-sm: 1.29;
  --tracking-body-sm: -0.224px;

  --text-body: 17px;
  --leading-body: 1.47;
  --tracking-body: -0.272px;

  --text-subheading: 21px;
  --leading-subheading: 1.24;
  --tracking-subheading: -0.105px;

  --text-heading-sm: 28px;
  --leading-heading-sm: 1.18;
  --tracking-heading-sm: 0.196px;

  --text-heading: 40px;
  --leading-heading: 1.14;
  --tracking-heading: 0.44px;

  --text-heading-lg: 44px;
  --leading-heading-lg: 1.18;
  --tracking-heading-lg: -0.44px;

  --text-display: 56px;
  --leading-display: 1.07;
  --tracking-display: 0.616px;

  /* Typography — Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing Scale (Base: 4px) */
  --spacing-unit: 4px;
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-56: 56px;

  /* Layout */
  --page-max-width: 1440px;
  --section-gap: 64px;
  --card-padding: 24px;
  --element-gap: 12px;

  /* Border Radii (Strict Apple Rules: 980px pills, 8px inputs/cards) */
  --radius-full: 980px;
  --radius-tags: 980px;
  --radius-buttons: 980px;
  --radius-cards: 8px;
  --radius-images: 8px;
  --radius-inputs: 8px;
  --radius: 8px;

  /* Shadows (Minimal / Hairline-first) */
  --shadow-xl: rgba(0, 0, 0, 0.15) 0px 8px 30px;
}

/* Light Theme (Default & [data-theme="light"]) */
:root, [data-theme="light"] {
  --color-apple-blue: #0071e3;
  --color-link-blue: #0066cc;
  --color-signal-blue: #2997ff;
  --color-carbon: #1d1d1f;
  --color-frost: #f5f5f7;
  --color-ice: #f4f8fb;
  --color-smoke: #333333;
  --color-graphite: #474747;
  --color-ash: #707070;
  --color-mist: #858585;
  --color-onyx: #000000;
  --color-pebble: #e2e2e5;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-canvas: #f5f5f7;
  --surface-elevated: #ffffff;
  --surface-wash: #f4f8fb;
  --surface-pebble: #e2e2e5;
  --header-bg: rgba(245, 245, 247, 0.85);

  --border: #e2e2e5;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hairline: #d2d2d7;
  --border-focus: #0071e3;

  --text: #1d1d1f;
  --text-muted: #858585;
  --text-secondary: #474747;
  --text-ash: #707070;

  --checker-bg: #ffffff;
  --checker-accent: #e5e5ea;
  --checker-a: #e5e5ea;
  --checker-b: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --input-bg: #ffffff;
}

/* Apple Pro Dark Theme ([data-theme="dark"]) */
[data-theme="dark"] {
  --color-apple-blue: #0071e3;
  --color-link-blue: #2997ff;
  --color-signal-blue: #5ac8fa;
  --color-carbon: #f5f5f7;
  --color-frost: #161617;
  --color-ice: #1c1c1e;
  --color-smoke: #d1d1d6;
  --color-graphite: #a1a1a6;
  --color-ash: #8e8e93;
  --color-mist: #636366;
  --color-onyx: #ffffff;
  --color-pebble: #2c2c2e;

  --bg: #000000;
  --surface: #1c1c1e;
  --surface-canvas: #000000;
  --surface-elevated: #2c2c2e;
  --surface-wash: #242426;
  --surface-pebble: #2c2c2e;
  --header-bg: rgba(22, 22, 23, 0.85);

  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hairline: rgba(255, 255, 255, 0.18);
  --border-focus: #2997ff;

  --text: #f5f5f7;
  --text-muted: #8e8e93;
  --text-secondary: #d1d1d6;
  --text-ash: #8e8e93;

  --checker-bg: #1c1c1e;
  --checker-accent: #2c2c2e;
  --checker-a: #2c2c2e;
  --checker-b: #1c1c1e;

  --glass-bg: rgba(28, 28, 30, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --input-bg: #1c1c1e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-apple-blue: #0071e3;
    --color-link-blue: #2997ff;
    --color-signal-blue: #5ac8fa;
    --color-carbon: #f5f5f7;
    --color-frost: #161617;
    --color-ice: #1c1c1e;
    --color-smoke: #d1d1d6;
    --color-graphite: #a1a1a6;
    --color-ash: #8e8e93;
    --color-mist: #636366;
    --color-onyx: #ffffff;
    --color-pebble: #2c2c2e;

    --bg: #000000;
    --surface: #1c1c1e;
    --surface-canvas: #000000;
    --surface-elevated: #2c2c2e;
    --surface-wash: #242426;
    --surface-pebble: #2c2c2e;
    --header-bg: rgba(22, 22, 23, 0.85);

    --border: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hairline: rgba(255, 255, 255, 0.18);
    --border-focus: #2997ff;

    --text: #f5f5f7;
    --text-muted: #8e8e93;
    --text-secondary: #d1d1d6;
    --text-ash: #8e8e93;

    --checker-bg: #1c1c1e;
    --checker-accent: #2c2c2e;
    --checker-a: #2c2c2e;
    --checker-b: #1c1c1e;

    --glass-bg: rgba(28, 28, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    --input-bg: #1c1c1e;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sf-pro-text); background-color: var(--bg); color: var(--text); min-height: 100vh; height: auto; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; letter-spacing: -0.016em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* --- Apple Minimalist Navigation Header --- */
.app-header {
  height: 52px;
  background-color: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-carbon);
  margin: 0 auto;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-sf-pro-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--color-carbon);
}

.brand-badge {
  font-family: var(--font-sf-pro-text);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  color: var(--color-smoke);
  background-color: var(--surface-pebble);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}




/* --- Apple Flat Segmented Controls (Direct Access, Zero Dropdowns) --- */
.segmented-control {
  display: flex;
  background-color: var(--surface-wash);
  border: 1px solid var(--border);
  border-radius: var(--radius-inputs);
  padding: 2px;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}

.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sf-pro-text);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.segment-btn:hover:not(.active) {
  color: var(--text);
  background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .segment-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.05);
}

.segment-btn.active {
  background-color: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0.5px 1px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .segment-btn.active {
  background-color: var(--surface-elevated);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Lucide Icons Integration */
.lucide {
  stroke-width: 2px;
  stroke: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}
.btn .lucide {
  margin-right: 2px;
}
.btn-lang .lucide,
.btn-theme .lucide,
.tab-btn .lucide {
  margin-right: 0;
}

.batch-label-compact { display: none; }
.batch-label-full { display: inline; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Selector de Idioma — Apple Ghost Pill (Sin banderas, solo SVG + texto EN/ES) */
.btn-lang {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 32px !important;
  padding: 0 12px !important;
  background-color: transparent !important;
  color: var(--color-carbon) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-full) !important;
  text-decoration: none !important;
  font-family: var(--font-sf-pro-text) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto !important;
  min-width: auto !important;
}

.btn-lang:hover {
  background-color: var(--surface-pebble) !important;
  border-color: var(--color-mist) !important;
  color: var(--color-onyx) !important;
}

.btn-lang svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-smoke);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.btn-lang:hover svg {
  stroke: var(--color-carbon);
}

/* Botones con estándares estrictos de Apple (980px pastillas) */
.btn {
  font-family: var(--font-sf-pro-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

/* Apple Blue Primary CTA Pill ("The Single Blue Switch") */
.btn-primary {
  background-color: var(--color-apple-blue);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0077ed;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.btn-primary:active:not(:disabled) {
  background-color: #006edb;
  transform: scale(0.98);
}

/* Apple Secondary Pill */
.btn-secondary {
  background-color: var(--surface-pebble);
  color: var(--color-carbon);
  border-color: var(--border);
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #d8d8dc;
  border-color: var(--color-mist);
  color: var(--color-onyx);
}

.btn-secondary.active {
  background-color: var(--text);
  color: var(--surface);
  border-color: var(--text);
  font-weight: 700;
}

.header-actions .btn {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
}

.workspace-grid { flex: 1; display: grid; grid-template-columns: 1fr 320px; min-height: 0; overflow: hidden; }
/* --- Apple Canvas Showcase Pedestal (Clean Seamless Canvas) --- */
.canvas-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.canvas-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-height: 550px;
  max-width: 550px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  overflow: hidden;
  background-color: var(--checker-bg);
  background-image: linear-gradient(45deg, var(--checker-accent) 25%, transparent 25%),
                    linear-gradient(-45deg, var(--checker-accent) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, var(--checker-accent) 75%),
                    linear-gradient(-45deg, transparent 75%, var(--checker-accent) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  transition: border-color 0.2s ease;
}

#previewCanvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.canvas-drop-hint {
  display: none;
  position: absolute;
  inset: 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-carbon);
  font-family: var(--font-sf-pro-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.016em;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-apple-blue);
  border-radius: var(--radius-cards);
  z-index: 50;
}

.canvas-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 550px;
  font-family: var(--font-sf-pro-text);
  font-size: 12px;
  color: var(--color-ash);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

#resolutionIndicator {
  font-size: 12px;
  color: var(--color-ash);
  font-weight: 400;
}

/* --- Apple Controls Panel & Inputs System --- */

/* --- Apple Segmented Tab Bar (Tone App Inspired) --- */
.editor-tabs {
  display: flex;
  background-color: var(--surface-pebble);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 2px;
  margin-bottom: 14px;
  user-select: none;
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--color-ash);
  font-family: var(--font-sf-pro-text);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.2;
}

.tab-btn:hover {
  color: var(--color-carbon);
}

.tab-btn.active {
  background-color: var(--surface);
  color: var(--color-carbon);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .tab-btn.active {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tab-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.controls-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  background-color: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  font-family: var(--font-sf-pro-text);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.group-title {
  font-family: var(--font-sf-pro-text);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  color: var(--color-ash);
}

.drop-zone {
  border: 1px dashed var(--border-hairline);
  border-radius: var(--radius-inputs);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  background-color: var(--surface-wash);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drop-zone:hover {
  border-color: var(--color-apple-blue);
  background-color: var(--surface);
}

.file-input-hidden { display: none; }

.drop-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-carbon);
}

.drop-label small {
  color: var(--color-ash);
  font-size: 11px;
  font-weight: 400;
}

.queue-counter {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-ash);
}

/* ===== Selector Unificado 2D In-App (Cero Popups de Android, Control 100% Total) ===== */
.apple-color-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-inputs);
  background-color: var(--surface);
  user-select: none;
  box-sizing: border-box;
  width: 100%;
}

.color-picker-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.color-swatch-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch-box {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
}

.color-swatch-preview {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border), 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.color-swatch-box:hover .color-swatch-preview {
  transform: scale(1.1);
}

.color-swatch-box.active .color-swatch-preview {
  box-shadow: 0 0 0 2px var(--color-apple-blue), 0 2px 6px rgba(0, 122, 255, 0.35);
  transform: scale(1.08);
}

.color-hex-input {
  font-family: var(--font-sf-pro-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 4px;
  width: 66px;
  text-transform: uppercase;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.color-hex-input:hover {
  border-color: var(--border-hairline);
}

.color-hex-input:focus {
  border-color: var(--color-apple-blue);
  background-color: var(--surface-wash);
}

.color-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.color-presets-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  padding-top: 5px;
  border-top: 1px solid var(--border-hairline);
  box-sizing: border-box;
}

.preset-dot {
  flex: 1;
  height: 18px;
  max-width: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
}

.preset-dot:hover {
  transform: scale(1.1);
}

.preset-dot.active {
  box-shadow: 0 0 0 2px var(--color-apple-blue);
  transform: scale(1.06);
}

/* Panel Desplegable Espectral 2D In-App (Se despliega hacia abajo sin popups) */
.color-dropdown-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 7px;
  border-top: 1px solid var(--border-hairline);
  box-sizing: border-box;
}

.color-dropdown-panel.open {
  display: flex;
}

.color-pad-container {
  position: relative;
  width: 100%;
  height: 100px;
  border-radius: var(--radius-inputs);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  background-color: #000;
}

.color-pad-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.color-pad-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-sizing: border-box;
}

/* Control deslizante de tono (Hue) */
.color-hue-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 980px;
  background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  outline: none;
  cursor: pointer;
  margin: 1px 0 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.color-hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.color-hue-slider::-webkit-slider-thumb:hover,
.color-hue-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.color-hue-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.btn-pill-small {
  padding: 3px 8px;
  font-family: var(--font-sf-pro-text);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background-color: var(--surface-wash);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-pill-small:hover {
  border-color: var(--color-apple-blue);
  color: var(--color-apple-blue);
}

.btn-icon-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--surface-wash);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-icon-small:hover {
  border-color: var(--color-apple-blue);
  color: var(--color-apple-blue);
}

/* ===== Selector Tipográfico Visual (Apple / Canva Style) ===== */
.font-visual-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.font-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 10px 12px !important;
  border-radius: var(--radius-inputs) !important;
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  text-align: left !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  box-sizing: border-box !important;
  height: auto !important;
}

.font-card:hover {
  border-color: var(--color-apple-blue) !important;
  background-color: var(--surface-wash) !important;
  transform: translateY(-1px);
}

.font-card.active {
  background-color: var(--surface-wash) !important;
  border-color: var(--color-apple-blue) !important;
  box-shadow: 0 0 0 1.5px var(--color-apple-blue) !important;
}

.font-card-preview {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.font-card-tag {
  font-family: var(--font-sf-pro-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ash);
  text-transform: uppercase;
}

/* ===== Barra de Formato Tipográfico Integrada ===== */
.text-format-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.format-group {
  display: flex;
  align-items: center;
  background-color: var(--surface-pebble);
  padding: 2px;
  border-radius: var(--radius-full);
  gap: 2px;
}

.format-btn {
  border: none;
  background: transparent;
  color: var(--color-ash);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.format-btn:hover {
  color: var(--text);
}

.format-btn.active {
  background-color: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.glass-select, .brutalist-select {
  font-family: var(--font-sf-pro-text);
  font-size: 13px;
  font-weight: 400;
  padding: 8px 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-inputs);
  color: var(--color-carbon);
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23474747' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-select:focus, .brutalist-select:focus {
  outline: none;
  border-color: var(--color-apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Apple Sleek Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-pebble);
  border-radius: 2px;
  outline: none;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

/* --- Apple Parametric Numeric Controls & Resets --- */
.param-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  width: 100%;
}

.param-value-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.param-input-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--surface-wash);
  border: 1px solid var(--border);
  border-radius: var(--radius-inputs, 6px);
  padding: 1px 5px;
  height: 22px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.param-input-wrap:focus-within {
  border-color: var(--color-apple-blue);
  box-shadow: 0 0 0 1px var(--color-apple-blue);
}

.param-number-input {
  width: 38px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: inherit;
  text-align: right;
  padding: 0 2px 0 0;
  margin: 0;
  -moz-appearance: textfield;
}

.param-number-input::-webkit-outer-spin-button,
.param-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.param-number-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.param-unit {
  font-size: 0.68rem;
  color: var(--text-muted);
  user-select: none;
  pointer-events: none;
  margin-left: 1px;
}

.btn-param-reset {
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1;
}

.btn-param-reset:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-wash);
}

.btn-param-reset:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-param-reset:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: none;
}

/* Hero Download Button — The Apple Blue Switch */
#downloadCurrentBtn:not(:disabled) {
  background-color: var(--color-apple-blue) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

#downloadCurrentBtn:not(:disabled):hover {
  background-color: #0077ed !important;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

/* --- Apple Modals & Dialogs --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.modal-title {
  font-family: var(--font-sf-pro-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-carbon);
  letter-spacing: -0.012em;
}

.modal-text {
  font-family: var(--font-sf-pro-text);
  font-size: 13px;
  color: var(--color-smoke);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--color-link-blue);
  font-family: var(--font-sf-pro-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-text:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .canvas-section { border-right: none; border-bottom: none; }
}
/* --- Apple Batch Thumbnail Strip --- */
.thumbnail-strip-container {
  margin-top: 14px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 2px 8px;
  flex-shrink: 0;
  max-width: 100%;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  align-items: center;
}

.thumb-wrapper {
  position: relative;
  flex-shrink: 0;
}

.thumb-item {
  width: 64px;
  height: 64px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.65;
  border: 1px solid var(--border);
  border-radius: var(--radius-images);
  background-color: var(--surface);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  display: block;
}

.thumb-item:hover {
  opacity: 0.9;
  border-color: var(--color-mist);
}

.thumb-item.active {
  opacity: 1;
  border: 2px solid var(--color-apple-blue);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15);
}

.thumb-check {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  cursor: pointer;
  accent-color: var(--color-apple-blue);
  width: 16px;
  height: 16px;
}


.style-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background-color: var(--surface-wash);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
}
.style-preview-box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}
.style-preview-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.style-preview-text span {
  font-family: var(--font-sf-pro-text);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-ash);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.style-preview-text strong {
  font-family: var(--font-sf-pro-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-carbon);
}
.thumb-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-carbon);
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.thumb-delete:hover {
  background: #ff3b30;
  transform: scale(1.1);
}
.thumb-wrapper:hover .thumb-delete { display: flex; }


/* --- Apple Modals & Toasts System --- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.glass-toast {
  background: var(--surface); color: var(--text);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: var(--color-carbon);
  padding: 12px 20px;
  border-radius: var(--radius-cards);
  font-family: var(--font-sf-pro-text);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glass-modal.hidden { display: none; }
.glass-modal-content {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 32px;
  border-radius: var(--radius-cards);
  max-width: 420px;
  width: 90%;
  text-align: center;
}
.glass-modal-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

/* --- Apple Signature Footer --- */
.app-footer {
  min-height: 48px;
  flex-shrink: 0;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  background-color: var(--surface-canvas);
  font-family: var(--font-sf-pro-text);
  font-size: 11px;
  color: var(--color-ash);
  letter-spacing: -0.01em;
  z-index: 10;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-ash);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--color-carbon);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  color: var(--color-ash);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: var(--color-carbon);
  transform: scale(1.1);
}

.footer-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, 0.6); }



/* ------------------------------------- */
/* LEGAL MODALS & COOKIE BANNER          */
/* ------------------------------------- */

.legal-modal-content {
  max-width: 620px;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  font-family: var(--font-sf-pro-text);
}

.legal-modal-content h2 {
  font-family: var(--font-sf-pro-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-carbon);
  letter-spacing: -0.015em;
}

.legal-body {
  color: var(--color-smoke);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.legal-body h3 {
  color: var(--color-carbon);
  font-size: 15px;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  margin-bottom: 1rem;
}

.legal-body a {
  color: var(--color-link-blue);
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sf-pro-text);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  flex: 1;
  color: var(--color-smoke);
  font-size: 13px;
  letter-spacing: -0.01em;
  margin-right: 2rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .cookie-content {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}


/* ------------------------------------- */
/* NEWS TICKER                           */
/* ------------------------------------- */

.news-ticker-container {
  flex: 1;
  overflow: hidden;
  margin: 0 1.5rem;
  background-color: var(--surface-wash);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: 32px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.news-ticker-content {
  display: flex;
  white-space: nowrap;
  animation: scroll-ticker 25s linear infinite;
  gap: 3rem;
  padding-left: 1.5rem; /* half of gap to make loop seamless with the -50% trick */
  will-change: transform;
}

.news-ticker-content:hover {
  animation-play-state: paused;
}

.news-ticker-content span {
  color: var(--text);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.news-ticker-content a {
  margin-left: 4px;
}

.news-ticker-content a:hover {
  opacity: 0.8;
}

@keyframes scroll-ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* Since we duplicated the items, shifting by 50% covers exactly one full set of items */
    transform: translate3d(calc(-50% - 1.5rem), 0, 0); 
  }
}

@media (max-width: 900px) {
  .news-ticker-container {
    display: none !important;
  }
}


/* ===== MOBILE FIXES ===== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
html {
  background-color: var(--bg);
}

@media (max-width: 900px) {
  body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100vh;
    background-attachment: scroll !important;
  }
  
  /* Header Móvil Ergonómico Apple: todas las funciones activas con centro absoluto */
  .app-header {
    height: 48px !important;
    padding: 0 10px !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
  }

  .brand {
    gap: 5px !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
  }

  .brand svg {
    width: 20px !important;
    height: 20px !important;
  }

  .brand-title {
    font-size: 13px !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em !important;
  }
  
  .header-actions {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  .header-actions .theme-text {
    display: none !important;
  }

  .header-actions .btn-theme {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  .btn-lang {
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .btn-lang svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* Donar y Exportar Lote plenamente activos y visibles en móvil */
  #openDonateModal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    padding: 0 9px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .header-actions #exportBatchBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  #installAppBtn {
    display: none !important;
  }
  
  body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100vh;
    background-attachment: scroll !important;
  }
  
  .workspace-grid {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .canvas-section {
    padding: 12px 16px 6px !important;
    width: 100% !important;
    min-height: auto !important;
    background-color: var(--bg);
    flex: none !important;
  }
  
  .canvas-wrapper {
    width: min(85vw, 320px) !important;
    max-width: 320px !important;
    max-height: 320px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }

  .canvas-meta {
    width: min(85vw, 320px) !important;
    max-width: 320px !important;
    padding: 0 2px !important;
    margin: 8px auto 0 !important;
    font-size: 11px;
  }

  .canvas-meta #downloadCurrentBtn {
    height: 36px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
  }

  .thumbnail-strip-container {
    width: min(85vw, 320px) !important;
    max-width: 320px !important;
    margin: 6px auto 0 !important;
    padding: 2px 0 6px !important;
  }
  
  .controls-panel {
    overflow: visible !important;
    padding: 14px 16px 40px !important;
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    background-color: var(--surface) !important;
    flex: none !important;
  }

  .editor-tabs {
    display: flex !important;
    margin-bottom: 12px !important;
  }

  .tab-pane {
    display: none !important;
  }

  .tab-pane.active {
    display: flex !important;
  }
}

.hidden-control { display: none !important; }


/* ===== Layout escritorio: la página hace scroll para mostrar el contenido SEO ===== */
@media (min-width: 901px) {
  body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .workspace-grid {
    flex: none;
    min-height: calc(100vh - 52px);
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 18px 24px 28px;
    border-left: none;
    border-right: none;
    overflow: visible !important;
    box-sizing: border-box;
    align-items: start;
  }
  .canvas-section {
    background-color: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    position: static;
    height: auto;
    width: 100%;
  }
  .canvas-wrapper {
    width: 100%;
    max-width: min(460px, calc(100vh - 240px));
    max-height: min(460px, calc(100vh - 240px));
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-cards);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  }
  [data-theme="dark"] .canvas-wrapper {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
  .canvas-meta {
    max-width: min(460px, calc(100vh - 240px));
    width: 100%;
    margin-top: 4px;
  }
  .thumbnail-strip-container {
    max-width: min(460px, calc(100vh - 240px)) !important;
    width: 100% !important;
    margin: 4px auto 0 !important;
    padding: 2px 0 4px !important;
  }
  .controls-panel {
    justify-content: flex-start;
    align-self: start;
    width: 100%;
    max-width: 420px;
    height: min(560px, calc(100vh - 120px));
    max-height: min(560px, calc(100vh - 120px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    gap: 8px;
    padding: 16px 18px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-cards);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hairline) transparent;
  }
  [data-theme="dark"] .controls-panel {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
  .controls-panel::-webkit-scrollbar {
    width: 6px;
  }
  .controls-panel::-webkit-scrollbar-track {
    background: transparent;
  }
  .controls-panel::-webkit-scrollbar-thumb {
    background-color: var(--border-hairline);
    border-radius: 980px;
  }
  .controls-panel::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-mist);
  }
  .editor-tabs {
    display: flex !important;
    position: sticky;
    top: -2px;
    z-index: 10;
    margin-top: -2px;
    margin-bottom: 10px !important;
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 3px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  [data-theme="dark"] .editor-tabs {
    background-color: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }

  /* Solo se muestra el panel activo para garantizar 0 scroll y visualización continua del canvas */
  .tab-pane {
    display: none !important;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .tab-pane.active {
    display: flex !important;
  }
  .tab-pane:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .control-group {
    gap: 3px;
  }
  .group-title {
    font-size: 10.5px;
    margin-bottom: 1px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
  }

  /* Compact drop zone */
  .drop-zone {
    padding: 8px 10px;
    min-height: 38px;
  }
  .drop-label span {
    font-size: 11.5px;
    line-height: 1.2;
  }
  .drop-label small {
    font-size: 9.5px;
    line-height: 1.2;
  }

  /* Alineación armónica vertical estricta en todos los paneles en modo PC */
  #tab-case.active,
  #tab-effects.active,
  #tab-text.active,
  #tab-stickers.active {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Compact Form Controls */
  .color-picker-wrapper {
    padding: 3px 8px;
    height: 32px;
    box-sizing: border-box;
  }
  .glass-select {
    height: 32px;
    padding: 4px 8px;
    font-size: 11.5px;
    box-sizing: border-box;
  }
  .toggle-switch-wrapper {
    padding: 2px 0;
  }
  .toggle-switch {
    transform: scale(0.85);
    transform-origin: right center;
  }
  .btn-secondary {
    height: 32px;
    font-size: 11.5px;
    padding: 6px 12px;
  }
}


@media (max-width: 440px) {
  .app-header {
    padding: 0 6px !important;
    gap: 2px !important;
  }
  .header-left {
    gap: 3px !important;
  }
  .brand {
    gap: 3px !important;
  }
  .brand svg {
    width: 17px !important;
    height: 17px !important;
  }
  .brand-title {
    font-size: 11px !important;
  }
  .header-actions {
    gap: 3px !important;
  }
  .btn-lang {
    padding: 0 6px !important;
    font-size: 11px !important;
  }
  .header-actions .btn-theme {
    width: 28px !important;
    height: 28px !important;
  }
  #openDonateModal {
    padding: 0 6px !important;
    font-size: 11px !important;
  }
  .header-actions #exportBatchBtn {
    padding: 0 8px !important;
    font-size: 11px !important;
  }
  .batch-label-full {
    display: none !important;
  }
  .batch-label-compact {
    display: inline !important;
  }
}

/* ===== Espacios publicitarios (ocultos hasta activar anuncios y aceptar cookies) ===== */
.ad-slot { display: none; }
.ad-slot.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  border-radius: var(--radius-cards);
  border: 1px solid var(--border);
  background-color: var(--surface-wash);
  max-width: 100%;
}
.ad-slot.is-active::before {
  content: "Publicidad";
  font-family: var(--font-sf-pro-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ash);
}
html[lang="en"] .ad-slot.is-active::before {
  content: "Advertisement";
}
html[lang="es"] [data-lang-view="en"] {
  display: none !important;
}
html[lang="en"] [data-lang-view="es"] {
  display: none !important;
}
.ad-slot--panel.is-active { min-height: 250px; margin: 0 -10px; }
.ad-slot--modal.is-active { min-height: 50px; margin: 0.5rem 0; }
.ad-slot--content.is-active { min-height: 100px; margin: 2rem auto; }

/* ===== Contenido SEO (Apple Editorial Style) ===== */
.seo-content {
  flex-shrink: 0;
  padding: 64px 24px 48px;
  color: var(--color-carbon);
  background-color: var(--surface-canvas);
  font-family: var(--font-sf-pro-text);
}

.seo-inner {
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.6;
}

.seo-inner h1 {
  font-family: var(--font-sf-pro-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--color-carbon);
}

.seo-inner h2 {
  font-family: var(--font-sf-pro-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 36px 0 14px;
  color: var(--color-carbon);
}

.seo-lead {
  font-size: 1.1rem;
  color: var(--color-smoke);
  max-width: 780px;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.seo-grid article {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.seo-grid h2 {
  margin-top: 0;
}

.seo-inner ol, .seo-inner ul {
  padding-left: 1.4rem;
}

.seo-inner li {
  margin-bottom: 8px;
  color: var(--color-smoke);
}

.seo-inner p {
  color: var(--color-smoke);
  margin-bottom: 12px;
}

.seo-inner details {
  border-bottom: 1px solid var(--border);
  padding: 16px 4px;
}

.seo-inner summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-carbon);
  list-style-position: outside;
}

.seo-inner details p {
  margin-top: 12px;
  color: var(--color-smoke);
}
@media (max-width: 768px) {
  .seo-content { padding: 40px 16px 28px; }
  .seo-grid { grid-template-columns: 1fr; }
}

/* ===== Control de Iluminación Neón Dinámico (Apple Switch) ===== */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.toggle-switch {
  position: relative;
  width: 40px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--color-pebble);
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-full);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-apple-blue);
  border-color: var(--color-apple-blue);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.glow-controls-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Select Options & Icon in Dark Mode */
[data-theme="dark"] .glass-select, [data-theme="dark"] .brutalist-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1d1d6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

[data-theme="dark"] .glass-select option, [data-theme="dark"] .brutalist-select option {
  background-color: var(--surface);
  color: var(--text);
}


/* --- Apple Sticker Studio System --- */
.sticker-grid {
  scrollbar-width: thin;
  scrollbar-color: var(--border-hairline) transparent;
}
.sticker-grid::-webkit-scrollbar {
  width: 4px;
}
.sticker-grid::-webkit-scrollbar-thumb {
  background-color: var(--border-hairline);
  border-radius: 980px;
}

.sticker-item-card {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-inputs);
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
  position: relative;
}
.sticker-item-card:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--color-apple-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.sticker-item-card:active {
  transform: scale(0.96);
}
.sticker-item-card img,
.sticker-item-card svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

[data-theme="dark"] .color-swatch-preview {
  border: 2px solid #2c2c2e;
  box-shadow: 0 0 0 1px #3a3a3c, 0 2px 4px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .color-hex-input {
  color: #ffffff;
}
[data-theme="dark"] .color-hex-input:focus {
  background-color: var(--surface-elevated);
}
[data-theme="dark"] .color-presets-strip {
  border-top-color: var(--border);
}
[data-theme="dark"] .preset-dot {
  border: 1px solid rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .btn-pill-small,
[data-theme="dark"] .btn-icon-small {
  background-color: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .font-card {
  background-color: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .font-card:hover,
[data-theme="dark"] .font-card.active {
  background-color: var(--surface-elevated) !important;
}
[data-theme="dark"] .format-btn.active {
  background-color: var(--surface-elevated);
  color: #ffffff;
}
[data-theme="dark"] .param-input-wrap {
  background-color: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .param-number-input {
  color: #ffffff;
}
[data-theme="dark"] .btn-param-reset {
  color: var(--text-muted);
}
[data-theme="dark"] .btn-param-reset:hover:not(:disabled) {
  color: #ffffff;
  background-color: var(--surface-elevated);
}


/* ==========================================================================
   Apple iPhone Pro Showcase & Homepage System (.apple-showcase)
   Dual-Theme (Titanium Black Dark & Frost Silver Light) + Mobile-First Responsive
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Default & Dark Theme Tokens (Titanium Black Edition) */
:root,
[data-theme="dark"] {
  --apple-black: #000000;
  --apple-titanium: #0a0a0a;
  --apple-bento-bg: #141414;
  --apple-bento-hover: #19191b;
  --apple-bento-border: #262626;
  --apple-bento-border-hover: #3a3a3a;
  --apple-bento-inner: rgba(255, 255, 255, 0.05);
  --apple-bento-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --apple-text-pure: #ffffff;
  --apple-text-titanium: #86868b;
  --apple-text-muted: #6e6e73;
  --apple-accent-blue: #2997ff;
  --apple-heading-grad: linear-gradient(180deg, #ffffff 38%, #86868b 100%);
  --apple-subnav-bg: rgba(10, 10, 10, 0.84);
  --apple-subnav-border: rgba(255, 255, 255, 0.08);
  --apple-section-divider: rgba(255, 255, 255, 0.06);
  --apple-pill-surface: rgba(255, 255, 255, 0.04);
  --apple-pill-border: rgba(255, 255, 255, 0.1);
  --apple-btn-primary-bg: #ffffff;
  --apple-btn-primary-hover: #e8e8ed;
  --apple-btn-primary-text: #000000;
  --apple-btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --apple-btn-secondary-hover: rgba(255, 255, 255, 0.14);
  --apple-btn-secondary-border: rgba(255, 255, 255, 0.14);
  --apple-hero-bg:
    radial-gradient(circle at 50% 12%, rgba(41, 151, 255, 0.14) 0%, transparent 52%),
    radial-gradient(circle at 50% 68%, rgba(201, 149, 229, 0.09) 0%, transparent 55%),
    #000000;
  --apple-cta-bg:
    radial-gradient(circle at 50% 50%, rgba(41, 151, 255, 0.12) 0%, transparent 62%),
    #000000;
  --apple-radius-bento: 24px;
  --font-showcase: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Light Theme Tokens (Apple Frost Silver Edition) */
[data-theme="light"] {
  --apple-black: #ffffff;
  --apple-titanium: #f5f5f7;
  --apple-bento-bg: #ffffff;
  --apple-bento-hover: #fcfcfe;
  --apple-bento-border: #e2e2e7;
  --apple-bento-border-hover: #c7c7cc;
  --apple-bento-inner: rgba(255, 255, 255, 0.9);
  --apple-bento-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  --apple-text-pure: #1d1d1f;
  --apple-text-titanium: #515154;
  --apple-text-muted: #6e6e73;
  --apple-accent-blue: #0071e3;
  --apple-heading-grad: linear-gradient(180deg, #1d1d1f 40%, #515154 100%);
  --apple-subnav-bg: rgba(255, 255, 255, 0.86);
  --apple-subnav-border: rgba(0, 0, 0, 0.08);
  --apple-section-divider: rgba(0, 0, 0, 0.07);
  --apple-pill-surface: #f5f5f7;
  --apple-pill-border: #d2d2d7;
  --apple-btn-primary-bg: #1d1d1f;
  --apple-btn-primary-hover: #333336;
  --apple-btn-primary-text: #ffffff;
  --apple-btn-secondary-bg: rgba(0, 0, 0, 0.05);
  --apple-btn-secondary-hover: rgba(0, 0, 0, 0.09);
  --apple-btn-secondary-border: rgba(0, 0, 0, 0.14);
  --apple-hero-bg:
    radial-gradient(circle at 50% 12%, rgba(0, 113, 227, 0.09) 0%, transparent 52%),
    radial-gradient(circle at 50% 68%, rgba(201, 149, 229, 0.08) 0%, transparent 55%),
    #ffffff;
  --apple-cta-bg:
    radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.08) 0%, transparent 62%),
    #ffffff;
}

/* --- Sticky Glass Sub-Nav Bar --- */
.showcase-subnav {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--apple-subnav-bg) !important;
  border-bottom: 1px solid var(--apple-subnav-border) !important;
  min-height: 54px;
  height: auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.5rem !important;
  font-family: var(--font-showcase);
  transition: background 0.2s ease, border-color 0.2s ease;
  gap: 0.75rem;
}

.subnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--apple-text-pure) !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 0;
}

.subnav-brand svg {
  color: var(--apple-text-pure);
  flex-shrink: 0;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subnav-link {
  color: var(--apple-text-titanium);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.subnav-link:hover {
  color: var(--apple-text-pure);
}

.subnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.showcase-subnav .btn-secondary {
  background: var(--apple-pill-surface);
  color: var(--apple-text-pure);
  border: 1px solid var(--apple-pill-border);
}

.showcase-subnav .btn-secondary:hover {
  background: var(--apple-btn-secondary-hover);
  border-color: var(--apple-bento-border-hover);
}

.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--apple-btn-primary-bg);
  color: var(--apple-btn-primary-text) !important;
  font-family: var(--font-showcase);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-pill-primary:hover {
  background: var(--apple-btn-primary-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.2);
}

.btn-pill-primary:active {
  transform: scale(0.98);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--apple-btn-secondary-bg);
  color: var(--apple-text-pure) !important;
  font-family: var(--font-showcase);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--apple-btn-secondary-border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-pill-secondary:hover {
  background: var(--apple-btn-secondary-hover);
  border-color: var(--apple-bento-border-hover);
  transform: scale(1.01);
}

.btn-pill-lg {
  font-size: 0.96rem;
  padding: 13px 26px;
}

/* --- Hero Cinematográfico --- */
.showcase-hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4.25rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font-showcase);
  background: var(--apple-hero-bg);
}

.showcase-eyebrow {
  font-family: var(--font-showcase);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--apple-text-titanium);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.showcase-macro-title {
  font-family: var(--font-showcase);
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--apple-text-pure);
  background: var(--apple-heading-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 960px;
  margin: 0 auto 1.35rem auto;
  overflow-wrap: break-word;
}

.showcase-subtitle {
  font-family: var(--font-showcase);
  font-size: clamp(0.98rem, 1.8vw, 1.24rem);
  line-height: 1.55;
  color: var(--apple-text-titanium);
  max-width: 740px;
  margin: 0 auto 2.25rem auto;
  font-weight: 400;
}

.showcase-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  width: 100%;
}

/* Hero 3D Mockup Jewel Case */
.hero-mockup-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  perspective: 1200px;
}

.hero-ambient-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 50%, var(--hero-tint, #00f0ff) 0%, rgba(255, 45, 85, 0.22) 55%, transparent 78%);
  filter: blur(54px);
  opacity: 0.62;
  z-index: 0;
  pointer-events: none;
  transition: background 0.4s ease;
}

.hero-mockup-card {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  border-radius: 22px;
  background: #0a0a0a;
  box-shadow:
    0 28px 65px -15px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transform: rotateX(var(--tilt-x, 6deg)) rotateY(var(--tilt-y, -6deg)) rotateZ(var(--tilt-z, 1deg));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s ease;
  will-change: transform;
}

.hero-mockup-card.is-tilting {
  transition: transform 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  .hero-mockup-card,
  .hero-mockup-card.is-tilting {
    transform: none !important;
    transition: none !important;
  }
}

.hero-artwork-layer {
  position: absolute;
  inset: 5% 4% 5% 13%;
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 25%, var(--hero-tint, #00f0ff) 0%, transparent 52%),
    radial-gradient(circle at 78% 72%, #ff2d55 0%, transparent 52%),
    radial-gradient(circle at 55% 45%, #7000ff 0%, #090910 75%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: left;
  overflow: hidden;
  transition: background 0.35s ease;
}

.hero-artwork-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-artwork-disc {
  position: absolute;
  right: -18%;
  bottom: -18%;
  width: 68%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(from 45deg, rgba(255,255,255,0.22), rgba(0,240,255,0.3), rgba(255,45,85,0.25), rgba(255,255,255,0.08), rgba(255,255,255,0.22));
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.hero-artwork-disc::after {
  content: "";
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: #0a0a0a;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.hero-artwork-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-artwork-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-artwork-typography {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 2.2rem;
}

.hero-artwork-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-tint, #00f0ff);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.hero-artwork-title {
  font-size: clamp(1.35rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hero-mockup-img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero-mockup-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at var(--glare-x, 22%) var(--glare-y, 22%), rgba(255, 255, 255, 0.28) 0%, transparent 48%),
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--hero-tint, #00f0ff) 34%, transparent) 0%, transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background 0.35s ease;
}

.hero-mockup-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  color: #ffffff;
  font-weight: 600;
}

.hero-mockup-badge-right {
  left: auto;
  right: 14px;
  color: var(--hero-tint, #00f0ff);
  transition: color 0.3s ease;
}

/* Apple iPhone Pro-style Interactive Finish Dock in Hero */
.hero-finish-dock {
  margin: 1.75rem auto 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 12px;
  border-radius: 9999px;
  background: var(--apple-pill-surface);
  border: 1px solid var(--apple-pill-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-finish-caption {
  font-size: 0.76rem;
  color: var(--apple-text-titanium);
  letter-spacing: 0.03em;
}

.hero-finish-caption strong {
  color: var(--apple-text-pure);
  font-weight: 700;
}

.hero-finish-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-finish-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch-bg, #00f0ff);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-finish-swatch:hover {
  transform: scale(1.14);
}

.hero-finish-swatch.is-active {
  transform: scale(1.18);
  border-color: var(--apple-text-pure);
  box-shadow: 0 0 0 2px var(--apple-obsidian), 0 0 12px var(--swatch-bg, #00f0ff);
}

/* --- The Bento Grid Core --- */
.showcase-bento-section {
  padding: 5.5rem 1.5rem;
  background: var(--apple-titanium);
  border-top: 1px solid var(--apple-section-divider);
  position: relative;
  font-family: var(--font-showcase);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.25rem auto;
}

.section-title {
  font-family: var(--font-showcase);
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--apple-text-pure);
  background: var(--apple-heading-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.85rem 0;
}

.section-desc {
  font-family: var(--font-showcase);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  color: var(--apple-text-titanium);
  line-height: 1.55;
  margin: 0;
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.bento-tile {
  background: var(--apple-bento-bg);
  border: 1px solid var(--apple-bento-border);
  border-radius: var(--apple-radius-bento);
  box-shadow: inset 0 1px 0 var(--apple-bento-inner), var(--apple-bento-shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.bento-tile:hover {
  background: var(--apple-bento-hover);
  border-color: var(--apple-bento-border-hover);
  transform: translateY(-2px);
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-row-2 {
  grid-row: span 2;
}

.bento-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.85rem;
}

.bento-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.25);
  color: var(--apple-accent-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--apple-text-titanium);
  margin-bottom: 0.35rem;
  display: block;
}

.bento-title {
  font-size: clamp(1.22rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--apple-text-pure);
  margin: 0 0 0.65rem 0;
}

.bento-tile.bento-row-2 .bento-title {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--apple-text-titanium);
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

/* Bento Tile 1: Dual Resolution Display */
.res-modes-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.25rem;
}

.res-mode-box {
  background: var(--apple-pill-surface);
  border: 1px solid var(--apple-pill-border);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: left;
}

.res-mode-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--apple-text-pure);
  letter-spacing: -0.02em;
}

.res-mode-label {
  font-size: 0.74rem;
  color: var(--apple-text-titanium);
  margin-top: 4px;
  line-height: 1.35;
}

.bento-editor-preview {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.12) 0%, var(--apple-pill-surface) 100%);
  border: 1px solid rgba(41, 151, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bento-editor-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--apple-text-pure);
  font-weight: 600;
}

.status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 10px #30d158;
  flex-shrink: 0;
}

/* Bento Tile 2: Acrylic Tints Swatches */
.acrylic-tints-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
}

.acrylic-tint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--apple-pill-surface);
  border: 1px solid var(--apple-pill-border);
  border-radius: 9999px;
  padding: 6px 12px 6px 7px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--apple-text-pure);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.acrylic-tint-pill:hover {
  transform: translateY(-1px);
  border-color: var(--apple-bento-border-hover);
}

.acrylic-tint-pill.is-active {
  border-color: var(--apple-accent-blue);
  background: rgba(41, 151, 255, 0.14);
}

.acrylic-tint-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.45);
  flex-shrink: 0;
}

/* Bento Tile 3: Geometric Cuts */
.cut-shapes-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 0.75rem;
}

.cut-shape-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--apple-pill-surface);
  border: 1px solid var(--apple-pill-border);
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--apple-text-pure);
  text-align: center;
}

.cut-shape-badge svg {
  color: var(--apple-accent-blue);
}

/* Bento Tile 4 & 5: Dual Layer & Batch Pills */
.layer-engine-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0.75rem;
}

.layer-pill-card {
  background: var(--apple-pill-surface);
  border: 1px solid var(--apple-pill-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.layer-pill-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--apple-text-pure);
  display: block;
  margin-bottom: 2px;
}

.layer-pill-sub {
  font-size: 0.71rem;
  color: var(--apple-text-titanium);
  display: block;
}

/* --- Vitrina del Ecosistema ("Explore the Lineup") --- */
.showcase-lineup-section {
  padding: 5.5rem 1.5rem;
  background: var(--apple-black);
  border-top: 1px solid var(--apple-section-divider);
  font-family: var(--font-showcase);
}

.lineup-subhead {
  max-width: 1220px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lineup-subhead-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--apple-text-titanium);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto 3rem auto;
}

.lineup-grid:last-of-type {
  margin-bottom: 0;
}

.lineup-card {
  background: var(--apple-bento-bg);
  border: 1px solid var(--apple-bento-border);
  border-radius: var(--apple-radius-bento);
  box-shadow: inset 0 1px 0 var(--apple-bento-inner), var(--apple-bento-shadow);
  padding: 1.65rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lineup-card:hover {
  background: var(--apple-bento-hover);
  border-color: var(--apple-bento-border-hover);
  transform: translateY(-3px);
}

.lineup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.65rem;
}

.lineup-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--apple-text-titanium);
}

.lineup-lang-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--apple-text-titanium);
  background: var(--apple-pill-surface);
  border: 1px solid var(--apple-pill-border);
  border-radius: 9999px;
  padding: 2px 8px;
}

.lineup-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text-pure);
  margin: 0 0 0.5rem 0;
}

.lineup-desc {
  font-size: 0.85rem;
  color: var(--apple-text-titanium);
  line-height: 1.5;
  margin: 0 0 1.2rem 0;
}

.lineup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 0.85rem;
  border-top: 1px solid var(--apple-section-divider);
}

.lineup-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apple-accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lineup-action:hover {
  text-decoration: underline;
}

.lineup-alt-link {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--apple-text-titanium);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--apple-pill-border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lineup-alt-link:hover {
  color: var(--apple-text-pure);
  border-color: var(--apple-bento-border-hover);
}

/* --- Privacy by Design Section --- */
.showcase-privacy-section {
  padding: 5.5rem 1.5rem;
  background: var(--apple-titanium);
  border-top: 1px solid var(--apple-section-divider);
  font-family: var(--font-showcase);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.privacy-card {
  background: var(--apple-bento-bg);
  border: 1px solid var(--apple-bento-border);
  border-radius: var(--apple-radius-bento);
  box-shadow: inset 0 1px 0 var(--apple-bento-inner), var(--apple-bento-shadow);
  padding: 1.85rem;
  text-align: left;
}

.privacy-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-accent-blue);
  margin-bottom: 1.1rem;
}

.privacy-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text-pure);
  margin: 0 0 0.55rem 0;
}

.privacy-desc {
  font-size: 0.86rem;
  color: var(--apple-text-titanium);
  line-height: 1.55;
  margin: 0;
}

/* --- Matriz de Especificaciones Técnicas (Apple Tech Specs) --- */
.showcase-specs-section {
  padding: 5.5rem 1.5rem;
  background: var(--apple-black);
  border-top: 1px solid var(--apple-section-divider);
  font-family: var(--font-showcase);
}

.specs-table-wrapper {
  max-width: 980px;
  margin: 0 auto 3.5rem auto;
  border: 1px solid var(--apple-bento-border);
  border-radius: var(--apple-radius-bento);
  box-shadow: inset 0 1px 0 var(--apple-bento-inner), var(--apple-bento-shadow);
  overflow: hidden;
  background: var(--apple-bento-bg);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table tr {
  border-bottom: 1px solid var(--apple-section-divider);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th,
.specs-table td {
  padding: 1.15rem 1.5rem;
  font-size: 0.9rem;
}

.specs-table th {
  background: var(--apple-pill-surface);
  color: var(--apple-text-titanium);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.specs-label {
  font-weight: 700;
  color: var(--apple-text-pure);
  width: 34%;
}

.specs-value {
  color: var(--apple-text-titanium);
  line-height: 1.5;
}

/* Showcase FAQ Accordion */
.showcase-faq-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.showcase-faq-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text-pure);
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.showcase-faq-item {
  background: var(--apple-bento-bg);
  border: 1px solid var(--apple-bento-border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--apple-bento-shadow);
}

.showcase-faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--apple-text-pure);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.showcase-faq-item summary::-webkit-details-marker {
  display: none;
}

.showcase-faq-item p {
  padding: 0 1.4rem 1.2rem 1.4rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--apple-text-titanium);
  line-height: 1.55;
}

/* --- Final Colossal CTA --- */
.showcase-final-cta {
  padding: 6.5rem 1.5rem;
  background: var(--apple-cta-bg);
  text-align: center;
  border-top: 1px solid var(--apple-section-divider);
  font-family: var(--font-showcase);
}

.final-cta-title {
  font-family: var(--font-showcase);
  font-size: clamp(2rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--apple-text-pure);
  background: var(--apple-heading-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 820px;
  margin: 0 auto 1.2rem auto;
}

.final-cta-desc {
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: var(--apple-text-titanium);
  max-width: 600px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.55;
}

.showcase-ad-container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.showcase-ad-slot.ad-slot--content.is-active {
  margin: 0 auto 3.5rem auto;
  padding: 1.25rem;
  border-radius: var(--apple-radius-bento);
  border: 1px solid var(--apple-bento-border);
  background: var(--apple-bento-bg);
  box-shadow: inset 0 1px 0 var(--apple-bento-inner), var(--apple-bento-shadow);
}

/* ==========================================================================
   Responsive Breakpoints for Showcase (Tablet & Mobile-First)
   ========================================================================== */
@media (max-width: 1080px) {
  .subnav-links {
    display: none;
  }
  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .lineup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .showcase-subnav {
    padding: 0.45rem 0.9rem !important;
  }
  .subnav-brand {
    font-size: 0.88rem;
    gap: 7px;
  }
  .showcase-subnav .theme-text {
    display: none;
  }
  .btn-pill-primary {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
  .showcase-hero {
    min-height: auto;
    padding: 3.25rem 1rem 2.75rem;
  }
  .hero-mockup-stage {
    max-width: 340px;
  }
  .hero-mockup-card {
    transform: none;
  }
  .hero-mockup-badge-right {
    top: 12px;
    right: 12px;
    bottom: auto;
  }
  .showcase-bento-section,
  .showcase-lineup-section,
  .showcase-privacy-section,
  .showcase-specs-section {
    padding: 3.5rem 1rem;
  }
  .showcase-final-cta {
    padding: 4.5rem 1rem;
  }
  .bento-container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }
  .bento-tile {
    padding: 1.4rem;
    border-radius: 20px;
  }
  .bento-col-2 {
    grid-column: span 1;
  }
  .bento-row-2 {
    grid-row: span 1;
  }
  .res-modes-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cut-shapes-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .cut-shapes-strip .cut-shape-badge:last-child {
    grid-column: 1 / -1;
  }
  .layer-engine-compare {
    grid-template-columns: 1fr;
  }
  .lineup-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  /* Stack Tech Specs table rows cleanly on mobile */
  .specs-table thead {
    display: none;
  }
  .specs-table,
  .specs-table tbody,
  .specs-table tr,
  .specs-table td {
    display: block;
    width: 100%;
  }
  .specs-table tr {
    padding: 1rem 1.15rem;
  }
  .specs-table td {
    padding: 0;
  }
  .specs-label {
    width: 100%;
    font-size: 0.92rem;
    margin-bottom: 4px;
  }
  .specs-value {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .subnav-brand span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .showcase-hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2.5rem;
  }
  .showcase-hero-actions .btn-pill-lg {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .bento-editor-preview {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .bento-editor-status {
    justify-content: center;
  }
}
