/* ==========================================================================
   HSR ART - MOTORBIKE POSTER STUDIO & ROLL PRINT OPTIMIZER
   Design System & Styling
   ========================================================================== */

:root {
  --bg-main: #090b10;
  --bg-card: rgba(18, 22, 32, 0.75);
  --bg-card-hover: rgba(24, 30, 44, 0.9);
  --bg-card-solid: #121620;
  --bg-elevated: #1a2030;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 242, 254, 0.3);
  --border-red: rgba(255, 0, 85, 0.3);

  --neon-cyan: #00f2fe;
  --neon-cyan-glow: rgba(0, 242, 254, 0.4);
  --neon-magenta: #ff0055;
  --neon-magenta-glow: rgba(255, 0, 85, 0.4);
  --racing-red: #ff2a4b;
  --neon-amber: #ffaa00;
  --neon-green: #00ff88;
  
  --text-primary: #ffffff;
  --text-secondary: #9aa4b8;
  --text-muted: #626c80;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-neon-cyan: 0 0 20px rgba(0, 242, 254, 0.35);
  --shadow-neon-magenta: 0 0 20px rgba(255, 0, 85, 0.35);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Cyber Ambient Gradients & Background Grid */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.cyan-glow {
  top: -100px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
}

.magenta-glow {
  bottom: -150px;
  right: 5%;
  width: 600px;
  height: 600px;
  background: var(--neon-magenta);
}

/* --------------------------------------------------------------------------
   HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1b2030, #281525);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-neon-cyan);
}

.logo-icon {
  font-size: 1.3rem;
  color: var(--neon-cyan);
}

.logo-accent {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.8rem;
  color: var(--neon-amber);
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.neon-text-red {
  color: var(--neon-magenta);
  text-shadow: 0 0 12px var(--neon-magenta-glow);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(18, 22, 32, 0.8);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(255, 0, 85, 0.15));
  color: #ffffff;
  border: 1px solid var(--border-accent);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

.tab-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.tab-badge.highlight {
  background: rgba(255, 0, 85, 0.25);
  color: #ff6699;
  border: 1px solid rgba(255, 0, 85, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-green);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   BUTTONS & FORM CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), #00a2ff);
  color: #060910;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--neon-magenta), #c70039);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 85, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-cyan {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(0, 242, 254, 0.2);
}

.btn-outline-magenta {
  background: rgba(255, 0, 85, 0.08);
  border: 1px solid var(--neon-magenta);
  color: var(--neon-magenta);
}

.btn-outline-magenta:hover {
  background: rgba(255, 0, 85, 0.2);
}

.btn-outline-amber {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

.btn-outline-amber:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.btn-whatsapp {
  background: #25d366;
  color: #052610;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-success {
  background: var(--neon-green);
  color: #06190f;
  font-weight: 700;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 4px;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Styled Inputs */
.input-styled, .select-styled, .textarea-styled {
  width: 100%;
  background: rgba(14, 18, 26, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
}

.input-styled:focus, .select-styled:focus, .textarea-styled:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.textarea-styled {
  resize: vertical;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.col-6 { flex: 1; }
.col-12 { width: 100%; }

.input-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   LAYOUT & CARDS
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 1600px;
  margin: 1.5rem auto 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  gap: 1rem;
}

.panel-title-group h2, .panel-title-group h3 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.section-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-intro h2 {
  font-size: 1.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-intro p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 780px;
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   METRICS GRID
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.metric-icon.cyan {
  background: rgba(0, 242, 254, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.metric-icon.magenta {
  background: rgba(255, 0, 85, 0.12);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 85, 0.3);
}

.metric-icon.amber {
  background: rgba(255, 170, 0, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.metric-icon.green {
  background: rgba(0, 255, 136, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   ORDERS TAB LAYOUT & TABLE
   -------------------------------------------------------------------------- */
.orders-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.panel-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.search-box {
  position: relative;
  width: 260px;
}

.search-box i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-box input {
  width: 100%;
  background: rgba(14, 18, 26, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 0.55rem 0.8rem 0.55rem 2.2rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--neon-cyan);
}

/* Styled Table */
.table-responsive {
  overflow-x: auto;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.styled-table th {
  background: rgba(14, 18, 26, 0.7);
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.styled-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.styled-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.order-id-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-cyan);
  font-size: 0.85rem;
}

.order-date {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.client-name {
  font-weight: 600;
  color: var(--text-primary);
}

.client-phone {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.frame-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
}

.badge-30x40 {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-20x30 {
  background: rgba(255, 0, 85, 0.15);
  color: #ff6699;
  border: 1px solid rgba(255, 0, 85, 0.3);
}

.status-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.status-tag.nuevo {
  background: rgba(255, 170, 0, 0.15);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.status-tag.muestras_enviadas {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.status-tag.aprobado {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-tag.impresion_pendiente {
  background: rgba(255, 0, 85, 0.15);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 85, 0.3);
}

.order-thumb-mini {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.order-thumb-mini:hover {
  transform: scale(1.15);
  border-color: var(--neon-cyan);
}

.table-actions {
  display: flex;
  gap: 0.35rem;
}

/* Upload Dropzone */
.dropzone-container {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(14, 18, 26, 0.6);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dropzone-container:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.04);
}

.dropzone-icon {
  font-size: 1.8rem;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-weight: 600;
  font-size: 0.85rem;
}

.dropzone-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.upload-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* --------------------------------------------------------------------------
   TAB 2: STYLES SHOWCASE GRID & WATERMARK VISUALIZER
   -------------------------------------------------------------------------- */
.watermark-toggle-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.wm-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.segmented-control {
  display: flex;
  background: rgba(10, 14, 20, 0.9);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.seg-btn.active {
  background: var(--neon-cyan);
  color: #060910;
  font-weight: 700;
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.8rem;
}

.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.style-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
}

.style-preview-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #06080d;
}

.style-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.style-card:hover .style-img {
  transform: scale(1.03);
}

.style-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  color: var(--neon-cyan);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.watermark-shield-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 0, 85, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
}

.style-details {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.style-header {
  margin-bottom: 0.8rem;
}

.style-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.style-tagline {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

.style-params-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.param-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.prompt-accordion {
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cad3e2;
  max-height: 120px;
  overflow-y: auto;
}

.style-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   TAB 3: ROLL PRINT OPTIMIZER (PLOTTER NESTING 30x40 & 20x30)
   -------------------------------------------------------------------------- */
.roll-quick-actions {
  display: flex;
  gap: 0.8rem;
}

.roll-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.items-to-pack-section {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.section-subtitle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-subtitle-bar h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.pack-items-list {
  max-height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 0.4rem;
}

.pack-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.pack-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.add-custom-poster-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

/* Efficiency Display */
.efficiency-display {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 1.2rem 0;
  background: rgba(14, 18, 26, 0.9);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.efficiency-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--neon-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  flex-shrink: 0;
}

.eff-value {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.eff-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.eff-details {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.eff-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.35rem;
}

.detail-name {
  color: var(--text-secondary);
}

.formula-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.25);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.45;
}

.tip-icon {
  color: var(--neon-amber);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

/* Roll Canvas Visualizer */
.roll-canvas-panel {
  margin-top: 1.5rem;
}

.canvas-legend {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.legend-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-cut {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

.roll-viewport-wrapper {
  background: #080a0e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roll-sheet-canvas {
  background: #ffffff;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid #d0d7de;
  transition: all var(--transition-smooth);
}

.placed-poster-box {
  position: absolute;
  overflow: hidden;
  box-sizing: border-box;
  background: #11141c;
  border: 2px solid #333a4d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.placed-poster-box.rotated-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-rotator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-rotator img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.94;
}

.placed-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}


.placed-poster-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
  pointer-events: none;
}

.placed-poster-dim {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 242, 254, 0.85);
  color: #000;
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  font-weight: 800;
  font-family: var(--font-mono);
  pointer-events: none;
}

.roll-export-footer {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-sm);
}

.export-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   TAB 4: WHATSAPP BUSINESS ASSISTANT
   -------------------------------------------------------------------------- */
.whatsapp-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.wa-client-selector {
  height: fit-content;
}

.client-summary-badge {
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-size: 0.82rem;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wa-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.4rem;
}

.wa-template-card {
  display: flex;
  flex-direction: column;
}

.wa-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.wa-step-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 170, 0, 0.2);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 170, 0, 0.35);
}

.wa-step-badge.step-cyan {
  background: rgba(0, 242, 254, 0.2);
  color: var(--neon-cyan);
  border-color: rgba(0, 242, 254, 0.35);
}

.wa-step-badge.step-magenta {
  background: rgba(255, 0, 85, 0.2);
  color: var(--neon-magenta);
  border-color: rgba(255, 0, 85, 0.35);
}

.wa-step-badge.step-green {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border-color: rgba(0, 255, 136, 0.35);
}

.wa-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.wa-bubble {
  background: #0d281e;
  border: 1px solid #1c4b38;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e2f4eb;
  white-space: pre-line;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.wa-actions {
  display: flex;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   TAB 5: SETTINGS
   -------------------------------------------------------------------------- */
.settings-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.divider {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.info-item i {
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.info-item p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   MODAL & TOAST
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 10000;
}

.toast {
  background: rgba(18, 22, 32, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  border-left: 4px solid var(--neon-green);
}

.toast.info {
  border-left: 4px solid var(--neon-cyan);
}

.toast.warning {
  border-left: 4px solid var(--neon-amber);
}

@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Utilities */
.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.text-green { color: var(--neon-green); }
.text-amber { color: var(--neon-amber); }

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS (SMARTPHONES & TABLETS)
   ========================================================================== */

/* Tablet & Medium Screens (< 1100px) */
@media (max-width: 1100px) {
  .orders-layout, 
  .roll-dashboard-grid, 
  .whatsapp-layout, 
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* Smartphone & Narrow Screens (< 768px) */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Header Mobile */
  .app-header {
    padding: 0.6rem 0.8rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .brand-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .logo-icon {
    font-size: 1.1rem;
  }

  .brand-title {
    font-size: 1.22rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.8px;
  }

  /* Touch-Swipeable Horizontal Navigation Bar */
  .nav-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.35rem;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-md);
    max-width: 100%;
    background: rgba(14, 18, 26, 0.95);
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
  }

  .nav-tab i {
    font-size: 0.85rem;
  }

  .tab-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
  }

  /* Header Status & Action */
  .header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.6rem;
  }

  .header-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
  }

  .status-indicator {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
  }

  /* Main Container */
  .main-content {
    padding: 0 0.8rem;
    margin: 1rem auto 3rem auto;
  }

  .section-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .section-intro h2 {
    font-size: 1.25rem;
  }

  .section-intro p {
    font-size: 0.82rem;
  }

  .panel-card {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .panel-title-group h2, 
  .panel-title-group h3 {
    font-size: 1.15rem;
  }

  .panel-subtitle {
    font-size: 0.75rem;
  }

  .panel-tools {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
  }

  .search-box {
    width: 100%;
  }

  /* Form Elements */
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .col-6 {
    width: 100%;
  }

  /* Table Horizontal Scrolling */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
  }

  .table-responsive::-webkit-scrollbar {
    height: 5px;
  }

  .table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 4px;
  }

  .styled-table {
    min-width: 580px;
    font-size: 0.8rem;
  }

  .styled-table th, 
  .styled-table td {
    padding: 0.75rem 0.7rem;
  }

  /* WhatsApp Tab Mobile */
  .whatsapp-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .wa-templates-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wa-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.55rem;
  }

  .wa-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Roll Optimizer Mobile */
  .roll-canvas-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0;
  }

  .roll-sheet-canvas {
    max-width: 100%;
  }

  .export-status-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .export-status-box .btn {
    width: 100%;
  }

  /* Modal Bottom Sheet / Mobile View */
  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal-card {
    max-height: 94vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: 0;
    width: 100%;
  }

  .modal-header {
    padding: 1rem 1.1rem;
  }

  .modal-body {
    padding: 1rem 1.1rem;
  }

  /* Toast Mobile */
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Phones (< 600px) - Metrics 2x2 Grid */
@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .metric-card {
    padding: 0.75rem 0.8rem;
    gap: 0.65rem;
  }

  .metric-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .metric-value {
    font-size: 1.2rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }
}

/* Extra Small Phones (< 380px) */
@media (max-width: 380px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
}

/* ==========================================================================
   MOBILE ORDER CARDS (ESPECÍFICO PARA TELÉFONOS & XIAOMI 14 PRO)
   ========================================================================== */
.mobile-orders-cards {
  display: none;
}

@media (max-width: 768px) {
  .table-responsive {
    display: none !important;
  }

  .mobile-orders-cards {
    display: flex !important;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.6rem;
  }

  .mobile-order-card {
    background: rgba(18, 22, 32, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
  }

  .mobile-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-magenta));
  }

  .mobile-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
  }

  .mobile-order-id-group {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
  }

  .mobile-order-body {
    display: flex;
    gap: 0.9rem;
    align-items: center;
  }

  .mobile-order-thumb-wrapper {
    position: relative;
    width: 65px;
    height: 86px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .mobile-order-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-zoom-hint {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--neon-cyan);
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 3px;
    pointer-events: none;
  }

  .mobile-order-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .mobile-order-details .client-name {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .mobile-order-details .client-phone {
    font-size: 0.76rem;
    color: var(--text-secondary);
  }

  .mobile-order-moto {
    font-size: 0.84rem;
    color: #fff;
  }

  .mobile-order-badges {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
  }

  .style-badge-mini {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
  }

  .mobile-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.2rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-action-btn {
    padding: 0.6rem 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .mobile-action-btn.btn-delete {
    background: rgba(255, 0, 85, 0.15);
    color: #ff6699;
    border: 1px solid rgba(255, 0, 85, 0.4);
  }

  .mobile-action-btn.btn-delete:hover {
    background: rgba(255, 0, 85, 0.3);
  }
}

/* ==========================================================================
   TAB: CARGA DIRECTA DE PÓSTERS / EXTERNO (CELULAR & GOOGLE FLOW)
   ========================================================================== */
.direct-upload-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .direct-upload-grid {
    grid-template-columns: 1fr;
  }
}

.upload-dropzone {
  border: 2px dashed rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.03);
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dropzone-overlay-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 25;
  display: block;
  font-size: 0;
}

.upload-dropzone:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.dropzone-icon {
  font-size: 2.6rem;
  color: var(--neon-cyan);
  margin-bottom: 0.8rem;
}

.dropzone-text strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.dropzone-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.dropzone-preview img {
  max-height: 160px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.dropzone-change-badge {
  font-size: 0.75rem;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.direct-options-box {
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-container input {
  accent-color: var(--neon-cyan);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.direct-canvas-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.8rem;
  background: rgba(10, 13, 20, 0.85);
  border-radius: var(--radius-md);
  min-height: 340px;
  position: relative;
}

.direct-mockup-frame {
  border: 8px solid #1a2030;
  border-radius: 10px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 242, 254, 0.1);
  overflow: hidden;
  position: relative;
  background: #090b10;
}

.direct-poster-wrapper {
  position: relative;
  width: 240px;
  height: 320px; /* 3:4 ratio for 30x40 cm */
  transition: all var(--transition-smooth);
}

.direct-poster-wrapper.size-20x30 {
  width: 213px;
  height: 320px; /* 2:3 ratio for 20x30 cm */
}

.direct-poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  letter-spacing: 2px;
  pointer-events: none;
  white-space: nowrap;
}

.poster-specs-bar {
  display: flex;
  justify-content: space-around;
  padding: 0.85rem;
  background: rgba(14, 18, 26, 0.9);
  border-radius: var(--radius-sm);
  margin-top: 1.2rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ==========================================================================
   MULTI-PROMPT SELECTION GRID (NUEVO PEDIDO)
   ========================================================================== */
.prompts-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.4rem;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.prompt-chip-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.prompt-chip-card:hover {
  background: rgba(25, 32, 48, 0.95);
  border-color: rgba(0, 242, 254, 0.3);
}

.prompt-chip-card.selected {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.prompt-chip-card input[type="checkbox"] {
  accent-color: var(--neon-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.prompt-chip-thumb {
  width: 34px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-chip-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prompt-chip-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-chip-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL DE COLLAGES COMPARATIVOS & APROBACIÓN DE FOTO FINAL
   ========================================================================== */
.modal-card.modal-lg {
  max-width: 1050px;
}

.collage-workspace-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .collage-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.collage-controls-box {
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.collage-items-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.6rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.4rem;
  background: rgba(10, 13, 20, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.collage-item-choice {
  position: relative;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: all var(--transition-fast);
}

.collage-item-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-item-choice.selected {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.collage-choice-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--neon-cyan);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
}

.collage-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.collage-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.collage-winner-box {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin-top: 0.5rem;
}

.collage-winner-box h4 {
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   PROPOSALS WORKSPACE & DIRECT COLLAGE STUDIO
   ========================================================================== */
.direct-mode-switcher {
  display: inline-flex;
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
  gap: 0.35rem;
}

.mode-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.mode-tab-btn:hover {
  color: #fff;
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.25));
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.direct-workspace-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1080px) {
  .direct-workspace-layout {
    grid-template-columns: 1fr;
  }
}

.proposals-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.proposals-preview-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 90px;
}

@media (max-width: 1080px) {
  .proposals-preview-column {
    position: static;
  }
}

.multi-dropzone {
  border-color: rgba(255, 0, 127, 0.4);
  background: rgba(255, 0, 127, 0.03);
}

.multi-dropzone:hover {
  border-color: var(--neon-magenta);
  background: rgba(255, 0, 127, 0.08);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.2);
}

.multi-dropzone .dropzone-icon {
  color: var(--neon-magenta);
}

.proposals-quick-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.proposals-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.proposal-item-card {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: all var(--transition-fast);
}

.proposal-item-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.proposal-item-card.opt-0 { border-top: 3px solid #00f0ff; }
.proposal-item-card.opt-1 { border-top: 3px solid #ff007f; }
.proposal-item-card.opt-2 { border-top: 3px solid #ffb703; }
.proposal-item-card.opt-3 { border-top: 3px solid #10b981; }

.proposal-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opt-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.opt-pill.opt-0 { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.4); }
.opt-pill.opt-1 { background: rgba(255, 0, 127, 0.15); color: #ff007f; border: 1px solid rgba(255, 0, 127, 0.4); }
.opt-pill.opt-2 { background: rgba(255, 183, 3, 0.15); color: #ffb703; border: 1px solid rgba(255, 183, 3, 0.4); }
.opt-pill.opt-3 { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }

.proposal-thumb-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #090b10;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proposal-thumb-frame.ratio-2x3 {
  aspect-ratio: 2 / 3;
}

.proposal-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
}

.proposal-thumb-frame.mode-contain img {
  object-fit: contain;
}

.proposal-wm-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 0.95rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  white-space: nowrap;
}

.proposal-meta-title {
  font-size: 0.76rem;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proposal-card-bottom-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.proposal-card-bottom-actions button {
  flex: 1;
  font-size: 0.72rem;
  padding: 0.35rem 0.5rem;
}

.collage-stage-card {
  background: rgba(10, 13, 20, 0.92);
}

.collage-canvas-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #06080d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 480px;
}

.direct-collage-canvas {
  max-width: 100%;
  max-height: 580px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.proposals-export-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.export-secondary-row {
  display: flex;
  gap: 0.65rem;
}

.flex-1 {
  flex: 1;
}

.winner-approval-card {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 240, 255, 0.06));
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.winner-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.winner-icon {
  font-size: 1.8rem;
  color: #00ff88;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.winner-header h4 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.winner-header p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.winner-controls-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.winner-select-wrap {
  flex: 2;
  min-width: 180px;
}

.winner-select-wrap label,
.winner-copies-wrap label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.winner-copies-wrap {
  flex: 1;
  min-width: 80px;
}

/* DELICADO TAGS & EPSON PLOTTER NETWORK CONTROLS */
.placed-delicado-tag {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1.5px dashed #dc2626 !important;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.15) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.placed-delicado-tag .delicado-mirror-inner,
.placed-delicado-tag .delicado-normal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #ef4444;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  padding: 0.4rem;
}

.delicado-normal-inner .delicado-badge-icon,
.delicado-mirror-inner .delicado-badge-icon {
  font-size: 1.1rem;
}

.delicado-normal-inner .delicado-badge-text,
.delicado-mirror-inner .delicado-badge-text {
  font-size: 0.85rem;
  font-weight: 900;
  color: #dc2626;
  text-shadow: 0 0 4px rgba(220, 38, 38, 0.4);
}

.delicado-normal-inner .delicado-badge-sub,
.delicado-mirror-inner .delicado-badge-sub {
  font-size: 0.55rem;
  color: #f87171;
  letter-spacing: 1px;
}

.placed-delicado-tag-lbl {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-delicado {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
}

.single-poster-alert {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.single-poster-alert i {
  font-size: 1.3rem;
  color: #00f0ff;
  flex-shrink: 0;
}

.export-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-epson-print {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.35) !important;
  font-weight: 700;
}

.btn-epson-print:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(2, 132, 199, 0.6) !important;
}

.printer-net-info {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.printer-badge {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: rgba(14, 20, 32, 0.85);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.printer-badge strong {
  color: #fff;
}

/* ==========================================================================
   GOOGLE DRIVE CLOUD INTEGRATION & PRINT-READY EXPORT (30.1x40.1 & 20.1x30.1)
   ========================================================================== */
.gdrive-creds-box {
  background: rgba(14, 20, 32, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.8rem;
}

.gdrive-creds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.gdrive-creds-header label {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.badge-status-neutral {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-status-success {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.badge-status-danger {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 0, 85, 0.15);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 85, 0.4);
}

.gdrive-email-alert {
  display: flex;
  gap: 0.8rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.gdrive-email-copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0;
}

.gdrive-email-copy-row code {
  background: rgba(0, 0, 0, 0.5);
  color: var(--neon-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  flex: 1;
}

.hint-permisos {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Modal Print Ready */
.modal-md {
  max-width: 780px !important;
  width: 95%;
}

.print-ready-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .print-ready-layout {
    grid-template-columns: 1fr;
  }
}

.print-ready-preview-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.print-ready-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #080c14;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-ready-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.print-ready-img.mirrored {
  transform: scaleX(-1);
}

.print-ready-strip-overlay {
  display: none !important;
}

.print-ready-strip-overlay .strip-left-info {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--neon-cyan, #00f0ff);
  font-size: 0.70rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.print-ready-strip-overlay .strip-badge-oid {
  color: #ffd700;
  font-weight: 800;
  background: rgba(255, 215, 0, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.print-ready-strip-overlay .strip-right-cut {
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.print-ready-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.print-ready-specs-info {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.print-ready-specs-info span:first-child {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.print-ready-specs-info span:last-child {
  font-size: 0.72rem;
  color: var(--neon-green);
  font-family: var(--font-mono);
}

.print-ready-options-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-summary-pill {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.84rem;
  color: #e2e8f0;
}

.print-format-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.format-option-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(18, 24, 38, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.format-option-card:hover {
  background: rgba(18, 24, 38, 0.9);
  border-color: rgba(0, 240, 255, 0.4);
}

.format-option-card.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.format-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.format-card-header strong {
  font-size: 0.92rem;
  color: #fff;
}

.format-card-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.25;
}

.drive-target-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(14, 20, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
}

.print-ready-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.drive-success-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  animation: fadeIn 0.3s ease;
}

/* Selected Proposal Card Highlight */
.proposal-item-card.is-selected {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.12) !important;
  transform: translateY(-2px);
}

.proposal-item-card.is-selected .opt-pill {
  background: var(--neon-cyan) !important;
  color: #060910 !important;
  font-weight: 800 !important;
}

/* Print Ready Option Switcher */
.print-ready-option-group {
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
}

.print-ready-option-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

/* Drive Notice Alert */
.drive-notice-alert {
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #ffde8a;
  line-height: 1.35;
}

.drive-notice-alert i {
  font-size: 1.1rem;
  color: #ffb800;
  flex-shrink: 0;
  margin-top: 2px;
}

.drive-notice-alert strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.drive-notice-alert p {
  margin: 0;
  color: #ffde8a;
}

/* Error Box in Preview Wrapper */
.print-ready-error-box {
  position: absolute;
  inset: 15px;
  background: rgba(10, 14, 24, 0.94);
  border: 1px dashed var(--neon-magenta);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
  color: #ff88bb;
  font-size: 0.8rem;
  z-index: 5;
}

.print-ready-error-box i {
  font-size: 1.8rem;
  color: var(--neon-magenta);
}

.print-ready-loader {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 24, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--neon-cyan);
  font-size: 0.85rem;
  z-index: 6;
}

/* ==========================================================================
   SELECTOR TÁCTIL DE TAMAÑO FÍSICO (30.1x40.1 cm & 20.1x30.1 cm)
   ========================================================================== */
.physical-size-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.35rem;
  margin-bottom: 0.4rem;
}

.size-choice-btn {
  background: rgba(13, 18, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  outline: none;
}

.size-choice-btn:hover {
  background: rgba(18, 25, 40, 0.95);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.size-choice-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

.size-choice-btn.active::after {
  content: '✓ ACTIVO';
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--neon-cyan);
  color: #050811;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.size-choice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.size-number {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: -0.2px;
}

.size-choice-btn.active .size-number {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.size-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.size-tag.highlight {
  background: rgba(255, 0, 127, 0.15);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 0, 127, 0.3);
}

.size-choice-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.size-choice-btn.active .size-choice-desc {
  color: var(--text-secondary);
}

@media (max-width: 540px) {
  .physical-size-selector {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Col-4 Responsive Grid */
.col-4 {
  flex: 1;
  min-width: 140px;
}

@media (max-width: 768px) {
  .form-row .col-4 {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Modal Proposal Tabs & Resolution Badges */
.sample-proposal-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: thin;
}

.sample-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.sample-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.sample-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.res-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
}

.res-badge-1k {
  background: rgba(255, 255, 255, 0.12);
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.res-badge-2k {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 136, 255, 0.25));
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* WhatsApp Share Card in Preview Modal */
.wa-share-card {
  background: rgba(37, 211, 102, 0.07);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-top: 1rem;
  text-align: left;
}

.wa-share-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #25d366;
}


/* ========================================================================== */
/* PLANTILLA PHOTOSHOP (61.0 x 81.5 cm) - TAB 3 STYLES */
/* ========================================================================== */
.ps-sheet-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .ps-sheet-layout {
    grid-template-columns: 1fr;
  }
}

.ps-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .ps-slots-grid {
    grid-template-columns: 1fr;
  }
}

.ps-slot-card {
  background: rgba(13, 20, 38, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: all 0.25s ease;
}

.ps-slot-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.08);
}

.ps-slot-card.is-filled {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(10, 18, 34, 0.85);
}

.ps-slot-card.is-empty {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(13, 20, 38, 0.35);
}

.ps-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ps-slot-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.ps-slot-dim {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.ps-slot-select {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: #090e1a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ps-slot-select:focus {
  border-color: var(--neon-cyan);
  outline: none;
}

.ps-slot-preview-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #050811;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-slot-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ps-slot-preview-box:hover img {
  transform: scale(1.03);
}

.ps-slot-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ps-slot-empty-placeholder i {
  font-size: 1.8rem;
  opacity: 0.4;
}

.ps-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
}

.ps-slot-client {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-slot-moto {
  color: var(--neon-cyan);
  font-size: 0.72rem;
}

.ps-slot-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
}

.ps-slot-actions .btn {
  flex: 1;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
}

.ps-sheet-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #050811;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  min-height: 480px;
}

.ps-sheet-canvas-container canvas {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #ffffff;
}

.ps-sheet-specs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  background: rgba(10, 15, 29, 0.8);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}


/* ==========================================================================
   MODULO 99 ENVIOS & CALCULADORA LOGISTICA HSR ART
   ========================================================================== */
.shipping-subnav-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.shipping-subnav-btn {
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
}

.shipping-subnav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.shipping-subnav-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.cotizador-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .cotizador-grid-layout {
    grid-template-columns: 1fr;
  }
}

.pkg-size-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

@media (max-width: 900px) {
  .pkg-size-selector-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .pkg-size-selector-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pkg-size-selector-grid {
    grid-template-columns: 1fr;
  }
}

.pkg-choice-card {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 20, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  position: relative;
}

.pkg-choice-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(20, 28, 44, 0.7);
}

.pkg-choice-card.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.pkg-choice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.pkg-choice-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
}

.pkg-choice-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
}

.pkg-choice-dims {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a0aec0;
  margin-bottom: 0.2rem;
}

.pkg-choice-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.zone-chips-container {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.zone-chip-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.zone-chip-btn:hover {
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.zone-chip-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Tarjetas de Cotización Anticipada vs Contraentrega */
.quote-options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-deal-card {
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.quote-deal-card.anticipado {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(10, 22, 18, 0.90) 100%);
  border-color: rgba(0, 255, 136, 0.35);
}

.quote-deal-card.contraentrega {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.09) 0%, rgba(22, 18, 10, 0.90) 100%);
  border-color: rgba(255, 183, 3, 0.35);
}

.quote-deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.quote-deal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.quote-deal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.quote-deal-badge.green {
  background: rgba(0, 255, 136, 0.18);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.quote-deal-badge.amber {
  background: rgba(255, 183, 3, 0.18);
  color: #ffb703;
  border: 1px solid rgba(255, 183, 3, 0.4);
}

.quote-price-big {
  font-size: 1.85rem;
  font-weight: 900;
  font-family: var(--font-main);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.quote-deal-card.anticipado .quote-price-big { color: #00ff88; }
.quote-deal-card.contraentrega .quote-price-big { color: #ffb703; }

.quote-price-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quote-breakdown-box {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.breakdown-line {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
}

.breakdown-line strong {
  color: #ffffff;
}

.breakdown-line.net-profit {
  margin-top: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
  font-weight: 700;
}

.whatsapp-preview-card {
  background: rgba(10, 22, 16, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}

.whatsapp-bubble-text {
  background: rgba(5, 30, 20, 0.8);
  border-left: 3px solid #00ff88;
  padding: 0.85rem;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
  white-space: pre-wrap;
  user-select: all;
}
