:root {
  --blue: #009bdb;
  --green: #a3bd31;
  --ink: #1d2b35;
  --muted: #667783;
  --line: #dbe6eb;
  --surface: #ffffff;
  --soft-blue: #eaf7fc;
  --soft-green: #f4f8df;
  --shadow: 0 18px 48px rgba(16, 57, 78, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f7fbfd;
  font-family: 'Google Sans', Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: var(--blue);
  font-size: 0.88rem;
}

.topbar nav {
  display: flex;
  gap: 18px;
}

.topbar a {
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  display: block;
  width: 96px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: min(100%, 760px);
  overflow-x: auto;
  padding: 6px;
  color: #40535e;
  background: #f2f7f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
}

.main-nav a:hover {
  color: #ffffff;
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #31434e;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  overflow: hidden;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(0, 155, 219, 0.08), rgba(163, 189, 49, 0.1)),
    #f8fbfc;
  border-bottom: 1px solid var(--line);
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.68fr);
  align-items: center;
  gap: clamp(30px, 5vw, 66px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(219, 230, 235, 0.9);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(16, 57, 78, 0.1);
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 16px;
  color: #173849;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  line-height: 1.07;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 500px;
  color: #31434e;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.access-steps {
  display: grid;
  gap: 10px;
  max-width: 500px;
  margin-top: 26px;
}

.access-steps div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.access-steps p {
  margin: 0;
  color: #40535e;
  font-size: 0.94rem;
}

.access-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-card {
  width: 100%;
  max-width: 520px;
  justify-self: stretch;
  padding: 24px;
  box-shadow: 0 16px 38px rgba(16, 57, 78, 0.12);
}

.access-header h2,
.dashboard-heading h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0 22px;
  padding: 5px;
  background: #edf4f7;
  border-radius: 8px;
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #40535e;
  background: transparent;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.tab.is-active {
  color: #ffffff;
  background: var(--blue);
}

.auth-panel,
.priority-form {
  display: grid;
  gap: 12px;
}

.auth-secondary-action {
  display: flex;
  justify-content: center;
}

.auth-link-button {
  padding: 2px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  color: #006fa8;
}

.auth-button-row {
  margin-top: 4px;
}

.priority-history {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.priority-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.priority-history-heading h4,
.priority-history-item p {
  margin: 0;
}

.priority-history-heading span,
.priority-history-empty,
.priority-history-item time {
  color: var(--muted);
  font-size: 0.84rem;
}

.priority-history-list {
  display: grid;
  gap: 10px;
}

.priority-archive {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.priority-active {
  margin-top: 0;
}

.priority-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.priority-active summary {
  color: var(--ink);
}

.priority-active .priority-archive-count {
  border-color: #d8e5a2;
  color: #60721a;
  background: #f7fbe7;
}

.priority-archive summary::-webkit-details-marker {
  display: none;
}

.priority-archive summary::before {
  content: "›";
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1;
  transform: rotate(0);
  transition: transform 160ms ease;
}

.priority-archive summary > span:first-of-type {
  flex: 1;
}

.priority-archive[open] summary::before {
  transform: rotate(90deg);
}

.priority-archive-count {
  min-width: 24px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  text-align: center;
}

.priority-archive-list {
  margin-top: 10px;
}

.priority-archive-list .priority-history-item {
  background: #ffffff;
}

.priority-history-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfc;
}

.priority-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.priority-status {
  padding: 4px 8px;
  border: 1px solid #d8e5a2;
  border-radius: 999px;
  color: #60721a;
  background: #f7fbe7;
  font-size: 0.76rem;
  font-weight: 800;
}

.priority-status.is-closed {
  border-color: var(--line);
  color: var(--muted);
  background: #ffffff;
}

.priority-history-item > p {
  color: #40535e;
  line-height: 1.5;
  white-space: pre-wrap;
}

.priority-history-item time {
  display: block;
  margin-top: 10px;
}

.priority-team-response {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid var(--blue);
  background: #ffffff;
}

.priority-team-response strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.8rem;
}

.priority-team-response-content {
  max-height: 4.7em;
  overflow: hidden;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.priority-response-toggle {
  min-height: 32px;
  margin-top: 8px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.priority-response-toggle:hover {
  text-decoration: underline;
}

.priority-response-toggle:focus-visible {
  outline: 3px solid rgba(0, 155, 214, 0.24);
  outline-offset: 2px;
}

label,
.check {
  color: #2d424e;
  font-size: 0.94rem;
  font-weight: 500;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 400;
  font-size: 0.85rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #c8d8df;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(0, 155, 219, 0.24);
  outline-offset: 2px;
}

/* Corrección para inputs de tipo checkbox */
input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #c8d8df !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(0, 155, 219, 0.5) !important;
  outline-offset: 2px !important;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #ffffff;
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 155, 219, 0.22);
}

.button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

#checkMemberButton,
#sendRegistrationCodeButton {
  min-width: 146px;
}

#checkMemberButton.is-loading,
#sendRegistrationCodeButton.is-loading {
  color: #ffffff !important;
}

#checkMemberButton.is-loading::after,
#sendRegistrationCodeButton.is-loading::after {
  content: none;
}

.button-loading-label,
.button-spinner {
  display: none;
}

.button.is-loading .button-label {
  display: none;
}

.button.is-loading .button-loading-label,
.button.is-loading .button-spinner {
  display: inline-block;
}

.button.is-loading .button-spinner {
  width: 15px;
  height: 15px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spinner-rotate 0.75s linear infinite;
  vertical-align: -2px;
}

@keyframes button-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.button.secondary {
  border-color: var(--green);
  background: var(--green);
}

.button.outline,
.button.ghost {
  color: var(--blue);
  background: #ffffff;
}

.button.ghost {
  border-color: #c8d8df;
}

#logoutButton {
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.settings-button {
  color: #40535e;
}

.tour-help-button {
  color: var(--blue);
  font-weight: 900;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status.success {
  color: #61750e;
}

.status.error {
  color: #a33737;
}

.is-hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.verified-member {
  display: grid;
  gap: 2px;
  padding: 13px;
  background: var(--soft-green);
  border: 1px solid rgba(163, 189, 49, 0.35);
  border-radius: 6px;
}

.verified-member span {
  color: #61750e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard {
  padding: 56px clamp(18px, 5vw, 72px) 72px;
}

.verification-view {
  display: grid;
  min-height: calc(100vh - 190px);
  place-items: center;
  padding: clamp(32px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background: #f7fbfd;
}

.verification-panel {
  width: min(100%, 560px);
  padding: clamp(26px, 4vw, 38px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.verification-panel img {
  width: 96px;
  height: auto;
  margin-bottom: 18px;
}

.verification-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.verification-panel p {
  color: #31434e;
}

.verification-view.is-valid .verification-panel {
  border-top: 7px solid var(--green);
}

.verification-view.is-invalid .verification-panel {
  border-top: 7px solid #bd4a4a;
}

.verification-details {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.verification-details div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.verification-details dt {
  color: var(--muted);
  font-weight: 800;
}

.verification-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.dashboard.is-locked {
  display: none;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto 26px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: auto 7fr 3fr;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}

.panel {
  padding: 24px;
  scroll-margin-top: 132px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.active-vote-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 14px;
  padding: 11px 16px;
  color: #1d3340;
  background: linear-gradient(135deg, rgba(0, 155, 219, 0.12), rgba(163, 189, 49, 0.18));
  border: 1px solid rgba(0, 155, 219, 0.18);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 58, 76, 0.06);
}

.active-vote-notice span {
  display: block;
  margin-bottom: 2px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.active-vote-notice strong {
  display: block;
  font-size: 0.98rem;
}

.active-vote-notice p {
  max-width: 720px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.active-vote-notice .button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.82rem;
}

.panel-title {
  margin-bottom: 20px;
}

.panel-title h3 {
  margin-bottom: 4px;
  font-size: 1.28rem;
}

.panel-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.notifications-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notification-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.toggle-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 1.05rem;
  line-height: 1;
}

.notifications-body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-body > div {
  overflow: hidden;
}

.notifications-panel .panel-title {
  transition: margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-panel.is-collapsed .panel-title {
  margin-bottom: 0;
}

.notifications-panel.is-collapsed .notifications-body {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.member-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  --edge-left: 0;
  --edge-right: 0;
  --edge-top: 0;
  --edge-bottom: 0;
  --texture-shine: 0;
  --dot-shine: 0;
  --dot-grid-x: 17px;
  --dot-grid-y: 17px;
  --dot-offset-x: 0px;
  --dot-offset-y: 0px;
  position: relative;
  isolation: isolate;
  width: 480px;
  max-width: 100%;
  aspect-ratio: 85.6 / 53.98;
  container-type: inline-size;
  min-height: 0;
  padding: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  color: #ffffff;
  background: #e5ebed;
  border-radius: 8px;
  box-shadow:
    0 26px 58px rgba(15, 55, 74, 0.24),
    0 8px 22px rgba(15, 55, 74, 0.14);
  transform: perspective(900px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.24s ease;
}

.member-card img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.member-card.is-grabbing {
  cursor: grabbing;
  transition:
    transform 0.13s cubic-bezier(0.22, 0.9, 0.25, 1),
    box-shadow 0.16s ease;
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
  background: linear-gradient(128deg, #d7f7ff 0%, #d7f7ff 12%, #009bdb 50%, #a3bd31 100%);
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transform: translateZ(4px);
  transform-style: preserve-3d;
  transition: opacity 0.18s ease;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-face::before,
.card-face::after,
.card-glow {
  position: absolute;
  pointer-events: none;
  content: "";
  inset: 0;
}

.card-face::before {
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.4) 42%, transparent 78%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, calc(0.3 + var(--texture-shine) * 0.3)) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(18deg, transparent 0 18px, rgba(255, 255, 255, calc(0.1 + var(--texture-shine) * 0.2)) 18px 19px, transparent 19px 34px);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%;
  mix-blend-mode: overlay;
  mask-image: radial-gradient(circle 400px at var(--shine-x) var(--shine-y), rgba(0, 0, 0, calc(0.2 + var(--texture-shine) * 0.8)) 10%, rgba(0, 0, 0, 0.15) 80%);
  -webkit-mask-image: radial-gradient(circle 400px at var(--shine-x) var(--shine-y), rgba(0, 0, 0, calc(0.2 + var(--texture-shine) * 0.8)) 10%, rgba(0, 0, 0, 0.15) 80%);
}

.card-face::after {
  z-index: 0;
  opacity: 0.26;
  background:
    radial-gradient(ellipse 58% 72% at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12) 34%, transparent 68%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  mix-blend-mode: soft-light;
}

.member-card:hover,
.member-card:focus-visible {
  box-shadow:
    0 34px 76px rgba(15, 55, 74, 0.3),
    0 12px 24px rgba(15, 55, 74, 0.18);
}

.card-glow {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, calc(var(--edge-left) * 0.32)), transparent 22%),
    linear-gradient(270deg, rgba(255, 255, 255, calc(var(--edge-right) * 0.32)), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, calc(var(--edge-top) * 0.22)), transparent 18%),
    linear-gradient(0deg, rgba(255, 255, 255, calc(var(--edge-bottom) * 0.22)), transparent 18%),
    linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, calc(var(--texture-shine) * 0.2)) 42%, transparent 68%),
    radial-gradient(ellipse 72% 92% at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06) 42%, transparent 78%),
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.1) 42%, transparent 68%);
  mix-blend-mode: soft-light;
}

.card-glow::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 0.95px, transparent 1.35px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 0.7px, transparent 1.05px);
  background-position:
    0 0,
    10px 8px;
  background-size:
    17px 17px,
    28px 28px;
  mix-blend-mode: overlay;
  mask-image: radial-gradient(circle 400px at var(--shine-x) var(--shine-y), rgba(0, 0, 0, calc(0.2 + var(--dot-shine) * 0.8)) 10%, rgba(0, 0, 0, 0.1) 80%);
  -webkit-mask-image: radial-gradient(circle 400px at var(--shine-x) var(--shine-y), rgba(0, 0, 0, calc(0.2 + var(--dot-shine) * 0.8)) 10%, rgba(0, 0, 0, 0.1) 80%);
}

.card-holo-logo {
  position: absolute;
  right: -82px;
  bottom: -20px;
  width: 310px;
  height: 310px;
  background-image: url('../Recursos/Trazo%20isotipo.svg');
  background-size: contain;
  background-position: bottom right;
  background-repeat: no-repeat;
  opacity: calc(var(--texture-shine) * 0.9);
  mix-blend-mode: overlay;
  transform: translateZ(12px) rotate(0deg);
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.35));
  transition: opacity 0.18s ease;
  mask-image: radial-gradient(circle 350px at var(--shine-x) var(--shine-y), rgba(0, 0, 0, calc(0.3 + var(--texture-shine) * 0.7)) 10%, rgba(0, 0, 0, 0.2) 80%);
  -webkit-mask-image: radial-gradient(circle 350px at var(--shine-x) var(--shine-y), rgba(0, 0, 0, calc(0.3 + var(--texture-shine) * 0.7)) 10%, rgba(0, 0, 0, 0.2) 80%);
}

.card-front {
  transform: translateZ(1px);
}

.card-topline,
.card-content,
.card-meta {
  position: relative;
  z-index: 1;
}

.card-topline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.card-topline img {
  width: clamp(40px, 12cqw, 68px);
  height: auto;
}

.card-content {
  display: grid;
  grid-template-columns: clamp(74px, 24cqw, 112px) minmax(0, 1fr);
  gap: clamp(10px, 4cqw, 20px);
  align-items: center;
  min-height: 0;
}

.card-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #0a6f9e;
  background:
    linear-gradient(145deg, #ffffff, #e9f7fb),
    var(--soft-blue);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 155, 219, 0.14);
}

.card-photo img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.card-photo span {
  grid-area: 1 / 1;
  color: #0a6f9e;
  font-size: clamp(1.2rem, 8cqw, 2.2rem);
  font-weight: 900;
}

.card-photo img:not(.is-hidden) + #cardPhotoInitials {
  display: none;
}

.card-identity {
  min-width: 0;
}

.member-card span,
.member-card small,
.member-card p {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.member-card strong {
  display: block;
  max-width: 100%;
  margin: 4px 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 6cqw, 1.8rem);
  line-height: 1.05;
}

.card-status {
  width: fit-content;
  max-width: 140px;
  padding: 5px 9px;
  justify-self: end;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.card-status.is-active {
  color: var(--green);
  background: rgba(255, 255, 255, 0.96);
}

.card-status.is-inactive {
  color: #ffffff;
  background: rgba(189, 74, 74, 0.95);
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(10px, 4cqw, 24px);
  min-width: 0;
}

.card-meta p {
  min-width: 0;
  font-size: clamp(0.78rem, 2.7cqw, 0.95rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.card-meta small {
  flex: 0 0 auto;
  font-size: clamp(0.72rem, 2.45cqw, 0.88rem);
  font-weight: 700;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.photo-upload {
  cursor: pointer;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

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

.discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  background: #f5fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.discount span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.campaign-panel {
  background:
    linear-gradient(135deg, rgba(0, 155, 219, 0.08), rgba(163, 189, 49, 0.08)),
    #ffffff;
}

.campaign-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.campaign-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #526506;
  background: var(--soft-green);
  border: 1px solid rgba(163, 189, 49, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.campaign-vote-form {
  display: grid;
  gap: 16px;
}

.campaign-topic-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.campaign-topic {
  display: grid;
  gap: 8px;
  min-height: 188px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.campaign-topic:hover,
.campaign-topic.is-selected {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(16, 57, 78, 0.1);
}

.campaign-topic input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.campaign-topic span {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.campaign-topic strong,
.campaign-topic small {
  display: block;
}

.campaign-topic small {
  color: var(--muted);
  line-height: 1.45;
}

.campaign-topic input:disabled {
  opacity: 0.45;
}

.campaign-result-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  background: #e8f1f5;
  border-radius: 999px;
}

.campaign-result-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: inherit;
}

.campaign-vote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.campaign-vote-actions .status {
  margin: 0;
}

code {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: #526506;
  background: var(--soft-green);
  border: 1px solid rgba(163, 189, 49, 0.35);
  border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

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

.resource {
  min-height: 154px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #f4fafc);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource:hover {
  border-color: var(--blue);
}

.resource span {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 4px 9px;
  color: #ffffff;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.resource strong,
.resource small {
  display: block;
}

.resource small {
  margin-top: 8px;
  color: var(--muted);
}

.coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #ffffff, #f4fafc);
  border: 1px dashed #c8d8df;
  border-radius: 12px;
  gap: 12px;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  color: #ffffff;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(163, 189, 49, 0.25);
}

.coming-soon-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 480px;
  line-height: 1.5;
}

.notifications-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notifications-heading-row h3 {
  margin: 0;
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.notification-badge.has-new {
  background: rgba(0, 155, 219, 0.12);
  color: #0284c7;
  border-color: rgba(0, 155, 219, 0.35);
  font-weight: 800;
}

.notification-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284c7;
  animation: notificationPulse 2s infinite ease-in-out;
}

@keyframes notificationPulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 155, 219, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 5px rgba(0, 155, 219, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 155, 219, 0); }
}

.notifications-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.notification-item.is-new-item {
  background: #f0f9ff;
  border-color: #bae6fd;
  box-shadow: 0 2px 8px rgba(0, 155, 219, 0.08);
}

.notification-item::before {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--blue);
  border-radius: 50%;
  content: "";
}

.notification-item.is-success::before {
  background: var(--green);
}

.notification-item.is-info::before {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 155, 219, 0.15);
}

.notification-item.is-vote::before {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(163, 189, 49, 0.18);
}

.notification-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-item-header strong {
  margin: 0;
}

.notification-item .notification-pill-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #0284c7;
  color: #ffffff !important;
  border-radius: 999px;
  margin: 0;
}

.notification-item strong,
.notification-item span {
  display: block;
}

.notification-item > div > span:not(.notification-pill-new) {
  margin-top: 3px;
  color: var(--muted);
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 24px;
  background: #f7fbfd;
  border-bottom: 1px solid var(--line);
}

.settings-tab {
  min-width: 0;
  min-height: 72px;
  padding: 13px 16px 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.settings-tab:hover {
  background: rgba(0, 155, 219, 0.05);
  color: var(--ink);
}

.settings-tab.is-crm:hover {
  background: rgba(163, 189, 49, 0.08);
}

.settings-tab span,
.settings-tab strong {
  display: block;
  letter-spacing: 0;
}

.settings-tab span {
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-tab.is-crm span {
  color: #6f850f;
}

.settings-tab strong {
  color: inherit;
  font-size: 0.96rem;
}

.settings-tab.is-active {
  border-bottom-color: var(--blue);
  background: #ffffff;
  color: var(--ink);
}

.settings-tab.is-active.is-crm {
  border-bottom-color: var(--green);
}

.settings-tab-panel[hidden] {
  display: none;
}

.settings-section-heading {
  margin-bottom: 24px;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--blue);
}

.settings-section-heading.is-crm {
  border-left-color: var(--green);
}

.settings-section-heading h3 {
  margin: 6px 0 5px;
  color: var(--ink);
  font-size: 1.25rem;
}

.settings-section-heading p,
.member-update-column header p,
.settings-action-section > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-system-tag {
  display: inline-block;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-system-tag.is-crm {
  color: #6f850f;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(340px, 1.15fr);
  gap: 30px;
}

.account-summary-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.account-summary-list div {
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}

.account-summary-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.account-summary-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.security-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 18px;
  padding: 15px;
  background: var(--soft-blue);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
}

.security-toggle span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.security-toggle span strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.92rem;
}

.security-form,
.member-update-form,
.settings-action-panel {
  display: grid;
  gap: 12px;
}

.settings-action-list {
  align-self: start;
  border-top: 1px solid var(--line);
}

.settings-action-section {
  display: block;
  border-bottom: 1px solid var(--line);
}

.settings-action-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 16px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-action-trigger:hover,
.settings-action-trigger:focus-visible {
  background: rgba(0, 155, 219, 0.045);
}

.settings-action-trigger.is-crm:hover,
.settings-action-trigger.is-crm:focus-visible {
  background: rgba(163, 189, 49, 0.07);
}

.settings-action-trigger strong,
.settings-action-trigger small {
  display: block;
  letter-spacing: 0;
}

.settings-action-trigger strong {
  font-size: 1rem;
}

.settings-action-trigger small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.settings-action-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--blue);
  font-size: 1.45rem;
  font-weight: 400;
}

.settings-action-trigger.is-crm .settings-action-icon {
  color: #6f850f;
}

.settings-action-trigger.is-open .settings-action-icon {
  transform: rotate(45deg);
}

.settings-action-panel {
  padding: 4px 2px 24px;
}

.settings-action-panel[hidden] {
  display: none;
}

.settings-action-panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-action-section h4,
.member-data-section h4,
.member-update-column h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.settings-context-note {
  margin: 0;
  padding: 12px 14px;
  background: #f7fbfd;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.settings-context-note button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.crm-data-notice {
  display: grid;
  gap: 2px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(163, 189, 49, 0.1);
  border-left: 4px solid var(--green);
  border-radius: 6px;
}

.crm-data-notice strong {
  color: var(--ink);
}

.crm-data-notice span {
  color: var(--muted);
  font-size: 0.88rem;
}

.member-data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 30px;
}

.settings-member-data {
  margin: 0;
  padding: 0;
  border: 0;
}

.member-data-sections {
  display: grid;
  gap: 24px;
}

.member-data-section h4 {
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(163, 189, 49, 0.45);
}

.member-data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}

.member-data-list div {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.member-data-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.member-data-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.member-iban-mono {
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.member-update-column {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.member-update-column header {
  margin-bottom: 18px;
}

.member-update-column header h4 {
  margin: 6px 0 5px;
}

.member-update-form .field-hint {
  margin: -3px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.member-update-name-field {
  display: grid;
  gap: 8px;
}

.member-update-form .button {
  justify-self: stretch;
}
