/* ==========================================================================
   EVIL COMPANY — BOLETERA DIGITAL
   Estética: Luxury Obsidian + Platinum + Crimson Editorial
   ========================================================================== */

:root {
  --bg-obsidian: #060608;
  --bg-surface: #0e0e13;
  --bg-elevated: #16161e;
  --bg-glass: rgba(10, 10, 14, 0.78);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-primary: #f5f5f7;
  --text-secondary: #9c9ca8;
  --text-muted: #656572;
  --accent-crimson: #c81e2b;
  --accent-crimson-glow: rgba(200, 30, 43, 0.28);
  --accent-platinum: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(200, 30, 43, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 255, 255, 0.04), transparent 55%);
  min-height: 100vh;
}

.font-display {
  font-family: "Cinzel", Georgia, serif;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Glass Navbar */
.ec-nav {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Logo Crest */
.ec-crest {
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7), 0 0 14px rgba(200, 30, 43, 0.18);
  object-fit: cover;
}

/* Hero Banner */
.ec-hero-backdrop {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.ec-hero-gradient {
  background:
    linear-gradient(90deg, rgba(6, 6, 8, 0.96) 0%, rgba(6, 6, 8, 0.78) 52%, rgba(6, 6, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.15) 0%, rgba(6, 6, 8, 0.92) 100%);
}

/* Event Cards */
.ec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}

.ec-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ec-card-img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ec-card:hover .ec-card-img {
  transform: scale(1.05);
}

/* Buttons */
.ec-btn-primary {
  background: var(--accent-platinum);
  color: #060608;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.ec-btn-primary:hover:not(:disabled) {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.14);
}

.ec-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ec-btn-crimson {
  background: linear-gradient(135deg, #c81e2b 0%, #991b1b 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ec-btn-crimson:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 8px 28px var(--accent-crimson-glow);
}

.ec-btn-crimson:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ec-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.ec-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
}

/* Inputs */
.ec-input {
  background: #0b0b10;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* Modal Backdrop */
.ec-modal-backdrop {
  background: rgba(2, 2, 4, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ticket Pass Perforation (boleto.html) */
.ec-ticket-pass {
  background: linear-gradient(180deg, #13131a 0%, #0b0b0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 65px -15px rgba(0, 0, 0, 0.9);
  position: relative;
}

.ec-ticket-divider {
  position: relative;
  border-top: 2px dashed rgba(255, 255, 255, 0.16);
}

.ec-ticket-divider::before,
.ec-ticket-divider::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--bg-obsidian);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ec-ticket-divider::before {
  left: -13px;
}

.ec-ticket-divider::after {
  right: -13px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #272730;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f4d;
}

/* Pulse dot */
@keyframes ecPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.92); }
}
.ec-pulse {
  animation: ecPulse 1.8s infinite ease-in-out;
}

/* Holographic Live Pass Seal (Anti-Screenshot Visual Indicator) */
@keyframes ecHoloShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.ec-holo-bar {
  background: linear-gradient(
    90deg,
    rgba(200, 30, 43, 0.85),
    rgba(255, 255, 255, 0.9),
    rgba(161, 161, 170, 0.7),
    rgba(200, 30, 43, 0.85)
  );
  background-size: 260% 100%;
  animation: ecHoloShift 3.6s linear infinite;
}

/* Print Styles for Digital Tickets */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .ec-ticket-pass {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    page-break-inside: avoid;
  }
}
