/* PANAMORL 2027 App — sistema de diseño de panamorl2027.com
   Dorado #AE8B6B · Grafito #3F3F3F · Azul #0082F1 · Gris #757575 · Archivo + Heebo + DM Sans */
:root {
  --gold: #ae8b6b;
  --gold-dark: #97805f;
  --gold-soft: #f4ece2;
  --graphite: #3f3f3f;
  --graphite-dark: #1d1d1d;
  --blue: #0082f1;
  --blue-soft: #e3f1fe;
  --body: #757575;
  --ink: #2b2b2b;
  --bg: #f6f5f3;
  --card: #ffffff;
  --line: #e6e6e6;
  --light: #efefef;
  --ok: #16a34a;
  --radius: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--body);
  padding-bottom: 78px;
  font-size: 16px;
}
h1, h2, h3 { font-family: "Archivo", "Heebo", sans-serif; color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
}
header.top img.logo { height: 42px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(90deg, var(--gold), var(--graphite));
  color: #fff; font-weight: 700; font-size: 1.05rem; padding: 0 8px;
  font-family: "Archivo", sans-serif;
}
.chip.login {
  border-radius: 999px; padding: 0 18px; font-size: .8rem; background: #fff;
  color: var(--gold-dark); border: 2px solid var(--gold);
  font-family: "DM Sans", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- eyebrow + títulos (patrón del sitio) ---------- */
.eyebrow {
  font-family: "DM Sans", sans-serif; font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--blue);
  margin-bottom: 4px;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, #141414 0%, var(--graphite) 70%, #2a2a2a 100%);
  color: #fff; text-align: center; padding: 36px 20px 34px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(174,139,107,.35), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-logo { height: 66px; background: #fff; border-radius: 14px; padding: 6px 14px; }
.hero .eyebrow { color: var(--gold); margin-top: 16px; }
.hero h1 {
  color: #fff; font-size: 1.45rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; margin: 6px 0 8px; line-height: 1.25;
}
.hero-sub { color: #d8d3cc; line-height: 1.6; font-size: .95rem; }
.countdown {
  display: flex; gap: 10px; justify-content: center; margin: 20px 0 6px;
}
.cd {
  background: var(--light); border-radius: 16px; padding: 12px 0; width: 70px;
  box-shadow: 0 5px 18px rgba(0,0,0,.25);
}
.cd b { display: block; font-size: 1.5rem; font-family: "Archivo", sans-serif; color: var(--gold); font-weight: 800; }
.cd span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--body); font-family: "DM Sans", sans-serif; }
.hello { margin: 10px 0 12px; font-size: 1.05rem; color: #fff; }

/* ---------- botones (pastilla, mayúsculas, como el sitio) ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
  text-align: center; margin: 6px 4px;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 4px 14px rgba(174,139,107,.4); }
.btn-primary:active { background: var(--graphite); }
.btn-graphite { background: var(--graphite); color: #fff; }
.btn-graphite:active { background: var(--gold); }
.btn-light { background: #fff; color: var(--graphite); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.pad .btn-ghost { color: var(--gold-dark); border-color: var(--gold); }
.actions { margin: 14px 0; }

/* ---------- layout ---------- */
.pad { padding: 20px 16px; max-width: 720px; margin: 0 auto; }
.pad.narrow { max-width: 460px; }
.page-title { font-size: 1.35rem; font-weight: 700; margin: 4px 0 12px; color: var(--gold); }
.sec { font-size: 1.05rem; font-weight: 700; margin: 26px 0 10px; color: var(--gold); }
.note { color: var(--body); font-size: .85rem; margin: 12px 0; line-height: 1.55; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 600; font-family: "DM Sans", sans-serif; font-size: .85rem; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 12px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; color: var(--body);
  box-shadow: 0 5px 20px rgba(0,0,0,.06);
}
.card h3 { font-size: 1rem; margin-bottom: 6px; font-weight: 600; }
.card .sp { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: 4px; font-family: "DM Sans", sans-serif; }
.card .meta { color: var(--body); font-size: .82rem; margin-top: 6px; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge {
  display: inline-block; background: var(--blue-soft); color: var(--blue);
  font-family: "DM Sans", sans-serif; font-size: .7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.day { font-size: .75rem; color: var(--body); font-weight: 600; font-family: "DM Sans", sans-serif; }
.tag {
  display: inline-block; background: var(--gold-soft); color: var(--gold-dark);
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin: 6px 0;
  font-family: "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .05em;
}

.pkg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--gold); font-family: "Archivo", sans-serif; }
.pkg ul { list-style: none; }
.pkg li { font-size: .88rem; padding: 5px 0 5px 24px; position: relative; }
.pkg li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }

/* ---------- quick links ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.quick a {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 6px; text-align: center; font-size: 1.4rem; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.quick a span { font-size: .7rem; font-weight: 600; color: var(--body); font-family: "DM Sans", sans-serif; }

/* ---------- agenda ---------- */
.daytabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.daytab {
  border: 2px solid var(--line); background: #fff; border-radius: 14px;
  padding: 10px 4px; font-weight: 700; font-size: .85rem; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; font-family: "Archivo", sans-serif;
}
.daytab small { font-weight: 500; color: var(--body); font-size: .68rem; font-family: "Heebo", sans-serif; }
.daytab.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-dark); }
.timeline { display: grid; gap: 10px; }
.trow { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: flex-start; }
.ttime { font-family: "Archivo", sans-serif; font-weight: 800; color: var(--gold); font-size: .9rem; min-width: 52px; display: flex; flex-direction: column; }
.ttime span { font-weight: 500; color: var(--body); font-size: .72rem; font-family: "Heebo", sans-serif; }
.tbody { flex: 1; }
.tbody b { font-size: .95rem; font-family: "Archivo", sans-serif; color: var(--ink); }
.tbody p { font-size: .83rem; margin-top: 2px; }
.star { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #d5d5d5; padding: 2px 4px; }
.star.on { color: var(--gold); }

/* ---------- evento ---------- */
.sp-big { color: var(--blue); font-weight: 600; font-size: 1.02rem; margin: 4px 0; font-family: "DM Sans", sans-serif; }
.facts { display: grid; gap: 6px; background: var(--light); border-radius: 14px; padding: 14px; margin: 14px 0; font-size: .9rem; color: var(--ink); }
.mytickets { display: grid; gap: 8px; }

/* ---------- asientos ---------- */
.stage {
  background: var(--graphite); color: #fff; text-align: center; font-weight: 700;
  letter-spacing: .25em; font-size: .78rem; padding: 12px; border-radius: 14px; margin: 12px 0 16px;
  font-family: "DM Sans", sans-serif;
}
.seat-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px; margin-bottom: 12px; }
.seat {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line);
  font-size: .6rem; font-weight: 700; cursor: pointer; background: #fff; color: var(--body);
  font-family: "Archivo", sans-serif; padding: 0;
}
.seat.free { background: var(--gold-soft); border-color: #e2d3bd; color: var(--gold-dark); }
.seat.free:active { transform: scale(.92); }
.seat.mine { background: var(--gold); border-color: var(--gold-dark); color: #fff; }
.seat.taken { background: #e2e2e2; color: #a3a3a3; cursor: not-allowed; }
.seat-legend { display: flex; gap: 14px; justify-content: center; font-size: .78rem; margin-bottom: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.sw.free { background: var(--gold-soft); border: 1px solid #e2d3bd; }
.sw.mine { background: var(--gold); }
.sw.taken { background: #e2e2e2; }

.ticket {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #fff, var(--gold-soft));
  border: 2px dashed var(--gold); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px;
  color: var(--ink);
}
.ticket.big { padding: 16px; }
.seatcode { text-align: center; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--gold-dark); }
.seatcode small { display: block; font-size: .6rem; color: var(--body); font-weight: 500; font-family: "Heebo", sans-serif; }

/* ---------- recintos ---------- */
.venue-row { display: flex; gap: 12px; align-items: center; }
.vicon {
  font-size: 1.7rem; width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--graphite));
  border-radius: 50%;
}
.vicon.big { width: 64px; height: 64px; font-size: 2rem; }
.venue-hero { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.venue-hero .page-title { margin: 0; }

/* ---------- forms ---------- */
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 12px; color: var(--ink); font-family: "DM Sans", sans-serif; }
.form input, .form select {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px;
  border: 2px solid var(--line); border-radius: 14px; font-size: 1rem; font-family: inherit;
  background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--gold); }
.ferr { color: #dc2626; font-size: .85rem; min-height: 1.2em; margin-bottom: 8px; }
.form .btn { width: 100%; margin: 4px 0; }

/* ---------- perfil ---------- */
.profile { text-align: center; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--graphite)); color: #fff;
  font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-family: "Archivo", sans-serif;
}

/* ---------- faq (acordeón como el sitio) ---------- */
.faq { background: var(--light); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.faq summary {
  padding: 15px; font-weight: 600; cursor: pointer; font-size: .92rem; list-style: none;
  color: var(--gold); font-family: "Archivo", sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "›"; float: right; color: var(--blue); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq[open] { background: linear-gradient(90deg, var(--gold), var(--graphite)); border: none; }
.faq[open] summary { color: #fff; }
.faq[open] summary::after { content: "‹"; color: #fff; }
.faq p { padding: 0 15px 15px; font-size: .88rem; color: rgba(255,255,255,.92); line-height: 1.55; }
.faq:not([open]) p { color: var(--body); }

/* ---------- tabbar ---------- */
nav.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 1.25rem; color: #b9b3aa; padding: 6px 2px; font-family: "Heebo", sans-serif;
}
.tab span { font-size: .6rem; font-weight: 600; font-family: "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.tab.on { color: var(--gold-dark); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(20px);
  background: var(--graphite-dark); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; opacity: 0; transition: all .3s; z-index: 99;
  max-width: 90vw; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b91c1c; }

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
