:root {
  --yellow: #ffc633;
  --yellow-dark: #f5b817;
  --blue: #075c98;
  --blue-dark: #044c80;
  --blue-select: #00558f;
  --ink: #1d1d1d;
  --muted: #727272;
  --line: #e4e4e4;
  --soft: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  border-top: 2px solid #111;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: relative;
  z-index: 20;
  height: 78px;
  background: #fff;
}

.topbar-inner,
.main-content,
.footer-inner {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  width: 112px;
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
  color: #171717;
}

.topnav a,
.language-button {
  white-space: nowrap;
}

.topnav a:hover {
  text-decoration: underline;
}

.language-button {
  padding: 0;
  border: 0;
  color: #171717;
  background: transparent;
  cursor: pointer;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.header-shadow {
  height: 78px;
  margin-top: -1px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .12), rgba(0, 0, 0, .035) 42%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.main-content {
  flex: 1;
  padding: 18px 0 96px;
}

.event-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
}

.event-heading h1,
.event-detail-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
}

.event-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-control {
  width: 285px;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  color: #666;
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.featured-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.featured-poster {
  overflow: hidden;
  height: 255px;
  border-radius: 2px;
  background: #111;
}

.featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.featured-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 8px;
  color: #6b5100;
  background: #fff3c1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.featured-copy h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
}

.featured-copy p {
  max-width: 620px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.yellow-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 3px;
  color: #3b2a00;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 700;
}

.yellow-button:hover {
  background: var(--yellow-dark);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
}

.event-cover {
  position: relative;
  height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  color: #fff;
}

.event-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .03));
}

.tone-yellow {
  background:
    linear-gradient(120deg, rgba(255, 198, 51, .96), rgba(173, 117, 0, .82)),
    #d9a61f;
}

.tone-blue {
  background:
    linear-gradient(120deg, rgba(7, 92, 152, .97), rgba(8, 42, 75, .9)),
    #075c98;
}

.tone-gray {
  background:
    linear-gradient(120deg, #5b5b5b, #1e1e1e),
    #333;
}

.cover-date,
.cover-name,
.cover-caption {
  position: relative;
  z-index: 1;
}

.cover-date {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 2px;
  background: rgba(0, 0, 0, .16);
  font-size: 10px;
  font-weight: 700;
}

.cover-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

.cover-caption {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: .12em;
  opacity: .82;
}

.event-card-body {
  padding: 16px 17px 17px;
}

.card-date {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.event-card-body h2 {
  min-height: 45px;
  margin: 0;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 600;
}

.card-place {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid #ededed;
  font-size: 11px;
  color: #666;
}

.card-footer strong {
  color: #222;
  font-size: 13px;
}

.card-footer a {
  padding: 8px 11px;
  border-radius: 3px;
  color: #3b2a00;
  background: var(--yellow);
  font-weight: 700;
}

.empty-state {
  padding: 50px 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: auto;
  color: #fff;
  background: var(--blue);
}

.footer-top {
  min-height: 205px;
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  align-items: center;
  gap: 55px;
  padding: 34px 0 24px;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: center;
  font-size: 11px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-select-block label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 700;
}

.footer-select-block select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 2px;
  color: #fff;
  background: var(--blue-select);
  font-size: 12px;
}

.footer-bottom {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 11px;
  font-weight: 700;
}

.ticket-mark {
  position: relative;
  width: 45px;
  height: 33px;
  display: inline-block;
  border: 8px solid #fff;
  border-radius: 5px;
}

.ticket-mark::before,
.ticket-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

.ticket-mark::before {
  left: -14px;
}

.ticket-mark::after {
  right: -14px;
}

/* Página individual */
.event-main {
  padding-top: 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.event-detail-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.event-detail-head {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #fff 58%, #fff5ce 100%);
}

.event-date {
  margin: 13px 0 0;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.event-logo {
  width: 190px;
}

.price-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 34px 15px;
}

.price-title-row h2 {
  margin: 0;
  font-size: 21px;
}

.price-title-row span {
  color: var(--muted);
  font-size: 11px;
}

.zone-list {
  padding: 0 34px 34px;
}

.zone-row {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr 160px 120px;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.zone-row:hover {
  background: #fafafa;
}

.zone-name {
  font-weight: 700;
}

.zone-price {
  color: var(--blue);
  font-weight: 700;
}

.zone-action {
  justify-self: end;
  padding: 8px 11px;
  border-radius: 3px;
  color: #3b2a00;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 700;
}

.compact-footer {
  margin-top: auto;
}

.compact-bottom {
  min-height: 130px;
}

@media (max-width: 850px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card {
    grid-template-columns: 170px 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 68px;
  }

  .logo {
    width: 100px;
  }

  .menu-button {
    display: block;
  }

  .topnav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .08);
  }

  .topnav.open {
    display: flex;
  }

  .topnav a,
  .language-button {
    padding: 11px 0;
    text-align: left;
  }

  .event-nav {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .header-shadow {
    height: 45px;
  }

  .main-content {
    padding-bottom: 60px;
  }

  .event-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-control {
    width: 100%;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-poster {
    height: 320px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 0;
  }

  .footer-links {
    grid-row: auto;
  }

  .footer-bottom {
    min-height: 92px;
  }

  .event-detail-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .event-logo {
    width: 140px;
  }

  .price-title-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px 12px;
  }

  .zone-list {
    padding: 0 20px 24px;
  }

  .zone-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 13px 10px;
  }

  .zone-action {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
