:root {
  --bg: #090906;
  --panel: #171711;
  --panel-2: #202016;
  --text: #f6f3eb;
  --muted: #b8b2a7;
  --line: rgba(255, 255, 255, .14);
  --accent: #dfff22;
  --accent-2: #ff4db8;
  --accent-3: #42e8ff;
  --success: #36d476;
  --danger: #ff5b5b;
  --warning: #ffbd4a;
  --radius: 8px;
  --pill: 999px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(223, 255, 34, .08), transparent 28rem),
    radial-gradient(circle at 86% 28%, rgba(255, 77, 184, .09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.booking-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(9, 9, 6, .82);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand img {
  width: 118px;
}

.booking-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-header nav a,
.ghost-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 800;
}

.booking-header nav a:hover,
.ghost-link:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

.back-home {
  position: fixed;
  top: 96px;
  left: max(16px, calc((100vw - var(--max)) / 2));
  z-index: 21;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(9, 9, 6, .72);
  color: var(--text);
  backdrop-filter: blur(16px);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.back-home:hover {
  transform: translateX(-3px);
  border-color: rgba(223, 255, 34, .5);
  background: rgba(223, 255, 34, .1);
}

.booking-hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px max(24px, calc((100vw - var(--max)) / 2)) 48px;
}

.booking-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 6, .92), rgba(9, 9, 6, .56), rgba(9, 9, 6, .78)),
    linear-gradient(0deg, rgba(9, 9, 6, .9), rgba(9, 9, 6, .12));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  margin-left: 10px;
  vertical-align: middle;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .92;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .98;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  font-size: 1.15rem;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: var(--pill);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

.btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #090906;
}

.btn-secondary,
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.btn-ghost.danger {
  color: var(--danger);
}

.booking-section {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  padding: 86px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.event-card,
.reserve-panel,
.admin-panel,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 17, .84);
}

.event-card {
  display: grid;
  min-height: 420px;
  overflow: hidden;
}

.event-media {
  position: relative;
  min-height: 180px;
  background: #111;
}

.event-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05);
}

.event-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: rgba(9, 9, 6, .82);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.event-data {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .95rem;
}

.event-data strong {
  color: var(--text);
}

.event-body .btn {
  width: 100%;
  margin-top: auto;
}

.reserve-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  padding: 34px;
}

.reserve-form,
.mini-form,
.event-editor {
  display: grid;
  gap: 14px;
}

.reserve-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

input:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.reserve-form.is-disabled {
  opacity: .62;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding: 30px;
}

.admin-workspace {
  padding: 30px;
}

.admin-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 18px;
}

.admin-card {
  padding: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-field {
  display: flex;
  flex-direction: row;
  align-items: end;
  gap: 10px;
  padding-bottom: 12px;
}

.check-field input {
  width: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.stat strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 1.4rem;
}

.stat span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reservation-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.reservation {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .2);
}

.reservation-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.reservation small {
  color: var(--muted);
}

.status {
  width: fit-content;
  padding: 5px 8px;
  border-radius: var(--pill);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status.pendiente { color: var(--warning); background: rgba(255, 189, 74, .12); }
.status.confirmado { color: var(--success); background: rgba(54, 212, 118, .12); }
.status.cancelado { color: var(--danger); background: rgba(255, 91, 91, .12); }

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reservation-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  cursor: pointer;
  padding: 0 12px;
  font-size: .72rem;
  font-weight: 900;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.booking-footer {
  width: min(calc(100% - 32px), var(--max));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 38px 0 90px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.booking-footer a {
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 900px) {
  .event-grid,
  .reserve-panel,
  .admin-login,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .booking-header {
    top: 12px;
    width: min(calc(100% - 20px), var(--max));
    min-height: 60px;
  }

  .brand img {
    width: 92px;
  }

  .booking-header nav {
    gap: 4px;
  }

  .booking-header nav a,
  .ghost-link {
    min-height: 36px;
    padding: 0 8px;
    font-size: .72rem;
  }

  .back-home {
    top: 82px;
    left: 12px;
    min-height: 36px;
    padding: 0 10px;
    font-size: .68rem;
  }

  .booking-hero {
    min-height: 74svh;
    padding: 116px 16px 28px;
  }

  h1 {
    font-size: 2.76rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-copy > p:not(.eyebrow),
  p {
    font-size: .95rem;
    line-height: 1.55;
  }

  .booking-section {
    width: min(calc(100% - 24px), var(--max));
    padding: 54px 0;
  }

  .event-grid,
  .reserve-form,
  .field-row,
  .stats {
    grid-template-columns: 1fr;
  }

  .event-card {
    min-height: 0;
  }

  .reserve-panel,
  .admin-login,
  .admin-workspace {
    padding: 18px;
  }

  .admin-top,
  .booking-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
