/* ELP Taquilla Virtual  form payment shell */
:root {
  --brand: #0b3d5c;
  --brand-ink: #ffffff;
  --accent: #1f9e8f;
  --accent-ink: #06251f;
  --ink: #14212b;
  --muted: #5b6b78;
  --line: rgba(20, 33, 43, 0.12);
  --paper: rgba(255, 255, 255, 0.88);
  --paper-solid: #f4f7f9;
  --shadow: 0 24px 60px rgba(8, 28, 42, 0.18);
  --radius: 18px;
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.elp-taquilla {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-solid);
  line-height: 1.5;
}

body.elp-taquilla .atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 8% -10%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    linear-gradient(165deg, #e8eef2 0%, #f7fafb 48%, #e5eef3 100%);
}

body.elp-taquilla .atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 33, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 43, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.elp-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.elp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.elp-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.elp-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(8, 28, 42, 0.1);
}

.elp-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(8, 28, 42, 0.14);
}

.elp-brand-text {
  min-width: 0;
}

.elp-brand-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.elp-brand-name {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.elp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.elp-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 650;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.elp-actions a:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  transform: translateY(-1px);
}

.elp-actions a.is-danger {
  color: #8a2430;
}

.elp-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .elp-layout {
    grid-template-columns: 1fr;
  }
}

.elp-hero {
  padding: 0.35rem 0.25rem 0.5rem;
}

.elp-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.elp-hero p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.elp-steps {
  display: flex;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  flex-wrap: wrap;
}

.elp-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.elp-step.is-active {
  background: var(--brand);
  border-color: transparent;
  color: var(--brand-ink);
}

.elp-step-num {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
}

.elp-step:not(.is-active) .elp-step-num {
  background: rgba(20, 33, 43, 0.08);
}

.elp-panel {
  background: var(--paper);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.2rem;
}

.elp-panel-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.elp-panel-sub {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.elp-field {
  margin-bottom: 0.9rem;
}

.elp-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.elp-field input[type="text"],
.elp-field input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.elp-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 70%, var(--brand));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.elp-field input[readonly] {
  background: #f3f6f8;
  color: var(--muted);
}

.elp-field-error {
  display: block;
  margin-top: 0.35rem;
  color: #a12836;
  font-size: 0.8rem;
  font-weight: 650;
}

.elp-field input.error {
  border-color: #c44755;
}

.elp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .elp-grid-2 {
    grid-template-columns: 1fr;
  }
}

.elp-submit {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--brand)));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.elp-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.elp-submit:active {
  transform: translateY(0);
}

.elp-secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.elp-secure svg {
  flex: 0 0 auto;
}

.elp-foot {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.elp-foot a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.elp-foot a:hover {
  text-decoration: underline;
}

.elp-blocked {
  max-width: 420px;
  margin: 15vh auto;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.elp-blocked h1 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

/* Fallback when color-mix unsupported */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  body.elp-taquilla .atmosphere {
    background: linear-gradient(165deg, #d9e6ee 0%, #f7fafb 50%, #dce9ef 100%);
  }
  .elp-submit {
    background: #1f9e8f;
  }
  .elp-field input:focus {
    border-color: #1f9e8f;
    box-shadow: 0 0 0 4px rgba(31, 158, 143, 0.2);
  }
}
