/* San Licer 2026 · Zuera — programa no oficial
   Dirección visual: human-approachable, acento derivado del cartel oficial (rojo San Licer). */

:root {
  --bg: oklch(97% 0.006 40);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(95.5% 0.012 40);
  --fg: oklch(22% 0.02 40);
  --muted: oklch(47% 0.02 40);
  --border: oklch(89% 0.012 40);

  --accent: oklch(53% 0.19 26);
  --accent-hover: oklch(47% 0.19 26);
  --accent-fg: oklch(99% 0 0);
  --accent-tint: oklch(95% 0.03 26);
  --accent-tint-fg: oklch(40% 0.16 26);

  --success: oklch(55% 0.14 150);
  --canvas: oklch(22% 0.012 250);

  --cat-trad-bg: oklch(95% 0.03 30);      --cat-trad-fg: oklch(38% 0.13 30);
  --cat-musica-bg: oklch(95% 0.03 300);   --cat-musica-fg: oklch(42% 0.14 300);
  --cat-infantil-bg: oklch(95% 0.06 95);  --cat-infantil-fg: oklch(42% 0.12 95);
  --cat-taurino-bg: oklch(93% 0.045 18);  --cat-taurino-fg: oklch(35% 0.15 18);
  --cat-deporte-bg: oklch(94% 0.045 160); --cat-deporte-fg: oklch(38% 0.12 160);
  --cat-cultura-bg: oklch(94% 0.03 270);  --cat-cultura-fg: oklch(42% 0.12 270);
  --cat-barrio-bg: oklch(95% 0.045 55);   --cat-barrio-fg: oklch(40% 0.13 55);
  --cat-gastro-bg: oklch(95% 0.045 45);   --cat-gastro-fg: oklch(40% 0.13 45);
  --cat-fiesta-bg: oklch(94% 0.045 340);  --cat-fiesta-fg: oklch(40% 0.14 340);
  --cat-religioso-bg: oklch(95% 0.02 250);--cat-religioso-fg: oklch(40% 0.1 250);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- App shell ---------- */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}

@media (min-width: 720px) {
  body {
    background: var(--canvas);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }
  .device-frame {
    position: relative;
    width: 412px;
    height: 860px;
    border-radius: 44px;
    padding: 12px;
    background: oklch(15% 0.01 250);
    box-shadow: 0 40px 90px rgba(0,0,0,.45);
  }
  .device-frame::before {
    content: '';
    position: absolute;
    inset: -60px;
    z-index: -1;
    background: radial-gradient(circle at 50% 30%, oklch(53% 0.19 26 / 0.28), transparent 65%);
  }
  .device-frame .app-shell {
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
  }
  .app-main { overflow-y: auto; }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 20px 20px 12px;
  border-bottom: 1px solid transparent;
}
.app-header.has-border { border-bottom-color: var(--border); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page-title { font-size: 26px; margin-top: 4px; }
.page-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

.app-main { flex: 1 1 auto; padding: 4px 20px 32px; }

.badge-unofficial {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  min-height: 44px;
  justify-content: center;
}
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.nav-item span { font-size: 10.5px; font-weight: 550; letter-spacing: 0.01em; }
.nav-item[aria-current="page"] { color: var(--accent); }
.nav-item:hover { color: var(--fg); }
.nav-item[aria-current="page"]:hover { color: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 590;
  letter-spacing: 0.01em;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-2); color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.photo-banner {
  position: relative;
  margin-top: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.photo-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-banner-badge {
  position: absolute;
  top: 12px; right: 12px;
  display: flex; align-items: center;
  background: oklch(100% 0 0 / .82);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.photo-banner-badge img { width: auto; height: 16px; object-fit: contain; }
.photo-banner-caption {
  position: absolute;
  left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  background: oklch(20% 0.01 250 / .55);
  backdrop-filter: blur(6px);
  color: oklch(99% 0 0);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  font-size: 12px; font-weight: 550;
}
.photo-banner-caption svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.hero-card {
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}
.hero-card .hero-dates { font-family: var(--font-display); font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
.hero-card .hero-place { font-size: 14px; margin-top: 4px; font-weight: 590; }
.hero-card .hero-count { margin-top: 16px; font-size: 13px; font-weight: 500; }
.hero-card .hero-count strong { font-family: var(--font-display); font-size: 15px; }
.badge-on-accent { background: oklch(100% 0 0 / .16); border-color: oklch(100% 0 0 / .3); color: oklch(100% 0 0); }
.hero-card .hero-confetti {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 5px at 88% 18%, oklch(97% 0.05 95 / .55), transparent 60%),
    radial-gradient(circle 4px at 78% 60%, oklch(97% 0.02 200 / .4), transparent 60%),
    radial-gradient(circle 6px at 94% 78%, oklch(97% 0.05 95 / .4), transparent 60%);
}

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.section-head h2 { font-size: 17px; }
.section-head a { font-size: 13px; font-weight: 550; color: var(--accent); }

/* ---------- Quick grid (home shortcuts) ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quick-item {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.quick-item svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.quick-item span { font-size: 13.5px; font-weight: 590; }
.quick-item:hover { border-color: var(--accent); }

/* ---------- Day tabs ---------- */
.day-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  min-height: 44px; justify-content: center;
}
.day-tab .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 2px; visibility: hidden; }
.day-tab.is-official .dot { visibility: visible; }
.day-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.day-tab[aria-selected="true"] .dot { background: var(--accent-fg); }
.day-tab:hover:not([aria-selected="true"]) { border-color: var(--accent); color: var(--fg); }

/* ---------- Category filter chips ---------- */
.cat-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.cat-filters::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  height: 44px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px; font-weight: 550;
  display: inline-flex; align-items: center;
}
.cat-chip[aria-pressed="true"] { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.cat-chip:hover:not([aria-pressed="true"]) { border-color: var(--accent); color: var(--fg); }

/* ---------- Event list ---------- */
.event-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.event-top { display: flex; gap: 12px; align-items: flex-start; }
.event-time {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--fg); flex: 0 0 auto; min-width: 46px; padding-top: 1px;
}
.event-body { flex: 1 1 auto; min-width: 0; }
.event-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.event-place { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.event-meta-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cat-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.01em; }
.price-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.night-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #28213f; color: #fff; }
.fav-btn {
  flex: 0 0 auto; width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 50%;
  background: transparent; border: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.fav-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.fav-btn[aria-pressed="true"] { color: var(--accent); }
.fav-btn[aria-pressed="true"] svg { fill: var(--accent); }
.fav-btn:hover { color: var(--accent); }

.event-desc {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.55; color: var(--muted);
}
.event-toggle {
  margin-top: 8px; background: none; border: none; padding: 0;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
}
.event-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .15s ease; }
.event-card[data-open="true"] .event-toggle svg { transform: rotate(180deg); }
.event-card[data-open="false"] .event-desc { display: none; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; stroke: var(--border); fill: none; stroke-width: 1.5; margin-bottom: 12px; }
.empty-state p { font-size: 14px; line-height: 1.5; }
.empty-state strong { display: block; color: var(--fg); font-size: 15px; margin-bottom: 4px; font-family: var(--font-display); }

/* ---------- Info sections ---------- */
.info-block { margin-top: 24px; }
.info-block h3 { font-size: 15px; margin-bottom: 10px; }
.religious-day + .religious-day { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.religious-day-label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 8px; }

.info-list { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; letter-spacing: 0.01em; }
.info-row .time { font-weight: 600; flex: 0 0 auto; min-width: 44px; }
.info-row .text { color: var(--muted); }
.info-row .text strong { color: var(--fg); font-weight: 590; }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.callout strong { color: var(--fg); }

.bullet-list { display: flex; flex-direction: column; gap: 8px; }
.bullet-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; letter-spacing: 0.01em; color: var(--muted); }
.bullet-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; margin-top: 7px; }
.bullet-list li strong { color: var(--fg); font-weight: 590; }

table.price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.price-table th, table.price-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
table.price-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
table.price-table td.price { font-weight: 600; text-align: right; }
table.price-table tr:last-child td { border-bottom: none; }

details.disclosure { margin-top: 4px; }
details.disclosure summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 590; padding: 4px 0;
}
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.8; transition: transform .15s ease; }
details.disclosure summary:hover { color: var(--accent); }
details.disclosure summary:hover svg { stroke: var(--accent); }
details.disclosure[open] summary svg { transform: rotate(180deg); }

/* ---------- Frases JAVA Innovación ---------- */
.tech-quote {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin: 14px 0;
}
.tech-quote svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex: 0 0 auto; margin-top: 2px; }
.tech-quote p { font-size: 13px; line-height: 1.55; letter-spacing: 0.01em; font-style: italic; color: var(--fg); }
.tech-quote .tag { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.footer-note {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.6; letter-spacing: 0.01em; color: var(--muted);
}
