:root {
  color-scheme: light;
  --forest: #087f5b;
  --forest-dark: #064e3b;
  --forest-soft: #e5f7ef;
  --coral: #f2385a;
  --coral-dark: #c9183b;
  --navy: #153b72;
  --blue: #2867d8;
  --aqua: #20bfc4;
  --gold: #f5bd24;
  --sky: #edf6ff;
  --ink: #17233d;
  --muted: #657086;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --line: #dbe3ef;
  --success: #16845d;
  --warning: #a86600;
  --danger: #b73535;
  --shadow: 0 18px 48px rgba(21, 59, 114, 0.13);
}

/* Administracion v2 */
.admin-v2 {
  --admin-topbar: 68px;
  --admin-sidebar: 248px;
  min-height: 100svh;
  background: #f3f5f4;
  color: #17211f;
  letter-spacing: 0;
}

.admin-v2 svg {
  display: block;
  flex: 0 0 auto;
}

.admin-v2 button,
.admin-v2 a,
.admin-v2 input,
.admin-v2 select,
.admin-v2 textarea {
  letter-spacing: 0;
}

.admin-login-page {
  background: #eef2f0;
}

.admin-login-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

.admin-login-context {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  justify-content: space-between;
  flex-direction: column;
  padding: 48px max(48px, 7vw);
  overflow: hidden;
  background: #123a30 url("media/hero-premios.webp") center / cover no-repeat;
  color: white;
}

.admin-login-context::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 35, 27, 0.94), rgba(5, 35, 27, 0.55)), linear-gradient(180deg, rgba(5, 35, 27, 0.08), rgba(5, 35, 27, 0.72));
  content: "";
}

.admin-login-context .brand-copy small,
.admin-login-context > small {
  color: rgba(255, 255, 255, 0.76);
}

.admin-login-context .brand-wordmark span:first-child,
.admin-login-context .brand-wordmark span:last-child {
  text-shadow: none;
}

.admin-login-context .brand-wordmark span:first-child {
  color: #ffffff;
}

.admin-login-context .brand-wordmark span:last-child {
  color: #ff5365;
}

.admin-login-context > div {
  max-width: 660px;
}

.admin-login-context h1 {
  max-width: 650px;
  margin: 10px 0 16px;
  font-size: 3.75rem;
  line-height: 1;
}

.admin-login-context p:not(.eyebrow) {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.admin-login-panel {
  position: relative;
  display: flex;
  width: min(100%, 520px);
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  padding: 48px;
}

.admin-login-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-login-heading h2 {
  margin: 2px 0 0;
  font-size: 2rem;
}

.admin-icon-box,
.admin-kpi-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: #e3f0ea;
  color: var(--forest);
}

.admin-login-panel .admin-form {
  margin-top: 22px;
}

.admin-submit {
  margin-top: 4px;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 24px;
  color: #50605a;
  font-size: 0.88rem;
  font-weight: 800;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-field .icon-button {
  position: absolute;
  top: 4px;
  right: 4px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #d7dfdb;
  border-radius: 5px;
  background: #ffffff;
  color: #40504a;
  cursor: pointer;
}

.icon-button:hover {
  border-color: #9eb0a8;
  background: #f4f7f5;
  color: var(--forest);
}

.icon-button:focus-visible,
.admin-v2 a:focus-visible,
.admin-v2 button:focus-visible {
  outline: 3px solid rgba(0, 104, 71, 0.2);
  outline-offset: 2px;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.icon-button.primary {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.admin-topbar {
  position: sticky;
  z-index: 90;
  top: 0;
  display: flex;
  min-height: var(--admin-topbar);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 22px;
  border-bottom: 1px solid #dce3df;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.admin-brand img {
  width: 50px;
  height: 50px;
}

.admin-top-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.admin-top-actions form {
  margin: 0;
}

.admin-view-site,
.admin-session-user {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #d7dfdb;
  border-radius: 5px;
  background: #fff;
  color: #40504a;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-session-user {
  min-width: 0;
  border-color: transparent;
  background: #eef3f0;
  color: #1f302a;
}

.admin-session-user span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-button {
  display: none;
}

.admin-layout {
  display: grid;
  min-height: calc(100svh - var(--admin-topbar));
  grid-template-columns: var(--admin-sidebar) minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: var(--admin-topbar);
  display: flex;
  height: calc(100svh - var(--admin-topbar));
  justify-content: space-between;
  flex-direction: column;
  padding: 22px 14px 18px;
  border-right: 1px solid #243b34;
  overflow-y: auto;
  background: #102c24;
  color: white;
}

.admin-sidebar nav {
  display: grid;
  gap: 4px;
}

.admin-sidebar nav a {
  display: grid;
  min-height: 46px;
  align-items: center;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 0 12px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-sidebar nav a.is-active {
  box-shadow: inset 3px 0 0 #e42a3c;
}

.admin-sidebar nav small {
  display: grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
}

.admin-sidebar nav small.is-alert {
  background: #e42a3c;
  color: white;
}

.admin-sidebar-footer {
  display: grid;
  gap: 2px;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-footer span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.admin-sidebar-footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.admin-main {
  min-width: 0;
  padding: 32px clamp(22px, 4vw, 56px) 70px;
}

.admin-page-heading {
  display: flex;
  min-height: 72px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-page-heading h1 {
  margin: 3px 0 4px;
  font-size: 2.25rem;
  line-height: 1.1;
}

.admin-page-heading p:not(.eyebrow) {
  margin: 0;
  color: #64716c;
}

.admin-action-button,
.admin-editor-actions .button,
.admin-v2 .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid #a9d5c1;
  border-radius: 5px;
  background: #eaf7f1;
  box-shadow: 0 8px 22px rgba(19, 92, 67, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #135c43;
  font-weight: 750;
}

.admin-alert.error {
  border-color: #e5b8bd;
  background: #fff0f1;
  color: #8e1d2b;
}

.admin-alert.warning {
  border-color: #e5cb91;
  background: #fff8e8;
  color: #76500e;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-kpi {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid #dce3df;
  border-radius: 6px;
  background: #fff;
}

.admin-kpi-icon {
  width: 42px;
  height: 42px;
}

.admin-kpi-icon.red {
  background: #fbe8ea;
  color: #b31d2e;
}

.admin-kpi-icon.gold {
  background: #fff2d9;
  color: #9b6200;
}

.admin-kpi-icon.blue {
  background: #e6f0f6;
  color: #286786;
}

.admin-kpi > div {
  display: grid;
  min-width: 0;
}

.admin-kpi small,
.admin-kpi span {
  color: #68736f;
  font-size: 0.72rem;
}

.admin-kpi strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.55rem;
  line-height: 1.2;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 20px;
  margin-bottom: 20px;
}

.admin-surface {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce3df;
  border-radius: 6px;
  background: #fff;
}

.admin-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-section-heading h2,
.admin-section-heading h3 {
  margin: 0;
  font-size: 1.12rem;
}

.admin-section-heading p {
  margin: 4px 0 0;
  color: #68736f;
  font-size: 0.82rem;
}

.admin-section-heading > a,
.admin-section-heading > span {
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.admin-operation-list {
  display: grid;
}

.admin-operation-row {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  gap: 13px;
  padding: 12px 0;
  border-top: 1px solid #edf0ee;
}

.admin-operation-row:first-child {
  border-top: 0;
}

.admin-operation-row img {
  width: 64px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
}

.admin-operation-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-operation-row strong,
.admin-operation-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-operation-row span {
  color: #68736f;
  font-size: 0.76rem;
}

.admin-operation-row b {
  color: var(--forest);
  text-align: right;
}

.admin-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeeb;
}

.admin-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #007a51, #e22a3d);
}

.admin-progress-split {
  position: relative;
}

.admin-progress-split span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.admin-progress-split .is-occupied {
  width: var(--occupied, 0%);
  background: #e8b648;
}

.admin-progress-split .is-confirmed {
  z-index: 1;
  width: var(--confirmed, 0%);
  background: #16845d;
}

.admin-readiness ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-readiness li {
  display: grid;
  align-items: center;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #edf0ee;
}

.admin-readiness li:first-child {
  border-top: 0;
}

.admin-readiness li.is-ready > svg {
  color: #16845d;
}

.admin-readiness li.is-missing > svg {
  color: #b42334;
}

.admin-readiness li div {
  display: grid;
}

.admin-readiness li strong {
  font-size: 0.84rem;
}

.admin-readiness li span {
  color: #68736f;
  font-size: 0.74rem;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5ebe8;
  text-align: left;
  vertical-align: middle;
}

.admin-data-table th {
  background: #f7f9f8;
  color: #64716c;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-data-table tr:last-child td {
  border-bottom: 0;
}

.admin-data-table td > strong,
.admin-data-table td > small {
  display: block;
}

.admin-data-table td > small {
  max-width: 300px;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #74807c;
  font-size: 0.7rem;
}

.admin-data-table tr.is-focused td {
  background: #fff9e8;
}

.admin-data-table tr.is-focused td:first-child {
  box-shadow: inset 3px 0 0 #d79b19;
}

.admin-data-table tr.is-focused:focus {
  outline: 0;
}

.admin-focus-label {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: 7px !important;
  padding: 4px 7px;
  border: 1px solid #e7c879;
  border-radius: 4px;
  background: #fff2c8;
  color: #76500e !important;
  font-weight: 850;
}

.admin-focus-label svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.admin-data-table code {
  padding: 3px 5px;
  border-radius: 3px;
  background: #eef2f0;
  font-size: 0.72rem;
}

.admin-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff1d8;
  color: #865500;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-status.active,
.admin-status.confirmed {
  background: #e3f4ec;
  color: #136849;
}

.admin-status.paused,
.admin-status.pending {
  background: #fff1d8;
  color: #865500;
}

.admin-status.finished {
  background: #e7edf0;
  color: #425a65;
}

.admin-status.archived,
.admin-status.cancelled,
.admin-status.expired {
  background: #f0e8e9;
  color: #8f2935;
}

.admin-status.payment_review {
  background: #fce9d8;
  color: #9a4f00;
}

.admin-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 28px;
  color: #68736f;
  text-align: center;
}

.admin-empty > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  color: #9ca9a4;
}

.admin-empty strong {
  color: #26342f;
}

.admin-empty.compact {
  min-height: 80px;
}

.admin-raffles-layout {
  display: grid;
  gap: 20px;
}

.admin-raffles-layout.has-editor {
  align-items: start;
  grid-template-columns: minmax(460px, 1.05fr) minmax(420px, 0.95fr);
}

.admin-raffle-list {
  display: grid;
  gap: 8px;
}

.admin-raffle-item {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e1e7e4;
  border-radius: 5px;
  background: #fff;
}

.admin-raffle-item.is-selected {
  border-color: #78a793;
  box-shadow: inset 3px 0 0 var(--forest);
}

.admin-raffle-item > img {
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
}

.admin-raffle-item-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-raffle-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-raffle-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-raffle-item-copy p,
.admin-raffle-item-copy small {
  margin: 0;
  color: #68736f;
  font-size: 0.73rem;
}

.admin-raffle-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-raffle-actions form {
  margin: 0;
}

.admin-raffle-editor {
  position: sticky;
  top: calc(var(--admin-topbar) + 18px);
  max-height: calc(100svh - var(--admin-topbar) - 36px);
  overflow-y: auto;
}

.admin-form {
  gap: 13px;
}

.admin-form-section {
  display: grid;
  gap: 12px;
  padding: 17px 0 2px;
  border-top: 1px solid #e5ebe8;
}

.admin-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.admin-form-section h3 {
  margin: 0 0 1px;
  font-size: 0.88rem;
}

.admin-real-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #e5ebe8;
  border-bottom: 1px solid #e5ebe8;
}

.admin-real-metrics > div {
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid #e5ebe8;
}

.admin-real-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.admin-real-metrics > div:last-child {
  padding-right: 0;
}

.admin-real-metrics dt,
.admin-real-metrics small {
  color: #77827e;
  font-size: 0.64rem;
  line-height: 1.3;
}

.admin-real-metrics dd {
  display: grid;
  gap: 2px;
  margin: 3px 0 0;
}

.admin-real-metrics dd strong {
  color: var(--forest);
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1;
}

.admin-form label {
  gap: 5px;
  color: #3f4d48;
  font-size: 0.76rem;
}

.admin-form label > small,
.admin-form-help {
  color: #77827e;
  font-size: 0.68rem;
  font-weight: 500;
}

.admin-v2 input,
.admin-v2 select,
.admin-v2 textarea {
  min-height: 42px;
  border-color: #ccd6d1;
  border-radius: 4px;
  font-size: 0.86rem;
}

.admin-v2 textarea {
  min-height: 82px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.admin-draw-config {
  padding: 12px;
  border: 1px solid #dce5e1;
  border-radius: 5px;
  background: #f7faf8;
}

.admin-image-field {
  display: grid;
  align-items: start;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
}

.admin-image-field > img {
  width: 150px;
  aspect-ratio: 4 / 3;
  border: 1px solid #dce3df;
  border-radius: 5px;
  object-fit: cover;
}

.admin-image-field > div {
  display: grid;
  gap: 11px;
}

.admin-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 7px;
}

.admin-editor-tools {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dce3df;
}

.admin-draw-tool {
  padding: 16px;
  border: 1px solid #e4d39e;
  border-radius: 5px;
  background: #fffaf0;
}

.admin-draw-tool h3,
.admin-draw-tool p {
  margin: 0;
}

.admin-draw-tool p,
.admin-tool-note {
  color: #756542;
  font-size: 0.75rem;
}

.admin-draw-tool form {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.admin-danger-button {
  border: 0;
  background: #a81f30;
  color: white;
}

.admin-danger-button:hover {
  background: #861725;
}

.admin-danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-winner-result {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e5cb91;
  border-radius: 5px;
  background: #fff3d9;
  box-shadow: 0 8px 20px rgba(118, 80, 14, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-winner-result span,
.admin-winner-result small {
  color: #76500e;
  font-size: 0.72rem;
}

.admin-winner-shipping {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(118, 80, 14, 0.22);
}

.admin-winner-shipping-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-winner-shipping-title svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #76500e;
}

.admin-winner-shipping address,
.admin-winner-shipping p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-search {
  position: relative;
  width: min(100%, 460px);
}

.admin-search > svg {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #74807c;
}

.admin-search input {
  padding-left: 40px;
}

.admin-toolbar select {
  width: auto;
  min-width: 170px;
}

.admin-export-button {
  min-height: 42px;
  white-space: nowrap;
}

.admin-toolbar-note {
  color: #68736f;
  font-size: 0.78rem;
}

.admin-user {
  display: grid;
  min-width: 150px;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
}

.admin-user > img,
.admin-user > span {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  object-fit: cover;
  font-weight: 900;
}

.admin-user > div {
  display: grid;
  min-width: 0;
}

.admin-user strong,
.admin-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  color: #74807c;
  font-size: 0.68rem;
}

.admin-inline-form {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-inline-form select {
  width: auto;
  min-width: 105px;
  min-height: 38px;
  padding: 5px 8px;
  font-size: 0.74rem;
}

.admin-locked-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a5b08;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-private-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #b9d4df;
  border-radius: 5px;
  background: #e9f2f7;
  box-shadow: 0 8px 20px rgba(40, 103, 134, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #28556b;
}

.admin-private-notice > div {
  display: grid;
}

.admin-private-notice span {
  font-size: 0.76rem;
}

.admin-no-results {
  padding: 32px;
  color: #68736f;
  text-align: center;
}

.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.admin-two-column.is-single {
  grid-template-columns: minmax(0, 720px);
}

.admin-role-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #e3f0ea;
  color: var(--forest);
  font-size: 0.7rem !important;
  font-weight: 900;
}

.admin-admin-list {
  display: grid;
}

.admin-account-row {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: minmax(190px, 0.7fr) minmax(400px, 1.3fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #e5ebe8;
}

.admin-account-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.admin-account-identity {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.admin-account-identity > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #173f34;
  color: white;
  font-weight: 900;
}

.admin-account-identity > div {
  display: grid;
  min-width: 0;
}

.admin-account-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #74807c;
  font-size: 0.68rem;
}

.admin-account-form {
  display: grid;
  min-width: 0;
  align-items: end;
  grid-template-columns: minmax(130px, 1fr) 130px 82px 38px;
  gap: 8px;
}

.admin-account-form label {
  display: grid;
  gap: 4px;
  color: #53615c;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-switch {
  display: grid !important;
  min-height: 42px;
  align-items: center;
  grid-template-columns: 36px auto;
  grid-template-rows: 1fr;
  gap: 6px !important;
  cursor: pointer;
}

.admin-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.admin-switch span {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #bfc9c5;
}

.admin-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 160ms ease;
}

.admin-switch input:checked + span {
  background: var(--forest);
}

.admin-switch input:checked + span::after {
  transform: translateX(16px);
}

.admin-switch b {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.68rem;
}

.admin-password-reset {
  grid-column: 2;
  color: #56645f;
  font-size: 0.72rem;
}

.admin-password-reset summary {
  cursor: pointer;
  font-weight: 800;
}

.admin-password-reset form {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr)) auto;
  gap: 8px;
  margin-top: 9px;
}

.admin-password-reset .button {
  min-height: 42px;
}

.admin-sidebar-backdrop {
  position: fixed;
  z-index: 94;
  inset: var(--admin-topbar) 0 0;
  background: rgba(8, 25, 20, 0.5);
}

@media (max-width: 1220px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-raffles-layout.has-editor {
    grid-template-columns: 1fr;
  }

  .admin-raffle-editor {
    position: static;
    order: -1;
    max-height: none;
  }

  .admin-account-row {
    grid-template-columns: 1fr;
  }

  .admin-password-reset {
    grid-column: auto;
  }
}

@media (max-width: 960px) {
  .admin-menu-button {
    display: inline-grid;
  }

  .admin-brand {
    margin-right: auto;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 95;
    top: var(--admin-topbar);
    bottom: 0;
    left: 0;
    width: min(300px, calc(100vw - 42px));
    height: auto;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  body.admin-menu-open {
    overflow: hidden;
  }

  .admin-dashboard-grid,
  .admin-two-column {
    grid-template-columns: 1fr;
  }

  .admin-login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
  }

  .admin-login-context {
    padding: 38px;
  }

  .admin-login-context h1 {
    font-size: 3rem;
  }
}

@media (max-width: 720px) {
  .admin-v2 {
    --admin-topbar: 62px;
  }

  .admin-topbar {
    gap: 8px;
    padding: 7px 10px;
  }

  .admin-brand img {
    width: 46px;
    height: 46px;
  }

  .admin-brand .brand-copy,
  .admin-session-user,
  .admin-view-site span {
    display: none;
  }

  .admin-view-site {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .admin-main {
    padding: 22px 12px 50px;
  }

  .admin-page-heading {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .admin-page-heading h1 {
    font-size: 1.8rem;
  }

  .admin-action-button {
    align-self: flex-start;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-kpi {
    align-items: start;
    flex-direction: column;
    padding: 13px;
  }

  .admin-kpi strong {
    font-size: 1.25rem;
  }

  .admin-surface {
    padding: 15px;
  }

  .admin-section-heading {
    align-items: start;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-search,
  .admin-toolbar select,
  .admin-export-button {
    width: 100%;
  }

  .admin-raffle-item {
    align-items: start;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .admin-raffle-item > img {
    width: 82px;
  }

  .admin-raffle-title {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-raffle-title strong {
    white-space: normal;
  }

  .admin-raffle-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-form-grid,
  .admin-image-field,
  .admin-account-form,
  .admin-password-reset form {
    grid-template-columns: 1fr;
  }

  .admin-image-field > img {
    width: 100%;
    max-width: 280px;
  }

  .admin-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-editor-actions .button {
    width: 100%;
  }

  .admin-data-table,
  .admin-data-table tbody,
  .admin-data-table tr,
  .admin-data-table td {
    display: block;
    width: 100%;
  }

  .admin-data-table thead {
    display: none;
  }

  .admin-data-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-data-table tr {
    padding: 9px 12px;
    border: 1px solid #dce3df;
    border-radius: 5px;
  }

  .admin-data-table td {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 0.62fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #edf0ee;
  }

  .admin-data-table td:last-child {
    border-bottom: 0;
  }

  .admin-data-table td::before {
    color: #74807c;
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .admin-data-table td[colspan] {
    display: block;
  }

  .admin-data-table td[colspan]::before {
    display: none;
  }

  .admin-user {
    min-width: 0;
  }

  .admin-account-row {
    gap: 13px;
  }

  .admin-account-form .icon-button {
    width: 100%;
  }

  .admin-password-reset form {
    display: grid;
  }

  .admin-login-shell {
    display: block;
  }

  .admin-login-context {
    min-height: 250px;
    padding: 24px;
  }

  .admin-login-context > div {
    margin-top: auto;
  }

  .admin-login-context h1 {
    max-width: 420px;
    margin-bottom: 0;
    font-size: 2.25rem;
  }

  .admin-login-context p:not(.eyebrow),
  .admin-login-context > small {
    display: none;
  }

  .admin-login-panel {
    width: 100%;
    padding: 30px 20px 44px;
  }
}

@media (max-width: 430px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-kpi {
    align-items: center;
    flex-direction: row;
  }

  .admin-operation-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .admin-operation-row img {
    width: 54px;
  }

  .admin-operation-row b {
    display: none;
  }

  .admin-inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-inline-form select,
  .admin-inline-form .icon-button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 10px max(24px, 5vw);
  border-bottom: 1px solid rgba(220, 227, 223, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.brand-wordmark {
  display: grid;
  font-family: Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.12rem !important;
  font-style: italic;
  line-height: 0.78;
  text-transform: uppercase;
}

.brand-wordmark span:first-child {
  color: var(--forest);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(0, 75, 53, 0.2);
}

.brand-wordmark span:last-child {
  color: var(--coral);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(93, 11, 20, 0.2);
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 750;
}

.nav-links a,
.footer-links a {
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.footer-links a:hover {
  border-color: var(--coral);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(0, 104, 71, 0.22);
  outline-offset: 2px;
}

.theme-toggle-symbol {
  display: block;
  width: 24px;
  height: 24px;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 22px;
  text-align: center;
}

.theme-toggle svg {
  display: block;
}

.admin-top-actions .theme-toggle,
.admin-login-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 5px;
}

.admin-login-theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
}

.account-link {
  display: inline-flex;
  max-width: 190px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--forest);
  color: white;
  font-weight: 850;
}

.account-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 82px));
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 29, 23, 0.88) 0%, rgba(3, 29, 23, 0.69) 34%, rgba(3, 29, 23, 0.08) 66%), linear-gradient(180deg, rgba(3, 29, 23, 0.02), rgba(3, 29, 23, 0.38));
}

.hero-content {
  display: flex;
  width: min(640px, 92vw);
  min-height: min(760px, calc(100svh - 82px));
  flex-direction: column;
  justify-content: center;
  padding: 62px 0 48px max(24px, 5vw);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #ffffff;
}

h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(3.1rem, 5.6vw, 5.6rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  display: grid;
  width: max-content;
  max-width: 100%;
  overflow-wrap: normal;
  font-family: Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  font-size: 7rem;
  font-style: italic;
  line-height: 0.76;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.hero h1 span {
  display: block;
  padding-right: 0.12em;
  overflow-wrap: normal;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px #fff;
}

.hero-title-rifas {
  color: var(--forest);
}

.hero-title-teju {
  color: var(--coral);
}

.hero-tagline {
  max-width: 560px;
  margin: 28px 0 0;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1.1;
}

.hero-copy {
  max-width: 540px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.14rem;
}

.hero-actions,
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 14px 28px rgba(200, 63, 52, 0.22);
}

.button-primary:hover:not(:disabled) {
  background: var(--coral-dark);
}

.button-coming-soon,
.button-coming-soon:disabled {
  border-color: #747d7a;
  background: #747d7a;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.button-glass {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(8px);
}

.button-secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.button-spin {
  min-width: 156px;
  background: white;
  color: var(--forest-dark);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.spin-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  transform-origin: center;
}

.button-spin.is-spinning .spin-icon {
  animation: clover-turn 620ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.full {
  width: 100%;
}

.trust-strip {
  display: grid;
  width: min(570px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.trust-strip div {
  padding: 14px 16px;
  background: rgba(3, 29, 23, 0.5);
}

.trust-strip dt {
  font-size: 1.25rem;
  font-weight: 950;
}

.trust-strip dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.section {
  padding: 84px max(24px, 5vw);
}

section[id] {
  scroll-margin-top: 76px;
}

.section-heading {
  display: flex;
  max-width: 1180px;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto 34px;
}

.section-heading h2,
.machine-copy h2,
.auth-dialog h2,
.success-dialog h2 {
  margin: 0;
  font-size: clamp(2.15rem, 3vw, 3.45rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
}

.prizes-section {
  background: var(--paper);
}

.raffle-grid {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.raffle-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 12px 34px rgba(15, 44, 36, 0.08);
}

.raffle-card.is-active {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.2), var(--shadow);
}

.raffle-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4ebe7;
}

.raffle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.raffle-card:hover .raffle-media img {
  transform: scale(1.025);
}

.raffle-offer-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: min(255px, calc(100% - 24px));
  height: 74px;
  color: #ffffff;
  pointer-events: none;
}

.raffle-offer-burst {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: repeating-conic-gradient(from -10deg, #526ae6 0 15deg, #c7d4ff 15deg 30deg);
  box-shadow: 0 6px 13px rgba(13, 34, 87, 0.28);
}

.raffle-offer-burst::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 42%, rgba(34, 55, 139, 0.25) 100%);
  content: "";
}

.raffle-offer-ball {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  display: grid;
  width: 56px;
  height: 56px;
  grid-template-rows: 10px minmax(0, 1fr) 9px;
  place-items: center;
  padding: 6px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #b9ff7d 0 13%, #53dc37 35%, #10a631 75%, #07802a 100%);
  box-shadow: inset -5px -7px 10px rgba(0, 84, 28, 0.3), 0 5px 8px rgba(7, 57, 30, 0.32);
  color: #103a25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.raffle-offer-ball::before {
  position: absolute;
  top: 5px;
  left: 11px;
  width: 20px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  content: "";
  transform: rotate(-18deg);
}

.raffle-offer-ball small,
.raffle-offer-ball strong,
.raffle-offer-ball em {
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}

.raffle-offer-ball small {
  font-size: 0.4rem;
  font-weight: 950;
  line-height: 1;
}

.raffle-offer-ball strong {
  font-size: 1.32rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 0.86;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.raffle-offer-ball.digits-3 strong {
  font-size: 1.08rem;
}

.raffle-offer-ball.digits-4 strong {
  font-size: 0.86rem;
}

.raffle-offer-ball.digits-5 strong {
  font-size: 0.72rem;
}

.raffle-offer-ball em {
  font-size: 0.34rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.raffle-offer-ribbon {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: 0;
  left: 49px;
  display: grid;
  min-height: 52px;
  align-content: center;
  gap: 3px;
  padding: 7px 16px 7px 30px;
  background: linear-gradient(110deg, #ff9810, #ff6218 56%, #d83b07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
  filter: drop-shadow(0 6px 6px rgba(113, 30, 6, 0.3));
  text-align: center;
  text-transform: uppercase;
}

.raffle-offer-ribbon::before {
  position: absolute;
  inset: 2px 10% auto;
  height: 30%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  content: "";
}

.raffle-offer-ribbon small,
.raffle-offer-ribbon strong {
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}

.raffle-offer-ribbon small {
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
}

.raffle-offer-ribbon strong {
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.08;
  text-shadow: 0 1px 2px rgba(89, 19, 0, 0.42);
}

.raffle-offer-badge.is-sold-out .raffle-offer-ribbon {
  background: linear-gradient(110deg, #d82035, #f23b4d 56%, #a7192d);
}

.raffle-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px;
}

.raffle-body h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.12;
}

.raffle-body > p {
  margin: 9px 0 0;
  color: var(--muted);
}

.raffle-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.raffle-price strong {
  color: var(--forest);
  font-size: 1.45rem;
  font-weight: 950;
}

.raffle-price small,
.raffle-draw {
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.progress-row strong {
  color: var(--blue);
  font-size: 0.72rem;
  text-align: right;
  text-transform: uppercase;
}

.raffle-availability {
  --progress-start: #148f80;
  --progress-end: #2dbeb7;
  --progress-shadow: rgba(20, 143, 128, 0.28);
  margin: 2px 0 22px;
}

.raffle-availability.progress-medium {
  --progress-start: #1696b0;
  --progress-end: #36bfd0;
  --progress-shadow: rgba(22, 150, 176, 0.28);
}

.raffle-availability.progress-high {
  --progress-start: #4d36a6;
  --progress-end: #7655b8;
  --progress-shadow: rgba(77, 54, 166, 0.28);
}

.raffle-availability.progress-critical {
  --progress-start: #c31751;
  --progress-end: #e43378;
  --progress-shadow: rgba(195, 23, 81, 0.28);
}

.raffle-availability.progress-complete {
  --progress-start: #f04c2d;
  --progress-end: #ff7a2f;
  --progress-shadow: rgba(240, 76, 45, 0.3);
}

.raffle-availability.presentation-subtle .raffle-progress-meter {
  min-height: 46px;
  border-color: rgba(10, 62, 76, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: saturate(0.78);
}

.raffle-availability.presentation-subtle .progress-track {
  height: 28px;
}

.raffle-availability.presentation-subtle .progress-fill::after {
  display: none;
}

.raffle-availability.presentation-emphasis .raffle-progress-meter {
  min-height: 58px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 28px var(--progress-shadow);
  animation: raffle-progress-emphasis 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.raffle-availability.presentation-emphasis .progress-percentage {
  font-size: 1.12rem;
}

.raffle-availability.presentation-emphasis .progress-track {
  height: 36px;
}

.raffle-progress-meter {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 52px;
  grid-template-columns: minmax(54px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  overflow: hidden;
  padding: 7px 10px 7px 15px;
  border: 1px solid rgba(10, 62, 76, 0.2);
  border-radius: 999px;
  background: linear-gradient(110deg, var(--progress-start), var(--progress-end));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 9px 22px var(--progress-shadow);
}

.raffle-progress-meter::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 8%;
  left: 8%;
  height: 50%;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  content: "";
  pointer-events: none;
}

.progress-percentage {
  color: #ffffff;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(4, 37, 51, 0.24);
}

.progress-track {
  position: relative;
  height: 32px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 58, 74, 0.38);
  box-shadow: inset 0 2px 6px rgba(2, 31, 45, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2);
}

.progress-track::after {
  position: absolute;
  z-index: 2;
  inset: 2px 3px auto;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  content: "";
  pointer-events: none;
}

.progress-fill {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #f7fbff 70%, #e8f8f5);
  box-shadow: 0 0 13px rgba(255, 255, 255, 0.28);
  transform: scaleX(0);
  transform-origin: left center;
  animation: raffle-progress-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
  will-change: transform;
}

.progress-fill::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.9) 48%, transparent 76%);
  content: "";
  transform: translateX(-130%);
  animation: raffle-progress-shine 650ms ease-out 920ms both;
}

.raffle-availability.is-sold-out .progress-row,
.raffle-availability.is-sold-out .progress-row strong {
  color: var(--danger);
}

@keyframes raffle-progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes raffle-progress-shine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@keyframes raffle-progress-emphasis {
  from { opacity: 0.72; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.button-sold-out,
.button-sold-out:disabled {
  border-color: #a7192d;
  background: #a7192d;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.raffle-card.is-sold-out .raffle-media img {
  filter: saturate(0.55) brightness(0.76);
}

.raffle-body .button {
  width: 100%;
  margin-top: 20px;
}

.loading-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  color: var(--muted);
  text-align: center;
}

.machine-section {
  overflow: hidden;
  background: var(--forest-dark);
  color: white;
}

.machine-inner {
  max-width: 1380px;
  margin: 0 auto;
}

.machine-copy {
  display: grid;
  max-width: 1180px;
  grid-template-columns: auto 1fr;
  column-gap: 36px;
  align-items: end;
  margin: 0 auto 34px;
}

.machine-copy .eyebrow {
  grid-column: 1 / -1;
}

.machine-copy > p:not(.eyebrow) {
  max-width: 500px;
  justify-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.machine-limit {
  grid-column: 1 / -1;
  margin-top: 12px;
  color: white;
  font-size: 0.84rem;
  font-weight: 800;
}

.machine-workspace {
  display: grid;
  max-width: 1180px;
  grid-template-columns: 340px minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: center;
  margin: 0 auto;
}

.drum-wrap {
  position: relative;
  display: grid;
  min-height: 475px;
  place-items: center;
  perspective: 900px;
}

.machine-lights {
  position: absolute;
  z-index: 5;
  top: 4px;
  display: flex;
  width: 280px;
  justify-content: space-around;
}

.machine-lights i {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 9px white, 0 0 24px rgba(74, 211, 160, 0.72);
}

.ticket-drum {
  position: relative;
  width: min(340px, 100%);
  height: 420px;
  overflow: visible;
  isolation: isolate;
}

.ticket-drum::before,
.ticket-drum::after {
  position: absolute;
  left: 50%;
  content: "";
  opacity: 1;
  transition: opacity 220ms ease;
}

.ticket-drum::before {
  z-index: -1;
  top: 46px;
  width: min(260px, calc(100% - 24px));
  aspect-ratio: 1;
  border: 12px solid var(--coral);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.22), 0 28px 48px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.ticket-drum::after {
  z-index: 3;
  top: 80px;
  width: 50px;
  height: 145px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-90px) rotate(28deg);
}

.tombola-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y;
  transition: opacity 260ms ease;
}

.ticket-drum.is-webgl-ready .tombola-canvas {
  opacity: 1;
  pointer-events: auto;
}

.ticket-drum.is-crank-hover .tombola-canvas {
  cursor: grab;
}

.ticket-drum.is-crank-active .tombola-canvas {
  cursor: grabbing;
}

.tombola-canvas:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: -4px;
}

.ticket-drum.is-webgl-ready::before,
.ticket-drum.is-webgl-ready::after {
  opacity: 0;
}

.drum-balls {
  position: absolute;
  z-index: 2;
  top: 46px;
  left: 50%;
  width: 260px;
  max-width: calc(100% - 24px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.ticket-drum.is-webgl-ready .drum-balls {
  opacity: 0;
}

.ball {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: var(--coral);
  color: white;
  box-shadow: inset 0 -8px 14px rgba(116, 23, 18, 0.25), 0 4px 8px rgba(0, 0, 0, 0.22);
  font-size: 0.75rem;
  font-weight: 950;
}

.ball:nth-child(2n) { background: white; color: var(--forest-dark); }
.ball:nth-child(3n) { background: var(--forest); color: white; }
.ball:nth-child(1) { left: 28px; top: 158px; }
.ball:nth-child(2) { left: 74px; top: 185px; }
.ball:nth-child(3) { left: 122px; top: 166px; }
.ball:nth-child(4) { left: 168px; top: 188px; }
.ball:nth-child(5) { left: 199px; top: 145px; }
.ball:nth-child(6) { left: 44px; top: 116px; }
.ball:nth-child(7) { left: 93px; top: 126px; }
.ball:nth-child(8) { left: 145px; top: 112px; }
.ball:nth-child(9) { left: 184px; top: 94px; }
.ball:nth-child(10) { left: 66px; top: 72px; }
.ball:nth-child(11) { left: 120px; top: 64px; }
.ball:nth-child(12) { left: 158px; top: 50px; }

.ticket-drum.is-spinning .drum-balls {
  animation: tumble 520ms linear infinite;
}

.ticket-drum.is-spinning .ball:nth-child(2n) {
  animation: jitter 260ms ease-in-out infinite alternate;
}

.drum-base {
  position: absolute;
  z-index: 6;
  bottom: 2px;
  display: grid;
  width: min(245px, calc(100% - 44px));
  height: 78px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  background: #d91f3a;
  box-shadow: 0 8px 0 #7f1021, 0 20px 30px rgba(0, 0, 0, 0.36);
  color: white;
  transform: perspective(500px) rotateX(-4deg);
}

.drum-base::before {
  position: absolute;
  top: 7px;
  left: 14px;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #2ed29b;
  box-shadow: 43px 0 0 #ffffff, 86px 0 0 #2ed29b, 129px 0 0 #ffffff, 172px 0 0 #2ed29b;
  content: "";
}

.tombola-wordmark {
  display: grid;
  justify-items: center;
  margin-top: 8px;
  font-family: Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  line-height: 0.82;
  text-transform: uppercase;
  transform: skewX(-4deg);
}

.tombola-wordmark b {
  letter-spacing: 0;
  paint-order: stroke fill;
  -webkit-text-stroke: 1px rgba(8, 47, 37, 0.45);
}

.tombola-wordmark b:first-child {
  font-size: 1.42rem;
}

.tombola-wordmark b:last-child {
  color: #fff4c7;
  font-size: 0.82rem;
}

.machine-controls,
.order-summary {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.machine-controls {
  padding: 24px;
}

.control-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.control-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
}

.quantity-field {
  display: block;
  min-width: 190px;
}

.quantity-input-wrap {
  display: flex;
  position: relative;
  align-items: center;
}

.quantity-input-wrap > span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
  transform: translateY(-50%);
}

.ticket-quantity-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  font-weight: 900;
  padding: 10px 76px 10px 14px;
}

.ticket-quantity-input:focus {
  border-color: rgba(255, 255, 255, 0.72);
  outline: 3px solid rgba(255, 255, 255, 0.14);
}

.ticket-quantity-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.selected-output {
  min-height: 132px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.selected-tickets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 16px;
  padding: 2px 0 8px;
}

.selected-tickets.has-quicklook {
  display: grid;
  gap: 14px;
}

.selected-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 16px;
}

.selected-overflow-count {
  display: grid;
  width: 56px;
  min-width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.quicklook-trigger {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
}

.quicklook-trigger > span {
  font-size: 1.15rem;
  line-height: 1;
}

.selected-chip {
  --ball-color: #f1eee9;
  --ball-dark: #aaa39a;
  --ball-light: #ffffff;
  --ball-ring: #08714f;
  --ball-size: 56px;
  --ball-center-inset: 7px;
  --ball-font-size: 0.7rem;
  display: inline-grid;
  position: relative;
  width: var(--ball-size);
  min-width: var(--ball-size);
  height: var(--ball-size);
  place-items: center;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 29% 22%, rgba(255, 255, 255, 0.94) 0 4%, rgba(255, 255, 255, 0.36) 5%, transparent 21%),
    radial-gradient(circle at 34% 28%, var(--ball-light), var(--ball-color) 52%, var(--ball-dark) 100%);
  box-shadow:
    inset 5px 5px 8px rgba(255, 255, 255, 0.28),
    inset -6px -7px 10px rgba(0, 0, 0, 0.22),
    0 5px 0 var(--ball-dark),
    0 10px 16px rgba(0, 0, 0, 0.24);
  color: #073b2e;
  cursor: pointer;
  font-size: var(--ball-font-size);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-2px);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.selected-chip::before {
  position: absolute;
  z-index: -1;
  inset: var(--ball-center-inset);
  border: 2px solid var(--ball-ring);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0 35%, #f5f2ed 72%, #d8d4ce 100%);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(0, 0, 0, 0.2);
  content: "";
}

.selected-chip[data-digits="3"] {
  --ball-center-inset: 9px;
  --ball-font-size: 0.74rem;
}

.selected-chip[data-digits="4"] {
  --ball-center-inset: 7px;
  --ball-font-size: 0.7rem;
}

.selected-chip[data-digits="5"] {
  --ball-center-inset: 6px;
  --ball-font-size: 0.65rem;
}

.selected-chip[data-digits="6"] {
  --ball-center-inset: 4px;
  --ball-font-size: 0.6rem;
}

.selected-chip:nth-child(3n + 2) {
  --ball-color: #df2943;
  --ball-dark: #981126;
  --ball-light: #ff6072;
  --ball-ring: #c61731;
}

.selected-chip:nth-child(3n) {
  --ball-color: #38bc89;
  --ball-dark: #08714f;
  --ball-light: #6de1b4;
  --ball-ring: #08714f;
}

.selected-chip:hover {
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-5px) rotate(-2deg);
}

.selected-chip:active {
  box-shadow:
    inset 5px 5px 8px rgba(255, 255, 255, 0.24),
    inset -6px -7px 10px rgba(0, 0, 0, 0.22),
    0 2px 0 var(--ball-dark),
    0 5px 9px rgba(0, 0, 0, 0.22);
  transform: translateY(1px) scale(0.97);
}

.selected-chip:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.empty-selection {
  color: rgba(255, 255, 255, 0.5);
}

.manual-picker {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.manual-picker summary {
  padding: 16px 0 0;
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.ticket-number {
  --ticket-number-font-size: 0.73rem;
  container-type: inline-size;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  place-items: center;
  overflow: hidden;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: var(--ticket-number-font-size);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.ticket-number[data-digits="5"] {
  --ticket-number-font-size: 0.66rem;
}

.ticket-number[data-digits="6"] {
  --ticket-number-font-size: 0.56rem;
}

.ticket-number span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: var(--ticket-number-font-size);
  line-height: 1;
  text-overflow: clip;
}

@supports (font-size: 1cqw) {
  .ticket-number span {
    font-size: clamp(0.56rem, 26cqw, var(--ticket-number-font-size));
  }

  .ticket-number[data-digits="5"] span {
    font-size: clamp(0.52rem, 22cqw, var(--ticket-number-font-size));
  }

  .ticket-number[data-digits="6"] span {
    font-size: clamp(0.5rem, 18cqw, var(--ticket-number-font-size));
  }
}

.ticket-number:hover:not(:disabled) {
  border-color: white;
}

.ticket-number.is-selected {
  border-color: white;
  background: white;
  color: var(--forest-dark);
}

.ticket-number:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  text-decoration: line-through;
}

.pagination {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
}

.pagination button {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.order-summary {
  padding: 24px;
}

.order-summary h3 {
  margin: 0;
  font-size: 1.3rem;
}

.order-summary dl {
  margin: 20px 0;
}

.order-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.order-summary dt {
  color: rgba(255, 255, 255, 0.62);
}

.order-summary dd {
  margin: 0;
  font-weight: 900;
}

.order-summary .summary-total {
  padding-top: 16px;
  color: white;
  font-size: 1.15rem;
}

.small-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
}

.steps-section {
  background: var(--sky);
}

.steps {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px 24px 18px 0;
  border-right: 1px solid rgba(23, 33, 31, 0.14);
}

.steps li:not(:first-child) {
  padding-left: 24px;
}

.steps li:last-child {
  border-right: 0;
}

.steps span {
  color: var(--coral-dark);
  font-size: 1.25rem;
  font-weight: 950;
}

.steps strong {
  font-size: 1.02rem;
}

.steps p {
  margin: 7px 0 0;
  color: #526460;
  font-size: 0.9rem;
}

.winners-section {
  background: #fff;
}

.winner-grid {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.winner-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  box-shadow: 0 14px 34px rgba(21, 59, 114, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.winner-card::before {
  content: none;
}

.winner-date {
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.winner-card h3 {
  margin: 12px 0 4px;
  font-size: 1.4rem;
}

.winner-card p {
  margin: 0;
  color: var(--muted);
}

.winner-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.winner-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px var(--line);
  color: white;
  font-weight: 950;
}

.winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-profile p {
  display: grid;
  min-width: 0;
}

.winner-profile small {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.winner-profile b {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-card strong {
  display: block;
  margin-top: 18px;
  color: var(--forest);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  padding: 48px max(24px, 5vw) 28px;
  background: #111c19;
  color: white;
}

.footer-brand .brand-copy small,
.site-footer p {
  color: rgba(255, 255, 255, 0.62);
}

.footer-main > p {
  max-width: 560px;
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-weight: 800;
}

.attribution {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.attribution a {
  text-decoration: underline;
}

dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

dialog::backdrop {
  background: rgba(4, 24, 19, 0.75);
  backdrop-filter: blur(6px);
}

.quicklook-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: 28px;
}

.quicklook-dialog .dialog-close {
  border-color: #b8c8c1;
  background: #f4f8f6;
  color: #10221d;
  box-shadow: 0 5px 14px rgba(16, 34, 29, 0.14);
}

.quicklook-heading {
  padding-right: 48px;
}

.quicklook-heading .eyebrow {
  margin-bottom: 6px;
}

.quicklook-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.quicklook-heading > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.quicklook-grid {
  display: grid;
  min-height: 132px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-content: start;
  gap: 14px 8px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef5f1;
}

.quicklook-ticket {
  justify-self: center;
}

.quicklook-pagination {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.quicklook-pagination button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
}

.quicklook-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.quicklook-pagination strong {
  text-align: center;
}

.auth-dialog,
.success-dialog {
  padding: 32px;
}

.auth-dialog > img {
  display: block;
  margin: 0 auto 10px;
}

.auth-dialog > h2,
.auth-dialog > p,
.success-dialog {
  text-align: center;
}

.auth-dialog > p {
  margin: 10px auto 20px;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 1.4rem;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: #edf1ee;
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 850;
}

.segmented button.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(25, 45, 39, 0.1);
}

.auth-form,
.profile-form,
.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  text-align: left;
}

.auth-form label,
.profile-form label,
.admin-form label {
  display: grid;
  gap: 6px;
  color: #36443f;
  font-size: 0.88rem;
  font-weight: 800;
}

.optional-label {
  justify-self: start;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.form-field-note {
  display: block;
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ccd6d1;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(0, 104, 71, 0.13);
}

.dialog-note,
.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 0.84rem;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 2rem;
  font-weight: 950;
}

.success-dialog > p:not(.eyebrow) {
  color: var(--muted);
}

.success-actions {
  justify-content: center;
  align-items: center;
}

/* Cuenta */
.account-page,
.admin-page {
  min-height: 100svh;
  background: var(--canvas);
}

.simple-header {
  position: static;
}

.account-shell,
.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.account-intro,
.admin-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.account-intro h1,
.admin-intro h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.account-intro p,
.admin-intro p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
}

.payment-notice {
  margin: -10px 0 24px;
  padding: 14px 16px;
  border: 1px solid #b9d8cc;
  border-radius: 5px;
  background: #edf7f3;
  box-shadow: 0 9px 24px rgba(18, 80, 59, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--forest-dark);
  font-weight: 750;
}

.payment-notice.is-success {
  border-color: #9dd2b9;
  background: #e7f6ef;
  color: #0e6848;
}

.payment-notice.is-warning {
  border-color: #e5c98a;
  background: #fff7e4;
  color: #76500e;
}

.account-auth {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: var(--shadow);
}

.account-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-panel,
.reservation-panel,
.admin-panel,
.admin-login {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 10px 30px rgba(17, 48, 40, 0.07);
}

.profile-panel,
.reservation-panel,
.admin-panel {
  padding: 24px;
}

.profile-panel h2,
.reservation-panel h2,
.admin-panel h2 {
  margin: 0;
  font-size: 1.5rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  overflow: hidden;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(0, 61, 44, 0.15);
  color: white;
  font-size: 1.9rem;
  font-weight: 950;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity > div:last-child {
  display: grid;
  min-width: 0;
}

.profile-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity small {
  color: var(--muted);
}

.avatar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.avatar-upload {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  padding: 0 14px;
  font-size: 0.84rem;
}

.avatar-upload input {
  position: absolute;
  inset: 0;
  min-height: 100%;
  cursor: pointer;
  opacity: 0;
}

.avatar-upload.is-busy {
  pointer-events: none;
  opacity: 0.55;
}

.profile-section-label {
  margin: 4px 0 -2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.text-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--coral-dark);
  cursor: pointer;
  font-weight: 850;
}

.reservation-list {
  display: grid;
  gap: 12px;
}

.reservation-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--canvas);
}

.reservation-card img {
  width: 110px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
}

.reservation-card h3 {
  margin: 0;
  font-size: 1rem;
}

.reservation-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.reservation-copy {
  min-width: 0;
}

.reservation-side {
  display: grid;
  min-width: 164px;
  justify-items: end;
  gap: 9px;
}

.reservation-pay {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.reservation-payment-message {
  max-width: 210px;
  min-height: 0;
  margin: 0 !important;
  color: var(--danger) !important;
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff1d3;
  color: var(--warning);
  font-size: 0.74rem;
  font-weight: 900;
}

.status-badge.confirmed { background: #dff4ea; color: var(--success); }
.status-badge.oxxo_pending { background: #fff1d3; color: #875600; }
.status-badge.payment_review { background: #fff1d3; color: #875600; }
.status-badge.cancelled,
.status-badge.expired { background: #f3e2e2; color: var(--danger); }

.empty-panel {
  padding: 38px 20px;
  color: var(--muted);
  text-align: center;
}

/* Administracion */
.admin-login {
  max-width: 460px;
  margin: 80px auto;
  padding: 28px;
}

.admin-login h1 {
  margin: 0;
  font-size: 2rem;
}

.admin-dashboard {
  display: grid;
  gap: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 12px 28px rgba(18, 43, 36, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-block span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-block strong {
  display: block;
  margin-top: 5px;
  font-size: 1.8rem;
}

.admin-columns {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-form textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-table th,
.admin-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-user {
  display: grid;
  min-width: 150px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.admin-user > img,
.admin-user > span {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  object-fit: cover;
  font-weight: 900;
}

.admin-user > div {
  display: grid;
  min-width: 0;
}

.admin-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  color: var(--muted);
}

.inline-status {
  display: flex;
  gap: 6px;
}

.inline-status select {
  min-width: 110px;
  min-height: 36px;
  padding: 5px;
}

.inline-status button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: var(--forest);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.flash-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #9dd2b9;
  border-radius: 5px;
  background: #e4f3eb;
  box-shadow: 0 8px 22px rgba(21, 93, 69, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #155d45;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes clover-turn {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.16); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes tumble {
  to { transform: rotate(360deg); }
}

@keyframes jitter {
  from { transform: translate(-6px, 8px) rotate(-20deg); }
  to { transform: translate(8px, -10px) rotate(22deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .progress-fill {
    animation: none !important;
    transform: scaleX(1);
  }

  .progress-fill::after {
    display: none;
  }
}

@media (max-width: 1050px) {
  .machine-workspace {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .order-summary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: end;
  }

  .order-summary dl {
    margin: 0;
  }

  .order-summary > .eyebrow,
  .order-summary > h3 {
    display: none;
  }

  .small-note {
    grid-column: 2;
  }

  .admin-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .raffle-grid,
  .winner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raffle-card:last-child,
  .winner-card:last-child {
    grid-column: 1 / -1;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps li:nth-child(2) {
    border-right: 0;
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid rgba(23, 33, 31, 0.14);
  }

  .steps li:nth-child(3) {
    padding-left: 0;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 72px;
    padding: 8px 16px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand-copy small {
    display: none;
  }

  .account-link {
    max-width: 124px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .nav-links {
    top: 72px;
    right: 16px;
  }

  .hero {
    min-height: calc(100svh - 124px);
  }

  .hero-image {
    object-position: center top;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(3, 29, 23, 0.92) 0%, rgba(3, 29, 23, 0.69) 70%, rgba(3, 29, 23, 0.2) 100%), linear-gradient(180deg, rgba(3, 29, 23, 0.1), rgba(3, 29, 23, 0.5));
  }

  .hero-content {
    width: 100%;
    min-height: calc(100svh - 124px);
    justify-content: flex-end;
    padding: 80px 18px 34px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.15rem);
  }

  .hero h1 {
    font-size: 5.1rem;
  }

  .hero-tagline {
    margin-top: 22px;
    font-size: 1.15rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .trust-strip {
    margin-top: 26px;
  }

  .trust-strip div {
    padding: 11px 10px;
  }

  .trust-strip dt {
    font-size: 1rem;
  }

  .trust-strip dd {
    font-size: 0.68rem;
  }

  .section {
    padding: 58px 18px;
  }

  .section-heading,
  .machine-copy,
  .account-intro,
  .admin-intro {
    display: block;
  }

  .section-heading > p,
  .machine-copy > p:not(.eyebrow) {
    margin-top: 14px;
  }

  .raffle-grid,
  .winner-grid {
    grid-template-columns: 1fr;
  }

  .raffle-card:last-child,
  .winner-card:last-child {
    grid-column: auto;
  }

  .machine-workspace {
    grid-template-columns: 1fr;
  }

  .drum-wrap {
    min-height: clamp(430px, 125vw, 475px);
  }

  .ticket-drum {
    width: min(340px, 100%);
    height: clamp(370px, 112vw, 420px);
  }

  .ball {
    width: 46px;
    height: 46px;
  }

  .drum-base {
    bottom: 0;
  }

  .control-top {
    align-items: stretch;
    flex-direction: column;
  }

  .quantity-field,
  .quantity-input-wrap {
    width: 100%;
  }

  .button-spin {
    width: 100%;
  }

  .selected-tickets {
    column-gap: clamp(9px, 2.8vw, 12px);
    row-gap: 16px;
  }

  .selected-chip {
    --ball-size: clamp(45px, 13vw, 52px);
  }

  .selected-preview {
    column-gap: clamp(9px, 2.8vw, 12px);
  }

  .selected-overflow-count {
    width: clamp(45px, 13vw, 52px);
    min-width: clamp(45px, 13vw, 52px);
    height: clamp(45px, 13vw, 52px);
  }

  .ticket-grid {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .order-summary {
    display: block;
  }

  .order-summary dl {
    margin: 0 0 18px;
  }

  .small-note {
    grid-column: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li:not(:first-child),
  .steps li:nth-child(3) {
    padding: 18px 0;
    border-top: 1px solid rgba(23, 33, 31, 0.14);
    border-right: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 38px 18px 24px;
  }

  .attribution {
    grid-column: auto;
  }

  .account-shell,
  .admin-shell {
    width: min(100% - 28px, 1180px);
    padding: 38px 0 60px;
  }

  .account-auth,
  .profile-panel,
  .reservation-panel,
  .admin-panel,
  .admin-login {
    padding: 20px;
  }

  .reservation-card {
    grid-template-columns: 78px 1fr;
    align-items: start;
  }

  .reservation-card img {
    width: 78px;
  }

  .reservation-side {
    grid-column: 2;
    min-width: 0;
    justify-items: start;
  }

  .reservation-payment-message {
    text-align: left;
  }

  .admin-stats,
  .form-row {
    grid-template-columns: 1fr;
  }

  dialog {
    width: calc(100vw - 20px);
  }

  .quicklook-dialog {
    padding: 24px 16px 18px;
  }

  .quicklook-grid {
    min-height: 266px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 6px;
    padding: 16px 10px;
  }

  section[id] {
    scroll-margin-top: 68px;
  }

  .auth-dialog,
  .success-dialog {
    padding: 26px 20px;
  }
}

/* Modo oscuro */
html[data-theme="dark"] {
  color-scheme: dark;
  --forest: #4ad3a0;
  --forest-dark: #073b2f;
  --forest-soft: #18342b;
  --coral: #ff4b69;
  --coral-dark: #ff8397;
  --navy: #7ba7ff;
  --blue: #4f8cff;
  --aqua: #3bd4d0;
  --gold: #ffd35a;
  --sky: #11182c;
  --ink: #f4f6fb;
  --muted: #adb7cb;
  --paper: #171b2a;
  --canvas: #0d1120;
  --line: #333a53;
  --success: #48c995;
  --warning: #f0bd59;
  --danger: #ff7d88;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] body {
  background: var(--canvas);
  color: var(--ink);
}

html[data-theme="dark"] ::selection {
  background: rgba(74, 211, 160, 0.3);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(52, 67, 62, 0.92);
  background: rgba(18, 27, 24, 0.96);
}

html[data-theme="dark"] .brand-wordmark span:first-child,
html[data-theme="dark"] .brand-wordmark span:last-child {
  text-shadow: 1px 1px 0 #0c1311, 2px 2px 0 rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-button,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .dialog-close {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .menu-button:hover,
html[data-theme="dark"] .button-secondary:hover {
  border-color: var(--forest);
  background: #1d2b27;
}

html[data-theme="dark"] .account-link {
  background: #08714f;
  color: #ffffff;
}

html[data-theme="dark"] .nav-links {
  border-color: var(--line);
  background: var(--paper);
}

html[data-theme="dark"] .button-primary {
  background: #d9253b;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(217, 37, 59, 0.22);
}

html[data-theme="dark"] .button-primary:hover:not(:disabled) {
  background: #b91c30;
}

html[data-theme="dark"] .button-coming-soon,
html[data-theme="dark"] .button-coming-soon:disabled {
  border-color: #56615d;
  background: #56615d;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="dark"] .prizes-section,
html[data-theme="dark"] .winners-section {
  background: var(--paper);
}

html[data-theme="dark"] .raffle-card {
  border-color: var(--line);
  background: #1a2622;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .raffle-card.is-active {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(74, 211, 160, 0.18), var(--shadow);
}

html[data-theme="dark"] .raffle-media {
  background: #24342f;
}

html[data-theme="dark"] .progress-track {
  background: rgba(4, 18, 31, 0.5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.44), 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .progress-row strong {
  color: #71a5ff;
}

html[data-theme="dark"] .admin-draw-config {
  border-color: #34443e;
  background: #111b18;
}

html[data-theme="dark"] .button-sold-out,
html[data-theme="dark"] .button-sold-out:disabled {
  border-color: #ff5365;
  background: #a7192d;
  color: #ffffff;
}

html[data-theme="dark"] .machine-section {
  background: #073128;
}

html[data-theme="dark"] .steps li,
html[data-theme="dark"] .steps li:nth-child(n + 3) {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .steps p {
  color: var(--muted);
}

html[data-theme="dark"] .winner-card {
  border-color: var(--line);
  background: #101917;
}

html[data-theme="dark"] .winner-avatar,
html[data-theme="dark"] .profile-avatar {
  border-color: var(--paper);
  background: #08714f;
}

html[data-theme="dark"] .site-footer {
  background: #070c0b;
}

html[data-theme="dark"] dialog,
html[data-theme="dark"] .account-auth,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .reservation-panel,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .admin-login {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

html[data-theme="dark"] dialog::backdrop {
  background: rgba(0, 8, 6, 0.82);
}

html[data-theme="dark"] .segmented {
  background: #0f1715;
}

html[data-theme="dark"] .segmented button.is-active {
  background: #25342f;
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .auth-form label,
html[data-theme="dark"] .profile-form label,
html[data-theme="dark"] .admin-form label {
  color: #d4ddd9;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: #43534d;
  background: #0f1715;
  color: var(--ink);
}

html[data-theme="dark"] .ticket-quantity-input {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

html[data-theme="dark"] .quicklook-grid {
  border-color: var(--line);
  background: #0f1715;
}

html[data-theme="dark"] .quicklook-dialog .dialog-close {
  border-color: #526b62;
  background: #253a33;
  color: #ffffff;
}

html[data-theme="dark"] .quicklook-pagination button {
  border-color: var(--line);
  background: #0f1715;
  color: var(--ink);
}

html[data-theme="dark"] input:disabled {
  background: #202a27;
  color: #8f9d98;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #7f8e89;
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0f1715 inset;
  -webkit-text-fill-color: var(--ink);
}

html[data-theme="dark"] .payment-notice {
  border-color: #315b4c;
  background: #142b23;
  color: #aee8d2;
}

html[data-theme="dark"] .payment-notice.is-success {
  border-color: #2b664f;
  background: #123126;
  color: #a8e6cd;
}

html[data-theme="dark"] .payment-notice.is-warning {
  border-color: #6f582e;
  background: #302817;
  color: #f2d292;
}

html[data-theme="dark"] .reservation-card {
  border-color: var(--line);
  background: #101917;
}

html[data-theme="dark"] .status-badge,
html[data-theme="dark"] .status-badge.oxxo_pending,
html[data-theme="dark"] .status-badge.payment_review {
  background: #3b3018;
  color: #f0c56b;
}

html[data-theme="dark"] .status-badge.confirmed {
  background: #17372c;
  color: #75d7b1;
}

html[data-theme="dark"] .status-badge.cancelled,
html[data-theme="dark"] .status-badge.expired {
  background: #3b2024;
  color: #ff98a1;
}

html[data-theme="dark"] .flash-message {
  border-color: #2b664f;
  background: #17372c;
  color: #9fe1c7;
}

html[data-theme="dark"] .admin-v2,
html[data-theme="dark"] .admin-login-page {
  background: #0c1311;
  color: var(--ink);
}

html[data-theme="dark"] .admin-login-panel {
  background: #0c1311;
}

html[data-theme="dark"] .admin-back-link,
html[data-theme="dark"] .admin-page-heading p:not(.eyebrow),
html[data-theme="dark"] .admin-kpi small,
html[data-theme="dark"] .admin-kpi span,
html[data-theme="dark"] .admin-section-heading p,
html[data-theme="dark"] .admin-operation-row span,
html[data-theme="dark"] .admin-readiness li span,
html[data-theme="dark"] .admin-raffle-item-copy p,
html[data-theme="dark"] .admin-raffle-item-copy small,
html[data-theme="dark"] .admin-toolbar-note,
html[data-theme="dark"] .admin-user small,
html[data-theme="dark"] .admin-account-identity small,
html[data-theme="dark"] .admin-password-reset,
html[data-theme="dark"] .admin-no-results {
  color: var(--muted);
}

html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .admin-view-site,
html[data-theme="dark"] .admin-session-user {
  border-color: var(--line);
  background: #17211f;
  color: #d8e1de;
}

html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .admin-view-site:hover {
  border-color: #577068;
  background: #202e2a;
  color: var(--forest);
}

html[data-theme="dark"] .icon-button.primary {
  border-color: #16845d;
  background: #16845d;
  color: #ffffff;
}

html[data-theme="dark"] .admin-topbar {
  border-bottom-color: #2d3b36;
  background: rgba(17, 25, 23, 0.97);
}

html[data-theme="dark"] .admin-sidebar {
  border-right-color: #2c4039;
  background: #081f19;
}

html[data-theme="dark"] .admin-sidebar nav a:hover,
html[data-theme="dark"] .admin-sidebar nav a.is-active {
  background: rgba(74, 211, 160, 0.12);
}

html[data-theme="dark"] .admin-kpi,
html[data-theme="dark"] .admin-surface,
html[data-theme="dark"] .admin-raffle-item {
  border-color: var(--line);
  background: #17211f;
}

html[data-theme="dark"] .admin-icon-box,
html[data-theme="dark"] .admin-kpi-icon {
  background: #19382e;
  color: #65d9ae;
}

html[data-theme="dark"] .admin-kpi-icon.red {
  background: #3b2025;
  color: #ff8c98;
}

html[data-theme="dark"] .admin-kpi-icon.gold {
  background: #3b301b;
  color: #f2c76e;
}

html[data-theme="dark"] .admin-kpi-icon.blue {
  background: #1c3039;
  color: #7fc4e4;
}

html[data-theme="dark"] .admin-operation-row,
html[data-theme="dark"] .admin-readiness li,
html[data-theme="dark"] .admin-form-section,
html[data-theme="dark"] .admin-editor-tools,
html[data-theme="dark"] .admin-account-row {
  border-color: #2a3934;
}

html[data-theme="dark"] .admin-progress {
  background: #2d3e38;
}

html[data-theme="dark"] .admin-real-metrics,
html[data-theme="dark"] .admin-real-metrics > div {
  border-color: #2a3934;
}

html[data-theme="dark"] .admin-real-metrics dt,
html[data-theme="dark"] .admin-real-metrics small {
  color: var(--muted);
}

html[data-theme="dark"] .admin-real-metrics dd strong {
  color: #75d7b1;
}

html[data-theme="dark"] .admin-data-table th {
  background: #101816;
  color: #a4b1ac;
}

html[data-theme="dark"] .admin-data-table th,
html[data-theme="dark"] .admin-data-table td {
  border-color: #2b3a35;
}

html[data-theme="dark"] .admin-data-table td > small,
html[data-theme="dark"] .admin-data-table td::before {
  color: #94a29d;
}

html[data-theme="dark"] .admin-data-table tr.is-focused td {
  background: #2c2618;
}

html[data-theme="dark"] .admin-data-table tr.is-focused td:first-child {
  box-shadow: inset 3px 0 0 #d9aa3b;
}

html[data-theme="dark"] .admin-focus-label {
  border-color: #6f592e;
  background: #352b17;
  color: #edcc80 !important;
}

html[data-theme="dark"] .admin-data-table code {
  background: #0d1513;
  color: #dce5e2;
}

html[data-theme="dark"] .admin-status,
html[data-theme="dark"] .admin-status.paused,
html[data-theme="dark"] .admin-status.pending {
  background: #3b3018;
  color: #f0c56b;
}

html[data-theme="dark"] .admin-status.active,
html[data-theme="dark"] .admin-status.confirmed {
  background: #17372c;
  color: #75d7b1;
}

html[data-theme="dark"] .admin-status.finished {
  background: #26343a;
  color: #b5c7cf;
}

html[data-theme="dark"] .admin-status.archived,
html[data-theme="dark"] .admin-status.cancelled,
html[data-theme="dark"] .admin-status.expired {
  background: #3a2327;
  color: #f29aa3;
}

html[data-theme="dark"] .admin-status.payment_review {
  background: #3b291c;
  color: #f3b879;
}

html[data-theme="dark"] .admin-empty,
html[data-theme="dark"] .admin-empty strong {
  color: var(--muted);
}

html[data-theme="dark"] .admin-raffle-item.is-selected {
  border-color: #3a8e70;
}

html[data-theme="dark"] .admin-form label,
html[data-theme="dark"] .admin-account-form label {
  color: #c4cfcb;
}

html[data-theme="dark"] .admin-form label > small,
html[data-theme="dark"] .admin-form-help {
  color: #91a09b;
}

html[data-theme="dark"] .admin-v2 input,
html[data-theme="dark"] .admin-v2 select,
html[data-theme="dark"] .admin-v2 textarea {
  border-color: #40514b;
  background: #0e1614;
  color: var(--ink);
}

html[data-theme="dark"] .admin-image-field > img {
  border-color: var(--line);
}

html[data-theme="dark"] .admin-draw-tool {
  border-color: #6b592f;
  background: #2b2517;
}

html[data-theme="dark"] .admin-draw-tool p,
html[data-theme="dark"] .admin-tool-note {
  color: #ddc58b;
}

html[data-theme="dark"] .admin-winner-result {
  border-color: #6f592e;
  background: #352b17;
}

html[data-theme="dark"] .admin-winner-result span,
html[data-theme="dark"] .admin-winner-result small {
  color: #edcc80;
}

html[data-theme="dark"] .admin-winner-shipping {
  border-top-color: rgba(237, 204, 128, 0.24);
}

html[data-theme="dark"] .admin-winner-shipping-title svg {
  color: #edcc80;
}

html[data-theme="dark"] .admin-private-notice {
  border-color: #35677d;
  background: #172a33;
  color: #a8d3e6;
}

html[data-theme="dark"] .admin-role-badge {
  background: #19382e;
  color: #75d7b1;
}

html[data-theme="dark"] .admin-account-identity > span,
html[data-theme="dark"] .admin-user > span {
  background: #116c50;
}

html[data-theme="dark"] .admin-switch span {
  background: #52615c;
}

html[data-theme="dark"] .admin-switch input:checked + span {
  background: #16845d;
}

html[data-theme="dark"] .admin-alert {
  border-color: #326a54;
  background: #153126;
  color: #a2e4ca;
}

html[data-theme="dark"] .admin-alert.error {
  border-color: #704047;
  background: #351f23;
  color: #ffabb3;
}

html[data-theme="dark"] .admin-alert.warning {
  border-color: #6f592e;
  background: #332b1a;
  color: #f1d08d;
}

@media (max-width: 720px) {
  html[data-theme="dark"] .admin-data-table tr,
  html[data-theme="dark"] .admin-data-table td {
    border-color: #2b3a35;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 8px;
    padding-inline: 10px;
  }

  .site-header .brand {
    gap: 6px;
  }

  .site-header .brand img {
    width: 44px;
    height: 44px;
  }

  .header-tools {
    gap: 6px;
  }

  .site-header .theme-toggle,
  .site-header .menu-button {
    width: 40px;
    height: 40px;
  }

  .site-header .account-link {
    max-width: 88px;
    min-height: 40px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .admin-login-heading {
    padding-right: 46px;
  }

  .admin-login-theme-toggle {
    top: 20px;
    right: 20px;
  }
}

.admin-topbar .admin-brand img {
  width: 50px;
  height: 50px;
}

@media (max-width: 720px) {
  .admin-topbar .admin-brand img {
    width: 46px;
    height: 46px;
  }
}

/* Paginas publicas informativas */
.nav-links a.is-active {
  border-color: var(--coral);
  color: var(--forest);
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 42px;
}

.footer-link-group {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-link-group > strong {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.footer-link-group .footer-links {
  display: grid;
  align-items: start;
  gap: 9px;
  font-weight: 750;
}

.footer-link-group .footer-links a {
  width: max-content;
  max-width: 100%;
}

.public-page main {
  min-height: 58svh;
}

.public-hero {
  position: relative;
  isolation: isolate;
  min-height: min(58svh, 620px);
  overflow: hidden;
  background: #0c372d;
  color: white;
}

.public-hero > img,
.public-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.public-hero > img {
  z-index: -2;
  object-fit: cover;
  object-position: center 48%;
}

.public-hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 36, 28, 0.94) 0%, rgba(5, 36, 28, 0.72) 48%, rgba(5, 36, 28, 0.28) 100%);
}

.public-hero-content {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: min(58svh, 620px);
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  padding: 52px 0 68px;
}

.public-hero-content h1 {
  display: flex;
  gap: 14px;
  margin: 8px 0 18px;
  font-family: Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  font-style: italic;
  line-height: 0.86;
  text-transform: uppercase;
}

.public-hero-content h1 span {
  color: #ffffff;
}

.public-hero-content h1 b {
  color: #ef3046;
  font-weight: inherit;
}

.public-hero-content > p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.public-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0;
}

.public-section-heading {
  max-width: 650px;
}

.public-section-heading.compact {
  max-width: 720px;
}

.public-section-heading h2,
.identity-section h2,
.contact-help h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.public-section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.about-intro-copy {
  padding-top: 4px;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-intro-copy p {
  margin: 0 0 20px;
}

.public-band {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.principle-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 6px;
  background: var(--forest-soft);
  color: var(--forest);
}

.feature-icon.red {
  background: #fbe8eb;
  color: var(--coral);
}

.feature-icon.gold {
  background: #fff2ce;
  color: #8a6200;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.principle-grid h3 {
  margin: 24px 0 8px;
  font-size: 1.25rem;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
}

.identity-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 640px);
  gap: 72px;
  align-items: center;
  justify-content: center;
}

.identity-mark {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
}

.identity-mark img {
  width: min(100%, 250px);
  filter: drop-shadow(0 18px 24px rgba(0, 61, 44, 0.16));
}

.identity-section p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.public-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 54px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--forest);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 40px rgba(6, 35, 27, 0.08);
  color: white;
}

.public-cta-band h2 {
  margin: 6px 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.public-cta-band p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.button-light {
  flex: 0 0 auto;
  background: white;
  color: var(--forest-dark);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.button-light:hover {
  background: #f5f7f3;
}

.button svg {
  width: 19px;
  height: 19px;
}

.public-title-band {
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 62px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #064936;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 40px rgba(6, 35, 27, 0.08);
  color: white;
}

.public-title-band > div {
  max-width: 760px;
}

.public-title-band h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.public-title-band > div > p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.title-band-icon {
  display: grid;
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: white;
}

.title-band-icon svg {
  width: 50px;
  height: 50px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: 72px;
  align-items: start;
}

.contact-form-column {
  min-width: 0;
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form > label,
.contact-form-grid > label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form label > small,
.contact-form-grid label > small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
  padding: 13px 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.12);
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.privacy-summary {
  padding: 18px;
  border: 1px solid #b9d8cc;
  border-radius: 5px;
  background: var(--forest-soft);
  box-shadow: 0 9px 24px rgba(18, 80, 59, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.privacy-summary.compact {
  padding: 14px;
}

.privacy-summary.compact p {
  font-size: 0.77rem;
}

.auth-form .privacy-consent {
  display: flex;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.8rem;
}

.auth-form .privacy-consent input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.profile-privacy-link {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.profile-privacy-link a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
}

.privacy-summary p {
  margin: 0;
  color: #31544a;
  font-size: 0.84rem;
}

.privacy-summary a,
.privacy-content a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.privacy-consent input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.contact-submit {
  width: max-content;
  min-width: 190px;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid #a9d8c7;
  border-radius: 5px;
  background: #edf8f4;
  box-shadow: 0 9px 24px rgba(21, 91, 67, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #155b43;
}

.form-alert.error {
  border-color: #e9b8bd;
  background: #fff0f2;
  color: #8e1725;
}

.form-alert > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.form-alert > div {
  display: grid;
  gap: 3px;
}

.form-alert span,
.form-alert code {
  display: block;
}

.form-alert code {
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-weight: 800;
}

.contact-help {
  position: sticky;
  top: 110px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.contact-help h2 {
  font-size: 1.7rem;
}

.contact-topic-list {
  display: grid;
  gap: 0;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.contact-topic-list li,
.contact-location {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-topic-list svg,
.contact-location > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--forest);
}

.contact-topic-list div,
.contact-location div {
  display: grid;
  gap: 4px;
}

.contact-topic-list span,
.contact-location span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-location {
  margin-top: 8px;
  padding-bottom: 0;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 72px;
  justify-content: center;
  align-items: start;
}

.privacy-index {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.privacy-index > strong {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.privacy-index nav {
  display: grid;
  gap: 7px;
}

.privacy-index a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.privacy-index a:hover {
  border-color: var(--coral);
  color: var(--ink);
}

.privacy-content {
  min-width: 0;
}

.privacy-lead {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 650;
}

.privacy-content section {
  position: relative;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.privacy-content section:last-child {
  padding-bottom: 0;
}

.legal-number {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
}

.privacy-content h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.privacy-content h3 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.privacy-content p {
  color: var(--muted);
}

.privacy-content p strong,
.privacy-content li strong {
  color: var(--ink);
}

.legal-list,
.legal-steps {
  display: grid;
  gap: 11px;
  margin: 18px 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #efc2c8;
  border-radius: 5px;
  background: #fff0f2;
  box-shadow: 0 9px 24px rgba(111, 49, 57, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.legal-callout svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--coral);
}

.legal-callout p {
  margin: 0;
  color: #6f3139;
}

.legal-contact-button {
  margin-top: 20px;
  text-decoration: none !important;
}

html[data-theme="dark"] .nav-links a.is-active {
  color: #77ddb6;
}

html[data-theme="dark"] .public-band,
html[data-theme="dark"] .principle-grid article,
html[data-theme="dark"] .contact-help,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea {
  border-color: var(--line);
  background: var(--paper);
}

html[data-theme="dark"] .feature-icon {
  background: #183d31;
  color: #69d3aa;
}

html[data-theme="dark"] .feature-icon.red {
  background: #402128;
  color: #ff8390;
}

html[data-theme="dark"] .feature-icon.gold {
  background: #3b3019;
  color: #f0c467;
}

html[data-theme="dark"] .identity-mark img {
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.38));
}

html[data-theme="dark"] .public-title-band {
  background: #073b2e;
}

html[data-theme="dark"] .privacy-summary {
  border-color: #315b4c;
  background: #17362c;
}

html[data-theme="dark"] .privacy-summary p {
  color: #b9d3ca;
}

html[data-theme="dark"] .form-alert {
  border-color: #326a54;
  background: #153126;
  color: #a2e4ca;
}

html[data-theme="dark"] .form-alert.error {
  border-color: #704047;
  background: #351f23;
  color: #ffabb3;
}

html[data-theme="dark"] .form-alert code {
  background: rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .legal-callout {
  border-color: #704047;
  background: #351f23;
}

html[data-theme="dark"] .legal-callout p {
  color: #eab8be;
}

html[data-theme="dark"] .privacy-summary a,
html[data-theme="dark"] .privacy-content a {
  color: #6dd7ae;
}

@media (max-width: 1050px) {
  .site-footer {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .contact-layout {
    gap: 42px;
  }

  .privacy-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
  }
}

@media (min-width: 901px) and (max-width: 1260px) {
  .site-header {
    gap: 16px;
    padding-inline: 24px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  .site-header .brand-copy small {
    display: none;
  }
}

@media (max-width: 800px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .about-intro,
  .identity-section,
  .contact-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: 0;
  }

  .identity-mark {
    width: min(230px, 60vw);
    justify-self: center;
  }

  .contact-help,
  .privacy-index {
    position: static;
  }

  .privacy-index {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
  }

  .privacy-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 18px;
  }

  .public-cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .public-hero {
    min-height: 500px;
  }

  .public-hero-shade {
    background: rgba(5, 36, 28, 0.8);
  }

  .public-hero-content {
    width: calc(100% - 36px);
    min-height: 500px;
    padding: 46px 0 56px;
  }

  .public-hero-content h1 {
    flex-direction: column;
    gap: 0;
    font-size: 4.5rem;
  }

  .public-section {
    width: calc(100% - 36px);
    padding: 54px 0;
  }

  .public-title-band {
    min-height: 280px;
    align-items: flex-start;
    padding: 48px 18px;
  }

  .title-band-icon {
    display: none;
  }

  .contact-form-grid,
  .privacy-index nav,
  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .footer-navigation {
    gap: 28px;
  }

  .contact-help {
    padding: 22px;
  }

  .contact-submit,
  .public-cta-band .button {
    width: 100%;
  }

  .privacy-content section {
    padding: 36px 0;
  }
}

/* Bandeja de Contacto */
.admin-status.new {
  background: #fde7ea;
  color: #a9172a;
}

.admin-status.read {
  background: #e5eef2;
  color: #385c6b;
}

.admin-status.resolved {
  background: #e3f4ec;
  color: #136849;
}

.admin-messages-table {
  min-width: 1080px;
}

.admin-contact-message-cell p {
  width: min(34vw, 390px);
  margin: 0;
  color: #43504c;
  line-height: 1.45;
  white-space: pre-wrap;
}

.admin-sensitive-label {
  width: max-content;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e8f2f8;
  color: #32677d !important;
  font-weight: 850;
}

.admin-contact-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-contact-delete {
  border-color: #efc6cb;
  color: #b42335;
}

.admin-contact-delete:hover {
  border-color: #b42335;
  background: #fff0f2;
}

html[data-theme="dark"] .admin-status.new {
  background: #422027;
  color: #ff9aa5;
}

html[data-theme="dark"] .admin-status.read {
  background: #1d3038;
  color: #a6ccdc;
}

html[data-theme="dark"] .admin-status.resolved {
  background: #19382e;
  color: #75d7b1;
}

html[data-theme="dark"] .admin-contact-message-cell p {
  color: #c2ccc8;
}

html[data-theme="dark"] .admin-sensitive-label {
  background: #19313c;
  color: #9ed0e5 !important;
}

html[data-theme="dark"] .admin-contact-delete {
  border-color: #704047;
  color: #ff9aa5;
}

html[data-theme="dark"] .admin-contact-delete:hover {
  border-color: #e85a69;
  background: #351f23;
}

@media (max-width: 720px) {
  .admin-messages-table {
    min-width: 0;
  }

  .admin-contact-message-cell p {
    width: 100%;
  }

  .admin-contact-actions,
  .admin-contact-actions form,
  .admin-contact-actions .admin-inline-form {
    width: 100%;
  }

  .admin-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-contact-delete {
    width: 100%;
  }
}

/* Preguntas frecuentes */
.home-faq-section {
  border-top: 1px solid var(--line);
}

.home-faq-heading-copy {
  max-width: 430px;
}

.home-faq-heading-copy p {
  margin: 0 0 10px;
  color: var(--muted);
}

.home-faq-heading-copy a {
  color: var(--forest);
  font-weight: 850;
}

.home-faq-heading-copy a:hover {
  color: var(--coral);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.home-faq-list {
  max-width: 920px;
  margin: 42px 0 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.faq-item summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary > span {
  display: grid;
  gap: 4px;
}

.faq-item summary small {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-symbol {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 160ms ease, transform 160ms ease;
}

.faq-symbol::before,
.faq-symbol::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.faq-symbol::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-symbol {
  border-color: var(--coral);
  color: var(--coral);
  transform: rotate(45deg);
}

.faq-item summary:hover .faq-symbol {
  border-color: var(--forest);
}

.faq-answer {
  max-width: 780px;
  padding: 0 58px 24px 0;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-page-shell {
  width: min(1040px, calc(100% - 48px));
}

.faq-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 52px;
  align-items: end;
}

.faq-page-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.faq-page-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
}

.faq-toolbar {
  display: grid;
  gap: 13px;
  margin: 46px 0 20px;
  padding: 26px 0 28px;
  border-block: 1px solid var(--line);
}

.faq-search-label {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-box > svg {
  position: absolute;
  left: 15px;
  z-index: 1;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}

.faq-search-box input {
  min-height: 54px;
  padding: 0 54px 0 46px;
  border-color: var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.faq-search-box button {
  position: absolute;
  right: 7px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.faq-search-box button:hover {
  background: var(--forest-soft);
  color: var(--forest);
}

.faq-search-box button svg {
  width: 18px;
  height: 18px;
}

.faq-filter-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: var(--forest-soft);
}

.faq-filter-tabs button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #426057;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.faq-filter-tabs button.is-active {
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 3px 9px rgba(14, 57, 45, 0.1);
}

.faq-results-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.faq-no-results {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.faq-no-results svg {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: var(--coral);
}

.faq-no-results strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.faq-no-results .button {
  margin-top: 14px;
}

html[data-theme="dark"] .home-faq-section {
  border-color: var(--line);
}

html[data-theme="dark"] .faq-search-box input {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

html[data-theme="dark"] .faq-filter-tabs {
  background: #17362c;
}

html[data-theme="dark"] .faq-filter-tabs button {
  color: #b9d3ca;
}

html[data-theme="dark"] .faq-filter-tabs button.is-active {
  background: #243d35;
  color: #78d9b3;
  box-shadow: none;
}

html[data-theme="dark"] .faq-search-box button:hover {
  background: #243d35;
  color: #78d9b3;
}

html[data-theme="dark"] .faq-answer a,
html[data-theme="dark"] .home-faq-heading-copy a {
  color: #6dd7ae;
}

@media (max-width: 800px) {
  .faq-page-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-faq-list {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .faq-page-shell {
    width: calc(100% - 36px);
  }

  .faq-toolbar {
    margin-top: 34px;
  }

  .faq-filter-tabs {
    width: 100%;
  }

  .faq-filter-tabs button {
    flex: 1 1 calc(33.333% - 4px);
    padding-inline: 8px;
  }

  .faq-item summary {
    min-height: 70px;
    gap: 14px;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding-right: 0;
  }
}

/* Pago SPEI */
.spei-checkout-shell {
  width: min(1080px, calc(100% - 48px));
}

.spei-checkout-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.spei-checkout-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.spei-expiry {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.spei-expiry svg {
  width: 24px;
  height: 24px;
  color: var(--coral);
}

.spei-expiry strong {
  color: var(--ink);
}

.spei-checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.spei-order-summary,
.spei-transfer-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.spei-order-summary {
  overflow: hidden;
}

.spei-order-summary > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.spei-order-summary > div {
  padding: 22px;
}

.spei-order-summary h3 {
  margin: 5px 0 20px;
  font-size: 1.35rem;
}

.spei-order-summary dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.spei-order-summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.spei-order-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.spei-order-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.spei-warning {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid #f0c9ce;
  background: #fff3f4;
  color: #8e2633;
  font-size: 0.76rem;
  line-height: 1.5;
}

.spei-warning svg {
  width: 18px;
  height: 18px;
}

.spei-transfer-panel {
  padding: 26px;
  box-shadow: 0 16px 38px rgba(13, 49, 39, 0.08);
}

.spei-transfer-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.spei-transfer-heading h3 {
  margin: 5px 0 0;
  font-size: 1.45rem;
}

.spei-transfer-heading > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #abd4c3;
  border-radius: 4px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
}

.spei-transfer-heading > span svg {
  width: 16px;
  height: 16px;
}

.spei-bank-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.spei-bank-details > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 16px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.spei-bank-details dt {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 750;
}

.spei-bank-details dd {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.spei-bank-details code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.78rem, 1.8vw, 0.96rem);
  font-weight: 850;
}

.spei-bank-details button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}

.spei-bank-details button:hover,
.spei-bank-details button.is-copied {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.spei-bank-details button svg {
  width: 17px;
  height: 17px;
}

.spei-custom-instructions {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid #b9d8cc;
  border-radius: 5px;
  background: var(--forest-soft);
  box-shadow: 0 9px 24px rgba(18, 80, 59, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--forest-dark);
  font-size: 0.82rem;
  line-height: 1.55;
}

.spei-report-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.spei-report-form > label:first-of-type {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.spei-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.62fr);
  gap: 12px;
}

.spei-report-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.spei-report-form label > small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.spei-receipt-upload {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px dashed #9eb9df;
  border-radius: 6px;
  background: #f5f9ff;
  color: var(--ink);
}

.spei-receipt-upload > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spei-receipt-upload > span svg {
  width: 19px;
  height: 19px;
  color: var(--blue);
}

.spei-receipt-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.spei-file-control {
  display: grid;
  min-width: 0;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.spei-file-button {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 12px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.spei-file-name {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.spei-receipt-input:focus-visible + .spei-file-control {
  outline: 3px solid rgba(40, 103, 216, 0.28);
  outline-offset: 2px;
}

.spei-receipt-upload small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.spei-confirmation {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.spei-confirmation input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--forest);
}

.spei-report-form .form-message {
  margin: 0;
}

.spei-state-panel {
  display: grid;
  max-width: 680px;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 42px;
  border-block: 1px solid var(--line);
  text-align: center;
}

.spei-state-panel > svg {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  color: var(--coral);
}

.spei-state-panel.is-success > svg {
  color: var(--success);
}

.spei-state-panel.is-review > svg,
.spei-state-panel.is-warning > svg {
  color: var(--warning);
}

.spei-state-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.spei-state-panel p {
  max-width: 520px;
  margin: 0 0 14px;
  color: var(--muted);
}

/* Números en Mi cuenta */
.reservation-ticket-view {
  min-height: 30px;
  margin-top: 3px;
  padding: 0;
  color: var(--forest);
  font-size: 0.76rem;
}

.reservation-receipt-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.reservation-receipt-link:hover {
  color: var(--coral-dark);
}

.account-tickets-dialog {
  width: min(620px, calc(100vw - 28px));
}

.account-tickets-grid {
  display: grid;
  min-height: 300px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--canvas);
}

.account-tickets-grid span {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(0.55rem, 1.4vw, 0.7rem);
  font-weight: 900;
}

/* Configuración SPEI en administración */
.admin-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.admin-form .admin-payment-switch {
  display: flex;
  min-height: 46px;
  justify-content: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #e5ebe8;
}

.admin-spei-workflow ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-spei-workflow li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid #e5ebe8;
}

.admin-spei-workflow li:first-child {
  border-top: 0;
}

.admin-spei-workflow li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-spei-workflow strong {
  font-size: 0.84rem;
}

.admin-spei-workflow p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.admin-payment-warning {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  margin: 16px -20px -20px;
  padding: 15px 20px;
  border-top: 1px solid #efc7cc;
  background: #fff1f2;
  color: #8f2935 !important;
}

.admin-payment-warning svg {
  width: 18px;
  height: 18px;
}

.admin-spei-review-form {
  flex-wrap: wrap;
  min-width: 190px;
}

.admin-review-check {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  color: #775000;
  font-size: 0.68rem;
  font-weight: 850;
}

.admin-review-check input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--forest);
}

.admin-review-check.is-danger {
  color: #ad1f31;
}

.admin-review-check.is-danger input {
  accent-color: #c8263d;
}

.admin-ai-review {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 8px;
}

.admin-ai-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.2;
}

.admin-ai-badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.admin-ai-badge.pending,
.admin-ai-badge.processing {
  border-color: #b7c9e7;
  background: #eef5ff;
  color: #24558e;
}

.admin-ai-badge.processing svg {
  animation: admin-ai-scan 1.6s ease-in-out infinite;
}

.admin-ai-badge.match {
  border-color: #a9d9c4;
  background: #eaf8f1;
  color: #156847;
}

.admin-ai-badge.review,
.admin-ai-badge.failed,
.admin-ai-badge.manual {
  border-color: #e5ca8f;
  background: #fff8e6;
  color: #775000;
}

.admin-ai-badge.reject {
  border-color: #e9abb3;
  background: #fff0f2;
  color: #a81e31;
}

.admin-ai-details-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 850;
}

.admin-ai-details-trigger svg {
  width: 13px;
  height: 13px;
}

body.admin-ai-dialog-open {
  overflow: hidden;
}

.admin-ai-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid #bfd0ca;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(3 30 23 / 0.28);
}

.admin-ai-dialog::backdrop {
  background: rgb(3 25 20 / 0.74);
  backdrop-filter: blur(3px);
}

.admin-ai-dialog-shell > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #f2f7f5;
}

.admin-ai-dialog-shell > header p {
  margin: 0 0 3px;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-ai-dialog-shell > header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-ai-dialog-content {
  display: grid;
  gap: 0;
  padding: 0 22px 22px;
}

.admin-ai-dialog-content > section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-ai-dialog-content h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
}

.admin-ai-dialog-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-ai-dialog-result p,
.admin-ai-dialog-reasons > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-ai-dialog-reasons ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  font-size: 0.76rem;
  line-height: 1.42;
}

.admin-ai-dialog-fields dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
}

.admin-ai-dialog-fields dl > div {
  display: grid;
  gap: 2px;
}

.admin-ai-dialog-fields dt {
  color: var(--muted);
  font-size: 0.66rem;
}

.admin-ai-dialog-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-ai-dialog-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 0;
  padding: 13px 14px;
  border: 1px solid #e3c579;
  border-radius: 6px;
  background: #fff8e5;
  color: #6d4a00;
  font-size: 0.72rem;
  line-height: 1.4;
}

.admin-ai-dialog-warning svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.admin-ai-retry-form button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 850;
}

.admin-ai-retry-form button svg {
  width: 13px;
  height: 13px;
}

@keyframes admin-ai-scan {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.admin-cep-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 850;
}

.admin-cep-link svg {
  width: 13px;
  height: 13px;
}

html[data-theme="dark"] .spei-order-summary,
html[data-theme="dark"] .spei-transfer-panel {
  border-color: var(--line);
  background: var(--paper);
}

html[data-theme="dark"] .spei-warning {
  border-color: #6e333b;
  background: #341e22;
  color: #ffadb5;
}

html[data-theme="dark"] .spei-transfer-heading > span {
  border-color: #376854;
  color: #78d9b3;
}

html[data-theme="dark"] .spei-bank-details button:hover,
html[data-theme="dark"] .spei-bank-details button.is-copied,
html[data-theme="dark"] .spei-custom-instructions {
  border-color: #315b4c;
  background: #17362c;
  color: #b7e8d5;
}

html[data-theme="dark"] .spei-receipt-upload {
  border-color: #425b83;
  background: #18243a;
}

html[data-theme="dark"] .account-tickets-grid {
  border-color: var(--line);
  background: #0f1715;
}

html[data-theme="dark"] .account-tickets-grid span {
  border-color: #43534d;
  background: #17221f;
}

html[data-theme="dark"] .admin-form .admin-payment-switch {
  border-color: var(--line);
}

html[data-theme="dark"] .admin-spei-workflow li {
  border-color: var(--line);
}

html[data-theme="dark"] .admin-review-check {
  color: #f0c56b;
}

html[data-theme="dark"] .admin-review-check.is-danger {
  color: #ff9ca9;
}

html[data-theme="dark"] .admin-ai-badge.pending,
html[data-theme="dark"] .admin-ai-badge.processing {
  border-color: #36577d;
  background: #182941;
  color: #a8caf3;
}

html[data-theme="dark"] .admin-ai-badge.match {
  border-color: #32634f;
  background: #18362c;
  color: #90dfbe;
}

html[data-theme="dark"] .admin-ai-badge.review,
html[data-theme="dark"] .admin-ai-badge.failed,
html[data-theme="dark"] .admin-ai-badge.manual {
  border-color: #725d30;
  background: #342c1c;
  color: #f1ce7e;
}

html[data-theme="dark"] .admin-ai-badge.reject {
  border-color: #703843;
  background: #381e25;
  color: #ffabb7;
}

html[data-theme="dark"] .admin-ai-dialog {
  border-color: var(--line);
  background: #111a17;
}

html[data-theme="dark"] .admin-ai-dialog-shell > header {
  background: #17231f;
}

html[data-theme="dark"] .admin-ai-dialog-warning {
  border-color: #735f2d;
  background: #332b19;
  color: #f2ce78;
}

html[data-theme="dark"] .admin-payment-warning {
  border-color: #66343b;
  background: #321d21;
  color: #ffabb3 !important;
}

@media (max-width: 900px) {
  .spei-checkout-grid,
  .admin-payment-layout {
    grid-template-columns: 1fr;
  }

  .spei-order-summary {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }

  .spei-order-summary > img {
    height: 100%;
    aspect-ratio: auto;
  }

  .spei-warning {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .spei-checkout-shell {
    width: calc(100% - 36px);
  }

  .spei-checkout-heading {
    align-items: start;
    flex-direction: column;
  }

  .spei-order-summary {
    display: block;
  }

  .spei-transfer-panel {
    padding: 20px 16px;
  }

  .spei-bank-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 0;
  }

  .spei-report-grid {
    grid-template-columns: 1fr;
  }

  .spei-state-panel {
    min-height: 320px;
    padding: 32px 12px;
  }

  .account-tickets-grid {
    min-height: 390px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .account-tickets-grid span {
    font-size: clamp(0.58rem, 2.6vw, 0.72rem);
  }

  .admin-ai-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .admin-ai-dialog-shell > header,
  .admin-ai-dialog-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .admin-ai-dialog-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-ai-dialog-fields dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-ai-badge.processing svg {
    animation: none;
  }
}

/* Acabado público de profundidad y detalle de marca */
.home-page .site-header,
.public-page .site-header {
  border-bottom-color: rgba(21, 59, 114, 0.16);
  box-shadow: 0 12px 30px rgba(15, 35, 72, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.72);
}

.home-page .site-header::before,
.public-page .site-header::before {
  content: none;
}

.home-page .brand-wordmark span:first-child,
.public-page .brand-wordmark span:first-child {
  color: var(--blue);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(21, 59, 114, 0.18);
}

.home-page .account-link,
.public-page .account-link {
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(40, 103, 216, 0.2);
}

.home-page .account-link:hover,
.public-page .account-link:hover {
  background: var(--navy);
}

.home-page .theme-toggle:hover,
.public-page .theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.home-page .hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 24, 58, 0.94) 0%, rgba(17, 47, 97, 0.76) 38%, rgba(17, 47, 97, 0.08) 72%),
    linear-gradient(180deg, rgba(15, 32, 70, 0.02), rgba(242, 56, 90, 0.28));
}

.home-page .hero-title-rifas {
  color: #26c8ca;
}

.home-page .hero-title-teju {
  color: #ff405f;
}

.home-page .hero-tagline {
  color: #ffe27a;
}

.home-page .trust-strip {
  position: relative;
  width: min(430px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-color: rgba(220, 232, 255, 0.42);
  background: rgba(8, 27, 61, 0.7);
  box-shadow: 0 20px 44px rgba(4, 16, 41, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.home-page .trust-strip div {
  background: transparent;
  box-shadow: none;
}

.home-page .trust-strip div + div {
  border-left: 1px solid rgba(220, 232, 255, 0.24);
}

.home-page .trust-strip::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: #102a56;
  box-shadow: 0 5px 14px rgba(3, 12, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  content: "RT";
  font-size: 0.52rem;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.home-page .prizes-section {
  background: #edf6ff;
}

.home-page .raffle-grid {
  grid-template-columns: minmax(0, 1fr);
}

.home-page .raffle-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  border-color: #cbdcf5;
  box-shadow: 0 18px 44px rgba(21, 59, 114, 0.12);
}

.home-page .raffle-card.is-active {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(242, 56, 90, 0.14), 0 20px 48px rgba(21, 59, 114, 0.15);
}

.home-page .raffle-media {
  min-height: 420px;
  aspect-ratio: auto;
  background: #dcecff;
}

.home-page .raffle-body {
  padding: 34px;
}

.home-page .raffle-body h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.home-page .raffle-body > p {
  font-size: 1.02rem;
}

.home-page .raffle-meta {
  align-items: stretch;
  margin: 28px 0;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.home-page .raffle-price,
.home-page .raffle-minimum {
  display: grid;
}

.home-page .raffle-price strong {
  color: var(--coral);
  font-size: 2rem;
}

.home-page .raffle-minimum {
  text-align: right;
}

.home-page .raffle-minimum strong {
  color: var(--blue);
  font-size: 2rem;
  line-height: 1.15;
}

.home-page .raffle-minimum small {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-page .raffle-body .button {
  margin-top: auto;
}

.home-page .machine-section {
  background: #102f59;
}

.home-page .machine-section .eyebrow.light {
  color: #61e2d5;
}

.home-page .machine-limit {
  color: #ffe27a;
}

.home-page .machine-controls,
.home-page .order-summary {
  border-color: rgba(77, 198, 203, 0.3);
  background: rgba(13, 58, 99, 0.74);
  box-shadow: 0 22px 48px rgba(3, 18, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.home-page .steps-section {
  background: #fff8df;
}

.home-page .steps li:nth-child(1) span { color: var(--coral); }
.home-page .steps li:nth-child(2) span { color: var(--blue); }
.home-page .steps li:nth-child(3) span { color: var(--forest); }
.home-page .steps li:nth-child(4) span { color: #a66b00; }

.home-page .steps p {
  color: #5f6675;
}

.home-page .home-faq-section {
  background: #ffffff;
}

.home-page .winners-section {
  background: #edfaf6;
}

.home-page .winner-card {
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(21, 59, 114, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-page .site-footer,
.public-page .site-footer {
  background: #101d3b;
}

.public-page .public-title-band {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: var(--navy);
}

.public-page .public-cta-band {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: var(--blue);
}

.public-page .spei-title-band {
  background: #153b72;
}

.public-page .spei-transfer-panel {
  box-shadow: 0 16px 38px rgba(21, 59, 114, 0.1);
}

/* Varias cuentas receptoras en administración */
.admin-spei-accounts {
  display: grid;
  gap: 14px;
}

.admin-spei-account {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-spei-account legend {
  display: flex;
  max-width: 100%;
  align-items: baseline;
  gap: 9px;
  padding: 0 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-spei-account legend small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .home-page .site-header,
html[data-theme="dark"] .public-page .site-header {
  border-bottom-color: var(--line);
  background: rgba(15, 19, 34, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .home-page .brand-wordmark span:first-child,
html[data-theme="dark"] .public-page .brand-wordmark span:first-child {
  color: #71a5ff;
  text-shadow: 1px 1px 0 #0d1120, 2px 2px 0 rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .home-page .account-link,
html[data-theme="dark"] .public-page .account-link {
  background: #326bd1;
}

html[data-theme="dark"] .home-page .prizes-section,
html[data-theme="dark"] .home-page .home-faq-section {
  background: #14192a;
}

html[data-theme="dark"] .home-page .raffle-card {
  border-color: #34466d;
  background: #1a2135;
}

html[data-theme="dark"] .home-page .raffle-card.is-active {
  border-color: var(--coral);
}

html[data-theme="dark"] .home-page .steps-section {
  background: #242017;
}

html[data-theme="dark"] .home-page .steps p {
  color: var(--muted);
}

html[data-theme="dark"] .home-page .winners-section {
  background: #101f24;
}

html[data-theme="dark"] .home-page .winner-card {
  background: #171b2a;
}

html[data-theme="dark"] .home-page .machine-section {
  background: #0c2343;
}

html[data-theme="dark"] .public-page .public-title-band,
html[data-theme="dark"] .public-page .spei-title-band {
  background: #102b56;
}

html[data-theme="dark"] .admin-spei-account {
  border-color: var(--line);
}

@media (max-width: 780px) {
  .home-page .raffle-card {
    display: flex;
  }

  .home-page .raffle-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .home-page .raffle-body {
    padding: 23px;
  }
}

@media (max-width: 520px) {
  .home-page .trust-strip {
    width: 100%;
  }

  .home-page .raffle-meta {
    gap: 18px;
  }

  .home-page .raffle-price strong,
  .home-page .raffle-minimum strong {
    font-size: 1.65rem;
  }

  .raffle-offer-badge {
    top: 12px;
    left: 12px;
    width: min(235px, calc(100% - 24px));
    height: 68px;
  }

  .raffle-offer-burst {
    width: 68px;
    height: 68px;
  }

  .raffle-offer-ball {
    top: 6px;
    left: 6px;
    width: 52px;
    height: 52px;
  }

  .raffle-offer-ball strong {
    font-size: 1.2rem;
  }

  .raffle-offer-ball.digits-3 strong {
    font-size: 0.98rem;
  }

  .raffle-offer-ball.digits-4 strong {
    font-size: 0.8rem;
  }

  .raffle-offer-ball.digits-5 strong {
    font-size: 0.66rem;
  }

  .raffle-offer-ribbon {
    top: 11px;
    left: 45px;
    min-height: 48px;
    padding: 6px 13px 6px 27px;
  }

  .raffle-offer-ribbon strong {
    font-size: 0.62rem;
  }

  .progress-row {
    align-items: flex-end;
  }

  .raffle-progress-meter {
    min-height: 48px;
    grid-template-columns: minmax(50px, auto) minmax(0, 1fr);
    gap: 8px;
    padding: 6px 8px 6px 12px;
  }

  .progress-percentage {
    font-size: 0.92rem;
  }

  .progress-track {
    height: 28px;
  }

  .admin-spei-account {
    padding: 13px;
  }
}

/* Correo opcional, documentos del participante y entrega administrativa */
.field-label-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.optional-label {
  flex: 0 0 auto;
  justify-self: auto;
}

.private-field-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #b9d8cc;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.62rem;
  font-weight: 850;
}

.private-field-badge svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.profile-form textarea {
  min-height: 112px;
  resize: vertical;
}

.private-data-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: -7px;
  padding: 11px 12px;
  border: 1px solid #b9d8cc;
  border-radius: 5px;
  background: var(--forest-soft);
  color: #31544a;
}

.private-data-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--forest);
}

.private-data-note span {
  min-width: 0;
}

html[data-theme="dark"] .private-field-badge {
  border-color: #315b4c;
  background: #142b23;
  color: #75d7b1;
}

html[data-theme="dark"] .private-data-note {
  border-color: #315b4c;
  background: #142b23;
  color: #b9d3ca;
}

html[data-theme="dark"] .private-data-note svg {
  color: #75d7b1;
}

.reservation-documents {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.reservation-receipt-link.participation {
  color: var(--forest);
}

.admin-reservation-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.admin-mail-button {
  color: var(--blue);
}

.admin-mail-state {
  display: flex !important;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 0.68rem !important;
  font-weight: 850;
  line-height: 1.25;
}

.admin-mail-state svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.admin-mail-state.is-sent {
  color: var(--success) !important;
}

.admin-mail-state.is-pending {
  color: var(--warning) !important;
}

.admin-mail-state.is-missing {
  color: var(--muted) !important;
}

/* Comprobante privado de participación */
.participation-page {
  min-height: 100vh;
  background: #eaf1fb;
}

.participation-shell {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: 32px 0 72px;
}

.participation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.participation-toolbar .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.participation-toolbar svg {
  width: 18px;
  height: 18px;
}

.participation-document {
  overflow: hidden;
  border: 1px solid #c8d7ec;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(21, 59, 114, 0.13);
}

.participation-heading {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid #dbe4f1;
}

.participation-heading > img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.participation-heading p,
.participation-heading strong {
  display: block;
  margin: 0;
}

.participation-heading p {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.participation-heading strong {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.participation-confirmed {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 999px;
  background: #dff7ec;
  color: #08714f;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.participation-confirmed svg {
  width: 17px;
  height: 17px;
}

.participation-prize {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 30px;
  padding: 28px;
  background: #f7faff;
}

.participation-prize > img {
  width: 100%;
  max-height: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
}

.participation-prize h1 {
  margin: 8px 0 12px;
  color: #101827;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.participation-prize p:last-child {
  margin: 0;
  color: #56657a;
  line-height: 1.65;
}

.participation-prize p strong {
  color: var(--blue);
}

.participation-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 22px 28px;
  border-top: 1px solid #dbe4f1;
  border-bottom: 1px solid #dbe4f1;
}

.participation-facts > div {
  min-width: 0;
  padding: 4px 16px;
}

.participation-facts > div + div {
  border-left: 1px solid #dbe4f1;
}

.participation-facts dt {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.participation-facts dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: #101827;
  font-size: 1rem;
  font-weight: 900;
}

.participation-numbers {
  padding: 28px;
}

.participation-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.participation-section-heading h2 {
  margin: 5px 0 0;
  color: #101827;
  font-size: 1.65rem;
}

.participation-section-heading > span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.participation-ticket-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.participation-ticket {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 7px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.16), 0 3px 7px rgba(21, 59, 114, 0.12);
}

.participation-ticket.color-1 { background: #ef334f; }
.participation-ticket.color-2 { background: #16a878; }
.participation-ticket.color-3 { background: #2966c4; }

.participation-ticket strong {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 38%;
  place-items: center;
  padding: 2px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f2344;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.participation-ticket-grid.digits-6 strong {
  font-size: 0.63rem;
}

.participation-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  background: #101827;
  color: #cbd5e1;
}

.participation-document-footer p {
  max-width: 700px;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.55;
}

.participation-document-footer strong {
  color: #ffffff;
}

.participation-document-footer > span {
  flex: 0 0 auto;
  color: #4fd1c5;
  font-weight: 900;
}

html[data-theme="dark"] .participation-page {
  background: #0a1020;
}

html[data-theme="dark"] .participation-document {
  border-color: #34466d;
  background: #151b2b;
}

html[data-theme="dark"] .participation-heading,
html[data-theme="dark"] .participation-facts {
  border-color: #344158;
}

html[data-theme="dark"] .participation-facts > div + div {
  border-left-color: #344158;
}

html[data-theme="dark"] .participation-prize {
  background: #101827;
}

html[data-theme="dark"] .participation-prize h1,
html[data-theme="dark"] .participation-facts dd,
html[data-theme="dark"] .participation-section-heading h2 {
  color: #f8fafc;
}

@media (max-width: 720px) {
  .participation-shell {
    width: min(100% - 22px, 980px);
    padding-top: 18px;
  }

  .participation-toolbar {
    align-items: stretch;
  }

  .participation-toolbar .button {
    min-width: 0;
    padding: 0 12px;
    font-size: 0.73rem;
    text-align: center;
  }

  .participation-heading {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .participation-heading > img {
    width: 58px;
    height: 58px;
  }

  .participation-confirmed {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .participation-prize {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .participation-prize h1 {
    font-size: 2rem;
  }

  .participation-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
    padding: 18px;
  }

  .participation-facts > div:nth-child(odd) {
    border-left: 0;
  }

  .participation-facts > div:nth-child(even) {
    border-left: 1px solid #dbe4f1;
  }

  html[data-theme="dark"] .participation-facts > div:nth-child(even) {
    border-left-color: #344158;
  }

  .participation-numbers {
    padding: 22px 18px;
  }

  .participation-ticket-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
  }

  .participation-ticket strong,
  .participation-ticket-grid.digits-6 strong {
    font-size: clamp(0.58rem, 2.6vw, 0.74rem);
  }

  .participation-document-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }

  .reservation-documents {
    justify-items: start;
  }

  .admin-reservation-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .participation-site-header .brand-copy small {
    display: none;
  }

  .participation-site-header .brand-copy {
    display: block;
  }

  .participation-toolbar .button span {
    line-height: 1.2;
  }

  .participation-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .participation-ticket-grid {
    gap: 7px;
  }
}

@media print {
  @page {
    margin: 10mm;
  }

  .participation-page {
    background: #ffffff !important;
  }

  .participation-site-header,
  .participation-toolbar {
    display: none !important;
  }

  .participation-shell {
    width: 100%;
    padding: 0;
  }

  .participation-document {
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .participation-heading,
  .participation-prize,
  .participation-facts,
  .participation-numbers,
  .participation-document-footer {
    color-adjust: exact;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .participation-ticket-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6px;
  }

  .participation-ticket {
    break-inside: avoid;
    padding: 5px;
  }

  .participation-ticket strong,
  .participation-ticket-grid.digits-6 strong {
    font-size: 7.5pt;
  }
}
