/* El Pase — Banner y modal de cookies (usa los tokens de global.css). */
.ep-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  max-width: 760px;
  margin-inline: auto;
}
.ep-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.ep-cookie-banner__body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
}
.ep-cookie-banner__text {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
  flex: 1 1 280px;
  line-height: 1.5;
}
.ep-cookie-banner__text a {
  color: var(--accent-deep);
  text-decoration: underline;
}
.ep-cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ep-btn {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ep-btn--solid {
  background: var(--accent);
  color: #fff;
}
.ep-btn--solid:hover {
  background: var(--accent-hover);
}
.ep-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.ep-btn--ghost:hover {
  border-color: var(--ink);
}
.ep-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ep-cookie-modal.is-visible {
  display: flex;
}
.ep-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 29, 0.5);
  backdrop-filter: blur(2px);
}
.ep-cookie-modal__panel {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
}
.ep-cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.5rem;
}
.ep-cookie-modal__head h2 {
  font-family: var(--font-head);
  font-size: var(--step-1);
  margin: 0;
}
.ep-cookie-modal__x {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-dim);
}
.ep-cookie-modal__body {
  padding: 0.5rem 1.5rem;
}
.ep-cookie-modal__body > p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.ep-cat {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.ep-cat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ep-cat__top strong {
  font-size: var(--step-0);
}
.ep-cat p {
  margin: 0.35rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-dim);
  line-height: 1.5;
}
.ep-cat__badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.ep-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: none;
}
.ep-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ep-switch span {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background 0.2s var(--ease);
  cursor: pointer;
}
.ep-switch span::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.ep-switch input:checked + span {
  background: var(--accent);
}
.ep-switch input:checked + span::before {
  transform: translateX(18px);
}
.ep-switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ep-cookie-modal__foot {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem 1.5rem;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .ep-cookie-banner__actions {
    width: 100%;
  }
  .ep-cookie-banner__actions .ep-btn {
    flex: 1;
  }
}
