/* ==========================================================================
   Fijate Tools - Envío Directo de Archivos P2P (css/style.css)
   Estándar canónico Midnight Slate, soporte multi-archivo y modo claro/oscuro
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Tema Oscuro Canónico (Midnight Slate) */
  --bg-app: #0b0f17;
  --bg-card: #131b26;
  --bg-card-subtle: #192433;
  --bg-input: #1a2332;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #06b6d4;
  --text-main: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.25);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #0891b2;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #475569;
  --primary: #0891b2;
  --primary-hover: #0e7490;
  --primary-glow: rgba(8, 145, 178, 0.15);
  --success: #059669;
  --success-glow: rgba(5, 150, 105, 0.15);
  --danger: #dc2626;
  --warning: #d97706;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.dropzone-title,
.guide-title,
.faq-title {
  font-family: var(--font-heading);
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Contenedor principal y pestañas
   ========================================================================== */

.p2p-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.p2p-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.p2p-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.p2p-tab-btn:hover {
  color: var(--text-main);
}

.p2p-tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.p2p-badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.p2p-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.pill-dot.green { background: var(--success); }
.pill-dot.blue { background: #3b82f6; }

/* ==========================================================================
   Zona Drag & Drop
   ========================================================================== */

.p2p-dropzone {
  border: 2px dashed var(--border-color);
  background: var(--bg-card-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p2p-dropzone:hover,
.p2p-dropzone.dragover,
.selected-files-panel.dragover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 25px var(--primary-glow);
}

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

.dropzone-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem;
}

.dropzone-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* ==========================================================================
   Botones canónicos y controles táctiles
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.btn-danger,
.btn-ghost-danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover,
.btn-ghost-danger:hover {
  background: var(--danger);
  color: #ffffff;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

.btn-full-touch {
  width: 100%;
}

/* ==========================================================================
   Cola de archivos seleccionados y listas de lote
   ========================================================================== */

.selected-files-panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.selected-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.selected-queue-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.queue-count-badge {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.queue-total-size {
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 600;
}

.selected-queue-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.files-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.queue-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.queue-file-item.is-active {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.06);
}

.queue-file-item.is-done {
  border-color: rgba(16, 185, 129, 0.35);
}

.queue-file-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 0%;
}

.queue-file-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.file-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.file-name {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
}

.file-size {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.btn-remove-single {
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-remove-single:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

.queue-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.queue-status-pill.pending {
  background: var(--bg-card-subtle);
  color: var(--text-dim);
  border: 1px solid var(--border-color);
}

.queue-status-pill.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
}

.queue-status-pill.done {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.p2p-action-row {
  margin-top: 1.25rem;
}

/* ==========================================================================
   Caja de compartir sala (Emisor)
   ========================================================================== */

.room-share-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.25rem;
  text-align: center;
}

.room-share-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pulsing-radar-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 var(--primary-glow);
  animation: radar-pulse 1.8s infinite;
  margin-bottom: 0.75rem;
}

@keyframes radar-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.room-share-header h4 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--text-main);
}

.room-share-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.room-code-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.room-code-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.room-code-value {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.room-link-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.room-link-input {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.room-link-input:focus {
  border-color: var(--border-focus);
}

.room-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.qr-canvas-box {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: inline-flex;
}

.qr-canvas-box canvas,
.qr-canvas-box img {
  display: block;
  max-width: 160px;
  height: auto;
}

.qr-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.room-cancel-row {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Modo Receptor
   ========================================================================== */

.join-room-box {
  text-align: center;
  padding: 2rem 1rem;
}

.join-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.join-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
}

.join-input-group {
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-room-code {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--bg-card-subtle);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-room-code:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px var(--primary-glow);
}

.incoming-file-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.incoming-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.incoming-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.incoming-title {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--text-main);
  word-break: break-word;
}

.incoming-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.incoming-files-list {
  margin-bottom: 1.25rem;
}

.incoming-storage-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.incoming-storage-notice svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.incoming-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* ==========================================================================
   Panel de Transferencia Activa
   ========================================================================== */

.p2p-transfer-panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.transfer-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.transfer-status-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.transfer-file-title {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  word-break: break-all;
}

.transfer-batch-subtitle {
  display: block;
  font-size: 0.84rem;
  color: var(--text-dim);
  font-weight: 600;
}

.transfer-progress-wrapper {
  margin-bottom: 1.5rem;
}

.progress-bar-track {
  width: 100%;
  height: 14px;
  background: var(--bg-card);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #06b6d4, #10b981);
  border-radius: 9999px;
  transition: width 0.2s ease;
  box-shadow: 0 0 12px var(--primary-glow);
}

.progress-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.progress-percent {
  color: var(--primary);
  font-size: 1.15rem;
}

.progress-bytes {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cuadrícula de telemetría */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .telemetry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telemetry-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.telemetry-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-success {
  color: var(--success);
}

.transfer-files-queue-wrapper {
  margin-bottom: 1.5rem;
}

.transfer-queue-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.transfer-controls-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.transfer-completed-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.completed-icon-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.transfer-completed-box h4 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--success);
}

.transfer-completed-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

/* ==========================================================================
   Guía técnica y FAQs SEO
   ========================================================================== */

.p2p-guide-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.guide-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.75rem;
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.guide-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.guide-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.guide-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.guide-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.faq-accordion-box {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.faq-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text-main);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.faq-question {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Modales accesibles (Cero window.alert)
   ========================================================================== */

.p2p-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.p2p-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.15rem;
  margin: 0;
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   Responsividad móvil
   ========================================================================== */

@media (max-width: 640px) {
  .p2p-main-card {
    padding: 1.25rem;
  }

  .selected-queue-header {
    flex-direction: column;
    align-items: stretch;
  }

  .selected-queue-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-link-row {
    flex-direction: column;
  }

  .room-link-input {
    width: 100%;
    flex: none;
  }

  .room-code-value {
    font-size: 1.85rem;
  }

  .dropzone-title {
    font-size: 1.1rem;
  }

  .transfer-controls-row {
    flex-direction: column;
  }

  .transfer-controls-row button {
    width: 100%;
  }
}
