:root {
    --arku-red: #BC002D;
    --arku-red-hover: #8A0021;
    --arku-black: #000000;
    --arku-bg: #F8F9FA;
    --arku-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #6C757D;
    --border: #E0E0E0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--arku-bg); color: var(--text-main); line-height: 1.5; }

/* 🔝 HEADER */
header { background: var(--arku-red); color: #fff; padding: 1.5rem 0; box-shadow: 0 4px 12px rgba(188,0,45,0.2); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.header-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.header-logo { height: 48px; width: auto; object-fit: contain; background: rgba(255,255,255,0.9); padding: 4px; border-radius: 6px; }
header h1 { font-size: 1.4rem; font-weight: 800; }
header p { opacity: 0.9; font-size: 0.95rem; }

/* 🕰️ TABS DE PERÍODO */
.period-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); }
.period-tab { text-decoration: none; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.9rem; background: rgba(255,255,255,0.2); color: #fff; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1); }
.period-tab:hover { background: rgba(255,255,255,0.35); }
.period-tab.active { background: #fff; color: var(--arku-red); border-color: #fff; }

/* 🔍 FILTROS & BOTONES UNIFICADOS */
.filters { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 160px; }
.filter-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.filter-group select { padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-size: 0.95rem; width: 100%; }

.btn-group { display: flex; gap: 0.5rem; align-items: flex-end; flex: 1; justify-content: flex-end; }
.btn { padding: 0.6rem 1.2rem; border: 2px solid var(--arku-red); border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; transition: all 0.2s; min-width: 120px; text-align: center; }
.btn-primary { background: var(--arku-red); color: #fff; }
.btn-primary:hover { background: var(--arku-red-hover); border-color: var(--arku-red-hover); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--arku-red); }
.btn-outline:hover { background: var(--arku-red); color: #fff; transform: translateY(-1px); }

/* 🃏 GRID DE COMPETICIONES */
.container { max-width: 1200px; margin: 0 auto 3rem; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.card { background: var(--arku-card); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); border-left: 5px solid var(--arku-red); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.card-code { font-family: monospace; font-size: 0.85rem; background: #F0F2F5; padding: 2px 6px; border-radius: 4px; color: var(--text-muted); }
.card-flag { height: 18px; width: auto; object-fit: contain; border: 1px solid #ddd; border-radius: 2px; }
.card-title { font-size: 1.15rem; font-weight: 700; margin: 0.5rem 0; color: var(--arku-black); line-height: 1.3; }
.card-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0.3rem 0; display: flex; align-items: center; gap: 0.4rem; }
.card-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.75rem; padding: 0.5rem 1rem; background: var(--arku-red); color: #fff; text-decoration: none; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; width: 100%; }
.card-link:hover { background: var(--arku-red-hover); }

/* 📭 EMPTY STATE */
.empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--arku-black); }

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
    .header-brand { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .header-logo { height: 40px; }
    .period-tabs { justify-content: center; }
    .period-tab { flex: 1; text-align: center; min-width: 100px; }
    .filters { flex-direction: column; align-items: stretch; }
    .filter-group { min-width: 100%; }
    .btn-group { flex-direction: column; width: 100%; justify-content: center; }
    .btn { width: 100%; }
    .grid { grid-template-columns: 1fr; }
}