    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --rojo:      #C8102E;
      --rojo-dark: #9B0C23;
      --bg:        #F4F6F8;
      --surface:   #FFFFFF;
      --border:    #E2E6EA;
      --text:      #1A1A1A;
      --muted:     #7A8494;
      --input-bg:  #F8FAFB;
    }

    html, body {
      min-height: 100%;
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    /* ── Header ── */
    header {
      background: #fff;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 10px 28px;
      box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    }

    header img  { height: 46px; width: auto; }
    header span { font-size: 15px; font-weight: 400; color: var(--text); }

    /* ── Page ── */
    .page {
      max-width: 1100px;
      margin: 0 auto;
      padding: 48px 24px 64px;
    }

    /* ── Hero ── */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-bottom: 48px;
      animation: fadeDown 0.7s cubic-bezier(.22,1,.36,1) both;
    }

    .hero-logo {
      width: 84px; height: 84px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 16px;
      box-shadow: 0 4px 20px rgba(200,16,46,0.18);
    }

    .hero-logo-placeholder {
      width: 84px; height: 84px;
      border-radius: 50%;
      background: var(--rojo);
      display: flex; align-items: center; justify-content: center;
      font-size: 32px;
      margin-bottom: 16px;
      box-shadow: 0 4px 20px rgba(200,16,46,0.18);
    }

    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: 28px; font-weight: 600;
      color: var(--text); margin-bottom: 6px;
    }

    .hero-sub {
      font-size: 14px; color: var(--muted); font-weight: 300;
    }

    /* ── Search card ── */
    .search-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 28px 32px;
      margin-bottom: 32px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) 0.1s both;
    }

    .search-grid {
      display: grid;
      grid-template-columns: 200px 200px 1fr auto;
      gap: 16px;
      align-items: end;
    }

    .field { display: flex; flex-direction: column; gap: 7px; }

    .field label {
      font-size: 11px; font-weight: 500;
      color: var(--muted); letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .input-wrap { position: relative; }

    .input-wrap svg.icon {
      position: absolute; left: 13px; top: 50%;
      transform: translateY(-50%);
      width: 15px; height: 15px; color: #CBD2DA;
      pointer-events: none; transition: color 0.2s;
    }

    .input-wrap:focus-within svg.icon { color: var(--rojo); }

    .field input,
    .field select {
      width: 100%;
      background: var(--input-bg);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 11px 13px 11px 38px;
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 14px; outline: none;
      appearance: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .field input:focus,
    .field select:focus {
      border-color: var(--rojo);
      box-shadow: 0 0 0 3px rgba(200,16,46,0.10);
      background: #fff;
    }

    .field input::placeholder { color: #C5CBD4; }

    /* Select flecha */
    .select-wrap { position: relative; }
    .select-wrap::after {
      content: ''; position: absolute; right: 13px; top: 50%;
      transform: translateY(-50%); pointer-events: none;
      width: 0; height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid #CBD2DA;
    }

    .btn-buscar {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--rojo); color: #fff; border: none;
      border-radius: 10px; padding: 12px 28px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px; font-weight: 500; cursor: pointer;
      letter-spacing: 0.04em;
      transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
      box-shadow: 0 4px 16px rgba(200,16,46,0.28);
      white-space: nowrap;
    }
    .btn-buscar:hover {
      background: var(--rojo-dark);
      box-shadow: 0 6px 22px rgba(200,16,46,0.40);
      transform: translateY(-1px);
    }
    .btn-buscar:active { transform: translateY(0); }
    .btn-buscar svg { width: 15px; height: 15px; }

    /* ── Resultados ── */
    .results-wrap {
      animation: fadeUp 0.6s cubic-bezier(.22,1,.36,1) 0.2s both;
    }

    .results-header {
      display: flex; align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .results-title {
      font-size: 13px; font-weight: 500;
      color: var(--muted); letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .results-count {
      font-size: 13px; color: var(--muted);
    }

    /* ── Tabla ── */
    .table-wrap {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    table { width: 100%; border-collapse: collapse; min-width: 640px; }

    thead {
      background: var(--rojo);
    }

    thead th {
      padding: 14px 18px;
      text-align: left;
      font-size: 11px; font-weight: 600;
      letter-spacing: 0.10em; text-transform: uppercase;
      color: #fff; white-space: nowrap;
    }

    thead th:first-child { width: 48px; text-align: center; }

    tbody tr {
      border-bottom: 1px solid var(--border);
      transition: background 0.15s;
    }
    tbody tr:last-child { border-bottom: none; }
    tbody tr:hover { background: #fafbfc; }

    tbody td {
      padding: 14px 18px;
      font-size: 14px; color: var(--text);
      vertical-align: middle;
    }

    tbody td:first-child {
      text-align: center;
      font-size: 13px; color: var(--muted); font-weight: 500;
    }

    .td-name { display: flex; flex-direction: column; gap: 2px; }
    .td-name strong { font-weight: 500; color: var(--text); }
    .td-name span   { font-size: 12px; color: var(--muted); }

    .badge-sede {
      display: inline-block;
      background: rgba(200,16,46,0.08);
      color: var(--rojo);
      border-radius: 6px;
      padding: 3px 10px;
      font-size: 12px; font-weight: 500;
    }

    .badge-fecha {
      font-size: 13px; color: var(--text);
    }

    /* Botón ver detalle */
    .btn-detalle {
      display: inline-flex; align-items: center; gap: 5px;
      background: none; border: 1.5px solid var(--border);
      border-radius: 8px; padding: 6px 12px;
      font-family: 'DM Sans', sans-serif; font-size: 12px;
      color: var(--muted); cursor: pointer; text-decoration: none;
      transition: border-color 0.2s, color 0.2s; white-space: nowrap;
    }
    .btn-detalle:hover { border-color: var(--rojo); color: var(--rojo); }
    .btn-detalle svg { width: 13px; height: 13px; }

    /* Estado vacío */
    .empty {
      text-align: center; padding: 56px 20px;
      color: var(--muted);
    }
    .empty-icon {
      width: 52px; height: 52px;
      background: rgba(200,16,46,0.07);
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 16px;
      color: var(--rojo);
    }
    .empty-icon svg { width: 26px; height: 26px; }
    .empty-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
    .empty-sub   { font-size: 13px; color: var(--muted); font-weight: 300; }

    /* Alert */
    .alert {
      border-radius: 10px; padding: 12px 16px; font-size: 13px;
      margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
    }
    .alert-error {
      background: rgba(200,16,46,0.07); border: 1px solid rgba(200,16,46,0.25);
      color: var(--rojo-dark);
    }
    .alert svg { width: 16px; height: 16px; flex-shrink: 0; }

    /* Footer */
    .footer {
      text-align: center; margin-top: 48px;
      font-size: 12px; color: #C5CBD4;
    }

    /* ── Animations ── */
    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ════════════════════════════════
       RESPONSIVE
    ════════════════════════════════ */
    @media (max-width: 860px) {
      .search-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
      }
      /* Reg. CCSP ocupa las 2 columnas */
      .search-grid .field:nth-child(3) { grid-column: 1 / -1; }
      .btn-buscar { width: 100%; justify-content: center; grid-column: 1 / -1; }
    }

    @media (max-width: 600px) {
      header { padding: 10px 16px; }
      header img  { height: 38px; }
      header span { font-size: 13px; }

      .page { padding: 32px 16px 48px; }

      .hero-title { font-size: 22px; }

      .search-card { padding: 20px 18px; }
      .search-grid { grid-template-columns: 1fr; }
      .search-grid .field:nth-child(3) { grid-column: 1; }

      .results-header { flex-direction: column; align-items: flex-start; gap: 4px; }

      thead th:nth-child(1) { display: none; }
      tbody td:nth-child(1) { display: none; }
    }