:root {
  /* Backgrounds — deep espresso/charcoal blacks */
  --bg: #0c0806;
  --bg-soft: #110e0a;
  --bg-card: #1a1109;
  --bg-card-2: #22160c;

  /* Borders — warm smoke */
  --border: rgba(255, 180, 80, 0.07);
  --border-strong: rgba(255, 180, 80, 0.14);

  /* Text — warm off-white and parchment */
  --text: #f0ddc0;
  --text-soft: #b89068;
  --text-muted: #7a5c3a;

  /* Primary — burnt orange / FOW orb */
  --primary: #c94f0a;
  --primary-dark: #7a2500;
  --primary-glow: rgba(201, 79, 10, 0.32);

  /* Status colors (kept functional) */
  --success: #4ec97a;
  --danger: #e74c3c;

  /* Shadows — warm dark */
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.64);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.40);

  /* Radius & transitions (unchanged) */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1120px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Segoe UI', system-ui, sans-serif;
}


*, *::before, *::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-height: 100vh;
  padding-top: 100px;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(201, 79, 10, 0.13), transparent 24%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%, #060300 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


img,
video {
  display: block;
  max-width: 100%;
}


a {
  color: #e8904a;
  text-decoration: none;
  transition: var(--transition);
}


a:hover {
  color: #f5c078;
}


.container {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}


.shell {
  min-height: calc(100vh - 128px);
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
}


.page-auth {
  position: relative;
}


.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 470px);
  gap: 2.75rem;
  align-items: center;
}


.auth-layout-register {
  grid-template-columns: minmax(340px, 1fr) minmax(410px, 480px);
}


.auth-side {
  padding-right: 0.5rem;
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 79, 10, 0.28);
  background: rgba(201, 79, 10, 0.12);
  color: #e8a066;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}


.display-title {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 900;
}


.display-title-register {
  max-width: 12.2ch;
}


.section-text {
  max-width: 46ch;
  margin: 0 0 1.8rem;
  color: var(--text-soft);
  font-size: 1.03rem;
}


.feature-list {
  display: grid;
  gap: 1rem;
}


.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: var(--text-soft);
}


.feature-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}


.feature-item p {
  margin: 0;
}


.feature-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
  color: #f5e4cc;
  background: linear-gradient(135deg, rgba(201, 79, 10, 0.36), rgba(122, 37, 0, 0.16));
  border: 1px solid rgba(201, 79, 10, 0.20);
  box-shadow: var(--shadow-md);
}


.panel,
.info-card,
.community-card,
.stat-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}


.panel {
  background: linear-gradient(180deg, rgba(36, 20, 8, 0.94) 0%, rgba(12, 8, 4, 0.98) 100%);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}


.panel-header {
  margin-bottom: 1.35rem;
}


.panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 800;
}


.panel-subtitle,
.panel-footer-text,
.panel-footer-subtext,
.section-description,
.helper-text,
.muted-note {
  color: var(--text-soft);
}


.panel-footer-text {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.95rem;
}


.panel-footer-text p {
  margin: 0;
}


.panel-footer-subtext {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}


.form-stack {
  display: grid;
  gap: 1rem;
}


.field-grid {
  display: grid;
  gap: 0.95rem;
}


.field-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.field {
  display: grid;
  gap: 0.48rem;
}


.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  font-weight: 700;
}


.field-label i {
  color: #e8904a;
}


.field-control {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 160, 80, 0.08);
  background: rgba(255, 140, 50, 0.04);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 180, 80, 0.04);
}


.field-control::placeholder {
  color: #7a5c3a;
}


.field-control:focus {
  border-color: rgba(201, 79, 10, 0.55);
  background: rgba(201, 79, 10, 0.07);
  box-shadow: 0 0 0 4px rgba(201, 79, 10, 0.16);
}


.field-select {
  appearance: none;
}


.helper-text,
.muted-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}


.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}


.alert-success {
  background: rgba(78, 201, 122, 0.08);
  border: 1px solid rgba(78, 201, 122, 0.24);
  color: #7ee8a2;
}


.alert-error {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.24);
  color: #ffb0b9;
}


.captcha-box {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 160, 80, 0.08);
  background: rgba(255, 140, 50, 0.03);
  overflow-x: auto;
}


.captcha-status {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: #e8904a;
  font-size: 0.82rem;
  font-weight: 700;
}


.captcha-status.is-visible {
  display: inline-flex;
}


.captcha-status.is-error {
  color: #ffb0b9;
}


.action-stack {
  display: grid;
  gap: 0.65rem;
}


.action-stack-lg {
  margin-top: 1.5rem;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
}


.btn:hover {
  transform: translateY(-1px);
}


.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 10px 28px rgba(201, 79, 10, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}


.btn-primary:hover {
  filter: brightness(1.08);
}


.btn-secondary {
  color: var(--text);
  background: rgba(255, 160, 80, 0.05);
  border-color: rgba(255, 160, 80, 0.18);
}


.btn-secondary:hover {
  background: rgba(255, 160, 80, 0.10);
  border-color: rgba(201, 79, 10, 0.38);
}


.btn-discord {
  color: #fff;
  /* background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.45); */
  background: var(--bg-card);
  border-color: var(--border-strong);
}


.btn-block {
  width: 100%;
}


.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.1);
}


.flash-stack {
  padding-top: 1rem;
}


.home-hero {
  position: relative;
  min-height: calc(100vh - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 2rem;
  margin-top: -100px;
  isolation: isolate;
}


.home-hero-media,
.home-hero-media video,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}


.home-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(10, 5, 2, 0.28) 0%, rgba(10, 5, 2, 0.72) 70%, var(--bg) 100%),
    radial-gradient(circle at center, rgba(180, 60, 10, 0.14), transparent 42%),
    rgba(10, 5, 2, 0.30);
}


.home-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
}


.home-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 30%, #f0c080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.home-lead {
  margin: 0 0 2rem;
  max-width: 64ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}


.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-soft);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}


.is-live {
  color: var(--success);
  animation: pulse 2s infinite;
}


.stats-strip {
  position: relative;
  z-index: 4;
  padding: 2rem;
  background: rgba(20, 10, 4, 0.84);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1.2rem;
}


.stat-card {
  padding: 1.2rem 1rem;
  border-radius: 18px;
  background: rgba(255, 140, 50, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}


.stat-value {
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}


.stat-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}


.section-block {
  padding: 6rem 0;
}


.section-block-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(20, 10, 4, 0.50) 100%);
}


.section-heading {
  margin-bottom: 3rem;
}


.section-heading.centered {
  text-align: center;
}


.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  font-weight: 900;
}


.section-title-left,
.section-description-left {
  text-align: left;
}


.section-description {
  margin: 0;
  max-width: 64ch;
  font-size: 1.05rem;
}


.centered .section-description {
  margin-left: auto;
  margin-right: auto;
}


.card-grid {
  display: grid;
  gap: 1.4rem;
}


.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


.info-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(34, 18, 6, 0.92) 0%, rgba(16, 8, 2, 0.98) 100%);
  transition: var(--transition);
}


.info-card:hover {
  border-color: rgba(201, 79, 10, 0.38);
  transform: translateY(-4px);
}


.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}


.info-card p {
  margin: 0;
  color: var(--text-soft);
}


.rates-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  
}


.rates-table {
  margin-top: 2rem;
  display: grid;
  gap: 0.4rem;
}


.rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}


.rate-item span {
  color: var(--text-soft);
}


.rate-item strong {
  color: #fff;
}


.side-panel {
  padding: 2.2rem;
}


.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}


.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-soft);
}


.check-list i {
  color: var(--success);
  margin-top: 0.2rem;
}


.section-community {
  padding-bottom: 8rem;
}


.community-card {
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(140, 50, 5, 0.18) 0%, rgba(90, 30, 2, 0.07) 100%);
  border-color: rgba(180, 70, 10, 0.26);
}


@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}


@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}


@media (max-width: 980px) {
  .auth-layout,
  .auth-layout-register,
  .rates-layout,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }


  .auth-layout,
  .auth-layout-register {
    max-width: 620px;
  }


  .auth-side {
    padding-right: 0;
    text-align: center;
  }


  .section-text {
    margin-left: auto;
    margin-right: auto;
  }


  .display-title-register {
    max-width: none;
  }


  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 640px) {
  body {
    padding-top: 88px;
  }


  .container {
    width: min(calc(100% - 2rem), var(--container));
  }


  .shell {
    padding: 28px 0 44px;
  }


  .panel,
  .side-panel,
  .community-card {
    padding: 1.2rem;
    border-radius: 20px;
  }


  .display-title,
  .home-title {
    font-size: 2.2rem;
  }


  .panel-title {
    font-size: 1.35rem;
  }


  .field-grid-2,
  .stats-grid {
    grid-template-columns: 1fr;
  }


  .hero-actions {
    flex-direction: column;
    width: 100%;
  }


  .hero-actions .btn {
    width: 100%;
  }


  .section-block,
  .section-community {
    padding: 4rem 0;
    
  }
}


/* =========================
   NAVBAR
   ========================= */


.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 1200px);
  z-index: 1000;
}


.navbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255, 160, 80, 0.08);
  border-radius: 18px;
  background: rgba(12, 8, 4, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}


.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}


.nav-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5e4cc;
  box-shadow: var(--shadow-md);
}


.nav-brand-text {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 35%, #e8904a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.nav-link {
  color: rgba(240, 220, 180, 0.72);
  font-size: 0.95rem;
  font-weight: 600;
}


.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}


.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}


.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}


.nav-user-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 160, 80, 0.08);
  border: 1px solid rgba(255, 160, 80, 0.14);
  color: #fff;
}


.navbar .btn {
  min-height: 42px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}


/* =========================
   FOOTER
   ========================= */


.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2.2rem;
  border-top: 1px solid rgba(255, 160, 80, 0.07);
  background:
    linear-gradient(180deg, rgba(12, 8, 4, 0) 0%, rgba(12, 8, 4, 0.85) 18%, #060300 100%);
}


.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, 0.8fr));
  gap: 2rem;
  align-items: start;
}


.footer-brand {
  display: grid;
  gap: 1rem;
}


.footer-brand .nav-brand {
  width: fit-content;
}


.footer-description {
  margin: 0;
  max-width: 34ch;
  color: var(--text-soft);
  font-size: 0.95rem;
}


.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 160, 80, 0.10);
  background: rgba(255, 140, 50, 0.04);
  color: #fff;
}


.footer-social a:hover {
  border-color: rgba(201, 79, 10, 0.40);
  background: rgba(201, 79, 10, 0.14);
}


.footer-column {
  display: grid;
  gap: 0.85rem;
}


.footer-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}


.footer-links a {
  color: var(--text-soft);
  font-size: 0.94rem;
}


.footer-links a:hover {
  color: #fff;
}


.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 160, 80, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}


.footer-copy,
.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}


@media (max-width: 940px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(12, 8, 4, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 160, 80, 0.08);
    border-radius: 18px;
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 999;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav-link:hover {
    background: rgba(255, 140, 50, 0.07);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 160, 80, 0.14);
  border-radius: 12px;
  background: rgba(255, 140, 50, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

@media (max-width: 940px) {
  .navbar {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 160, 80, 0.08);
    background: rgba(12, 8, 4, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
    z-index: 1001;
  }

  .nav-menu.is-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 1rem), 1200px);
  }


  .navbar {
    padding: 0.8rem 0.95rem;
    min-height: 60px;
    border-radius: 16px;
  }


  .nav-brand-text {
    font-size: 0.98rem;
  }


  .nav-auth {
    gap: 0.5rem;
  }


  .nav-user-text {
    display: none;
  }


  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- PAGINA DE ERROR 404 --- */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Ocupa todo el alto de la pantalla restante */
    min-height: 85vh; 
    width: 100%;

    box-sizing: border-box;
     
    text-align: center;
}

/* El nÃºmero gigante 404 */
.error-page h1 {
    font-size: clamp(6rem, 15vw, 10rem); /* Se adapta perfectamente a mÃ³viles y PC */
    font-weight: 900;
    line-height: 1;
    margin: 0 0 1rem 0;
    
    /* Usamos tu mismo degradado del nav-brand */
    background: linear-gradient(135deg, #fff 35%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Un ligero brillo sutil de fondo */
    filter: drop-shadow(0 4px 12px var(--primary-glow));
}

/* El texto de "PÃ¡gina no encontrada" */
.error-page p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2.5rem 0;
    max-width: 400px;
    font-weight: 400;
}

/* Estilo para tu botÃ³n (si no tienes uno global, este encajarÃ¡ genial) */
.error-page .btn-primary {
    display: inline-block;
    text-decoration: none;
    background: var(--primary);
    color: #050814;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Efecto hover para el botÃ³n */
.error-page .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px); /* PequeÃ±o salto hacia arriba */
    box-shadow: 0 6px 20px var(--primary-glow);
}

.download-intro {
  padding: 3rem 0;
  position: relative;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  gap: 2rem;
  align-items: center;
}

.download-intro-text {
  display: flex;
  flex-direction: column;
}

.download-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.download-description {
  max-width: 58ch;
  margin: 0 0 1.8rem;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 140, 50, 0.04);
  border: 1px solid rgba(255, 160, 80, 0.08);
}

.download-card {
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,144,74,0.9), transparent);
}

.download-stack {
  display: grid;
  gap: 0.95rem;
}

.download-option {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,160,80,0.08);
  background: rgba(255,140,50,0.03);
}

.download-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.download-option h4 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.download-option p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(78, 201, 122, 0.10);
  border: 1px solid rgba(78, 201, 122, 0.24);
  color: #93efb3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helper-text,
.muted-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1.2rem;
}

.stat-card {
  padding: 1.2rem 1rem;
  border-radius: 18px;
  background: rgba(255, 140, 50, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.stat-value {
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}

.stat-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-block {
  padding: 5rem 0;
}

.section-block-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(20, 10, 4, 0.50) 100%);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 1.4rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(34, 18, 6, 0.92) 0%, rgba(16, 8, 2, 0.98) 100%);
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(201, 79, 10, 0.38);
  transform: translateY(-4px);
}

.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.info-card p {
  margin: 0;
  color: var(--text-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #f5e4cc;
  background: linear-gradient(135deg, rgba(201, 79, 10, 0.36), rgba(122, 37, 0, 0.16));
  border: 1px solid rgba(201, 79, 10, 0.20);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.rates-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.side-panel {
  padding: 2rem;
}

.requirements-list,
.steps-list,
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.requirements-list li,
.steps-list li,
.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--text-soft);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.requirements-list li:last-child,
.steps-list li:last-child,
.check-list li:last-child {
  border-bottom: none;
}

.requirements-list i,
.steps-list i,
.check-list i {
  margin-top: 0.2rem;
  color: #e8904a;
}

.check-list i {
  color: var(--success);
}

.notice-box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 140, 50, 0.05);
  border: 1px solid rgba(255, 160, 80, 0.14);
  color: var(--text-soft);
}

.notice-box strong {
  color: #fff;
}

.community-card {
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(140, 50, 5, 0.18) 0%, rgba(90, 30, 2, 0.07) 100%);
  border: 1px solid rgba(180, 70, 10, 0.26);
  box-shadow: var(--shadow-lg);
}

.community-card p {
  margin: 0;
  max-width: 58ch;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .download-layout,
  .rates-layout,
  .card-grid-3,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .download-intro-text {
    text-align: center;
  }

  .download-description {
    margin-left: auto;
    margin-right: auto;
  }

  .download-actions,
  .download-meta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .download-title {
    font-size: 2rem;
  }

  .section-block {
    padding: 4rem 0;
  }

  .panel,
  .side-panel,
  .community-card {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .download-actions {
    flex-direction: column;
  }

  .download-actions .btn {
    width: 100%;
  }
}


.rules-intro {
  padding: 3rem 0;
  position: relative;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 400px);
  gap: 2rem;
  align-items: center;
}

.rules-intro-text {
  display: flex;
  flex-direction: column;
}

.rules-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.rules-description {
  max-width: 58ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.rules-note {
  position: relative;
  overflow: hidden;
}

.rules-note::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,144,74,0.9), transparent);
}

.section-block {
  padding: 5rem 0;
}

.section-block-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(20, 10, 4, 0.50) 100%);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading.centered {
  text-align: center;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  font-weight: 700;
}

.section-description {
  margin: 0;
  max-width: 64ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.centered .section-description {
  margin-left: auto;
  margin-right: auto;
}

.rules-grid {
  display: grid;
  gap: 1.4rem;
}

.rules-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-card {
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(34, 18, 6, 0.92) 0%, rgba(16, 8, 2, 0.98) 100%);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.rules-card:hover {
  border-color: rgba(201, 79, 10, 0.38);
  transform: translateY(-4px);
}

.rules-card-alert {
  border-color: rgba(232, 144, 74, 0.28);
  background: linear-gradient(180deg, rgba(40, 24, 8, 0.94) 0%, rgba(20, 10, 4, 0.98) 100%);
}

.rules-card-severe {
  border-color: rgba(231, 76, 60, 0.32);
  background: linear-gradient(180deg, rgba(48, 16, 12, 0.94) 0%, rgba(24, 6, 4, 0.98) 100%);
}

.rules-card-ban {
  border-color: rgba(231, 76, 60, 0.45);
  background: linear-gradient(180deg, rgba(52, 12, 12, 0.96) 0%, rgba(28, 4, 4, 0.99) 100%);
  box-shadow: 0 10px 32px rgba(231, 76, 60, 0.18);
}

.rules-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.rules-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: rgba(201, 79, 10, 0.14);
  border: 1px solid rgba(201, 79, 10, 0.28);
  color: #e8a066;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rules-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  flex: 1;
}

.rules-card p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.rules-card:last-child p {
  margin-bottom: 0;
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.severity-badge.grave {
  background: rgba(231, 76, 60, 0.14);
  border: 1px solid rgba(231, 76, 60, 0.32);
  color: #ffb3b3;
}

.severity-badge.ban {
  background: rgba(231, 76, 60, 0.22);
  border: 1px solid rgba(231, 76, 60, 0.48);
  color: #ffcaca;
}

.sancion-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 140, 50, 0.05);
  border: 1px solid rgba(255, 160, 80, 0.16);
}

.sancion-box-ban {
  background: rgba(231, 76, 60, 0.08);
  border-color: rgba(231, 76, 60, 0.28);
}

.sancion-box strong {
  color: #fff;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.sancion-box p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.sancion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sancion-list li {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sancion-veg {
  color: #e8904a;
  font-weight: 700;
}

.sancion-perm {
  color: #ffb3b3;
  font-weight: 800;
}

.sanciones-escala {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.escala-item {
  display: grid;
  gap: 0.7rem;
  padding: 1.3rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 140, 50, 0.03);
  text-align: center;
  transition: var(--transition);
}

.escala-item:hover {
  border-color: rgba(201, 79, 10, 0.32);
  transform: translateY(-3px);
}

.escala-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin: 0 auto 0.5rem;
  color: #f5e4cc;
  background: linear-gradient(135deg, rgba(201, 79, 10, 0.36), rgba(122, 37, 0, 0.16));
  border: 1px solid rgba(201, 79, 10, 0.20);
  box-shadow: var(--shadow-md);
}

.escala-icon i {
  font-size: 1.35rem;
}

.escala-content h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.escala-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.escala-advertencia {
  border-color: rgba(78, 201, 122, 0.24);
  background: rgba(78, 201, 122, 0.06);
}

.escala-mute {
  border-color: rgba(232, 144, 74, 0.24);
  background: rgba(232, 144, 74, 0.06);
}

.escala-jail {
  border-color: rgba(232, 144, 74, 0.28);
  background: rgba(232, 144, 74, 0.08);
}

.escala-pain {
  border-color: rgba(201, 79, 10, 0.28);
  background: rgba(201, 79, 10, 0.08);
}

.escala-confiscacion {
  border-color: rgba(201, 79, 10, 0.24);
  background: rgba(201, 79, 10, 0.06);
}

.escala-suspension {
  border-color: rgba(231, 76, 60, 0.28);
  background: rgba(231, 76, 60, 0.08);
}

.escala-ban-perm {
  border-color: rgba(231, 76, 60, 0.45);
  background: rgba(231, 76, 60, 0.10);
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.14);
}

.escale-leyenda {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 140, 50, 0.04);
  border: 1px solid rgba(255, 160, 80, 0.12);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.escale-leyenda strong {
  color: #fff;
}

.disposiciones-panel {
  padding: 2rem 1.8rem;
}

@media (max-width: 980px) {
  .rules-layout,
  .rules-grid-2,
  .sanciones-escala {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rules-title {
    font-size: 2rem;
  }

  .section-block {
    padding: 4rem 0;
  }

  .rules-card,
  .disposiciones-panel {
    padding: 1.2rem;
  }

  .sanciones-escala {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.customs-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.customs-item {
  text-align: center;
}

.customs-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 140, 50, 0.04);
  border: 1px solid rgba(255, 160, 80, 0.08);
}

.customs-thumb img {
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .customs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .customs-thumb {
    min-height: 160px;
  }

  .customs-thumb img {
    max-height: 130px;
  }
}

.customs-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.customs-load-more-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.customs-counter-current {
  color: #fff;
  font-weight: 800;
}

.customs-item {
  cursor: pointer;
}

.customs-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
}

.customs-lightbox.active {
  display: flex;
}

.customs-lightbox-content {
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  text-align: center;
}

.customs-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.customs-lightbox-title {
  margin-top: 1rem;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.customs-lightbox-close,
.customs-lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 140, 50, 0.16);
  backdrop-filter: blur(6px);
}

.customs-lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2rem;
}

.customs-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.customs-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.customs-thumb {
  position: relative;
}

/* Overlay para el spinner */
.customs-thumb-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
  border-radius: 18px;
  z-index: 2;
}

/* Circulo girando */
.customs-thumb-spinner::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #f5c078;
  animation: customs-spin 0.9s linear infinite;
}

@keyframes customs-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Cuando se activan spinners */
.customs-thumb.is-loading .customs-thumb-spinner {
  display: flex;
}

/* =========================
RANKING
========================= */

.ranking-shell {
  display: grid;
  gap: 1.5rem;
}

.ranking-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ranking-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 160, 80, 0.10);
  background: rgba(255, 140, 50, 0.04);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.ranking-nav a:hover,
.ranking-nav a.is-active {
  color: #fff;
  border-color: rgba(201, 79, 10, 0.38);
  background: rgba(201, 79, 10, 0.14);
}

.ranking-toolbar {
  display: grid;
  gap: 1rem;
}

.ranking-table-wrap {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table thead th {
  text-align: left;
  padding: 0.95rem 1rem;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.ranking-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.ranking-table tbody tr:hover {
  background: rgba(255, 140, 50, 0.03);
}

.ranking-rank {
  width: 72px;
  font-weight: 800;
  color: #fff;
}

.ranking-top-1 td {
  background: rgba(201, 79, 10, 0.10);
}

.ranking-top-2 td {
  background: rgba(255, 160, 80, 0.06);
}

.ranking-top-3 td {
  background: rgba(255, 160, 80, 0.04);
}

.ranking-name {
  font-weight: 800;
  color: #fff;
}

.ranking-guild {
  color: var(--text-soft);
}

.ranking-muted {
  color: var(--text-muted);
}

.ranking-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 140, 50, 0.08);
  border: 1px solid rgba(255, 160, 80, 0.14);
  color: #f0ddc0;
  font-size: 0.74rem;
  font-weight: 800;
}

.ranking-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 2rem 1rem;
}

@media (max-width: 640px) {
  .ranking-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   PÁGINA DE TÉRMINOS Y SERVICIOS
   ========================= */

.terms-container {
  max-width: 860px; /* Tamaño ideal de lectura para textos legales largos */
}

.terms-panel {
  display: grid;
  gap: 2.5rem;
  padding: 3rem; /* Espaciado interno más amplio para comodidad de lectura */
  margin-top: 1.5rem;
}

.terms-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.terms-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* El número estilizado del apartado */
.terms-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f5e4cc;
  background: linear-gradient(135deg, rgba(201, 79, 10, 0.25), rgba(122, 37, 0, 0.1));
  border: 1px solid rgba(201, 79, 10, 0.2);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.terms-content {
  display: grid;
  gap: 0.75rem;
}

.terms-content h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.terms-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.terms-content strong {
  color: #fff;
}

/* Lista del apartado de cuentas */
.terms-list {
  gap: 0.85rem !important;
  margin-top: 0.5rem;
}

.terms-list li {
  font-size: 1.02rem;
}

.text-primary-icon {
  color: #e8904a;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* Footer y Contacto */
.terms-footer {
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 2px dashed var(--border-strong);
  display: grid;
  gap: 2rem;
}

.terms-contact-box {
  background: rgba(255, 140, 50, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.terms-contact-box h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.terms-contact-box h4 i {
  color: var(--primary);
  margin-right: 0.35rem;
}

.terms-contact-box p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.terms-email {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(201, 79, 10, 0.1);
  border: 1px solid rgba(201, 79, 10, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
}

.terms-meta-update {
  text-align: center;
}

.terms-meta-update span {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Ajustes Responsive */
@media (max-width: 640px) {
  .terms-panel {
    padding: 1.5rem;
    gap: 1.8rem;
  }
  
  .terms-section {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }
  
  .terms-content h3 {
    font-size: 1.2rem;
  }
}

/* =========================
   PÁGINA DE POLÍTICA DE PRIVACIDAD
   ========================= */

/* Grid de protección de datos (Punto 3) */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.privacy-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.privacy-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.privacy-card i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.privacy-card h5 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.privacy-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* Caja de compromiso (Punto 4) */
.privacy-commitment-box {
  background: rgba(78, 201, 122, 0.03); /* Tono verde muy suave usando tu estilo de alertas */
  border: 1px solid rgba(78, 201, 122, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.privacy-commitment-box .commitment-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.privacy-commitment-box .commitment-title i {
  color: var(--success);
  font-size: 1.2rem;
}

.privacy-commitment-box h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.privacy-commitment-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Nota aclaratoria en el footer */
.privacy-notice-periodic {
  margin: 1rem 0 0 0 !important;
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

/* Estructura del Grid usando tu diseño responsivo */
    .char-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Tarjeta basada fielmente en tus paneles oscuros */
    .char-card-custom {
        background: var(--bg-card); /* Integración con tu fondo oscuro */
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        font-family: var(--font);
    }

    /* Encabezado Principal */
    .char-card-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
        border-radius: var(--radius-sm);
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        color: #fff;
        position: relative;
        margin-bottom: 1rem;
    }
    .char-card-icon {
        background: rgba(255, 255, 255, 0.15);
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        margin-right: 0.75rem;
    }
    .char-card-title-area {
        flex-grow: 1;
    }
    .char-card-name {
        font-size: 1.2rem;
        font-weight: 800;
        margin: 0;
        line-height: 1.2;
        color: #ffffff;
    }
    .char-card-class {
        font-size: 0.8rem;
        color: var(--text-soft);
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 2px;
    }
    .char-card-id {
        background: rgba(0, 0, 0, 0.25);
        padding: 3px 9px;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 800;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Ubicación Actual (Formato barra) */
    .char-card-location {
        background: rgba(255, 160, 80, 0.04);
        border: 1px solid rgba(255, 160, 80, 0.12);
        border-left: 4px solid var(--primary);
        border-radius: 10px;
        padding: 0.6rem 0.8rem;
        margin-bottom: 1rem;
    }
    .char-card-loc-title {
        display: block;
        font-size: 0.65rem;
        font-weight: 800;
        color: var(--text-soft);
        letter-spacing: 0.05em;
        margin-bottom: 2px;
    }
    .char-card-loc-value {
        font-size: 0.95rem;
        font-weight: 700;
        color: #fff;
    }

    /* Bloque de Stats (3 Columnas basadas en tus cajas de datos rápidos) */
    .char-card-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    .char-card-stat-box {
        background: rgba(255, 140, 50, 0.03);
        border: 1px solid rgba(255,160,80,0.08);
        border-radius: 10px;
        padding: 0.5rem;
        text-align: center;
    }
    .char-card-stat-label {
        display: block;
        font-size: 0.65rem;
        font-weight: 800;
        color: var(--text-muted);
        margin-bottom: 2px;
    }
    .char-card-stat-num {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--text);
    }

    /* Botones reestructurados con tus clases globales y espaciados de la imagen */
    .char-card-custom .btn {
        width: 100%;
        min-height: 44px;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    .btn-inventory-custom {
        background: rgba(78, 201, 122, 0.1);
        border: 1px solid rgba(78, 201, 122, 0.3);
        color: #7ee8a2;
        display: flex;
        justify-content: space-between !important;
        align-items: center;
        margin-bottom: 0.6rem;
    }
    .btn-inventory-custom:hover {
        background: rgba(78, 201, 122, 0.2);
    }
    .badge-pills-count {
        background: rgba(78, 201, 122, 0.2);
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 800;
    }

    /* Estilos del Modal Nativo HTML5 - ¡MÁS ANCHO Y LARGO! */
    .ro-modal {
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-lg);
        background: var(--bg-soft);
        color: var(--text);
        
        /* Modificaciones de tamaño solicitadas */
        max-width: 1200px;                 /* Antes: 550px (Ahora es sustancialmente más ancho) */
        width: calc(100% - 2rem);
        height: 600px;                    /* Altura base fija para que se vea más largo */
        max-height: calc(85vh - 2rem);    /* Evita desbordar en pantallas pequeñas */
        
        padding: 1.75rem;
        box-shadow: var(--shadow-lg);
        position: relative;
         overflow: hidden;
    }
    .ro-modal::backdrop {
        background: rgba(0, 0, 0, 0.82);
        backdrop-filter: blur(5px);
    }
    .ro-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
        margin-bottom: 1.25rem;
    }
    .ro-modal-title {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 800;
        color: #fff;
    }
    .ro-modal-close {
        background: none;
        border: none;
        color: var(--text-soft);
        font-size: 1.5rem;
        cursor: pointer;
        line-height: 1;
    }
    .ro-modal-close:hover {
        color: #fff;
    }

    /* Contenedor de Items estilo Pills - Ajustado a la nueva altura */
    .pills-container {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 0.6rem;
        
        /* El contenedor ahora aprovecha el largo total disponible en el modal */
        height: calc(100% - 70px); 
        overflow-y: auto;
        padding-right: 0.5rem;
    }
    
    /* Píldora de Ítem interactiva con enlace */
    .item-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.85rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-strong);
        font-size: 0.85rem;
        color: var(--text);
        text-decoration: none;
        transition: background 0.2s, border-color 0.2s;
    }
    .item-pill:hover {
        background: rgba(255, 140, 50, 0.06);
        border-color: var(--primary);
    }
    
    /* Imagen/Icono del ítem */
    .item-pill-img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        image-rendering: pixelated;
    }
    
    .item-pill-name {
        color: var(--text-soft);
    }
    .item-pill:hover .item-pill-name {
        color: #fff;
    }
    .item-pill-amount {
        background: rgba(255, 255, 255, 0.08);
        padding: 1px 6px;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 700;
        color: #fff;
    }

    .storage-trigger-card {
        cursor: pointer;
        transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .storage-trigger-card:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(201, 79, 10, 0.1);
    }
    .storage-trigger-card:active {
        transform: translateY(0);
    }