/* MundoXat Radio — tema visual compartido v1 */
:root {
  --mx-bg: #080d19;
  --mx-surface: #111b30;
  --mx-surface-raised: #16233b;
  --mx-border: rgba(157, 180, 232, .19);
  --mx-blue: #79a8ff;
  --mx-violet: #a18aff;
  --mx-cyan: #65d9ed;
  --mx-text: #f2f5ff;
  --mx-muted: #a6b4cf;
  --mx-radius: 17px;
}
html { scroll-behavior: smooth; }
body {
  background-color: var(--mx-bg);
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(91, 105, 214, .17), transparent 36%),
    radial-gradient(ellipse at 0% 40%, rgba(39, 145, 184, .08), transparent 32%);
  color: var(--mx-text);
}
::selection { background: rgba(121, 168, 255, .32); }
a { transition: color .18s ease; }
button, .btn, .button {
  transition: transform .18s ease, border-color .18s ease,
              filter .18s ease, box-shadow .18s ease;
}
button:hover, .btn:hover, .button:hover {
  filter: brightness(1.08);
}
button:active, .btn:active, .button:active {
  transform: translateY(1px);
}
button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--mx-cyan);
  outline-offset: 3px;
}
.card, .panel, .stat, .feature, .radio-box,
.entity-panel, .radio-detail, .package-feature {
  border-color: var(--mx-border);
}
.card, .panel, .feature, .entity-panel {
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
}
.card, .panel, .feature, .entity-item,
.radio-box, .radio-detail {
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover, .panel:hover, .entity-item:hover {
  border-color: rgba(121, 168, 255, .34);
}
.stat, .count-pill, .user-chip, .admin-chip {
  border-color: var(--mx-border);
}
.topbar, .topline {
  border-color: var(--mx-border);
}
.nav, .account-nav, .nav-actions {
  gap: 10px;
}
input, select, textarea {
  border-color: var(--mx-border);
  border-radius: 11px;
  color: var(--mx-text);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--mx-blue);
  box-shadow: 0 0 0 3px rgba(121, 168, 255, .14);
}
input::placeholder, textarea::placeholder {
  color: #8494b2;
}
.table-wrap {
  border-color: var(--mx-border);
  border-radius: 13px;
}
table th {
  color: #b4c5e5;
}
table tbody tr {
  transition: background-color .15s ease;
}
table tbody tr:hover {
  background: rgba(121, 168, 255, .045);
}
details.entity-item {
  border: 1px solid var(--mx-border);
  border-radius: 14px;
  overflow: clip;
}
details.entity-item > summary {
  cursor: pointer;
  transition: background-color .18s ease;
}
details.entity-item > summary:hover,
details.entity-item[open] > summary {
  background-color: rgba(121, 168, 255, .065);
}
.entity-body {
  border-top: 1px solid var(--mx-border);
}
.status, .entity-badge {
  letter-spacing: .01em;
}
.notice, .ok, .err, .error {
  border-radius: 13px;
}
.footer {
  border-color: var(--mx-border);
}
@media (max-width: 700px) {
  .nav, .account-nav, .nav-actions {
    flex-wrap: wrap;
  }
  .table-wrap {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== MUNDOXAT RADIO: REDISEÑO VISUAL ===== */
:root {
  --mx-bg: #080d19;
  --mx-panel: #111a2c;
  --mx-panel-2: #16223a;
  --mx-border: rgba(137, 165, 220, .20);
  --mx-blue: #5278ff;
  --mx-purple: #9564ff;
  --mx-cyan: #39e0dc;
  --mx-text: #f3f6ff;
  --mx-muted: #a7b5d0;
  --mx-success: #38d9a9;
  --mx-danger: #ff7185;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--mx-text);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(65, 92, 210, .19), transparent 36rem),
    radial-gradient(ellipse at 92% 18%, rgba(139, 70, 225, .14), transparent 32rem),
    linear-gradient(160deg, #080d19 0%, #0b1222 55%, #0a1020 100%);
}

::selection {
  color: #fff;
  background: rgba(82, 120, 255, .65);
}

a {
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--mx-cyan);
}

.wrap {
  position: relative;
}

.topline {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mx-border);
}

.card,
.radio-box,
.radio-detail,
.stats > *,
.layout > *,
details {
  border-color: var(--mx-border);
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(22, 34, 58, .96), rgba(13, 22, 39, .97));
  border: 1px solid var(--mx-border);
  border-radius: 19px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .17);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  border-color: rgba(82, 120, 255, .48);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .23);
}

.stats > * {
  background: linear-gradient(145deg, rgba(25, 39, 68, .96), rgba(15, 24, 43, .96));
  border: 1px solid var(--mx-border);
  border-radius: 17px;
  padding: 18px;
}

.stats strong {
  color: var(--mx-cyan);
  font-variant-numeric: tabular-nums;
}

.radio-box {
  display: block;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--mx-border);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(20, 32, 54, .98), rgba(11, 19, 34, .98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.radio-box:hover,
.radio-box[open] {
  border-color: rgba(57, 224, 220, .38);
  box-shadow: 0 12px 35px rgba(30, 170, 190, .08);
}

.radio-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

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

.radio-summary::marker {
  content: "";
}

.radio-summary-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.radio-summary-main strong {
  overflow-wrap: anywhere;
  color: var(--mx-text);
  font-size: 1.08rem;
  letter-spacing: .01em;
}

.radio-summary-main small {
  color: var(--mx-muted);
}

.radio-summary-action {
  flex-shrink: 0;
  color: var(--mx-cyan);
  font-weight: 750;
}

.radio-detail {
  padding: 20px;
  border-top: 1px solid var(--mx-border);
  background: rgba(5, 11, 23, .25);
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.radio-grid > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--mx-border);
  border-radius: 13px;
  background: rgba(20, 31, 52, .72);
}

.radio-grid small,
.radio-grid strong {
  display: block;
}

.radio-grid small {
  margin-bottom: 7px;
  color: var(--mx-muted);
}

.radio-grid strong {
  overflow-wrap: anywhere;
  color: var(--mx-text);
}

.radio-controls {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--mx-border);
  border-radius: 15px;
  background: rgba(17, 28, 48, .8);
}

.radio-controls > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.radio-controls form {
  display: inline-block;
  margin: 8px 8px 0 0;
}

button,
input[type="submit"],
.button,
.btn {
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  color: var(--mx-text);
  background-color: #0b1425;
  border-color: var(--mx-border);
  border-radius: 11px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mx-cyan);
  outline-offset: 3px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--mx-border);
  border-radius: 13px;
}

th {
  color: #e7edff;
  background: #182641;
}

td {
  border-color: var(--mx-border);
}

tbody tr:hover {
  background: rgba(82, 120, 255, .07);
}

.note,
small {
  color: var(--mx-muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--mx-border);
}

@media (max-width: 640px) {
  .radio-summary {
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
  }

  .radio-summary-action {
    font-size: .82rem;
    text-align: right;
  }

  .radio-detail {
    padding: 14px;
  }

  .radio-controls {
    padding: 14px;
  }

  .radio-controls form {
    display: block;
    margin-right: 0;
  }

  .radio-controls button,
  .radio-controls input[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
/* ===== FIN DEL REDISEÑO MUNDOXAT RADIO ===== */
