/* ==========================================================================
   EL FOTÓGRAFO PRO — SISTEMA DE DISEÑO CINEMATOGRÁFICO & EDITORIAL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta cromática */
  --bg-core: #090b0e;
  --bg-surface: #12161c;
  --bg-elevated: #1a2029;
  --bg-card: rgba(26, 32, 41, 0.75);
  --bg-card-hover: rgba(33, 41, 53, 0.9);
  
  --border-subtle: rgba(197, 160, 89, 0.15);
  --border-medium: rgba(197, 160, 89, 0.3);
  --border-strong: #c5a059;

  --gold-primary: #c5a059;
  --gold-light: #dfb76c;
  --gold-dim: #8c713a;
  --gold-glow: rgba(197, 160, 89, 0.2);

  --text-main: #f4efe6;
  --text-muted: #9ba6b2;
  --text-dim: #85909e; /* contraste AA sobre fondos oscuros (antes #647080) */
  --text-inverse: #090b0e;

  /* Estados semánticos */
  --status-available: #46a36f;
  --status-busy: #d9822b;
  --status-alert: #d9534f;
  --status-alert-texto: #ff8a84; /* texto de alerta legible (AA) sobre fondos oscuros */
  --status-info: #4a90e2;
  --status-neutral: #718096;

  /* Tipografías */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevaciones & Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 24px var(--gold-glow);

  /* Transiciones */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-core);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

/* ==========================================================================
   LAYOUT PRINCIPAL (PC, TABLET, MOVIL)
   ========================================================================== */

#app-container {
  display: flex;
  min-height: 100vh;
}

/* Barra lateral de escritorio */
.sidebar {
  width: 250px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  padding: 24px 16px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-badge {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-pro-tag {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dim));
  color: var(--text-inverse);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Menú de navegación */
.nav-menu {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.nav-item button:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.nav-item.active button {
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-light);
  border-color: var(--border-medium);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.08);
}

.nav-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

/* Footer del Sidebar */
.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted); /* contraste AA (antes --text-dim) */
  padding: 6px 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-available);
  box-shadow: 0 0 8px var(--status-available);
}

.status-dot.offline {
  background: var(--status-alert);
  box-shadow: 0 0 8px var(--status-alert);
}

/* Área de contenido central */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: radial-gradient(circle at 80% -20%, rgba(197, 160, 89, 0.06) 0%, transparent 60%);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 22, 28, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.page-title-group h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.page-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Contenido scrolleable de sección */
.content-body {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   COMPONENTES UI: BOTONES, ENTRADAS, TARJETAS
   ========================================================================== */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: var(--text-inverse);
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ebd193, var(--gold-light));
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--border-medium);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.76rem;
}

/* Entradas y controles de formulario */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 85px;
}

/* Tarjetas */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   SECCIÓN 1: INICIO ("¿QUÉ VAMOS A PRODUCIR?")
   ========================================================================== */

.hero-produce {
  background: linear-gradient(135deg, rgba(26, 32, 41, 0.85), rgba(18, 22, 28, 0.95));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.hero-produce::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 600px;
}

.prompt-bar-wrap {
  display: flex;
  gap: 12px;
  background: var(--bg-core);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.98rem;
  padding: 10px 16px;
}

.prompt-input:focus {
  outline: none;
}

.prompt-input::placeholder {
  color: var(--text-dim);
}

.templates-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.template-pill {
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.template-pill:hover {
  background: var(--gold-primary);
  color: var(--text-inverse);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

/* Rejilla de Métricas / Alertas de Producción */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.alert-panel {
  border-left: 4px solid var(--gold-primary);
}

.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-item:last-child {
  border-bottom: none;
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-available { background: rgba(70, 163, 111, 0.15); color: #5bc98b; border: 1px solid rgba(70, 163, 111, 0.3); }
.badge-busy { background: rgba(217, 130, 43, 0.15); color: #f0a256; border: 1px solid rgba(217, 130, 43, 0.3); }
.badge-alert { background: rgba(217, 83, 79, 0.15); color: #f27370; border: 1px solid rgba(217, 83, 79, 0.3); }

/* ==========================================================================
   SECCIÓN 2: BIBLIOTECA DE RECURSOS (LA MEMORIA)
   ========================================================================== */

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--bg-elevated);
  color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.resource-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  position: relative;
}

.resource-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resource-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.resource-type-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(197, 160, 89, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.resource-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.resource-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.resource-card-notes {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  margin-top: 10px;
}

.resource-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 14px;
}

/* ==========================================================================
   SECCIÓN 3: PROYECTOS & PRODUCCIONES
   ========================================================================== */

.projects-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.pro-table th {
  background: var(--bg-elevated);
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border-medium);
}

.pro-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.pro-table tr:hover td {
  background: rgba(197, 160, 89, 0.04);
  color: var(--text-main);
}

/* ==========================================================================
   MODALES Y VENTANAS EMERGENTES
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 14, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: scale(0.96);
  transition: transform var(--transition-fast);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 12, 16, 0.4);
}

/* Barra de navegación inferior móvil */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(18, 22, 28, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  z-index: 50;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.mobile-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-btn.active {
  color: var(--gold-light);
}

.mobile-nav-btn svg, .mobile-nav-btn span.icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   ESTILOS DE EXPEDIENTE CENTRAL DE PRODUCCIÓN (ETAPA 2)
   ========================================================================== */

.modal-box.modal-xl {
  max-width: 960px;
}

.expediente-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* FOTO-057: en celular pasan a 2 columnas, sin cortarse */
  gap: 16px;
  padding: 16px 24px;
  background: rgba(14, 17, 22, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.kpi-item {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.kpi-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.kpi-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.expediente-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.exp-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.exp-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
}

.exp-tab-btn.active {
  background: rgba(197, 160, 89, 0.14);
  color: var(--gold-light);
  border-color: var(--border-medium);
}

/* Grilla de Looks */
.looks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.look-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast);
}

.look-card:hover {
  border-color: var(--border-medium);
}

.look-card.realizado {
  border-left: 3px solid var(--status-available);
  opacity: 0.88;
}

.look-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.look-orden-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(197, 160, 89, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.look-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.look-specs {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.look-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 12px;
}

/* Checklist dinámico */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.checklist-item.critica {
  border-left: 3px solid var(--status-alert);
}

.checklist-item.completada {
  /* Hecha: tachada y con texto secundario, sin opacidad para conservar el contraste AA */
  text-decoration: line-through;
  background: rgba(26, 32, 41, 0.4);
}
.checklist-item.completada .checklist-text { color: var(--text-muted); }

.checklist-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.checklist-body {
  flex: 1;
}

.checklist-text {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

.checklist-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */

@media (max-width: 860px) {
  .sidebar {
    display: none;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .main-viewport {
    padding-bottom: 80px; /* Evita que la barra móvil tape contenido */
  }

  .top-bar {
    padding: 14px 20px;
  }

  .content-body {
    padding: 20px 16px;
  }

  .hero-produce {
    padding: 24px 18px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .prompt-bar-wrap {
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* FOTO-058: pantalla de acceso */
.acceso { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg-main, #090b0e); }
.acceso[hidden] { display: none; }
.acceso-caja { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border: 1px solid var(--border-subtle, #2a2f37); border-radius: 14px; background: rgba(20, 24, 31, 0.9); }
.acceso-marca { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.acceso-caja h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--text-main); }
.acceso-ayuda { margin: 0 0 6px; font-size: .85rem; color: var(--text-muted); }
.acceso-error { margin: 0; font-size: .85rem; color: var(--status-alert-texto); }
