    :root {
      --azul: #005B9A;
      --azul-oscuro: #004070;
      --verde: #3BB54A;
      --verde-oscuro: #2a8e38;
      --fondo: #F0F4F8;
      --blanco: #ffffff;
      --gris-texto: #475569;
      --borde: #e2e8f0;
      --sombra: 0 4px 24px rgba(0,0,0,0.07);
      --sombra-hover: 0 12px 40px rgba(0,0,0,0.12);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: var(--fondo);
      color: #1e293b;
      min-height: 100vh;
    }

    /* ─── NAVBAR ─── */
    .top-nav {
      background: var(--blanco);
      border-bottom: 1px solid var(--borde);
      padding: 0 40px;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 16px rgba(0,91,154,0.06);
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .nav-brand-icon {
      width: 38px;
      height: 38px;
      background: linear-gradient(135deg, var(--azul), var(--verde));
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 17px;
      box-shadow: 0 4px 12px rgba(0,91,154,0.25);
    }

    .nav-brand-text {
      font-family: 'Sora', sans-serif;
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--azul);
      letter-spacing: -0.3px;
    }

    .nav-brand-text span {
      color: var(--verde);
    }

    .btn-back {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--gris-texto);
      font-size: 0.875rem;
      font-weight: 600;
      text-decoration: none;
      padding: 8px 18px;
      border-radius: 8px;
      border: 1px solid var(--borde);
      background: white;
      transition: all 0.2s ease;
    }

    .btn-back:hover {
      background: var(--fondo);
      color: var(--azul);
      border-color: var(--azul);
    }

    /* ─── LAYOUT ─── */
    .page-wrapper {
      max-width: 900px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }

    /* ─── PAGE HEADER ─── */
    .page-header {
      text-align: center;
      margin-bottom: 48px;
    }

    .page-header-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(0,91,154,0.08);
      color: var(--azul);
      font-size: 0.8rem;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 100px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    .page-header h1 {
      font-family: 'Sora', sans-serif;
      font-size: 2.4rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.2;
      margin-bottom: 14px;
      letter-spacing: -0.5px;
    }

    .page-header p {
      font-size: 1rem;
      color: var(--gris-texto);
      max-width: 580px;
      margin: 0 auto;
      line-height: 1.75;
    }

    /* ─── FEATURES STRIP ─── */
    .features-strip {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }

    .feature-pill {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #334155;
      background: white;
      padding: 7px 14px;
      border-radius: 100px;
      border: 1px solid var(--borde);
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

    .feature-pill i {
      color: var(--verde);
      font-size: 0.85rem;
    }

    /* ─── DROP ZONE ─── */
    /* ─── DROP ZONE ─── */
    .drop-card {
      background: white;
      border-radius: 20px;
      border: 2px dashed #c8d9ea;
      padding: 56px 32px;
      text-align: center;
      cursor: pointer;
      position: relative;
      box-shadow: var(--sombra);
      overflow: hidden;
      max-height: 500px;
      opacity: 1;
      transform-origin: top center;
      transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1),
                  opacity 0.35s ease,
                  margin-bottom 0.45s ease,
                  padding 0.45s ease,
                  border-color 0.2s ease,
                  background 0.2s ease,
                  box-shadow 0.2s ease,
                  transform 0.2s ease;
    }

    .drop-card:hover, .drop-card.dragover {
      border-color: var(--verde);
      background: linear-gradient(135deg, rgba(0,91,154,0.02), rgba(59,181,74,0.03));
      box-shadow: var(--sombra-hover);
      transform: translateY(-2px);
    }

    .drop-card.collapsed {
      max-height: 0;
      opacity: 0;
      margin-bottom: 0;
      padding-top: 0;
      padding-bottom: 0;
      border-width: 0;
      pointer-events: none;
    }

    .drop-card input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      width: 100%;
      height: 100%;
    }

    .drop-icon-ring {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(0,91,154,0.07), rgba(59,181,74,0.07));
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 24px;
      position: relative;
      transition: all 0.3s ease;
    }

    .drop-card:hover .drop-icon-ring {
      background: linear-gradient(135deg, rgba(0,91,154,0.12), rgba(59,181,74,0.12));
      transform: scale(1.05);
    }

    .drop-icon-ring i {
      font-size: 2.2rem;
      background: linear-gradient(135deg, var(--azul), var(--verde));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .drop-card h3 {
      font-family: 'Sora', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 8px;
    }

    .drop-card p {
      color: var(--gris-texto);
      font-size: 0.9rem;
    }

    .drop-card .badge-format {
      display: inline-block;
      background: rgba(0,91,154,0.08);
      color: var(--azul);
      font-size: 0.75rem;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 6px;
      margin-top: 14px;
      letter-spacing: 0.5px;
    }

    /* ─── MINI DROP ─── */
    .drop-mini {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: white;
      border-radius: 14px;
      border: 1px solid var(--borde);
      padding: 14px 20px;
      margin-bottom: 20px;
      box-shadow: var(--sombra);
      animation: slideIn 0.4s cubic-bezier(0.4,0,0.2,1);
      position: relative;
    }

    .drop-mini.show { display: flex; }

    .drop-mini-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .drop-mini-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(0,91,154,0.1), rgba(59,181,74,0.1));
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .drop-mini-icon i {
      font-size: 1.1rem;
      background: linear-gradient(135deg, var(--azul), var(--verde));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .drop-mini-filename {
      font-family: 'Sora', sans-serif;
      font-size: 0.88rem;
      font-weight: 700;
      color: #1e293b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 260px;
    }

    .drop-mini-sub {
      font-size: 0.75rem;
      color: var(--gris-texto);
      margin-top: 2px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .drop-mini-sub::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--verde);
      display: inline-block;
    }

    .btn-upload-other {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--azul);
      background: rgba(0,91,154,0.07);
      border: 1.5px solid rgba(0,91,154,0.18);
      border-radius: 8px;
      padding: 8px 16px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .btn-upload-other:hover {
      background: rgba(0,91,154,0.13);
      border-color: var(--azul);
      color: var(--azul-oscuro);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,91,154,0.15);
    }

    .drop-mini input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      width: 0;
      height: 0;
    }

    /* ─── ALERT ─── */
    .alert-custom {
      display: none;
      align-items: center;
      gap: 14px;
      padding: 16px 20px;
      border-radius: 14px;
      font-size: 0.9rem;
      font-weight: 500;
      margin-bottom: 24px;
      border: 1px solid transparent;
      animation: slideIn 0.3s ease;
    }

    .alert-custom.show { display: flex; }

    .alert-custom.success {
      background: #f0fdf4;
      border-color: #bbf7d0;
      color: #15803d;
    }

    .alert-custom.danger {
      background: #fef2f2;
      border-color: #fecaca;
      color: #dc2626;
    }

    .alert-custom i { font-size: 1.1rem; flex-shrink: 0; }

    @keyframes slideIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ─── PREVIEW CARD ─── */
    .preview-card {
      background: white;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--sombra);
      display: none;
      animation: slideIn 0.4s ease;
    }

    .preview-card.show { display: block; }

    .preview-header {
      background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 60%, #0078c8 100%);
      padding: 28px 32px;
      color: white;
      position: relative;
      overflow: hidden;
    }

    .preview-header::after {
      content: '';
      position: absolute;
      top: -40px;
      right: -40px;
      width: 160px;
      height: 160px;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
    }

    .preview-header::before {
      content: '';
      position: absolute;
      bottom: -30px;
      right: 80px;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: rgba(59,181,74,0.15);
    }

    .preview-header-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
    }

    .preview-title {
      font-family: 'Sora', sans-serif;
      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .preview-subtitle {
      font-size: 0.85rem;
      opacity: 0.8;
    }

    .preview-badge {
      background: rgba(59,181,74,0.25);
      border: 1px solid rgba(59,181,74,0.4);
      color: #86efac;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: 100px;
      white-space: nowrap;
      letter-spacing: 0.3px;
    }

    /* ─── METADATA ROW ─── */
    .meta-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      border-bottom: 1px solid var(--borde);
    }

    .meta-item {
      padding: 20px 28px;
      border-right: 1px solid var(--borde);
    }

    .meta-item:last-child { border-right: none; }

    .meta-label {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: #94a3b8;
      margin-bottom: 5px;
    }

    .meta-value {
      font-size: 0.9rem;
      font-weight: 600;
      color: #1e293b;
    }

    /* ─── STATS BAR ─── */
    .stats-bar {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--borde);
      border-bottom: 1px solid var(--borde);
    }

    .stat-box {
      background: white;
      padding: 18px 24px;
      text-align: center;
    }

    .stat-number {
      font-family: 'Sora', sans-serif;
      font-size: 1.8rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--azul), var(--verde));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1;
      margin-bottom: 4px;
    }

    .stat-label {
      font-size: 0.75rem;
      color: var(--gris-texto);
      font-weight: 600;
    }

    /* ─── COLLECTIONS TABLE ─── */
    .collections-section {
      padding: 0 0 0 0;
    }

    .collections-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 28px 14px;
    }

    .collections-header h5 {
      font-family: 'Sora', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      color: #1e293b;
    }

    .collections-header span {
      font-size: 0.78rem;
      color: var(--gris-texto);
    }

    .table-wrap {
      overflow-x: auto;
    }

    table.data-table {
      width: 100%;
      border-collapse: collapse;
    }

    table.data-table thead th {
      background: #f8fafc;
      padding: 10px 28px;
      text-align: left;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: #94a3b8;
      border-bottom: 1px solid var(--borde);
    }

    table.data-table thead th:last-child { text-align: right; }

    table.data-table tbody tr {
      border-bottom: 1px solid #f1f5f9;
      transition: background 0.15s;
    }

    table.data-table tbody tr:last-child { border-bottom: none; }

    table.data-table tbody tr:hover { background: #fafbff; }

    table.data-table td {
      padding: 13px 28px;
      font-size: 0.87rem;
    }

    .col-icon {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      margin-right: 10px;
      flex-shrink: 0;
    }

    .col-name-cell {
      display: flex;
      align-items: center;
    }

    .col-name-primary {
      font-weight: 700;
      color: #1e293b;
      font-size: 0.87rem;
    }

    .col-name-secondary {
      font-size: 0.75rem;
      color: #94a3b8;
      margin-top: 1px;
    }

    .col-count {
      text-align: right;
      font-weight: 700;
      font-size: 0.9rem;
      color: var(--azul);
    }

    .mini-bar-wrap {
      width: 80px;
      height: 5px;
      background: #e2e8f0;
      border-radius: 10px;
      overflow: hidden;
      display: inline-block;
      vertical-align: middle;
      margin-right: 10px;
    }

    .mini-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--azul), var(--verde));
      border-radius: 10px;
    }

    /* ─── PROGRESS ─── */
    .progress-section {
      padding: 20px 28px;
      border-top: 1px solid var(--borde);
      display: none;
    }

    .progress-section.show { display: block; }

    .progress-meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--gris-texto);
      margin-bottom: 8px;
    }

    .progress-track {
      height: 7px;
      background: #e2e8f0;
      border-radius: 100px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--azul), var(--verde));
      border-radius: 100px;
      transition: width 0.4s ease;
      width: 0%;
    }

    /* ─── EXPORT BUTTON ─── */
    .export-footer {
      padding: 24px 28px;
      border-top: 1px solid var(--borde);
      background: #fafbff;
    }

    .btn-export {
      width: 100%;
      background: linear-gradient(135deg, var(--azul) 0%, var(--verde) 100%);
      color: white;
      border: none;
      border-radius: 14px;
      padding: 18px 32px;
      font-family: 'Sora', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0,91,154,0.3);
    }

    .btn-export::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--verde) 0%, var(--azul) 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .btn-export:hover::before { opacity: 1; }

    .btn-export span, .btn-export i { position: relative; z-index: 1; }

    .btn-export:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(0,91,154,0.35);
    }

    .btn-export:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .btn-export-note {
      text-align: center;
      margin-top: 10px;
      font-size: 0.78rem;
      color: #94a3b8;
    }

    .btn-export-note i { margin-right: 4px; }

    /* ─── COLORES ÍCONOS ─── */
    .ic-blue   { background: rgba(0,91,154,0.1); color: var(--azul); }
    .ic-green  { background: rgba(59,181,74,0.1); color: var(--verde-oscuro); }
    .ic-orange { background: rgba(249,115,22,0.1); color: #ea580c; }
    .ic-purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
    .ic-teal   { background: rgba(20,184,166,0.1); color: #0d9488; }
    .ic-red    { background: rgba(239,68,68,0.1); color: #dc2626; }
    .ic-yellow { background: rgba(234,179,8,0.1); color: #b45309; }
    .ic-pink   { background: rgba(236,72,153,0.1); color: #be185d; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 640px) {
      .top-nav { padding: 0 16px; }
      .page-header h1 { font-size: 1.8rem; }
      .meta-row { grid-template-columns: 1fr; }
      .meta-item { border-right: none; border-bottom: 1px solid var(--borde); }
      .stats-bar { grid-template-columns: repeat(3, 1fr); }
      .stat-number { font-size: 1.4rem; }
      .preview-header-inner { flex-direction: column; }
      table.data-table td, table.data-table thead th { padding: 10px 16px; }
      .export-footer, .collections-header { padding: 16px; }
      .drop-card { padding: 40px 20px; }
    }