:root {
  --plum-magenta: #ff3c78;
  --plum-yellow: #fed049;
  --plum-green: #05f29b;
  --plum-purple: #a64ac9;
  --plum-dark: #06030d;
  --plum-light: #f9f5ff;
  --plum-mid: #241626;
}

.plum-rifa-section {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 6vw, 5rem) clamp(4rem, 7vw, 6rem);
  background: radial-gradient(circle at 20% 20%, rgba(255, 60, 120, 0.08), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(5, 242, 155, 0.08), transparent 45%),
              var(--plum-dark);
  color: #fff;
  overflow: hidden;
  font-family: "Montserrat", "Poppins", sans-serif;
}

.plum-rifa-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 60, 120, 0.18) 0%, rgba(6, 3, 13, 0.9) 65%);
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
}

.plum-rifa-wrapper {
  position: relative;
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  z-index: 1;
}

.plum-rifa-hero {
  display: grid;
  gap: clamp(2rem, 3vw, 2.8rem);
  padding: clamp(2.4rem, 4vw, 3.4rem);
  background: rgba(12, 8, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

.plum-rifa-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plum-rifa-hero-content p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.plum-pill {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 60, 120, 0.18);
  color: var(--plum-magenta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.plum-rifa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.plum-rifa-tags span {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.plum-rifa-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 60, 120, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.plum-rifa-tag-link:hover,
.plum-rifa-tag-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 60, 120, 0.35);
  box-shadow: 0 12px 24px rgba(255, 60, 120, 0.35);
}

.plum-rifa-legends {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  row-gap: 0.75rem;
  align-items: center;
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.plum-rifa-legends span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.45rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.plum-rifa-status-card {
  background: rgba(6, 3, 13, 0.85);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 1.75rem;
}

.plum-rifa-status-card h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plum-rifa-progress .progress-bar {
  position: relative;
  height: 14px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.plum-rifa-progress .progress-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--plum-magenta) 0%, #ff8da1 100%);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
  transition: width 0.45s ease;
}

.plum-rifa-progress .progress-bar span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.plum-rifa-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  color: #fff;
}

.stat-card span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}

.plum-rifa-finances {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.plum-rifa-finances small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.plum-rifa-finances strong {
  font-size: 1.25rem;
  color: #fff;
}

.plum-rifa-alert {
  margin: 2rem 0 0;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
}

.plum-rifa-alert-warning { background: rgba(254, 208, 73, 0.18); color: var(--plum-yellow); }
.plum-rifa-alert-error { background: rgba(255, 60, 120, 0.18); color: var(--plum-magenta); }

.plum-rifa-content {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .plum-rifa-content {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.plum-rifa-grid-card,
.plum-rifa-summary-card,
.plum-rifa-info-card {
  background: rgba(9, 6, 15, 0.82);
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.plum-rifa-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plum-rifa-card-header h2,
.plum-rifa-card-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.plum-rifa-helper {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.plum-rifa-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 0.65rem;
}

.plum-rifa-number {
  position: relative;
  height: 52px;
  border-radius: 18px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.plum-rifa-number.status-disponible:hover {
  transform: translateY(-4px);
  background: rgba(5, 242, 155, 0.18);
  color: #fff;
  box-shadow: 0 14px 25px rgba(5, 242, 155, 0.18);
}

.plum-rifa-number.status-pendiente {
  background: rgba(254, 208, 73, 0.18);
  color: var(--plum-yellow);
  cursor: not-allowed;
}

.plum-rifa-number.status-vendido {
  background: rgba(255, 60, 120, 0.2);
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
}

.plum-rifa-number.is-active {
  background: linear-gradient(135deg, var(--plum-magenta), #ff7aa6);
  color: #fff;
  box-shadow: 0 16px 30px rgba(255, 60, 120, 0.35);
}

.plum-rifa-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.plum-rifa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.85rem;
}

.plum-rifa-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.plum-rifa-totals {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.plum-rifa-totals span {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.plum-rifa-total-due {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 60, 120, 0.16);
  border: 1px solid rgba(255, 60, 120, 0.4);
}

.plum-rifa-total-due strong {
  font-size: 1.5rem;
  color: #fff;
}

.plum-rifa-form {
  display: grid;
  gap: 1rem;
}

.plum-rifa-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.plum-rifa-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.plum-rifa-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.plum-primary-btn,
.plum-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.plum-primary-btn {
  background: linear-gradient(135deg, var(--plum-magenta), #ff7aa6);
  color: #fff;
  box-shadow: 0 18px 30px rgba(255, 60, 120, 0.3);
}

.plum-primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(255, 60, 120, 0.35);
}

.plum-primary-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.plum-secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.plum-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.plum-rifa-info-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.plum-rifa-info-card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.plum-rifa-prizes {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 1rem;
}

.plum-rifa-prizes h4 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.plum-rifa-prizes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.plum-rifa-prizes li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.plum-rifa-prizes li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--plum-magenta);
  font-size: 0.85rem;
}

.plum-rifa-prize-section {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 32px;
  background: rgba(9, 6, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.plum-rifa-prize-header {
  text-align: center;
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.plum-rifa-prize-header h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plum-rifa-prize-header p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.plum-rifa-prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.4rem, 3vw, 2rem);
}

.plum-rifa-prize-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: 24px;
  background: rgba(12, 8, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plum-rifa-prize-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(255, 60, 120, 0.2);
}

.plum-rifa-prize-meta h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.plum-rifa-prize-meta p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.plum-rifa-prize-btn {
  width: fit-content;
  padding-inline: 1.4rem;
  font-size: 0.85rem;
}

.plum-rifa-prize-empty {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
}

.plum-rifa-prize-link {
  margin-top: 1.2rem;
  font-size: 0.8rem;
}

.plum-rifa-prize-backdrop {
  z-index: 1001;
}

.plum-rifa-prize-modal {
  width: min(560px, 100%);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}

.plum-rifa-prize-image {
  margin-top: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.4);
}

.plum-rifa-prize-image img {
  display: block;
  width: 100%;
  height: auto;
}

body.is-rifa-prize-open {
  overflow: hidden;
}

#rifa-premios-listado.is-highlighted {
  box-shadow: 0 0 0 3px rgba(255, 60, 120, 0.45);
  transition: box-shadow 0.8s ease;
}

.plum-rifa-prize-grid .plum-primary-btn {
  justify-self: flex-start;
}

@media (max-width: 768px) {
  .plum-rifa-prize-section {
    margin-top: 3rem;
    padding: 1.8rem;
  }

  .plum-rifa-prize-card {
    padding: 1.4rem;
  }
}

.plum-rifa-features {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.plum-rifa-features article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.plum-rifa-features .feature-icon {
  font-size: 1.8rem;
}

.plum-rifa-steps {
  margin-top: 4rem;
}

.plum-rifa-steps h2 {
  margin: 0 0 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plum-rifa-steps-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(12, 8, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.step-card span {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.step-card p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
}

.plum-rifa-support {
  margin-top: 4rem;
}

.plum-rifa-support-card {
  background: linear-gradient(135deg, rgba(5, 242, 155, 0.15), rgba(6, 3, 13, 0.85));
  border-radius: 24px;
  padding: 2.2rem;
  border: 1px solid rgba(5, 242, 155, 0.25);
}

.plum-rifa-support-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.plum-rifa-support-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.support-bottom {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
}

.plum-rifa-modal-backdrop {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(6, 3, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 999;
}

.plum-rifa-modal {
  width: min(420px, 100%);
  background: rgba(12, 8, 18, 0.95);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.plum-rifa-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plum-rifa-modal header h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

.plum-rifa-modal header button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  cursor: pointer;
}

.plum-rifa-modal-body p:first-of-type {
  font-size: 1.05rem;
  font-weight: 600;
}

.plum-rifa-payment-options {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.plum-rifa-payment-panel {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1rem;
}

.plum-rifa-payment-panel ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.plum-rifa-payment-panel pre {
  margin: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.plum-rifa-loader {
  display: grid;
  place-items: center;
  background: var(--plum-dark);
  color: #fff;
  min-height: 70vh;
  gap: 1.5rem;
  font-size: 1.05rem;
}

.plum-rifa-bubble {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--plum-magenta);
  animation: plumBounce 0.9s infinite alternate;
}

.plum-rifa-bubble.bubble-2 { animation-delay: 0.15s; }
.plum-rifa-bubble.bubble-3 { animation-delay: 0.3s; }

@keyframes plumBounce {
  from { transform: translateY(0); opacity: 0.4; }
  to { transform: translateY(-14px); opacity: 1; }
}

@media (max-width: 768px) {
  .plum-rifa-section {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 2.75rem 1rem 3.5rem;
  }

  .plum-rifa-wrapper {
    padding: 0;
  }

  .plum-rifa-hero,
  .plum-rifa-grid-card,
  .plum-rifa-summary-card,
  .plum-rifa-info-card,
  .plum-rifa-support-card {
    padding: 1.6rem;
  }

  .plum-rifa-legends {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .plum-rifa-legends span {
    width: 100%;
    justify-content: flex-start;
  }

  .plum-rifa-status-card {
    gap: 1.2rem;
  }

  .plum-rifa-finances {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .plum-rifa-numbers-grid {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 0.5rem;
  }

  .plum-rifa-number {
    height: 46px;
  }
}
