:root {
  --negro: #161312;
  --negro-raised: #201c19;
  --negro-raised-2: #292320;
  --crema: #efe9da;
  --crema-soft: #b9ad98;
  --tan: #c9a878;
  --magenta: #d244e6;
  --acido: #f1d437;
  --line: #362f2a;
  --shadow: 0 12px 32px -14px rgba(0,0,0,0.7);
  --focus: #f1d437;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--negro);
  color: var(--crema);
  font-family: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  background-image: radial-gradient(circle at 1px 1px, #2a2521 1px, transparent 0);
  background-size: 24px 24px;
}

a { color: inherit; }
::selection { background: var(--magenta); color: var(--negro); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 90px; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 18px; background: rgba(22,19,18,0.88); backdrop-filter: blur(6px);
}
.topnav button {
  font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--negro-raised); color: var(--crema); border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 12px; cursor: pointer;
}
.topnav button:hover { border-color: var(--magenta); color: var(--magenta); }
.topnav .menu-wrap { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  background: var(--negro-raised); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column;
}
.menu-panel.open { display: flex; }
.menu-panel a { text-decoration: none; font-size: 13.5px; color: var(--crema); padding: 9px 10px; border-radius: 6px; }
.menu-panel a:hover { background: var(--negro-raised-2); color: var(--magenta); }

.eyebrow {
  font-family: "Space Mono", monospace; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--magenta); margin: 0 0 8px; text-align: center;
}
.display { font-family: "Bowlby One", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: 0.01em; line-height: 0.95; }

/* ---------- Header ---------- */
header.top {
  position: relative; overflow: hidden; text-align: center;
  min-height: min(86vh, 760px);
  display: flex; align-items: center; justify-content: center;
  padding: 90px 20px 70px;
}
header.top .top-content { position: relative; z-index: 2; }
header.top img.logo { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 20px; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.5)); }
header.top .tagline { font-size: 16.5px; color: var(--crema-soft); max-width: 40ch; margin: 0 auto; }
header.top .scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: var(--crema-soft); font-size: 20px; line-height: 1; opacity: 0.55;
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue { 0%, 100% { transform: translate(-50%, 0); opacity: 0.35; } 50% { transform: translate(-50%, 8px); opacity: 0.8; } }
@media (max-width: 540px) {
  header.top { min-height: 66vh; padding: 70px 18px 54px; }
  header.top img.logo { max-width: 170px; }
}

/* ---------- Header photo carousel ---------- */
header.top .hero-bg { position: absolute; inset: 0; z-index: 0; }
header.top .hero-bg span { position: absolute; inset: 0; background-size: cover; background-position: 50% 28%; opacity: 0; animation: heroFade 16s infinite; }
header.top .hero-bg span:nth-child(1) { animation-delay: 0s; }
header.top .hero-bg span:nth-child(2) { animation-delay: 4s; }
header.top .hero-bg span:nth-child(3) { animation-delay: 8s; }
header.top .hero-bg span:nth-child(4) { animation-delay: 12s; }
header.top .hero-bg .overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 100% at 50% 32%, transparent 45%, rgba(0,0,0,0.4) 100%),
    linear-gradient(180deg, rgba(22,19,18,0.55) 0%, rgba(22,19,18,0.15) 26%, rgba(22,19,18,0.4) 62%, var(--negro) 100%);
}
@keyframes heroFade { 0%, 6% { opacity: 0; } 10%, 21% { opacity: 1; } 25%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  header.top .hero-bg span { animation: none; opacity: 0; }
  header.top .hero-bg span:first-child { opacity: 1; }
  header.top .scroll-cue { animation: none; }
}

/* ---------- Hero: próximos shows ---------- */
.hero { margin-top: 30px; text-align: center; }
.show-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.show-row {
  display: flex; align-items: center; gap: 14px; background: var(--negro-raised); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 16px; text-decoration: none; transition: border-color 0.12s ease, transform 0.12s ease;
}
.show-row:hover { border-color: var(--magenta); transform: translateY(-1px); }
.show-row .sd-date {
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 13px; color: var(--negro); background: var(--acido);
  padding: 6px 9px; border-radius: 6px; white-space: nowrap; flex: 0 0 auto;
}
.show-row .sd-venue { flex: 1 1 auto; font-size: 14px; color: var(--crema); min-width: 0; }
.show-row .sd-venue span { display: block; font-size: 12px; color: var(--crema-soft); }
.show-row .sd-cta { flex: 0 0 auto; font-family: "Space Mono", monospace; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--magenta); white-space: nowrap; }

/* ---------- Section shells ---------- */
section.block { margin-top: 50px; }
.block h2 { font-family: "Bowlby One", sans-serif; font-weight: 400; font-size: 24px; color: var(--crema); margin: 0 0 6px; text-align: center; }
.block h2 em { font-style: normal; color: var(--magenta); }
.block .desc { color: var(--crema-soft); font-size: 14.5px; margin: 0 0 18px; max-width: 56ch; }
.block.center { text-align: center; }
.block.center .desc { margin-left: auto; margin-right: auto; }

.manifesto { font-size: 15px; color: var(--crema-soft); max-width: 58ch; margin: 0 auto; text-align: center; }
.manifesto b { color: var(--crema); font-weight: 700; }

/* ---------- Discover-other-cities ---------- */
details.discover summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--negro-raised); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
  font-family: "Space Mono", monospace; font-size: 13.5px;
}
details.discover summary::-webkit-details-marker { display: none; }
details.discover summary .arrow { font-family: "Space Grotesk", sans-serif; color: var(--acido); transition: transform 0.15s ease; flex: 0 0 auto; }
details.discover[open] summary .arrow { transform: rotate(90deg); }
details.discover summary .lbl { color: var(--crema); }
.discover-body { padding-top: 18px; }

.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.controls input[type="search"], .controls select {
  font: inherit; font-size: 13.5px; padding: 9px 12px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--negro-raised); color: var(--crema);
}
.controls input[type="search"] { min-width: 200px; flex: 1 1 200px; }
.controls select { flex: 0 0 auto; }
.result-count { width: 100%; font-size: 11.5px; color: var(--crema-soft); font-family: "Space Mono", monospace; margin: 4px 0 4px; }

.month-heading {
  font-family: "Bowlby One", sans-serif; font-weight: 400; font-size: 19px; color: var(--tan);
  margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 8px;
}
.month-heading span { font-family: "Space Mono", monospace; font-size: 11px; color: var(--crema-soft); }

.stub { display: grid; grid-template-columns: 76px 1px 1fr auto; align-items: center; background: var(--negro-raised); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.stub-date { background: var(--negro-raised-2); align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; font-family: "Space Mono", monospace; }
.stub-date .day { font-size: 22px; font-weight: 700; color: var(--crema); line-height: 1; }
.stub-date .mon { font-size: 10px; text-transform: uppercase; color: var(--tan); margin-top: 3px; }
.perf { align-self: stretch; width: 1px; background-image: linear-gradient(var(--line) 60%, transparent 0%); background-size: 1px 8px; background-repeat: repeat-y; }
.stub-body { padding: 12px 14px; min-width: 0; }
.stub-body .who { font-weight: 700; font-size: 15px; margin: 0 0 3px; color: var(--crema); }
.stub-body .where { font-size: 12.5px; color: var(--crema-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stub-body .where b { color: var(--tan); font-weight: 600; }
.stub-body .hora { font-family: "Space Mono", monospace; font-size: 10.5px; color: var(--magenta); margin-top: 4px; }
.stub-cta { padding: 0 14px 0 6px; }
.stub-cta a { font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; background: var(--acido); color: var(--negro); padding: 9px 12px; border-radius: 6px; white-space: nowrap; font-weight: 700; }
@media (max-width: 540px) {
  .stub { grid-template-columns: 56px 1px 1fr; }
  .stub-cta { grid-column: 1 / -1; padding: 0 12px 12px; }
  .stub-cta a { display: block; text-align: center; }
}
.empty { text-align: center; padding: 40px 20px; color: var(--crema-soft); font-size: 13.5px; }

/* ---------- Action / contact cards ---------- */
.action-card, .contact-card {
  background: var(--negro-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px; text-align: center; max-width: 520px; margin: 0 auto;
}
.action-card h3, .contact-card h3 { font-family: "Bowlby One", sans-serif; font-weight: 400; font-size: 18px; color: var(--crema); margin: 0 0 8px; }
.action-card p, .contact-card p { font-size: 13.5px; color: var(--crema-soft); margin: 0 0 16px; }
.action-card p.note { font-family: "Space Mono", monospace; font-size: 11px; color: var(--tan); margin: 10px 0 0; }
.action-card a.go, .contact-card a.go {
  display: inline-block; font-family: "Space Mono", monospace; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; border: 1.5px solid var(--magenta); color: var(--magenta); padding: 9px 16px; border-radius: 7px;
  transition: background 0.12s ease, color 0.12s ease;
}
.action-card a.go:hover, .contact-card a.go:hover { background: var(--magenta); color: var(--negro); }
.contact-card { margin: 20px auto 26px; }
.contact-card .handles { font-family: "Space Mono", monospace; font-size: 12px; color: var(--tan); margin-top: 14px; }

/* ---------- Sponsors / Colaboradores ---------- */
.sponsor-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sponsor-row .tile {
  width: 130px; height: 70px; background: var(--negro-raised); border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--crema-soft); font-size: 11px; text-align: center; padding: 6px; overflow: hidden;
}
.sponsor-row .tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-row a.tile { text-decoration: none; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid .tile { aspect-ratio: 1; background: var(--negro-raised); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--crema-soft); font-size: 22px; overflow: hidden; }
.gallery-grid .tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Comediantes ---------- */
.comedians-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 540px) { .comedians-grid { grid-template-columns: repeat(2, 1fr); } }
.comedian-card { display: block; text-decoration: none; cursor: pointer; }
.comedian-card .photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--negro-raised); }
.comedian-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.comedian-card:hover .photo img, .comedian-card:focus-visible .photo img { transform: scale(1.06); }
.comedian-card .photo .view {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(22,19,18,0.55); opacity: 0; transition: opacity 0.2s ease;
  font-family: "Space Mono", monospace; font-size: 11px; color: var(--crema); text-align: center; padding: 8px;
}
.comedian-card:hover .photo .view, .comedian-card:focus-visible .photo .view { opacity: 1; }
.comedian-card .name { margin-top: 8px; text-align: center; font-size: 13px; color: var(--crema); }
.comedian-card:hover .name, .comedian-card:focus-visible .name { color: var(--magenta); }
@media (prefers-reduced-motion: reduce) {
  .comedian-card .photo img { transition: none; }
}

/* ---------- Video teaser ---------- */
.video-teaser { border: 1px dashed var(--line); border-radius: 12px; padding: 26px 20px; text-align: center; color: var(--crema-soft); font-size: 13.5px; }

footer { text-align: center; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); }
footer .brandline { font-family: "Bowlby One", sans-serif; font-size: 15px; color: var(--magenta); margin: 0 0 6px; }
footer .sub { font-family: "Space Mono", monospace; font-size: 11.5px; color: var(--crema-soft); }
footer .rights { font-family: "Space Mono", monospace; font-size: 10.5px; color: var(--crema-soft); opacity: 0.7; margin: 10px 0 0; }

/* ---------- Suscripciones ---------- */
.subscribe-card { max-width: 420px; margin: 0 auto; text-align: left; }
.subscribe-card button[type="submit"] { width: 100%; }
.subscribe-card button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--crema-soft); margin: 4px 0 16px; text-align: left; cursor: pointer; }
.consent input { margin-top: 2px; }

/* ---------- Forms (enviar.html) ---------- */
.card { background: var(--negro-raised); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12.5px; color: var(--crema-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--negro-raised-2); color: var(--crema);
}
.field { margin-bottom: 14px; }
.field .hint { font-size: 11.5px; color: var(--crema-soft); margin: 4px 0 0; }
.field.hp { position: absolute; left: -9999px; }
button.primary, .card button[type="submit"] {
  font: inherit; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--magenta); color: var(--negro); border: none; padding: 11px 20px; border-radius: 8px; cursor: pointer;
}
.formnote { font-size: 13px; margin: 12px 0 0; }
.formnote.ok { color: var(--acido); }
.formnote.err { color: #ff8b7a; }

/* ---------- Admin ---------- */
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 34px 0 18px; }
.admin-head h1 { font-family: "Bowlby One", sans-serif; font-size: 26px; margin: 0; color: var(--crema); }
.tokenbar { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.tokenbar input { font: inherit; font-size: 12.5px; padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--negro-raised); color: var(--crema); width: 160px; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 12.5px; padding: 9px 12px; border: none; background: none; color: var(--crema-soft); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--crema); border-bottom-color: var(--magenta); font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--crema-soft); }
td.actions { white-space: nowrap; }
td.actions button { font: inherit; font-size: 11.5px; padding: 5px 9px; margin-right: 4px; border-radius: 5px; border: 1px solid var(--line); background: var(--negro-raised-2); color: var(--crema); cursor: pointer; }
td.actions button.go { background: var(--magenta); color: var(--negro); border-color: transparent; }
.pill { font-family: "Space Mono", monospace; font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.pill.published, .pill.approved { background: #24391f; color: #b7e08a; }
.pill.pending { background: #3a3016; color: #f1d437; }
.pill.rejected { background: #3a1f1c; color: #ff8b7a; }
.tablewrap { overflow-x: auto; }
.msg { font-size: 13px; margin: 10px 0; color: var(--crema-soft); }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
