:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee8;
  --soft: #f8fafc;
  --accent: #111111;
  --danger: #d92d20;
  --faint: #98a2b3;
  --hairline: #eef1f5;
  --chip-bg: #f1f3f6;
  --chip-bd: #e3e7ee;
  --ok: #16a34a;
  --ok-bg: #ecfdf3;
  --ok-bd: #128c4a;
  --ok-ink: #0f5132;
  --s1: 4px;
  --s2: 8px;
  --s3: 11px;
  --s4: 14px;
  --s5: 16px;
  --s6: 20px;
  --s7: 24px;
  --r-sm: 8px;
  --r-md: 9px;
  --r-lg: 12px;
  --r-xl: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
}

.brand,
.side-brand {
  color: #000;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-card h1,
.topbar h2,
.order-form h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.topbar h2 {
  font-weight: 900;
}

.login-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.4;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.login-card button,
.primary {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  border-radius: 9px;
  font-weight: 800;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.86;
}

/* El feedback de botones (carga/palomita/tache) vive en button-feedback.css */
.form-status {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.form-status.success {
  color: #0f8f4e;
}

.form-status.error {
  color: var(--danger);
}

.app {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 14px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.client-name {
  display: grid;
  gap: 3px;
  min-height: 70px;
  align-content: center;
  padding: 12px 10px;
  color: #111;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.client-name span,
.client-name small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.client-name strong {
  display: block;
  color: #000;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.client-name .admin-phrase {
  display: block;
  margin-top: 6px;
  color: #111;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.account-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.account-actions .logout-button {
  width: 100%;
  min-height: 32px;
  text-align: center;
}

.privacy-button.active {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
}

.privacy-mode .case-client,
.privacy-mode .client-row span,
.privacy-mode .money-main span,
.privacy-mode .archive-row span {
  color: #8a93a3;
}

.side nav {
  display: grid;
  gap: 8px;
}

.side button,
.side a {
  min-height: 40px;
  padding: 0 11px;
  color: #4b5563;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

.side button.active {
  color: #fff;
  background: #000;
  border-color: #000;
}

.logout-button {
  color: #7a818c !important;
  font-size: 11px !important;
}

main {
  min-width: 0;
  padding: 22px;
}

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

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.top-actions .subtle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Menu superior: en linea en escritorio (el toggle solo aparece en movil). */
.top-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-actions .top-menu-toggle {
  display: none;
}

.top-actions .whatsapp-link {
  color: #fff;
  background: #25d366;
  border-color: #1ebe5b;
}

.top-actions .whatsapp-link:hover {
  background: #1ebe5b;
  border-color: #1aa752;
}

.top-more {
  position: relative;
}

.top-more-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: transparent;
}

.top-more-menu {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 31;
  width: 230px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16,24,40,.16);
}

.top-more-menu button,
.top-more-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.top-more-menu button:hover,
.top-more-menu a:hover {
  background: var(--bg);
}

.top-actions .info-link {
  color: #fff;
  background: #128c4a;
  border-color: #128c4a;
}

.top-actions .info-link:hover {
  background: #0f7a41;
  border-color: #0f7a41;
}

.top-actions .credits-top-button {
  min-height: 30px;
  padding: 0 9px;
  color: #111;
  background: #f7f7f7;
  border-color: #111;
  font-size: 11px;
  font-weight: 800;
}

.top-actions .credits-top-button::before {
  content: "$";
  margin-right: 5px;
  font-weight: 800;
}

.gpt-circle-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gpt-circle-button:hover {
  color: #111;
  background: #fff;
}

.gpt-circle-button::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0.22;
}

.gpt-landing-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #111;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.gpt-landing-orb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.gpt-landing-orb::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0.22;
}

.gpt-landing-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gpt-landing-card h3 {
  margin: 0;
  font-size: 24px;
}

.gpt-landing-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.growth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-color: #111;
  border-left: 6px solid #128c4a;
}

.growth-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.growth-card h3 {
  max-width: 720px;
}

.growth-card p {
  max-width: 760px;
}

.growth-f0-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.growth-f0-strip strong,
.growth-f0-strip span {
  padding: 6px 8px;
  border: 1px solid #111;
  background: #f8fafc;
  color: #111;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.growth-f0-strip strong {
  background: #111;
  color: #fff;
}

.top-actions #publicCaseButton {
  color: #fff;
  background: #111;
  border-color: #111;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.16);
}

.top-actions #growthLeadButton {
  color: #0f5132;
  background: #ecfdf3;
  border-color: #128c4a;
}

.top-actions #publicCaseButton:hover {
  background: #000;
  border-color: #000;
}

.top-more-menu #publicCaseButton,
.top-more-menu #growthLeadButton,
.top-more-menu #creditsButton {
  color: #111;
  background: #fff;
  border-color: transparent;
  box-shadow: none;
}

.top-more-menu #publicCaseButton:hover,
.top-more-menu #growthLeadButton:hover,
.top-more-menu #creditsButton:hover {
  background: var(--bg);
  border-color: transparent;
}

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

.news-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.case-grid {
  grid-template-columns: repeat(auto-fill, minmax(326px, 1fr));
  gap: 14px;
  max-width: 1180px;
}

.card,
.case-card,
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.07);
}

.card {
  padding: 20px;
}

.account-empty-card {
  max-width: 520px;
  border-color: #111;
}

.account-empty-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card h3,
.case-card h3 {
  margin: 0;
  color: #000;
  font-size: 20px;
  line-height: 1.14;
}

.case-card h3 {
  font-size: 19px;
  font-weight: 800;
}

.card p,
.case-card p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.45;
}

.case-card .case-client {
  margin-top: 5px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card .case-notes {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.provider-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.summary-card {
  padding: 16px;
}

.provider-info {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.07);
}

.provider-info span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-info strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.provider-info p {
  margin: 5px 0 0;
  color: var(--muted);
}

.summary-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  color: #000;
  font-size: 28px;
}

.summary-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.credit-summary {
  border-color: #111;
}

.credit-review-note {
  color: #b42318;
}

.credit-plan-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.credit-plan-breakdown b,
.credit-plan-breakdown em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.credit-plan-breakdown b {
  color: #fff;
  background: #111;
  border-color: #111;
}

.credit-plan-breakdown em {
  color: #475467;
  background: #fff;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-row button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-filter-row button.active {
  color: #fff;
  background: #000;
  border-color: #000;
}

.admin-filter-row span {
  min-width: 22px;
  padding: 2px 6px;
  color: inherit;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  text-align: center;
}

.admin-filter-row button.active span {
  background: rgba(255, 255, 255, 0.18);
}

.money-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.money-card {
  min-height: 118px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.07);
}

.money-card span,
.money-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.money-card strong {
  display: block;
  margin: 7px 0 5px;
  color: #000;
  font-size: 30px;
  line-height: 1;
}

.primary-money {
  border-color: #111;
}

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

.client-directory-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.reports-block { margin-bottom: 26px; }
.reports-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  font-size: 16px;
}
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.reports-grid .card h4 { margin: 0 0 8px; font-size: 13px; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  border-bottom: 1px solid #f0f2f6;
  padding-bottom: 4px;
}
.stat-list li.muted, .muted { color: var(--muted); }
.stat-list strong { font-weight: 900; }
.reports-split { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 12px; }
.reports-list { display: grid; gap: 6px; align-content: start; max-height: 540px; overflow: auto; }
.report-item {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}
.report-item small { color: var(--muted); font-weight: 600; }
.report-item.active { background: #000; color: #fff; border-color: #000; }
.report-item.active small { color: #cdd2d8; }
.report-item:disabled { opacity: 0.5; cursor: default; }
.report-content { max-height: 600px; overflow: auto; }
.report-content pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.5; }

.report-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.report-tab {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.report-tab.active {
  color: #fff;
  background: #000;
  border-color: #000;
}

.maquila-pricing {
  margin: 16px 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.maquila-pricing h3 { margin: 0 0 10px; font-size: 15px; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pricing-table th, .pricing-table td {
  padding: 7px 9px;
  text-align: left;
  border-bottom: 1px solid #eef1f5;
  vertical-align: top;
}
.pricing-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.pricing-table .pricing-notes { color: var(--muted); font-size: 12px; max-width: 360px; }

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

.client-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(170px, 1fr) minmax(130px, 0.8fr) minmax(80px, 0.4fr) minmax(86px, 0.4fr) 40px 40px 40px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
}

.client-row a {
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.client-row span,
.client-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-row strong {
  font-size: 12px;
  text-align: right;
}

.client-gpt-button {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.client-gpt-button:hover {
  color: #111;
  background: #fff;
}

.client-view-button {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.client-view-button:hover { background: #f5f6f7; }

.client-reset-button {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.client-reset-button:hover { background: #f5f6f7; }

.client-view-head {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(160px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.client-view-head > button {
  align-self: center;
  height: 40px;
}

.client-view-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.client-view-section h3 {
  margin: 0;
  font-size: 15px;
}

.client-preview-grid .case-card {
  cursor: default;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.request-card {
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--status-color, #f2c94c);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.07);
}

.request-card header,
.request-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.request-card header span,
.request-card footer small,
.request-card footer time,
.request-client {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-card h3 {
  margin: 0;
  color: #000;
  font-size: 18px;
  line-height: 1.15;
}

.request-card p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.money-row {
  display: grid;
  grid-template-columns: 34px minmax(82px, 110px) minmax(170px, 1.4fr) minmax(110px, 0.8fr) minmax(120px, 0.8fr) minmax(95px, 0.6fr) minmax(90px, 0.6fr) minmax(80px, 0.5fr);
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
}

.money-row a {
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.money-main {
  min-width: 0;
}

.money-main strong,
.money-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-main strong {
  font-size: 13px;
}

.money-main span,
.money-row small,
.money-row time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.money-payment {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.money-payment.paid {
  color: #0f8f4e;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.money-payment.pending {
  color: #111;
  background: #fff;
  border-style: dashed;
}

.money-due {
  font-size: 13px;
  text-align: right;
}

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

.active-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.active-view-toggle button {
  width: 34px;
  height: 32px;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.active-view-toggle button.active {
  color: #fff;
  background: #111;
}

/* Tabla densa: contenedor con borde y esquinas; las filas van planas adentro. */
.case-list {
  display: grid;
  gap: 0;
  max-width: 1240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 7px 18px rgba(16, 24, 40, 0.05);
}

.case-list-head,
.case-list-row {
  display: grid;
  grid-template-columns: 28px 78px minmax(170px, 1fr) 116px 134px 118px 90px 190px;
  align-items: center;
  gap: 11px;
}

.case-list-head {
  min-width: 764px;
  padding: 11px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid transparent;
}

.case-list-head span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-list-head .col-salida,
.case-list-head .col-archivos {
  text-align: right;
}

.case-list-row {
  min-width: 764px;
  min-height: 62px;
  padding: 12px 16px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-left: 4px solid var(--status-color, #111);
  cursor: pointer;
}

.case-list-row:last-child {
  border-bottom: 0;
}

.case-list-row:hover {
  background: #f6f8fb;
}

/* Pestana Entregas: rejilla propia (8 columnas) para listos-para-salir. */
.delivery-head,
.delivery-row {
  grid-template-columns: 84px minmax(150px, 1fr) 104px 120px 128px 108px minmax(118px, 1.1fr) 104px;
}

.deliveries-summary {
  margin-bottom: 12px;
}

.delivery-method span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.delivery-method small {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
}

.delivery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.delivery-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.delivery-tag.tag-red {
  background: #fde8e8;
  color: #b42318;
}

.delivery-tag.tag-amber {
  background: #fef3cd;
  color: #92600a;
}

.delivery-tag.tag-green {
  background: #e7f6ec;
  color: #128c4a;
}

.delivery-action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.needs-scan-row {
  background: #fff5f4;
}

.case-list-order {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.case-list-main {
  min-width: 0;
}

.case-list-main strong,
.case-list-main span,
.case-list-main small,
.case-list-date strong,
.case-list-date small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-list-main strong {
  color: #000;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
}

.case-list-main span,
.case-list-main small,
.case-list-date span,
.case-list-date small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
}

.case-list-date strong {
  font-size: 13px;
  font-weight: 800;
}

.case-list-main small,
.case-list-date span {
  text-transform: uppercase;
}

.case-list-date {
  display: grid;
  justify-content: flex-end;
  text-align: right;
}

.case-list-payment {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
  min-width: 0;
}

.case-list-payment strong,
.case-list-payment small {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-list-payment small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.case-list-files {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  text-align: right;
}

.case-list-files .file-pill {
  min-height: 29px;
  padding: 0 10px;
  font-size: 11px;
}

/* Chip de producto y estado mas legibles dentro de la fila de lista. */
.case-list-row .product-chip,
.case-list-row .status {
  min-height: 27px;
  font-size: 11.5px;
}

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

.pending-row {
  display: grid;
  grid-template-columns: 34px minmax(82px, 104px) minmax(190px, 1.4fr) minmax(120px, 0.8fr) minmax(190px, 1.2fr) minmax(170px, 1fr) 84px;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--status-color, #111);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(16, 24, 40, 0.055);
  cursor: pointer;
}

.pending-row-attention {
  border-top: 3px solid #d92d20;
}

.pending-reasons {
  overflow: hidden;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-row small,
.pending-row time {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.action-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid #64748b;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.action-card header,
.action-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-card header span,
.action-card footer small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.action-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.action-card p,
.action-impact {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.action-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.action-urgent {
  border-left-color: #d92d20;
}

.action-high {
  border-left-color: #f59e0b;
}

.action-low {
  border-left-color: #94a3b8;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.case-card:hover {
  border-color: #8c96a3;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
  transform: translateY(-1px);
}

.credit-case-card {
  border-top: 5px solid #111;
}

.needs-scan-card {
  border-top: 4px solid var(--danger);
  box-shadow: 0 0 0 1px rgba(217, 45, 32, 0.18), 0 12px 30px rgba(217, 45, 32, 0.12);
}

.needs-scan-card::before {
  content: "Necesita nuevo escaneo";
  position: absolute;
  top: 0;
  left: 18px;
  transform: translateY(-50%);
  min-height: 22px;
  padding: 4px 9px;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-date {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #8a929d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: start;
  padding-top: 12px;
}

.no-due-card .case-top {
  grid-template-columns: minmax(0, 1fr);
}

.case-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}

.case-heading > strong,
.case-heading > .case-order-link,
.detail-topline > .case-order-link {
  color: #000;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.detail-topline > .case-order-link {
  font-size: inherit;
}

.case-order-link:hover,
.case-list-order:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 150px;
  padding: 0 8px;
  overflow: hidden;
  color: #111;
  background: color-mix(in srgb, var(--product-color, #d8dadd) 20%, #fff);
  border: 1px solid color-mix(in srgb, var(--product-color, #d8dadd) 45%, #d8dadd);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  color: var(--status-text, #111);
  background: var(--status-color, #e5e7eb);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.credit-case-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  margin-top: 8px;
  padding: 0 9px;
  color: #111;
  background: #f5f5f5;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-top .status {
  width: min(100%, 260px);
  min-height: 30px;
  justify-content: center;
  margin-top: 8px;
  padding: 0 13px;
  border-radius: 9px;
  box-shadow: inset 3px 0 0 rgba(0,0,0,0.16);
}

.exit-box {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-height: 78px;
  margin-top: auto;
  padding-top: 26px;
  color: #000;
}

.exit-box span,
.exit-box small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.exit-box strong {
  overflow: hidden;
  max-width: 132px;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Fecha de salida en rojo: sin liquidar (con fecha) o sin anticipo (sin fecha). */
.exit-date.danger {
  color: var(--danger);
}

/* Entrada secundaria/chica bajo la salida en la vista de lista. */
.case-list-date .entry-line,
.exit-box .entry-line {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.exit-box small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-dot {
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
}

.pay-dot.paid { background: var(--ok); }
.pay-dot.unpaid { background: var(--danger); }
.pay-dot.monthly { background: #9ca3af; }

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.case-meta div {
  min-height: 42px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.case-meta span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-meta strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-meta strong.danger {
  color: var(--danger);
}

.case-actions,
.file-list,
.case-file-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-file-buttons {
  align-self: end;
}

.file-pill.html-file {
  border-style: dashed;
}

.case-upload-panel {
  display: grid;
  gap: 10px;
  margin: 0;
}

.case-upload-panel h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.case-upload-panel p {
  margin: 0;
  color: #475467;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.case-upload-panel textarea {
  min-height: 78px;
}

.approval-panel {
  display: grid;
  gap: 10px;
}

.approval-panel .subtle-button {
  justify-self: end;
}

.case-upload-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.case-upload-row strong,
.case-upload-row span {
  display: block;
}

.case-upload-row strong {
  font-size: 12px;
}

.case-upload-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.case-upload-row input {
  min-width: 0;
  font-size: 12px;
}

.subtle-button,
.case-actions button,
.file-list a,
.file-list button {
  min-height: 34px;
  padding: 0 10px;
  color: #000;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.compact {
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
}

.approval {
  border-color: #f2c94c !important;
  background: #fff8d7 !important;
}

.approval-note {
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  color: #111;
  background: #fff8d7;
  border: 1px solid #f2c94c;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.loading-card {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.state-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(520px, 100%);
  margin: 20px auto;
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.state-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.state-card p {
  margin: 0;
  color: #475467;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.error-state {
  border-color: var(--danger);
}

.skeleton {
  background: linear-gradient(90deg,#eef1f5 25%,#f6f8fb 37%,#eef1f5 63%);
  background-size: 400% 100%;
  animation: sk 1.2s ease infinite;
  border-radius: 8px;
}

@keyframes sk {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.skeleton-card {
  min-height: 180px;
  cursor: default;
}

.skeleton-row {
  cursor: default;
}

.sk-line {
  display: block;
  width: 100%;
  height: 14px;
}

.sk-line.short {
  width: 58%;
}

.sk-line.medium {
  width: 76%;
}

.sk-block {
  display: block;
  width: 100%;
  height: 54px;
}

.sk-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15,23,42,.40);
}

.modal-panel {
  width: min(700px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(16, 24, 40, 0.24);
}

.modal-close {
  float: right;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 12px 12px 0 0;
  min-height: 34px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-form {
  display: grid;
  gap: 12px;
  clear: both;
}

/* Campo de archivos estilizado: el <input type=file> nativo se oculta y el label
   muestra un boton on-brand "Elegir archivos" + el nombre del archivo elegido. */
.file-field {
  position: relative;
}
.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.file-field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 6px 5px 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.file-field:focus-within .file-field-control {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}
.file-field-btn {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  background: #000;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}
.file-field-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-field.has-files .file-field-name {
  color: var(--ink);
  font-weight: 700;
}

/* Boton "Cargar mas" de la paginacion de Activos. */
.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.load-more {
  min-height: 42px;
  padding: 0 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}
.load-more span {
  color: var(--muted);
  font-weight: 700;
}
.load-more:hover {
  border-color: #000;
}

.core-widget-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.28);
}

.core-widget-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.core-widget-sent {
  margin-top: 4px;
}

.core-widget-sent h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.core-widget-sent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.core-widget-sent-list li {
  padding: 8px 10px;
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-size: 12px;
}

.core-widget-sent-at {
  display: block;
  color: var(--faint);
  font-size: 11px;
  margin-bottom: 2px;
}

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

.detail-head {
  display: grid;
  gap: 8px;
  padding: 22px 24px 18px;
}

.case-detail {
  clear: both;
}

.case-detail section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
}

.case-detail section:last-child {
  border-bottom: 0;
}

.case-detail .detail-head {
  padding: 22px 24px 18px;
}

.detail-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.12;
}

/* Ficha expandida v2: modal mas ancho + 2 columnas (izq cliente/orden, der
   archivos/videos/chat). Bloques con padding consistente para evitar margenes
   raros en los pop-ups. */
.case-modal-panel {
  width: min(1080px, 100%);
}

.case-detail-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  padding: 18px 24px 22px;
}

.case-detail-cols .case-col {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.case-detail .case-detail-cols .case-block {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.case-block h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.client-block-name {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.client-block-name.muted {
  color: var(--muted);
  font-weight: 600;
}

.case-file-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-file-pill-row.compact .file-pill {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  border-radius: 8px;
}

.card-product-chip {
  margin-top: 6px;
}

.case-chat-thread {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 4px;
}

.chat-msg {
  padding: 8px 10px;
  background: var(--soft, #f5f6f7);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.chat-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 11px;
  color: var(--muted);
}

.chat-msg-head strong {
  color: #14181f;
  font-weight: 800;
}

.chat-msg p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-empty,
.chat-loading {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.case-chat-input {
  display: grid;
  gap: 5px;
}

.upload-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.detail-head p,
.approval-panel p {
  margin: 0;
  color: #475467;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.detail-topline,
.detail-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-status-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-status-select {
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: var(--status-color, #fff);
  color: var(--status-text, #111);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
}

.admin-status-select:disabled {
  opacity: 0.7;
  cursor: default;
}

.approved-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #0f5132;
  background: #eef7ef;
  border: 1px solid #cfe8d2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-list video {
  width: 100%;
  max-height: 420px;
  background: #000;
  border-radius: 12px;
}

.client-video-grid {
  display: grid;
  gap: 12px;
}

.client-video-grid h3 {
  margin: 0;
}

.client-video-item {
  display: grid;
  gap: 6px;
}

.client-video-item a {
  color: #111;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.case-file-buttons h3,
.case-upload-panel h3,
.approval-panel h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.case-detail .case-file-buttons {
  display: grid;
  gap: 12px;
}

.case-file-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-preview {
  display: grid;
  min-height: 120px;
  margin-top: 12px;
  overflow: hidden;
  background:
    linear-gradient(var(--soft), var(--soft)) padding-box,
    repeating-linear-gradient(135deg, #eef1f5 0 10px, #f8fafc 10px 20px) border-box;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.file-preview div {
  display: grid;
  place-items: center;
  min-height: 118px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: #000;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.file-pill.active {
  color: #fff;
  background: #000;
  border-color: #000;
}

.file-pill.disabled {
  color: #9aa3af;
  background: #f5f6f7;
}

.file-pill.empty {
  color: #9aa3af;
  background: #f5f6f7;
  border-color: #e0e4ea;
}

.file-pill.locked {
  color: #2f3946;
  background: #fff;
  border-style: dashed;
  border-color: #9aa3af;
}

.file-pill.label-pill {
  color: #0b4f9c;
  background: #eef4fd;
  border-color: #c4d8f5;
  cursor: pointer;
}

.file-pill.label-pill:hover {
  color: #fff;
  background: #0b4f9c;
  border-color: #0b4f9c;
}

.case-list-phone {
  color: #5f6368;
  font-weight: 700;
}

body.privacy-mode .case-list-phone {
  color: #9aa3af;
}

.detail-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.detail-contact div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #f5f6f7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-contact span {
  color: #7a828c;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.detail-contact strong {
  color: #14181f;
  font-size: 14px;
  font-weight: 800;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}

.detail-entry {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.approval-panel {
  display: grid;
  gap: 10px;
}

.admin-payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-color: #f59e0b;
  background: #fffbeb;
}

.admin-payment-panel span {
  display: block;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-payment-panel p {
  margin-top: 4px;
}

.admin-payment-panel .form-status {
  grid-column: 1 / -1;
}

.video-empty {
  min-height: 94px;
}

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

.provider-list {
  display: grid;
  gap: 14px;
}

.provider-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.provider-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.provider-group h3 {
  margin: 0;
  font-size: 18px;
}

.provider-group header small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-group header span {
  min-width: 26px;
  min-height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.provider-empty {
  min-height: 48px;
  display: grid;
  align-items: center;
  padding: 10px 12px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.provider-row {
  display: grid;
  grid-template-columns: 104px minmax(180px, 1.4fr) minmax(90px, 0.7fr) 132px 118px 112px minmax(130px, 0.8fr) 150px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--status-color, #111);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.provider-assign {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.public-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.public-hero span,
.admin-row {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.provider-order {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.provider-row strong,
.provider-color {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-row .status {
  width: fit-content;
  margin-top: 5px;
}

.provider-file-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.provider-file-pills .file-pill {
  min-height: 29px;
  max-width: 118px;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-color {
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-margin {
  width: fit-content;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 9px;
  color: #111;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.provider-margin.red {
  background: #fff1f2;
  border-color: #fecdd3;
}

.provider-margin.yellow {
  background: #fffbeb;
  border-color: #fde68a;
}

.provider-margin.green {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.provider-file-check {
  width: fit-content;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 9px;
  color: #111;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-file-check.ready {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.provider-file-check.missing {
  background: #fff7ed;
  border-color: #fed7aa;
}

.ready-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  color: #111;
  font-size: 11px;
}

.ready-check input {
  width: 16px;
  min-height: 16px;
  accent-color: #111;
}

.archive-row {
  display: grid;
  grid-template-columns: 34px 92px minmax(150px, 1.1fr) minmax(180px, 1.4fr) 110px 84px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.archive-row a {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.archive-row strong,
.archive-row span,
.archive-row small,
.archive-row time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-row small,
.archive-row time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.icon-button {
  width: 30px;
  height: 30px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.request-panel {
  width: min(620px, 100%);
}

.price-panel {
  width: min(860px, 100%);
}

.price-content {
  display: grid;
  gap: 12px;
  clear: both;
}

.price-content > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-content h2 {
  margin: 0;
  font-size: 28px;
}

.price-content p {
  margin: 0;
  color: var(--muted);
}

.price-list-grid,
.credit-grid {
  display: grid;
  gap: 8px;
}

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

.price-section-title {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-item,
.credit-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 10px;
  padding: 10px 12px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.price-item {
  align-items: flex-start;
  flex-direction: column;
}

.price-item span {
  font-size: 18px;
  font-weight: 800;
}

.price-item small,
.credit-pack small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.credit-pack strong,
.credit-pack span {
  font-weight: 800;
}

.gpt-content {
  max-width: 760px;
}

.gpt-steps {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.gpt-steps article,
.gpt-prompt-box,
.gpt-details {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gpt-steps strong,
.gpt-prompt-box strong {
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.gpt-steps small,
.gpt-prompt-box p,
.gpt-details {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.gpt-steps code,
.gpt-details code {
  overflow: auto;
  padding: 8px;
  color: #111;
  background: #f6f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.gpt-steps .subtle-button,
.gpt-prompt-box .subtle-button {
  justify-self: start;
}

[data-copy].copied::after {
  content: " copiado";
}

.soon-card {
  max-width: 560px;
}

.app-version {
  margin: 34px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 760px) {
  /* En celular la tarjeta apila en una sola columna: el estado (incluido el
     <select> de admin) ocupa todo el ancho y deja de recortarse a "lis...". */
  .case-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-top .exit-box {
    justify-items: start;
    min-height: 0;
    margin-top: 4px;
    padding-top: 6px;
  }
  .case-top .admin-status-select,
  .case-top .status {
    width: 100%;
    max-width: 100%;
  }

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

  .admin-payment-panel .primary {
    width: 100%;
  }

  .app {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    height: auto;
  }
  .side nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .top-actions .top-menu-toggle {
    display: inline-flex;
  }
  .top-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 31;
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: min(240px, calc(100vw - 44px));
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
  }
  .top-menu.open {
    display: flex;
  }
  .top-menu .subtle-button {
    width: 100%;
    justify-content: flex-start;
  }
  .file-pill,
  .icon-button,
  .side nav button,
  .top-actions button,
  .top-actions a,
  .subtle-button,
  .primary {
    min-height: 44px;
  }
  .gpt-landing-card {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }
  .gpt-landing-card .link-button,
  .gpt-landing-card .primary {
    width: 100%;
    text-align: center;
  }
  .growth-card {
    grid-template-columns: 1fr;
  }
  .growth-card .primary {
    width: 100%;
  }
  .archive-row {
    grid-template-columns: 32px 88px 1fr;
  }
  .client-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .client-row a,
  .client-row span {
    grid-column: 1 / -1;
  }
  .client-view-head {
    grid-template-columns: 1fr;
  }
  .provider-summary {
    grid-template-columns: 1fr;
  }
  .provider-row {
    grid-template-columns: 1fr;
  }
  .money-summary {
    grid-template-columns: 1fr;
  }
  .client-directory-head {
    grid-template-columns: 1fr;
  }
  .client-row {
    grid-template-columns: 1fr;
  }
  .money-row {
    grid-template-columns: 32px 86px minmax(0, 1fr);
  }
  .search-row {
    align-items: stretch;
    flex-direction: column;
  }
  .active-view-toggle {
    width: fit-content;
  }
  .case-list-row {
    min-width: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 14px 16px;
  }
  .case-list-head {
    display: none;
  }
  .case-list-row > * {
    grid-column: 1;
  }
  .case-list-row .product-chip,
  .case-list-row .status,
  .case-list-payment,
  .case-list-date {
    grid-column: 1;
  }
  .case-list-date,
  .case-list-files {
    justify-content: flex-start;
    text-align: left;
  }
  .case-list-files {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .pending-row {
    grid-template-columns: 32px 86px minmax(0, 1fr);
    align-items: start;
  }
  .pending-row .status,
  .pending-reasons,
  .pending-row small,
  .pending-row time {
    grid-column: 3;
  }
  .money-row small,
  .money-row .status,
  .money-row .money-payment,
  .money-row time {
    display: none;
  }
  .money-due {
    grid-column: 2 / -1;
    text-align: left;
  }
  .case-upload-row {
    grid-template-columns: 1fr;
  }
  .price-list-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 14px;
  }
  .case-detail section,
  .case-detail .detail-head {
    padding: 16px;
  }
  .case-detail-cols {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .case-meta {
    grid-template-columns: 1fr;
  }
  .archive-row span,
  .archive-row small,
  .archive-row time {
    display: none;
  }
}

/* ===== Movil angosto (<480px): que los pop-ups no se desborden ===== */
/* request-panel (620), price-panel (860) y modal-panel (700) traian anchos fijos
   sin tope para pantallas chicas y se salian del viewport. Aqui los limitamos al
   ancho disponible y dejamos scroll vertical interno. No toca el caseModal (1080),
   que ya cae al ancho del viewport via min(...). */
@media (max-width: 480px) {
  .modal {
    padding: 12px;
  }
  .modal-panel,
  .request-panel,
  .price-panel {
    width: min(100% - 24px, 100%);
    max-width: 100%;
    max-height: 92vh;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px;
  }
  .order-form {
    padding: 0 16px 18px;
  }
  .request-panel .order-form,
  .price-panel .price-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .order-form h2,
  .price-content h2 {
    word-break: break-word;
  }
  /* En angosto el control de archivos apila boton sobre nombre para no recortarse. */
  .file-field-control {
    flex-wrap: wrap;
  }
  .file-field-name {
    flex-basis: 100%;
  }
}

/* ===== Home accionable: hero, ofertas, oferta de servicio ===== */
.news-hero {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid #111;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}
.news-hero span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.12;
}
.news-hero p {
  margin: 0;
  max-width: 680px;
  color: #475467;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.hero-ctas .hero-blog-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid #111;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}
.offer-card--promo {
  border-color: #128c4a;
  border-left-width: 6px;
}
.offer-badge {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.offer-badge--promo {
  background: #ecfdf3;
  color: #0f5132;
  border: 1px solid #128c4a;
}
.offer-card h3 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
}
.offer-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.offer-price strong {
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.offer-was {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: line-through;
}
.offer-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.offer-cta {
  margin-top: 6px;
  width: fit-content;
}

.offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.offering-card {
  display: grid;
  gap: 6px;
  padding: 20px;
}
.offering-card span {
  color: #0f5132;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.offering-card h3 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}
.offering-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.news-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.news-head-actions {
  display: flex;
  gap: 8px;
}
.news-head-actions a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Badge top seller / promo en el modal de maquila */
.price-item--top {
  border: 1px solid #111 !important;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}
.price-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-tag--promo {
  background: #ecfdf3;
  color: #0f5132;
  border: 1px solid #128c4a;
}
.price-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #128c4a;
  border-left-width: 6px;
  border-radius: 12px;
  background: #f6fef8;
}
.price-promo strong {
  font-size: 15px;
  font-weight: 800;
}
.price-promo span {
  font-size: 18px;
  font-weight: 900;
}
.price-promo span s {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.price-promo small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .news-hero {
    padding: 20px;
  }
  .news-hero h1 {
    font-size: 24px;
  }
  .hero-ctas .primary,
  .hero-ctas .subtle-button {
    flex: 1 1 auto;
    min-height: 44px;
  }
  .offer-grid,
  .offering-grid {
    grid-template-columns: 1fr;
  }
}

/* Barra de notificaciones (banner superior no intrusivo) */
.notif-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
  font-size: 14px;
}

.notif-bar.hidden {
  display: none;
}

.notif-bar-tag {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notif-bar-link {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-bar-link:hover {
  text-decoration: underline;
}

.notif-bar-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.notif-bar-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Tarjeta de noticia que enlaza al blog */
a.news-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.news-card--link:hover {
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
  transform: translateY(-2px);
}

.news-card .news-card-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
