@import url('https://solargentinotv.com.ar/assets/fonts/Gilroy/Gilroy.css');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.82);
  --card: rgba(255, 255, 255, 0.92);
  --card-2: #fff1f7;
  --line: #efd0df;
  --line-2: #f5dce8;
  --text: #482138;
  --ink: #ef008a;
  --muted: #77586a;
  --soft: #a78999;

  /* Alias para conservar compatibilidad con el CSS original */
  --chirp: #ef008a;
  --chirp-2: #ff4ea6;
  --pink: #ef008a;
  --pink-2: #ff4ea6;
  --hot: #c90070;

  --gold: #facc15;
  --red: #d93065;
  --orange: #fb923c;
  --green: #15936d;
  --danger: #d93065;
  --ok: #15936d;

  --shadow: 0 14px 34px rgba(128, 28, 78, 0.1);
  --shadow-2: 0 8px 18px rgba(128, 28, 78, 0.07);
  --radius: 4px;
  --radius-sm: 4px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  font-family:
    'Google Sans',
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--pink);
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(255, 120, 188, 0.17),
      transparent 28rem
    ),
    radial-gradient(
      circle at 100% 5%,
      rgba(255, 218, 235, 0.55),
      transparent 28rem
    ),
    linear-gradient(180deg, #fff8fc 0%, #fff 55%, #fff8fc 100%);
}

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

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--soft);
}

select {
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(239, 0, 138, 0.28);
  box-shadow: 0 0 0 4px rgba(239, 0, 138, 0.08);
}

.hidden {
  display: none !important;
}

.shell {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 0;
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-2);
}

.brand-bird {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: 0 8px 18px rgba(239, 0, 138, 0.1);
  color: var(--pink);
  font-size: 25px;
  font-weight: 950;
}

.brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.nav {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-2);
}

.nav-item {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
  text-align: left;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--hot);
  background: var(--card-2);
  border-color: transparent;
}

.side-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(239, 0, 138, 0.08), transparent 16rem),
    rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
}

.side-card strong,
.side-card span {
  display: block;
}

.side-card strong {
  color: var(--ink);
}

.side-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
}

.main {
  min-width: 0;
  padding: 18px 0 31px;
}

.topbar {
  min-height: 66px;
  margin-bottom: 12px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 250, 252, 0.82);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--hot);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.pill.ok {
  color: var(--ok);
  border-color: #afe8d7;
  background: #effcf8;
}

.pill.bad {
  color: #9d1742;
  border-color: #ffb7cd;
  background: #fff0f3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 950;
  letter-spacing: -0.01em;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #edbdd3;
  box-shadow: var(--shadow-2);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary,
.btn.pink {
  border-color: transparent;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 0, 138, 0.22);
}

.btn.primary:hover,
.btn.pink:hover {
  background: var(--hot);
}

.btn.gold {
  color: #5a3c00;
  background: linear-gradient(145deg, #fff8ce, #facc15);
  border-color: rgba(250, 204, 21, 0.44);
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.18);
}

.btn.danger {
  border-color: #ffb7cd;
  background: #fff0f3;
  color: #9d1742;
}

.btn.warn {
  border-color: #ffd5b1;
  background: #fff7ed;
  color: #9a3412;
}

.btn.good {
  border-color: #afe8d7;
  background: #effcf8;
  color: #146b53;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.74);
}

.notice {
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  background: #fff3f9;
  color: var(--muted);
  line-height: 1.5;
}

.notice.error {
  border-color: #ffb7cd;
  color: #9d1742;
  background: #fff0f3;
}

.notice.success {
  border-color: #afe8d7;
  color: #146b53;
  background: #effcf8;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stat-card,
.panel,
.item-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.stat-card strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.stat-card small {
  color: var(--muted);
  font-weight: 850;
}

.panel {
  padding: 18px;
  margin-bottom: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

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

.searchbar,
.quick-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.searchbar input {
  min-width: 290px;
}

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

.item-card {
  padding: 16px;
  display: grid;
  gap: 13px;
  background: var(--panel-2);
}

.item-card:hover {
  border-color: #edbdd3;
  box-shadow: var(--shadow);
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.user-line {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pink), var(--pink-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  flex: none;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(239, 0, 138, 0.12);
}

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

.title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.title-line strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.handle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.badge.pink,
.badge.blue {
  color: var(--hot);
  border-color: rgba(239, 0, 138, 0.22);
  background: rgba(239, 0, 138, 0.08);
}

.badge.gold {
  color: #8a6500;
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
}

.badge.orange,
.badge.warn {
  color: #9a3412;
  border-color: #ffd5b1;
  background: #fff7ed;
}

.badge.red,
.badge.bad {
  color: #9d1742;
  border-color: #ffb7cd;
  background: #fff0f3;
}

.badge.good {
  color: #146b53;
  border-color: #afe8d7;
  background: #effcf8;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.text-box {
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff8fc;
  border: 1px solid var(--line-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.empty div {
  font-size: 42px;
  margin-bottom: 8px;
  color: var(--pink);
}

.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.empty p {
  margin: 5px 0 0;
}

.warning-box {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.1);
  color: #735300;
}

.warning-box p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.quick-result {
  margin-top: 14px;
}

.code {
  overflow: auto;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #fff8fc;
  color: var(--text);
}

.file-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

code {
  color: var(--hot);
  font-weight: 850;
}

@media (max-width: 980px) {
  .shell {
    width: min(100%, calc(100% - 28px));
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 0;
  }

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

  .side-card {
    position: static;
    margin-top: 16px;
  }

  .stats-grid,
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100%, calc(100% - 18px));
    display: block;
  }

  .main,
  .sidebar {
    padding: 16px 0;
  }

  .topbar,
  .panel-head,
  .item-top {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions,
  .searchbar,
  .quick-row {
    width: 100%;
  }

  .top-actions,
  .searchbar,
  .quick-row,
  .actions {
    flex-wrap: wrap;
  }

  .searchbar input {
    min-width: 0;
  }

  .stats-grid,
  .two-col,
  .nav {
    grid-template-columns: 1fr;
  }

  .btn {
    white-space: nowrap;
  }
}
