:root {
  --blue: #0a4598;
  --blue-dark: #062d66;
  --orange: #f27d17;
  --bg: #f4f7fb;
  --text: #15243b;
  --muted: #66758a;
  --line: rgba(10, 69, 152, .14);
  --radius: 28px;
  --shadow: 0 18px 50px rgba(9, 31, 66, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.hidden { display: none; }

.intro-screen {
  position: fixed; inset: 0; z-index: 99; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at center, rgba(242,125,23,.35), rgba(6,45,102,.96) 55%, #04162f 100%);
  color: white; transition: opacity .6s ease, transform .6s ease;
}
.intro-screen.hide { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-logo { width: min(340px, 78vw); border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.25); animation: pulse 1.8s ease-in-out infinite; position: relative; z-index: 2; }
.intro-screen h1 { margin-top: 20px; font-size: clamp(30px, 5vw, 48px); position: relative; z-index: 2; }
.intro-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.1); filter: blur(30px); }
@keyframes pulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.main-landing { opacity: 0; transition: opacity .7s ease; }
.main-landing.show { opacity: 1; }
.main-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; overflow: hidden; }
.main-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.main-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(4,22,47,.88), rgba(10,69,152,.64) 45%, rgba(242,125,23,.40)); }
.hero-copy {
  position: relative; z-index: 2; width: min(980px, 100%); color: white; text-align: center;
  backdrop-filter: blur(7px); background: rgba(4, 20, 44, .32); border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px; padding: 34px 26px; box-shadow: var(--shadow);
}
.hero-logo.small-version { width: min(230px, 55vw); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.badge-top { display: inline-block; margin: 16px 0 10px; background: rgba(242,125,23,.18); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.hero-copy h2 { font-size: clamp(34px, 5vw, 58px); margin: 8px 0; }
.hero-copy p { color: rgba(255,255,255,.92); font-size: 18px; max-width: 680px; margin: 0 auto 26px; }
.city-button-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.city-modern-btn {
  display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 22px 22px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,255,.95));
  color: var(--text); box-shadow: 0 18px 38px rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.65);
  transition: transform .18s ease, box-shadow .18s ease;
}
.city-modern-btn:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(0,0,0,.2); }
.city-name { font-size: 24px; font-weight: 800; color: var(--blue-dark); }
.city-action { color: var(--orange); font-weight: 700; }

.event-hero { position: relative; min-height: 520px; overflow: hidden; }
.event-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-top { object-position: center top; }
.overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,45,102,.92), rgba(242,125,23,.42)); z-index: 1; }
.dark-strong { background: linear-gradient(100deg, rgba(5,18,42,.88), rgba(10,69,152,.64), rgba(242,125,23,.38)); }
.event-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 48px 20px;
  display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 30px;
}
.wider-layout { max-width: 1280px; }
.event-logo { width: 100%; max-width: 270px; filter: drop-shadow(0 12px 26px rgba(0,0,0,.18)); }
.event-panel {
  background: rgba(255,255,255,.94); border-radius: 28px; padding: 30px; box-shadow: var(--shadow);
}
.glass-panel { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.back-link { display: inline-block; margin-bottom: 10px; color: var(--blue); font-weight: 700; }
.event-panel h1 { margin: 6px 0 14px; font-size: clamp(28px, 4vw, 42px); }
.event-panel p { margin: 8px 0; font-size: 17px; }
.form-wrapper { max-width: 1120px; margin: -56px auto 70px; padding: 0 20px; position: relative; z-index: 4; }
.intro-card, .payment-card, .form-card, .stat-card, .login-card, .thanks-card, .report-box {
  background: white; border-radius: 28px; box-shadow: var(--shadow); padding: 28px; margin-bottom: 22px;
}
.info-grid, .payment-grid, .stats-grid, .report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.small-note { color: var(--muted); margin-top: 10px; }
.event-form { display: grid; gap: 18px; }
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-group { display: grid; gap: 8px; }
.field-group label { font-weight: 700; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(8,36,89,.15);
  outline: none; font-size: 16px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: rgba(10,69,152,.55); box-shadow: 0 0 0 4px rgba(10,69,152,.08); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-grid input { width: auto; }
.separator { height: 1px; background: var(--line); margin: 4px 0; }
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px;
  border-radius: 18px; font-weight: 800; cursor: pointer; border: none; transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), #ff9c34); color: white; box-shadow: 0 10px 24px rgba(242,125,23,.28); }
.btn-outline { border: 1px solid var(--line); background: white; color: var(--blue-dark); }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-2px); }
.full-width { width: 100%; }
.modern-submit { font-size: 17px; padding: 16px 24px; }

.thanks-body, .login-body, .admin-body { min-height: 100vh; }
.thanks-body, .login-body {
  display: grid; place-items: center; padding: 20px;
  background: linear-gradient(145deg, rgba(10,69,152,.96), rgba(242,125,23,.92));
}
.thanks-card, .login-card { max-width: 680px; width: 100%; text-align: center; }
.thanks-logo, .login-logo { width: 180px; border-radius: 18px; margin-bottom: 12px; }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.alert-error { background: #ffe6e6; color: #9d0b0b; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }

.admin-body { padding: 24px; }
.admin-topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-card { text-align: center; }
.stat-card span { color: var(--muted); display: block; margin-bottom: 8px; }
.stat-card strong { font-size: 34px; color: var(--blue); }
.filters {
  display: grid; grid-template-columns: 220px 1fr 180px 180px auto; gap: 12px;
  background: white; border-radius: 24px; box-shadow: var(--shadow); padding: 18px; margin: 20px 0;
}
.table-wrap { background: white; border-radius: 24px; box-shadow: var(--shadow); overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1500px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; position: sticky; top: 0; }
.report-box h3 { margin-top: 0; }
.report-list { display: grid; gap: 8px; }
.report-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f8fafc; }
.report-item strong { color: var(--blue-dark); }
.pill-link { display:inline-flex; align-items:center; padding:10px 16px; border-radius:999px; background:#eef4ff; color:var(--blue-dark); font-weight:700; }

@media (max-width: 900px) {
  .event-content { grid-template-columns: 1fr; text-align: center; }
  .event-logo { margin: 0 auto; }
  .grid-2, .grid-3, .filters { grid-template-columns: 1fr; }
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .hero-copy { padding: 26px 18px; }
  .city-name { font-size: 21px; }
}

textarea { resize: vertical; min-height: 110px; }
.hero-actions { margin-top: 20px; }
.light-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.city-extra { color: #60708a; font-size: 14px; }
.city-disabled { opacity: .92; background: linear-gradient(180deg, rgba(230,233,239,.98), rgba(242,243,246,.95)); }
.city-disabled .city-action { color: #a94442; }
.settings-card { background: white; border-radius: 28px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 20px; }
.stat-card small { color: var(--muted); display:block; margin-top: 8px; }
.delete-link { color: #b42318; font-weight: 700; }
.soldout-card { text-align: center; }
.soldout-card h3 { margin-top: 0; }

/* Actualización visual */
.main-hero-clear { align-items: flex-end; padding: 90px 20px 36px; }
.main-bg-visible { object-fit: contain; object-position: center bottom; background: linear-gradient(180deg,#0d2b57 0%, #1c4f94 45%, #efc7a4 100%); }
.soft-overlay { background: linear-gradient(180deg, rgba(4,22,47,.18), rgba(10,69,152,.12) 35%, rgba(242,125,23,.10) 100%); }
.hero-copy-light { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); max-width: 920px; margin-bottom: 18px; }
.admin-mini-link {
  position: fixed; top: 14px; right: 16px; z-index: 5; padding: 8px 14px; border-radius: 999px;
  background: rgba(6,45,102,.82); color: #fff; border: 1px solid rgba(255,255,255,.28); font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.hero-copy h2 { font-size: clamp(34px, 5vw, 56px); }
.city-modern-btn { min-height: 154px; justify-content: center; border-radius: 26px; }
.city-disabled { opacity: .92; cursor: not-allowed; background: linear-gradient(180deg, rgba(250,250,250,.96), rgba(238,241,246,.95)); }
.city-disabled .city-action { color: #8a4b0f; }
.city-extra { color: #516176; }
.pill-link { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; background: #0a4598; color: #fff; font-weight: 700; }
.disabled-pill { background: #9aa7b7; }
.report-box-left, .settings-card .report-box { text-align: left; }
.filters-extended { display:grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap:12px; align-items:end; }
.filters { background:#fff; padding:18px; border-radius:22px; box-shadow: var(--shadow); margin: 18px 0; }
.settings-card { background:#fff; border-radius:28px; box-shadow: var(--shadow); padding:28px; margin-bottom:22px; }
.settings-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap:18px; }
.table-wrap { overflow:auto; background:#fff; border-radius:24px; box-shadow: var(--shadow); }
.table-wrap table { width:100%; border-collapse: collapse; min-width: 1500px; }
.table-wrap th, .table-wrap td { padding:12px 10px; border-bottom:1px solid rgba(0,0,0,.06); text-align:left; vertical-align: top; }
.delete-link { color:#b00020; font-weight:700; }
@media (max-width: 900px) {
  .main-hero-clear { align-items:center; padding-top:72px; }
  .main-bg-visible { object-fit: cover; object-position: center center; }
  .admin-mini-link { top: 10px; right: 10px; }
}
