/* TuLlegada PR — palette (strict) */
:root {
  --off-white: #F5F5F0;
  --charcoal: #151515;
  --lime: #C6FF00;
  --gris: #A3A3A3;
  --white: #FFFFFF;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.55;
}
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 28px;
}
.nav img.logo { height: 42px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; }
.nav-links a { color: var(--white); text-decoration: none; opacity: .85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--lime); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal); color: var(--white);
  overflow: hidden; text-align: center;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.hero-inner { position: relative; z-index: 2; padding: 48px 20px; max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -1px; margin-bottom: 8px; }
.hero p.sub { color: var(--gris); margin-bottom: 28px; font-size: 1.1rem; }

/* ---------- bib search (modern charcoal panel) ---------- */
.search-panel {
  background: rgba(21,21,21,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 26px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.search-field { display: flex; flex-direction: column; text-align: left; min-width: 200px; flex: 1; }
.search-field label { font-size: .78rem; color: var(--gris); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .08em; }
.search-field select, .search-field input {
  background: var(--off-white); border: none; border-radius: 10px;
  padding: 13px 14px; font-size: 1rem; color: var(--charcoal);
}
.btn {
  display: inline-block; border: none; cursor: pointer; font-weight: 800;
  border-radius: 10px; padding: 14px 26px; font-size: 1rem;
  text-decoration: none; transition: transform .08s ease;
}
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-ghost { background: transparent; border: 2px solid var(--charcoal); color: var(--charcoal); }
.search-panel .btn { align-self: flex-end; }

/* ---------- sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 20px; }
.section h2 { font-size: 1.9rem; letter-spacing: -.5px; margin-bottom: 6px; text-align: center; }
.section p.lead { text-align: center; color: var(--gris); margin-bottom: 32px; }

/* ---------- package list (white cards) ---------- */
.pkg-list { display: flex; flex-direction: column; gap: 18px; max-width: 680px; margin: 0 auto; }
.pkg-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: 0 6px 24px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.05);
}
.pkg-badge {
  display: inline-block; background: var(--lime); color: var(--charcoal);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.pkg-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.pkg-price { font-size: 3rem; font-weight: 900; letter-spacing: -2px; line-height: 1.1; }
.pkg-price small { font-size: 1.4rem; vertical-align: super; }
.pkg-desc { color: var(--gris); margin: 8px 0 16px; }
.pkg-benefits { list-style: none; margin-bottom: 20px; }
.pkg-benefits li { padding: 5px 0; font-weight: 500; }
.pkg-benefits li::before { content: "✓"; color: #4c8a00; font-weight: 900; margin-right: 10px; }
.pkg-card .btn { width: 100%; text-align: center; }

/* ---------- event cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto; }
.event-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.07); text-decoration: none; display: block;
  border: 1px solid rgba(0,0,0,.05);
}
.event-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.event-card .body { padding: 20px 22px; }
.event-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.event-card .meta { color: var(--gris); font-size: .9rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.g-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--charcoal); }
.g-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.g-num { position: absolute; top: 8px; left: 8px; background: rgba(21,21,21,.8);
  color: var(--white); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.g-check { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid var(--white); background: rgba(21,21,21,.55);
  color: var(--white); font-size: 1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; }
.g-item.selected .g-check { background: var(--lime); color: var(--charcoal); border-color: var(--lime); }
.cart-bar { position: sticky; bottom: 16px; margin: 24px auto 0; max-width: 640px;
  background: var(--charcoal); color: var(--white); border-radius: 14px;
  padding: 14px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.cart-bar .btn { margin-left: auto; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,.92); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; }
.lightbox .lb-bar { margin-top: 14px; display: flex; gap: 12px; }
.lightbox .close { position: absolute; top: 18px; right: 24px; color: #fff;
  font-size: 2rem; cursor: pointer; background: none; border: none; }

/* ---------- forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px;
  max-width: 620px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.form-card label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 10px;
  font-size: 1rem; background: var(--off-white); font-family: inherit;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .btn { margin-top: 20px; width: 100%; }
.checkline { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .95rem; }
.checkline input { width: auto; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 10px; margin-bottom: 10px;
  padding: 16px 20px; cursor: pointer; }
.faq summary { font-weight: 700; }

/* ---------- checkout ---------- */
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 18px; align-items: center; }
.pay-logos span { background: var(--white); border: 1.5px solid #e2e2e2; border-radius: 8px;
  padding: 8px 14px; font-size: .82rem; font-weight: 700; color: #444; }
.order-summary { background: var(--charcoal); color: var(--white); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 24px; }
.order-summary .total { font-size: 2rem; font-weight: 900; color: var(--lime); }
.thumbs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumbs-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* ---------- poll ---------- */
.poll-row { display: flex; align-items: center; gap: 14px; background: var(--white);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.poll-rank { font-size: 1.4rem; font-weight: 900; width: 40px; }
.poll-bar { height: 12px; background: var(--lime); border-radius: 999px; min-width: 8px; }
.poll-count { margin-left: auto; font-weight: 800; white-space: nowrap; }

/* ---------- admin ---------- */
.admin-wrap { display: flex; min-height: 80vh; }
.admin-side { width: 230px; background: var(--charcoal); color: var(--white); padding: 24px 0; }
.admin-side a { display: block; color: var(--white); text-decoration: none; padding: 11px 24px; opacity: .8; }
.admin-side a:hover, .admin-side a.active { opacity: 1; background: rgba(198,255,0,.12);
  border-left: 4px solid var(--lime); }
.admin-main { flex: 1; padding: 32px; max-width: 1000px; }
.admin-main h1 { margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 20px; }
.stat .n { font-size: 2rem; font-weight: 900; }
.stat .l { color: var(--gris); font-size: .9rem; }
table.admin-tbl { width: 100%; background: var(--white); border-radius: var(--radius);
  border-collapse: collapse; overflow: hidden; margin-bottom: 24px; }
table.admin-tbl th, table.admin-tbl td { padding: 12px 16px; text-align: left;
  border-bottom: 1px solid #eee; font-size: .95rem; }
table.admin-tbl th { background: var(--charcoal); color: var(--white); }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag-detected { background: #d9f5c2; color: #2c6e00; }
.tag-review { background: #ffe9a8; color: #8a5b00; }
.tag-pending { background: #e4e4e4; color: #555; }
.tag-manual { background: #d7ecff; color: #0b5fa5; }
.tag-paid { background: #d9f5c2; color: #2c6e00; }
.tag-pending-pay { background: #ffe9a8; color: #8a5b00; }
.admin-main .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
input.inline, select.inline { padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: .95rem; }

/* footer */
.site-footer { background: var(--charcoal); color: var(--gris); text-align: center;
  padding: 32px 20px; margin-top: 40px; font-size: .9rem; }
.site-footer img { height: 34px; margin-bottom: 10px; }

.flash { max-width: 680px; margin: 18px auto 0; padding: 12px 18px; border-radius: 10px;
  background: #fff3c4; border: 1px solid #e8c93d; }
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: .9rem; }
  .search-panel { flex-direction: column; }
  .search-panel .btn { align-self: stretch; }
}
