    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #edeae4;
      --white:     #ffffff;
      --red:       #c8232c;
      --red-dark:  #a81c24;
      --yellow:    #f5c800;
      --yellow-dk: #d4a900;
      --green:     #0e7a4e;
      --text:      #1a1a1a;
      --muted:     #888;
      --nav-h:     64px;
      --top-h:     56px;
    }

    html, body { height: 100%; }

    body {
      background: var(--bg);
      font-family: 'Barlow Condensed', sans-serif;
      color: var(--text);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    a{
        text-decoration: none;
    }
    /* ===== TOP BAR ===== */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      height: var(--top-h);
      background: var(--bg);
      border-bottom: 1px solid rgba(0,0,0,0.07);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.2rem;
    }

    .topbar-logo {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .topbar-badge {
      width: 36px; height: 36px;
      border-radius: 50%;
      background: linear-gradient(145deg,#1a8c55,#0a5c3a);
      border: 2px solid var(--yellow);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    .topbar-badge svg { width: 22px; height: 22px; }

    .topbar-title {
      font-family: 'Inter', sans-serif;
      font-size: 1.45rem;
      color: var(--red);
      letter-spacing: 0.01em;
      font-weight: 600;
      /*text-transform: uppercase;*/
    }

    .topbar-logout {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted);
      transition: color 0.2s;
      padding: 6px;
      border-radius: 8px;
    }
    .topbar-logout:hover { color: var(--red); }
    .topbar-logout svg { width: 22px; height: 22px; display: block; }

    /* ===== MAIN SCROLL AREA ===== */
    .main {
      flex: 1;
      overflow-y: auto;
      padding: 0 1rem 2rem;
      padding-bottom: calc(var(--nav-h) + 1.5rem);
    }

    /* ===== HERO SECTION ===== */
    .hero {
      text-align: center;
      padding: 1.6rem 0 1.2rem;
      animation: fadeUp 0.5s ease both;
    }

    .hero-badge {
      width: 72px; height: 72px;
      border-radius: 50%;
      background: linear-gradient(145deg,#1a8c55,#0a5c3a);
      border: 3px solid var(--yellow);
      display: inline-flex; align-items: center; justify-content: center;
      margin-bottom: 0.9rem;
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

    .hero-badge svg { width: 46px; height: 46px; }

    .hero h1 {
      font-family: 'Inter', sans-serif;
      font-size: clamp(2rem, 7vw, 2.8rem);
      letter-spacing: 0.04em;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .lugar-badge {
      display: inline-block;
      background: var(--yellow);
      color: #FFF;
      font-family: 'Inter', sans-serif;
      font-size: 1.15rem;
      letter-spacing: 0.12em;
      padding: 5px 22px;
      border-radius: 50px;
      box-shadow: 0 3px 10px rgba(245,200,0,0.4);
      margin-bottom: 0.75rem;
    }

    .sync-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .sync-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: color 0.2s;
      padding: 3px 6px;
      border-radius: 6px;
    }

    .sync-btn.drive { color: #e67e22; }
    .sync-btn.drive:hover { color: #c0392b; }
    .sync-btn.refresh { color: #2980b9; }
    .sync-btn.refresh:hover { color: #1a5276; }
    .sync-btn svg { width: 12px; height: 12px; }
    .sync-btn.spinning svg { animation: spin 0.8s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ===== STATS CARDS ===== */
    .stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      margin-top: 1.2rem;
      animation: fadeUp 0.5s 0.1s ease both;
    }

    .stat-card {
      background: var(--red);
      border-radius: 16px;
      padding: 1.1rem 1rem 1.2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(200,35,44,0.3);
      transition: transform 0.2s;
    }

    .stat-card:hover { transform: translateY(-2px); }

    .stat-card::after {
      content: '🌮';
      position: absolute;
      right: -6px; bottom: -10px;
      font-size: 3.5rem;
      opacity: 0.12;
      pointer-events: none;
    }

    .stat-card:nth-child(2)::after { content: '🏪'; }

    .stat-label {
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.75);
      margin-bottom: 0.5rem;
    }

    .stat-value {
      font-family: 'Inter', sans-serif;
      font-size: clamp(2.8rem, 9vw, 3.8rem);
      color: var(--white);
      line-height: 1;
    }

    /* ===== PRÓXIMA PARADA ===== */
    .next-stop {
      background: var(--white);
      border-radius: 16px;
      margin-top: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.9rem;
      padding: 0.65rem 0.75rem 0.65rem 0.65rem;
      box-shadow: 0 4px 16px rgba(0,0,0,0.07);
      animation: fadeUp 0.5s 0.2s ease both;
      transition: transform 0.2s;
    }

    .next-stop:hover { transform: translateY(-2px); }

    .next-thumb {
      width: 64px; height: 64px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
      background: #ddd;
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem;
      overflow: hidden;
    }

    .next-thumb img { width: 100%; height: 100%; object-fit: cover; }

    .next-info { flex: 1; }

    .next-sublabel {
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 2px;
    }

    .next-name {
      font-family: 'Inter', sans-serif;
      font-size: 1.2rem;
      letter-spacing: 0.05em;
      color: var(--text);
      line-height: 1.1;
    }

    .btn-add {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--red);
      color: var(--white);
      border: none;
      cursor: pointer;
      font-size: 1.6rem;
      line-height: 1;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 12px rgba(200,35,44,0.4);
      flex-shrink: 0;
      transition: transform 0.15s, box-shadow 0.15s;
    }

    .btn-add:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(200,35,44,0.5); }
    .btn-add:active { transform: scale(0.95); }

    /* ===== RANKING ===== */
    .ranking-card {
      background: var(--white);
      border-radius: 16px;
      margin-top: 0.75rem;
      padding: 1.1rem 1rem;
      box-shadow: 0 4px 16px rgba(0,0,0,0.07);
      animation: fadeUp 0.5s 0.3s ease both;
    }

    .ranking-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }

    .ranking-title {
      font-family: 'Inter', sans-serif;
      font-size: 1.3rem;
      color: var(--red);
      letter-spacing: 0.08em;
      font-style: italic;
    }

    .ver-todo {
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      color: var(--yellow-dk);
      text-transform: uppercase;
      display: flex; align-items: center; gap: 2px;
      transition: color 0.2s;
    }

    .ver-todo:hover { color: var(--red); }
    .ver-todo svg { width: 14px; height: 14px; }

    .ranking-list { display: flex; flex-direction: column; gap: 0.55rem; }

    .rank-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.4rem 0;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      transition: background 0.15s;
      border-radius: 8px;
    }

    .rank-item:last-child { border-bottom: none; }

    .rank-num-wrap {
      position: relative;
      width: 36px; height: 36px;
      flex-shrink: 0;
    }

    .rank-avatar {
      width: 36px; height: 36px;
      border-radius: 50%;
      object-fit: cover;
      background: #ddd;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
      font-weight: 700;
      color: #666;
      overflow: hidden;
    }

    .rank-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

    .rank-badge {
      position: absolute;
      bottom: -3px; right: -3px;
      width: 16px; height: 16px;
      border-radius: 50%;
      background: var(--yellow);
      border: 2px solid var(--white);
      font-size: 0.55rem;
      font-weight: 700;
      color: #333;
      display: flex; align-items: center; justify-content: center;
      line-height: 1;
    }

    .rank-badge.gold   { background: #EFB810; }
    .rank-badge.silver { background: #C0C0C0; }
    .rank-badge.bronze { background: #B08D57; color: #fff; }

    .rank-name {
      flex: 1;
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--text);
    }

    .rank-tacos {
      font-family: 'Inter', sans-serif;
      font-size: 1.1rem;
      letter-spacing: 0.05em;
      color: var(--yellow-dk);
      font-weight: 600;
    }

    /* ===== BOTTOM NAV ===== */
    .bottom-nav {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: var(--nav-h);
      background: var(--white);
      border-top: 1px solid rgba(0,0,0,0.08);
      display: flex;
      align-items: stretch;
      z-index: 100;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
    }

    .nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 6px 4px 10px;
      transition: color 0.2s;
      color: var(--muted);
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      position: relative;
    }

    .nav-item.active { color: var(--red); }

    .nav-item svg { width: 22px; height: 22px; }

    .nav-item.center-btn {
      color: var(--white);
    }

    .nav-center-circle {
      width: 46px; height: 46px;
      border-radius: 50%;
      background: var(--red);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 14px rgba(200,35,44,0.45);
      margin-bottom: 2px;
      transition: transform 0.15s, box-shadow 0.15s;
    }

    .nav-item.center-btn:hover .nav-center-circle {
      transform: scale(1.08);
      box-shadow: 0 6px 20px rgba(200,35,44,0.6);
    }

    .nav-item.center-btn span { color: var(--muted); }

    /* ===== TOAST ===== */
    .toast {
      position: fixed;
      bottom: calc(var(--nav-h) + 12px);
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #222;
      color: #fff;
      font-size: 0.85rem;
      letter-spacing: 0.06em;
      padding: 10px 20px;
      border-radius: 50px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
      white-space: nowrap;
      z-index: 200;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ===== ANIMATIONS ===== */
    @keyframes fadeUp {
      from { opacity:0; transform: translateY(18px); }
      to   { opacity:1; transform: translateY(0); }
    }

    /* ===== MAX WIDTH CONTAINER ===== */
    .inner { max-width: 480px; margin: 0 auto; width: 100%; }

    /* Watermark taco pattern in ranking bg */
    .ranking-card {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ctext x='10' y='40' font-size='28' opacity='0.04'%3E🌮%3C/text%3E%3C/svg%3E");
      background-repeat: repeat;
    }

  .t_visitas{
    font-size: 12px;
    font-weight: 100;
    color: #99a1af;
  }
    /* stilos para el ranking*/
    /*
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*/
    :root {
      --bg:        #edeae4;
      --white:     #ffffff;
      --red:       #c8232c;
      --yellow:    #f5c800;
      --yellow-dk: #d4a900;
      --green:     #0e7a4e;
      --text:      #1a1a1a;
      --muted:     #888;
      --nav-h:     64px;
      --top-h:     56px;
      --gold:      #f5c800;
      --silver:    #bdc3c7;
      --bronze:    #d35400;
    }
/*
    html, body { height: 100%; }

    body {
      background: var(--bg);
      font-family: 'Barlow Condensed', sans-serif;
      color: var(--text);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }*/

    /* ===== TOP BAR ===== */
    .topbar {
      position: sticky; top: 0; z-index: 100;
      height: var(--top-h);
      background: var(--bg);
      border-bottom: 1px solid rgba(0,0,0,0.07);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 1.2rem;
    }

    .topbar-logo { display: flex; align-items: center; gap: 8px; }

    .topbar-badge {
      width: 36px; height: 36px; border-radius: 50%;
      background: linear-gradient(145deg,#1a8c55,#0a5c3a);
      border: 2px solid var(--yellow);
      display: flex; align-items: center; justify-content: center;
    }
    .topbar-badge svg { width: 22px; height: 22px; }

    .topbar-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.45rem; color: var(--red); letter-spacing: 0.08em;
    }

    .topbar-logout {
      background: none; border: none; cursor: pointer;
      color: var(--muted); transition: color 0.2s; padding: 6px; border-radius: 8px;
    }
    .topbar-logout:hover { color: var(--red); }
    .topbar-logout svg { width: 22px; height: 22px; display: block; }

    /* ===== MAIN ===== */
    .main {
      flex: 1; overflow-y: auto;
      padding: 1rem 1rem calc(var(--nav-h) + 1.5rem);
    }

    .inner { max-width: 480px; margin: 0 auto; width: 100%; }

    /* ===== RANKING CARD ===== */
    .ranking-card {
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 6px 24px rgba(0,0,0,0.08);
      animation: fadeUp 0.45s ease both;
    }

    @keyframes fadeUp {
      from { opacity:0; transform: translateY(16px); }
      to   { opacity:1; transform: translateY(0); }
    }

    /* ---- Card Header ---- */
    .card-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 1rem 0.9rem;
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .header-left { display: flex; align-items: center; gap: 0.7rem; }

    .btn-back {
      background: none; border: none; cursor: pointer;
      color: var(--red); padding: 4px 6px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .btn-back:hover { background: rgba(200,35,44,0.08); }
    .btn-back svg { width: 20px; height: 20px; }

    .card-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.7rem; letter-spacing: 0.1em;
      color: var(--red); font-style: italic;
    }

    .btn-vs {
      background: var(--green); color: var(--white);
      border: none; cursor: pointer;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 7px 14px; border-radius: 50px;
      display: flex; align-items: center; gap: 6px;
      box-shadow: 0 4px 12px rgba(14,122,78,0.35);
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .btn-vs:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14,122,78,0.45); }
    .btn-vs svg { width: 16px; height: 16px; }

    /* ---- Tabs ---- */
    .tabs {
      display: grid; grid-template-columns: 1fr 1fr;
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .tab-btn {
      background: none; border: none; cursor: pointer;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 0.75rem 0;
      color: var(--muted);
      transition: color 0.2s, background 0.2s;
      position: relative;
    }

    .tab-btn.active {
      background: var(--red); color: var(--white);
    }

    .tab-btn:not(.active):hover { background: rgba(0,0,0,0.04); }

    /* ---- List ---- */
    .rank-list { padding: 0.5rem 0; }

    .rank-item {
      display: flex; align-items: center;
      gap: 0.85rem;
      padding: 0.85rem 1rem;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      transition: background 0.15s;
      cursor: default;
      animation: fadeUp 0.4s ease both;
      opacity: 0;
    }

    .rank-item:last-child { border-bottom: none; }
    .rank-item:hover { background: rgba(0,0,0,0.02); }

    /* Avatar + badge */
    .rank-avatar-wrap {
      position: relative; flex-shrink: 0;
      width: 46px; height: 46px;
    }

    .rank-avatar {
      width: 46px; height: 46px; border-radius: 50%;
      background: #e8e8e8;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; font-weight: 700; color: #999;
      overflow: hidden;
      border: 2px solid transparent;
    }

    .rank-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

    .rank-avatar.pos-1 { border-color: var(--gold); }
    .rank-avatar.pos-2 { border-color: var(--silver); }
    .rank-avatar.pos-3 { border-color: var(--bronze); }

    .rank-pos-badge {
      position: absolute; bottom: -2px; right: -4px;
      min-width: 18px; height: 18px; border-radius: 10px;
      border: 2px solid var(--white);
      font-size: 0.6rem; font-weight: 700; color: #333;
      display: flex; align-items: center; justify-content: center;
      line-height: 1; padding: 0 3px;
    }

    .pos-badge-1 { background: var(--gold); color: #fff; }
    .pos-badge-2 { background: var(--silver); color: #fff; }
    .pos-badge-3 { background: var(--bronze); color: #fff; }
    .pos-badge-n { background: #e0e0e0; color: #666; }

    /* Name + meta */
    .rank-info { flex: 1; min-width: 0; }

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

    .rank-meta {
      font-size: 0.72rem; letter-spacing: 0.1em;
      color: var(--muted); text-transform: uppercase; margin-top: 1px;
    }

    /* Taco count */
    .rank-tacos {
      font-family: 'Inter', sans-serif;
      font-size: 1.05rem; 
      letter-spacing: 0.02em;
      color: #ffb81c; 
      white-space: nowrap; 
      flex-shrink: 0;
      text-align: right;
    }

    .rank-tacos.zero { color: var(--yellow-dk); opacity: 0.55; }

    /* Top 3 podium highlight */
    .rank-item.top1 { background: rgba(245,200,0,0.07); }
    .rank-item.top2 { background: rgba(189,195,199,0.06); }
    .rank-item.top3 { background: rgba(211,84,0,0.05); }

    /* ===== BOTTOM NAV ===== */
    .bottom-nav {
      position: fixed; bottom: 0; left: 0; right: 0;
      height: var(--nav-h);
      background: var(--white);
      border-top: 1px solid rgba(0,0,0,0.08);
      display: flex; align-items: stretch; z-index: 100;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
    }

    .nav-item {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 3px;
      cursor: pointer; background: none; border: none;
      padding: 6px 4px 10px;
      transition: color 0.2s; color: var(--muted);
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    }
    .nav-item.active { color: var(--red); }
    .nav-item svg { width: 22px; height: 22px; }

    .nav-center-circle {
      width: 46px; height: 46px; border-radius: 50%;
      background: var(--red);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 14px rgba(200,35,44,0.45);
      margin-bottom: 2px;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .nav-item.center-btn:hover .nav-center-circle {
      transform: scale(1.08); box-shadow: 0 6px 20px rgba(200,35,44,0.6);
    }
    .nav-item.center-btn span { color: var(--muted); }

    /* ===== TOAST ===== */
    .toast {
      position: fixed;
      bottom: calc(var(--nav-h) + 12px); left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #222; color: #fff;
      font-size: 0.85rem; letter-spacing: 0.06em;
      padding: 10px 20px; border-radius: 50px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
      white-space: nowrap; z-index: 200;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* Empty state */
    .empty-state {
      text-align: center; padding: 2.5rem 1rem;
      color: var(--muted); font-size: 0.95rem; letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .empty-state .emoji { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }



    /*
    Ruta del taco
    */

    /* ===== SECTION TITLE ===== */
    .section-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.6rem, 6vw, 2.1rem);
      color: var(--red);
      letter-spacing: 0.08em;
      font-style: italic;
      margin-bottom: 1.1rem;
      text-align: center;
      animation: fadeUp 0.45s ease both;
    }

    /* ===== SHIELD MAP CARD ===== */
    .shield-wrap {
      display: flex; justify-content: center;
      margin-bottom: 1.8rem;
      animation: fadeUp 0.5s 0.05s ease both;
    }

    .shield-card {
      background: var(--white);
      border: 3px solid var(--green);
      border-radius: 18px;
      width: 100%; max-width: 450px;
      padding: 1.4rem 1.2rem 1.6rem;
      box-shadow: 0 8px 30px rgba(0,0,0,0.1);
      display: flex; flex-direction: column; align-items: center;
      position: relative;
      overflow: hidden;
    }

    /* ---- SVG SHIELD ROUTE ---- */
    .shield-svg-wrap {
      width: 100%; max-width: 300px;
    }

    .shield-svg-wrap svg {
      width: 100%; height: auto;
    }

    /* ===== NUESTRAS TAQUERÍAS ===== */
    .taq-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(1.3rem, 5vw, 1.6rem);
      color: var(--red);
      letter-spacing: 0.1em;
      font-style: italic;
      margin-bottom: 0.8rem;
      animation: fadeUp 0.45s 0.15s ease both;
    }

    .taq-list {
      display: flex; flex-direction: column; gap: 0.65rem;
    }

    .taq-item {
      background: var(--white);
      border-radius: 14px;
      display: flex; align-items: center; gap: 0.9rem;
      padding: 0.7rem;
      box-shadow: 0 3px 12px rgba(0,0,0,0.07);
      cursor: pointer;
      transition: transform 0.18s, box-shadow 0.18s;
      text-decoration: none; color: inherit;
      opacity: 0;
    }

    .taq-item:hover {
      transform: translateX(4px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

    .taq-thumb {
      width: 58px; height: 58px;
      border-radius: 10px;
      object-fit: cover;
      background: #ddd;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.8rem;
      overflow: hidden;
    }
    .taq-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

    .taq-info { flex: 1; }
    .taq-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.05rem;
      letter-spacing: 0.02em;
      color: var(--text);
      line-height: 1.1;
      font-weight: 600;
    }
    .taq-sub {
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      margin-top: 2px;
    }

    .taq-arrow {
      color: var(--muted);
      flex-shrink: 0;
    }
    .taq-arrow svg { width: 18px; height: 18px; }

    /* visited / active state */
    .taq-item.visited .taq-name { color: var(--green); }
    .taq-item.visited .taq-sub { color: var(--green); opacity: 0.7; }
    .taq-item.visited::after {
      content: '✓';
      font-size: 1rem;
      color: var(--green);
      font-weight: 700;
      margin-right: 4px;
    }

    /* ===== BOTTOM NAV ===== */
    .bottom-nav {
      position: fixed; bottom: 0; left: 0; right: 0;
      height: var(--nav-h);
      background: var(--white);
      border-top: 1px solid rgba(0,0,0,0.08);
      display: flex; align-items: stretch;
      z-index: 100;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
    }
    .nav-item {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 3px;
      cursor: pointer; background: none; border: none;
      padding: 6px 4px 10px;
      transition: color 0.2s; color: var(--muted);
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    }
    .nav-item.active { color: var(--red); }
    .nav-item svg { width: 22px; height: 22px; }
    .nav-center-circle {
      width: 46px; height: 46px; border-radius: 50%;
      background: var(--red);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 14px rgba(200,35,44,0.45);
      margin-bottom: 2px;
      transition: transform 0.15s;
    }
    .nav-item.center-btn:hover .nav-center-circle { transform: scale(1.08); }
    .nav-item.center-btn span { color: var(--muted); }

    /* ===== TOAST ===== */
    .toast {
      position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #222; color: #fff;
      font-size: 0.85rem; letter-spacing: 0.06em;
      padding: 10px 20px; border-radius: 50px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
      white-space: nowrap; z-index: 200;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* ===== ANIMATIONS ===== */
    @keyframes fadeUp {
      from { opacity:0; transform: translateY(16px); }
      to   { opacity:1; transform: translateY(0); }
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Route dot pulse */
    @keyframes pulse {
      0%, 100% { r: 5; opacity: 1; }
      50% { r: 7; opacity: 0.7; }
    }
    .route-dot-active { animation: pulse 1.5s ease-in-out infinite; }

    .bg-taco-green{
      color:#006847;
      text-align: center;
      padding: 20px;
      background-color: #dde4dd;
      margin-top: 10px;
      border-radius: 15px;
      border:1px #009264 solid;
    }

.topbar-actions{
display:flex;
align-items:center;
gap:16px;
}

.topbar-link{

font-size:14px;
font-weight:500;
text-decoration:none;
color:#444;
padding:6px 10px;
border-radius:6px;
transition:all .2s;

}

.topbar-link:hover{

background:#f3f3f3;
color:#000;

}

.topbar-actions{
display:flex;
align-items:center;
gap:14px;
}

.topbar-icon{

display:flex;
align-items:center;
justify-content:center;

width:36px;
height:36px;

border-radius:8px;

color:#444;
transition:all .2s;

}

.topbar-icon svg{

width:20px;
height:20px;

}

.topbar-icon:hover{

background:#f3f3f3;
color:#000;

}


/*
estilos para la galería
*/


    /* ── Main Content ── */
    .content {
      flex: 1;
      padding: 0 16px 100px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* ── Participant Card ── */
    .participant-card {
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .participant-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px 10px;
    }
    .participant-avatar {
      width: 40px; height: 40px;
      border-radius: 12px;
      background: #f0ece4;
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 16px; color: #878787;
      flex-shrink: 0;
    }
    .participant-info { flex: 1; }
    .participant-name { font-weight: 700; font-size: 18px; color: #1a1a1a; }
    .participant-count { font-size: 16px; color: #aaa; letter-spacing: 0.5px; }
    .participant-rank { font-size: 16px; font-weight: 800; color: #ffb81c; }

    /* ── Thumbnail Strip ── */
    .thumb-strip {
      display: flex;
      gap: 6px;
      padding: 0 16px 14px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .thumb-strip::-webkit-scrollbar { display: none; }
    .thumb {
      width: 80px; height: 80px;
      border-radius: 12px;
      flex-shrink: 0;
      background-size: cover;
      background-position: center;
      cursor: pointer;
      transition: transform 0.15s, opacity 0.15s;
    }
    .thumb:hover { transform: scale(0.96); opacity: 0.9; }

    /* ── Modal Overlay ── */
    .modal-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.88);
      z-index: 200;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .modal-overlay.active { display: flex; }

    .modal-close {
      position: absolute; top: 20px; right: 20px;
      background: rgba(255,255,255,0.15);
      border: none; color: #fff;
      width: 36px; height: 36px;
      border-radius: 50%; cursor: pointer;
      font-size: 18px;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .modal-close:hover { background: rgba(255,255,255,0.28); }

    /* Participant label inside modal */
    .modal-participant {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
    }
    .modal-participant-avatar {
      width: 34px; height: 34px;
      border-radius: 10px;
      background: rgba(255,255,255,0.12);
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; color: #fff; font-size: 15px;
    }
    .modal-participant-name { color: #fff; font-weight: 700; font-size: 18px; }
    .modal-participant-rank { color: #fed017; font-weight: 800; font-size: 15px; }

    /* Image wrapper */
    .modal-img-wrapper {
      position: relative;
      width: 100%;
      max-width: 400px;
    }
    .modal-img {
      width: 100%; height: 360px;
      object-fit: cover;
      border-radius: 20px;
      display: block;
      user-select: none;
    }

    .modal-btn {
      position: absolute;
      top: 50%; transform: translateY(-50%);
      background: rgba(255,255,255,0.18);
      backdrop-filter: blur(6px);
      border: none; color: #fff;
      width: 38px; height: 38px;
      border-radius: 50%; cursor: pointer;
      font-size: 22px;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .modal-btn:hover { background: rgba(255,255,255,0.32); }
    .modal-btn.prev { left: 10px; }
    .modal-btn.next { right: 10px; }
    .modal-btn.hidden { display: none; }

    /* Dots */
    .modal-dots {
      display: flex;
      gap: 6px;
      margin-top: 16px;
    }
    .dot {
      height: 7px;
      border-radius: 4px;
      background: rgba(255,255,255,0.3);
      cursor: pointer;
      transition: all 0.2s;
      width: 7px;
    }
    .dot.active { background: #c0392b; width: 20px; }

    .modal-counter {
      color: rgba(255,255,255,0.45);
      font-size: 12px;
      margin-top: 10px;
    }

    .participant-card:hover{
      cursor: pointer;
    }
    .participant-card:hover{
      opacity: 0.7;
    }

