/* ===============================
   ALINEACIONES PARA VALORES EN TABLAS
   =============================== */

/* Alineaciones genericas para tablas */
.td-left, .th-left   { text-align: left; }
.td-center, .th-center { text-align: center; }
.td-right, .th-right { text-align: right; }

/* (Opcional) Para que numeros se vean mas prolijos */
.td-right { font-variant-numeric: tabular-nums; }


/* ===============================
   HERO LANDING PAGE
   =============================== */

:root{
  --calc-black: #0b0b0b;
  --calc-ink: #111111;
  --calc-muted: #6c757d;
  --calc-border: rgba(0,0,0,.10);
  --calc-soft: rgba(0,0,0,.06);
}

body { color: var(--calc-ink); }

.nav-dark-glass {
  background: rgba(10, 10, 10, 0.65); /* negro translucido */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color .22s ease, border-color .22s ease, backdrop-filter .22s ease;
}

.nav-dark-glass.nav-transparent-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav-dark-glass.nav-transparent-top .navbar-collapse.show {
  margin-top: .75rem;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
}

/* Links */
.navbar-dark .nav-link {
  position: relative;
  font-weight: 500;
  transition: opacity .2s ease;
}

.navbar-dark .nav-link.active {
  font-weight: 750;
}

.navbar-dark .nav-link.active::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .2rem;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.hover-opacity:hover {
  opacity: 1 !important;
}

/* Boton outline en navbar */
.navbar .btn-outline-light {
  border-color: rgba(255,255,255,.5);
}

.navbar .btn-outline-light:hover {
  background: rgba(255,255,255,.12);
}


/* Hero */
.hero {
  padding-top: 7.5rem; /* compensa fixed-top */
  padding-bottom: 4.25rem;
}

/* Fondo negro */
.hero-dark {
  position: relative;
  background: #0b0b0b;
  overflow: hidden;
}

/* VIDEO */
.hero-video-bg {
  position: absolute;
  filter: saturate(1.1) contrast(1.05);
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.70; /* AJUSTA OPACIDAD VIDEO: 0.20–0.40 */
}

/* Mobile: menos distraccion */
@media (max-width: 991px) {
  .hero-video-bg {
    opacity: 0.70;
  }
}

.hero-video-bg {
  opacity: 0.92;
}

@media (max-width: 991px) {
  .hero-video-bg {
    opacity: 0.88;
  }
}

/* Overlay oscuro + degradado */
.hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(
      180deg,
      rgba(0,0,0,.42) 0%,
      rgba(0,0,0,.30) 45%,
      rgba(0,0,0,.48) 100%
    );
  z-index: 2;
}

/* Contenido arriba */
.hero-content {
  position: relative;
  z-index: 3;
}

/* Badge oscuro */
.badge-dark-soft {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}

/* Tipografia */
.display-tight {
  letter-spacing: 0;
}

.hero-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 2.9rem;
  line-height: 1.14;
}


.section{
  padding: 4rem 0;
}

.section-muted{
  background: rgba(0,0,0,.02);
  border-top: 1px solid var(--calc-border);
  border-bottom: 1px solid var(--calc-border);
  padding-top: 5rem;
}

.home-main {
  background: #ffffff;
}

.home-intro {
  padding-top: 4.5rem;
}

.section-kicker {
  margin-bottom: .75rem;
  color: #595f6a;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  max-width: 720px;
  margin-bottom: 1rem;
  color: #111111;
  font-size: 2.75rem;
  font-weight: 750;
  line-height: 1.08;
}

.section-copy {
  max-width: 680px;
  color: #555c66;
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.5rem;
  padding: .55rem .85rem;
  border: 1px solid var(--calc-border);
  border-radius: 999px;
  background: #ffffff;
  color: #252a31;
  font-size: .95rem;
  font-weight: 600;
}

.feature-list i {
  color: #198754;
}

.image-placeholder {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  gap: .85rem;
  padding: 2rem;
  border: 1px dashed rgba(0,0,0,.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25,135,84,.08), rgba(13,110,253,.08)),
    #f8f9fb;
  color: #2b3035;
}

.image-placeholder i {
  font-size: 2.25rem;
  color: #198754;
}

.image-placeholder strong {
  font-size: 1.15rem;
}

.image-placeholder p {
  max-width: 520px;
  margin: 0;
  color: #56606b;
  line-height: 1.65;
}

.image-placeholder-dark {
  background:
    linear-gradient(135deg, rgba(0,0,0,.82), rgba(35,45,58,.88)),
    #111111;
  border-color: rgba(255,255,255,.28);
  color: #ffffff;
}

.image-placeholder-dark i {
  color: #ffffff;
}

.image-placeholder-dark p {
  color: rgba(255,255,255,.76);
}

.landing-image-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  background: #f8f9fb;
  box-shadow: 0 18px 44px rgba(0,0,0,.08);
}

.landing-image-frame-dark {
  border-color: rgba(255,255,255,.18);
  background: #111111;
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
}

.landing-image-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-feature-section {
  padding-bottom: 5.5rem;
}

.home-feature {
  min-height: 100%;
  padding: 2rem;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #ffffff;
}

.feature-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 1.35rem;
}

.home-feature h2 {
  margin-bottom: .85rem;
  color: #111111;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.2;
}

.home-feature p {
  margin: 0;
  color: #555c66;
  line-height: 1.7;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--calc-border);
  background: #0b0b0b;
  color: rgba(255,255,255,.72);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-copy,
.footer-legal {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-lg-end;
  gap: .75rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: rgba(255,255,255,.78);
  font-weight: 600;
  text-decoration: none;
}

.footer-dropdown {
  display: inline-flex;
}

.footer-dropdown-toggle {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font: inherit;
  font-weight: 600;
  padding: 0;
}

.footer-dropdown-toggle::after {
  display: inline-block;
  margin-left: .35rem;
  vertical-align: .12em;
  content: "";
  border-top: .32em solid;
  border-right: .32em solid transparent;
  border-left: .32em solid transparent;
}

.footer-nav a:hover,
.footer-dropdown-toggle:hover,
.footer-dropdown-toggle:focus {
  color: #ffffff;
}

.footer-dropdown-menu {
  --bs-dropdown-min-width: 14rem;
  --bs-dropdown-padding-y: .4rem;
  --bs-dropdown-bg: #151515;
  --bs-dropdown-border-color: rgba(255,255,255,.12);
  --bs-dropdown-link-color: rgba(255,255,255,.78);
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-dropdown-link-hover-bg: rgba(255,255,255,.08);
}

.footer-legal {
  text-align: right;
  color: rgba(255,255,255,.56);
  font-size: .9rem;
}

.pricing-page {
  background: #ffffff;
  padding-top: 0;
}

.pricing-hero {
  padding: 9rem 0 4.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(255,255,255,.12), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.96), rgba(16,18,22,.98));
}

.pricing-title {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.pricing-copy {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255,255,255,.74);
  font-size: 1.1rem;
  line-height: 1.7;
}

.pricing-hero .section-kicker {
  color: rgba(255,255,255,.68);
}

.pricing-section {
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0,0,0,.05);
}

.pricing-card-featured {
  border-color: rgba(0,0,0,.32);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.pricing-card-sold-out {
  border-color: rgba(0,0,0,.12);
  background: linear-gradient(180deg, rgba(0,0,0,.025), rgba(0,0,0,.01)), #ffffff;
}

.pricing-card-sold-out .pricing-card-head,
.pricing-card-sold-out .pricing-price,
.pricing-card-sold-out .pricing-features {
  opacity: .62;
}

.pricing-card-head {
  min-height: 9.25rem;
}

.pricing-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .25rem .65rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  color: #3e4650;
  font-size: .78rem;
  font-weight: 750;
}

.pricing-badge-featured {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.pricing-badge-sold-out {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.14);
  color: #545b62;
}

.pricing-card h2 {
  margin-bottom: .5rem;
  color: #111111;
  font-size: 2rem;
  font-weight: 800;
}

.pricing-card p {
  margin: 0;
  color: #555c66;
  line-height: 1.6;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin: 1.25rem 0 1.5rem;
  color: #111111;
}

.pricing-currency {
  font-size: 1.2rem;
  font-weight: 800;
}

.pricing-amount {
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1;
}

.pricing-period {
  margin-left: .25rem;
  color: #67707a;
  font-size: .95rem;
  font-weight: 650;
}

.pricing-features {
  display: grid;
  gap: .85rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  gap: .55rem;
  color: #2e343b;
  line-height: 1.45;
}

.pricing-features i {
  flex: 0 0 auto;
  margin-top: .12rem;
  color: #198754;
}

.pricing-features .feature-muted {
  color: #7a838c;
}

.pricing-features .feature-muted i {
  color: #8a929a;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.pricing-empty h2 {
  margin-bottom: .75rem;
  color: #111111;
  font-size: 1.6rem;
  font-weight: 800;
}

.pricing-empty p {
  margin: 0;
  color: #555c66;
  line-height: 1.65;
}

.pricing-note-section {
  padding-bottom: 4rem;
}

.pricing-note {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.pricing-note h2 {
  margin: 0;
  color: #111111;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.18;
}

.pricing-note p:last-child {
  margin: 0;
  color: #555c66;
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-page {
  background: #ffffff;
}

.contact-hero {
  padding: 9rem 0 4.5rem;
  background:
    radial-gradient(820px 300px at 18% 0%, rgba(255,255,255,.13), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.96), rgba(16,18,22,.98));
  color: #ffffff;
}

.contact-hero .section-kicker {
  color: rgba(255,255,255,.68);
}

.contact-title {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.contact-copy {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-quick-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.contact-card-label {
  display: block;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.contact-quick-card strong {
  display: block;
  margin-bottom: .75rem;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.35;
}

.contact-quick-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.contact-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 1.25rem;
}

.contact-card {
  min-height: 100%;
  padding: 2rem;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0,0,0,.05);
}

.contact-card-primary {
  border-color: rgba(0,0,0,.28);
}

.contact-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 1.25rem;
}

.contact-card h2 {
  margin-bottom: .8rem;
  color: #111111;
  font-size: 1.7rem;
  font-weight: 800;
}

.contact-card p {
  margin-bottom: 1.25rem;
  color: #555c66;
  line-height: 1.7;
}

.contact-link {
  display: inline-flex;
  color: #111111;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-form {
  margin-top: 1.25rem;
}

.contact-label {
  color: #2e343b;
  font-size: .8rem;
  font-weight: 750;
}

.contact-control {
  min-height: 2.75rem;
  border-color: rgba(0,0,0,.14);
  border-radius: 8px;
  color: #111111;
}

.contact-control:focus {
  border-color: rgba(0,0,0,.34);
  box-shadow: 0 0 0 .18rem rgba(0,0,0,.08);
}

textarea.contact-control {
  min-height: 10rem;
  resize: vertical;
}

.contact-help {
  margin-top: .35rem;
  color: #6c747f;
  font-size: .82rem;
}

.contact-submit,
.contact-whatsapp {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 750;
}

.contact-submit {
  background: #111111;
  color: #ffffff;
}

.contact-submit:hover {
  background: #2a2a2a;
  color: #ffffff;
}

.contact-whatsapp {
  gap: .45rem;
  width: 100%;
  border: 1px solid rgba(25,135,84,.22);
  background: rgba(25,135,84,.08);
  color: #146c43;
  text-decoration: none;
}

.contact-whatsapp:hover {
  background: rgba(25,135,84,.13);
  color: #0f5132;
}

.contact-list {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: .55rem;
  color: #2e343b;
  line-height: 1.55;
}

.contact-list i {
  flex: 0 0 auto;
  margin-top: .14rem;
  color: #198754;
}

.contact-note-section {
  padding-bottom: 4rem;
}

.contact-note {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.contact-note h2 {
  margin: 0;
  color: #111111;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.18;
}

.contact-note p:last-child {
  margin: 0;
  color: #555c66;
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav,
  .footer-legal {
    justify-content: flex-start;
    text-align: left;
  }

  .pricing-title {
    font-size: 2.25rem;
  }

  .pricing-grid,
  .pricing-note,
  .contact-grid,
  .contact-note {
    grid-template-columns: 1fr;
  }

  .pricing-card-head {
    min-height: auto;
  }

  .contact-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 575px) {
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .feature-list {
    flex-direction: column;
  }

  .feature-list span {
    width: 100%;
  }

  .image-placeholder,
  .home-feature {
    padding: 1.5rem;
  }

  .pricing-page {
    padding-top: 0;
  }

  .pricing-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .pricing-title {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .contact-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-card,
  .contact-quick-card {
    padding: 1.5rem;
  }

  .pricing-amount {
    font-size: 2.15rem;
  }
}
/* ===============================
   LAYOUT PRINCIPAL
   =============================== */

:root{
  --app-bg: #f7f7f8;      /* fondo del contenido */
  --app-sidebar: #ffffff; /* sidebar */
  --app-sidebar-border: rgba(0,0,0,.07);
  --app-card-bg: #ffffff;
  --app-radius: 14px;

  --app-topbar-h: 68px;
  --app-sidebar-w: 260px;
  --payment-banner-h: 46px;
}

/* Breadcrumb reutilizable del layout principal */
.app-breadcrumb{
  --bs-breadcrumb-divider: "\203A";
  margin: 0 0 1rem;
  padding: .55rem .75rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e7e7e9;
  border-radius: .65rem;
  background: rgba(255,255,255,.72);
  box-shadow: 0 .15rem .55rem rgba(17,17,17,.04);
  font-size: .82rem;
}

.app-breadcrumb .breadcrumb-item,
.app-breadcrumb .breadcrumb-item a{
  color: var(--calc-muted);
  text-decoration: none;
}

.app-breadcrumb .breadcrumb-item a:hover{
  color: var(--calc-ink);
}

.app-breadcrumb .breadcrumb-item.active{
  color: var(--calc-ink);
  font-weight: 600;
}

.app-breadcrumb .breadcrumb-item + .breadcrumb-item::before{
  color: #adb5bd;
  font-size: 1rem;
  line-height: 1.15;
}

/* Fondo general del "admin" */
.app-shell{
  min-height: 100vh;
  background: var(--app-bg);
  padding-top: var(--app-topbar-h);
}

/* TOPBAR fija */
.app-topbar{
  height: var(--app-topbar-h);
  background: #111111;
  border-bottom: 0;
  box-shadow: none;
}

.app-topbar-principal{
  background: #111111;
  border-bottom: 0;
  box-shadow: none;
}

.app-topbar .container-fluid{
  min-height: 100%;
  padding-left: clamp(1.5rem, 3vw, 3rem) !important;
  padding-right: clamp(1.5rem, 3vw, 3rem) !important;
}

.payment-issue-banner{
  position: fixed;
  top: var(--app-topbar-h);
  left: 0;
  right: 0;
  z-index: 1029;
  min-height: var(--payment-banner-h);
  display: flex;
  align-items: center;
  background: #fff3cd;
  border-bottom: 1px solid #f1d27a;
  color: #4f3900;
}

.payment-issue-banner__inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: .55rem 1rem;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.payment-issue-banner__message{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

.payment-issue-banner__action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: .25rem .72rem;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.payment-issue-banner__action:hover{
  color: #ffffff;
  background: #2a2a2a;
}

.has-payment-banner .app-shell{
  padding-top: calc(var(--app-topbar-h) + var(--payment-banner-h));
}

.has-payment-banner .app-sidebar{
  top: calc(var(--app-topbar-h) + var(--payment-banner-h));
  height: calc(100vh - var(--app-topbar-h) - var(--payment-banner-h));
}

.app-brand-badge{
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  color: #0b0b0b;
  font-weight: 800;
}

.app-pill{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.86);
  font-weight: 700;
}

.app-topbar .navbar-brand,
.app-topbar-principal__brand{
  min-height: 48px;
  padding: .35rem .7rem .35rem 0;
  border-radius: 8px;
  color: #ffffff;
}

.app-topbar .navbar-brand:hover,
.app-topbar .navbar-brand:focus,
.app-topbar-principal__brand:hover,
.app-topbar-principal__brand:focus{
  color: #ffffff;
}

.app-topbar .navbar-brand > img,
.app-topbar-principal__logo{
  width: 30px;
  height: 24px;
  object-fit: contain;
}

.app-topbar-principal__logo--compact{
  width: 30px;
  height: 24px;
}

.app-topbar-principal__word{
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-topbar .navbar-brand > span:not(.badge):not(.app-topbar-principal__word){
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-btn-ghost{
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: .4rem .75rem;
  box-shadow: none;
}
.app-btn-ghost:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #ffffff;
}

.app-topbar-principal .app-btn-ghost:hover,
.app-topbar-principal .app-btn-ghost:focus{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #ffffff;
}

/* SIDEBAR fija */
.app-sidebar{
  position: fixed;
  top: var(--app-topbar-h);
  left: 0;
  width: var(--app-sidebar-w);
  height: calc(100vh - var(--app-topbar-h));
  background: var(--app-sidebar);
  border-right: 1px solid var(--app-sidebar-border);
  box-shadow: .18rem 0 .7rem rgba(17,17,17,.08);
  overflow: hidden;
}

.app-sidebar-inner{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* La parte que scrollea */
.app-sidebar-scroll{
  overflow-y: auto;
  padding: 1rem .55rem .75rem .85rem;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.app-sidebar:hover .app-sidebar-scroll,
.app-offcanvas:hover .app-sidebar-scroll{
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.24) transparent;
}

.app-sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-sidebar:hover .app-sidebar-scroll::-webkit-scrollbar,
.app-offcanvas:hover .app-sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0,0,0,.22);
}

.app-sidebar-section{
  margin-bottom: 1.35rem;
}

.app-sidebar-title{
  font-size: .75rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(0,0,0,.52);
  margin: .15rem .55rem .55rem;
  font-weight: 750;
}

.app-navlink{
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.6rem;
  padding: .62rem .75rem;
  margin-bottom: .35rem;
  border-radius: 8px;
  color: rgba(0,0,0,.76);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 400;
  line-height: 1.5;
}

.app-navlink i {
  width: 1.15rem;
  margin-right: 0 !important;
  color: rgba(0,0,0,.62);
  text-align: center;
}

.app-navlink:hover{
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.90);
}

.app-navlink.active{
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.95);
}

.app-navlink:hover i,
.app-navlink.active i {
  color: rgba(0,0,0,.88);
}

.app-sidebar-footer{
  flex: 0 0 auto;
  margin-top: 0;
  padding: 1rem .9rem 1.25rem;
  border-top: 1px solid var(--app-sidebar-border);
  background: var(--app-sidebar);
}

.app-sidebar-footer .small {
  display: block;
  margin-bottom: .55rem;
  padding-left: .2rem;
  font-weight: 650;
}

.app-sidebar-footer-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 2.65rem;
  width: 100%;
  padding: .5rem .9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--bs-primary);
  font-weight: 500;
  text-decoration: none;
}

.app-sidebar-footer-link:hover,
.app-sidebar-footer-link:focus{
  border-color: rgba(var(--bs-primary-rgb), .18);
  background: rgba(var(--bs-primary-rgb), .10);
  color: var(--bs-link-hover-color);
  text-decoration: none;
}

/* MAIN */
.app-main{
  margin-left: var(--app-sidebar-w);
  padding: 2rem 2.25rem 2rem 2.5rem;
}

.base-principal-layout .app-main{
  background: #f7f7f8;
}

.app-main-inner{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
/* Page header (titulos fuera de cards) */
.app-pagehead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-title{
  font-size: calc(1.3rem + .6vw);
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 1200px){
  .app-title{
    font-size: 1.75rem;
  }
}

.app-subtitle{
  font-size: 1rem;
  color: var(--bs-secondary-color);
}

.app-muted{
  font-size: .875rem;
  color: var(--bs-secondary-color);
}

.app-link{
  font-size: .85rem;
  color: rgba(0,0,0,.70);
  text-decoration: none;
}
.app-link:hover{
  text-decoration: underline;
  color: rgba(0,0,0,.85);
}

/* Cards */
.app-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--app-radius);
  background: var(--app-card-bg);
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}

.app-card-header{
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* KPI */
.app-kpi-label{
  font-size: .8rem;
  color: rgba(0,0,0,.55);
  margin-bottom: .15rem;
}
.app-kpi-value{
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.app-kpi-foot{
  margin-top: .35rem;
  font-size: .8rem;
  color: rgba(0,0,0,.45);
}

.app-chip{
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.75);
}

/* Inicio de la aplicacion */
.app-home-icon,
.app-home-action-icon,
.app-home-empty-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(0,0,0,.05);
  color: var(--calc-ink);
}

.app-home-icon{
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

.app-home-action{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  color: var(--calc-ink);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.app-home-action:hover{
  border-color: rgba(0,0,0,.16);
  background: rgba(0,0,0,.025);
  color: var(--calc-ink);
}

.app-home-action-icon{
  width: 2.25rem;
  height: 2.25rem;
}

.app-home-action strong,
.app-home-action small{
  display: block;
}

.app-home-action strong{
  font-size: .88rem;
}

.app-home-action small{
  margin-top: .1rem;
  color: rgba(0,0,0,.55);
  font-size: .78rem;
}

.app-home-empty{
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.app-home-empty-icon{
  width: 3rem;
  height: 3rem;
  margin-bottom: .85rem;
  font-size: 1.25rem;
}

/* Botones app */
.app-btn-primary{
  --bs-btn-color: #fff;
  --bs-btn-bg: #212529;
  --bs-btn-border-color: #212529;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #424649;
  --bs-btn-hover-border-color: #373b3e;
  --bs-btn-focus-shadow-rgb: 66, 70, 73;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #4d5154;
  --bs-btn-active-border-color: #373b3e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #212529;
  --bs-btn-disabled-border-color: #212529;
}

.app-btn-secondary{
  --bs-btn-color: #6c757d;
  --bs-btn-border-color: #6c757d;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #6c757d;
  --bs-btn-hover-border-color: #6c757d;
  --bs-btn-focus-shadow-rgb: 108, 117, 125;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #6c757d;
  --bs-btn-active-border-color: #6c757d;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  --bs-btn-disabled-color: #6c757d;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #6c757d;
  --bs-gradient: none;
}

/* Responsive: sidebar colapsa */
@media (max-width: 991px){
  :root{ --app-sidebar-w: 0px; }
  .app-sidebar{ display: none; }
  .app-main{
    margin-left: 0;
    padding: 1.25rem;
  }
  .app-pagehead{ flex-direction: column; }

  .payment-issue-banner{
    --payment-banner-h: 64px;
  }

  .payment-issue-banner__inner{
    flex-direction: column;
    gap: .35rem;
    padding: .45rem .75rem;
    font-size: .84rem;
  }

  .payment-issue-banner__action{
    min-height: 28px;
    padding: .2rem .65rem;
  }
}

/* Offcanvas movil: ancho y estetica */
.app-offcanvas{
  width: 86vw;
  max-width: 320px;
  background: var(--app-sidebar);
}

/* Que el offcanvas no se meta debajo de la topbar fija */
@media (max-width: 991px){
  .offcanvas.app-offcanvas{
    top: var(--app-topbar-h);
    height: calc(100vh - var(--app-topbar-h));
  }

  .has-payment-banner .offcanvas.app-offcanvas{
    top: calc(var(--app-topbar-h) + var(--payment-banner-h));
    height: calc(100vh - var(--app-topbar-h) - var(--payment-banner-h));
  }
}

/* Header del offcanvas mas limpio */
.app-offcanvas .offcanvas-header{
  border-bottom: 1px solid var(--app-sidebar-border);
}

/* Asegura que el main no deje margen en movil */
@media (max-width: 991px){
  .app-main{
    margin-left: 0;
    padding: 1.25rem;
  }
}

/* Quitar caret (triangulito) del dropdown */
.no-caret::after {
  display: none !important;
}

/* ===============================
   DOCUMENTACION
   =============================== */

:root{
  --docs-sidebar-w: 280px;
  --docs-index-w: 260px;
  --docs-content-gutter: 3rem;
  --docs-border: rgba(0,0,0,.09);
}

.documentation-body{
  background: #ffffff;
}

.docs-shell{
  min-height: 100vh;
  padding-top: var(--app-topbar-h);
  background: #ffffff;
}

.has-payment-banner .docs-shell{
  padding-top: calc(var(--app-topbar-h) + var(--payment-banner-h));
}

.docs-sidebar,
.docs-index{
  position: fixed;
  top: var(--app-topbar-h);
  height: calc(100vh - var(--app-topbar-h));
  background: #ffffff;
  overflow: hidden;
}

.has-payment-banner .docs-sidebar,
.has-payment-banner .docs-index{
  top: calc(var(--app-topbar-h) + var(--payment-banner-h));
  height: calc(100vh - var(--app-topbar-h) - var(--payment-banner-h));
}

.docs-sidebar{
  left: 0;
  width: var(--docs-sidebar-w);
  border-right: 1px solid var(--docs-border);
}

.docs-index{
  right: 0;
  width: var(--docs-index-w);
  border-left: 1px solid var(--docs-border);
}

.docs-sidebar-inner,
.docs-index-inner{
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.docs-sidebar-scroll,
.docs-index-scroll{
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.24) transparent;
}

.docs-sidebar-scroll{
  padding: 1.15rem .7rem 1.25rem .95rem;
}

.docs-index-scroll{
  padding: .2rem 1rem 1.25rem;
}

.docs-sidebar-scroll::-webkit-scrollbar,
.docs-index-scroll::-webkit-scrollbar{
  width: 6px;
}

.docs-sidebar-scroll::-webkit-scrollbar-track,
.docs-index-scroll::-webkit-scrollbar-track{
  background: transparent;
}

.docs-sidebar-scroll::-webkit-scrollbar-thumb,
.docs-index-scroll::-webkit-scrollbar-thumb{
  border-radius: 999px;
  background: rgba(0,0,0,.22);
}

.docs-sidebar-section{
  margin-bottom: 1.35rem;
}

.docs-sidebar-title,
.docs-index-title{
  font-size: .75rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(0,0,0,.52);
  font-weight: 750;
}

.docs-sidebar-title{
  margin: .15rem .55rem .55rem;
}

.docs-index-title{
  flex: 0 0 auto;
  padding: 1.2rem 1rem .65rem;
}

.docs-navlink,
.docs-index-link{
  color: rgba(0,0,0,.74);
  text-decoration: none;
}

.docs-navlink{
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.45rem;
  padding: .58rem .72rem;
  margin-bottom: .25rem;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.5;
}

.docs-navlink i{
  width: 1.15rem;
  color: rgba(0,0,0,.58);
  text-align: center;
}

.docs-navlink:hover,
.docs-navlink.active{
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.92);
}

.docs-navlink:hover i,
.docs-navlink.active i{
  color: rgba(0,0,0,.84);
}

.docs-index-nav{
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.docs-index-link{
  display: block;
  padding: .38rem 0 .38rem .8rem;
  border-left: 2px solid transparent;
  font-size: .86rem;
  line-height: 1.35;
}

.docs-index-link:hover,
.docs-index-link.active{
  border-left-color: rgba(0,0,0,.62);
  color: rgba(0,0,0,.92);
}

.docs-main{
  min-height: calc(100vh - var(--app-topbar-h));
  margin-left: var(--docs-sidebar-w);
  margin-right: var(--docs-index-w);
  padding: 2rem var(--docs-content-gutter) 3rem;
  background: #ffffff;
}

.has-payment-banner .docs-main{
  min-height: calc(100vh - var(--app-topbar-h) - var(--payment-banner-h));
}

.docs-main-inner{
  width: min(100%, 860px);
  margin: 0 auto;
}

.docs-page-header{
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-eyebrow{
  margin-bottom: .45rem;
  color: rgba(0,0,0,.56);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.docs-page-header h1{
  margin: 0;
  color: rgba(0,0,0,.92);
  font-size: 2rem;
  font-weight: 760;
  line-height: 1.15;
}

.docs-lead{
  max-width: 720px;
  margin: .85rem 0 0;
  color: rgba(0,0,0,.68);
  font-size: 1.05rem;
  line-height: 1.65;
}

.docs-article{
  color: rgba(0,0,0,.78);
  font-size: .98rem;
  line-height: 1.75;
}

.docs-article section{
  scroll-margin-top: calc(var(--app-topbar-h) + 1.5rem);
  margin-bottom: 2rem;
}

.docs-article h2{
  margin: 0 0 .75rem;
  color: rgba(0,0,0,.9);
  font-size: 1.35rem;
  font-weight: 740;
  line-height: 1.25;
}

.docs-group-title{
  margin: 2.5rem 0 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--docs-border);
  color: rgba(0,0,0,.64) !important;
  font-size: .88rem !important;
  font-weight: 780 !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

.docs-article > .docs-group-title:first-child{
  margin-top: 0 !important;
  padding-top: 0;
  border-top: 0;
}

.docs-article p{
  margin: 0 0 1rem;
}

.docs-article ul{
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.docs-article li{
  margin-bottom: .45rem;
}

/* ===============================
   CENTRO DE SOLICITUDES
   =============================== */
.request-public-page{
  min-height: 75vh;
  padding-top: 72px;
  background: #f7f7f8;
}

.request-public-hero{
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 197, 94, .12), transparent 28%),
    linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--bs-border-color);
}

.request-public-hero h1{
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.request-public-hero .lead{ max-width: 700px; color: #52525b; }

.request-info-card,
.request-feature,
.request-form-card,
.request-result-card,
.request-panel,
.request-list-card,
.request-table-card{
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
}

.request-info-card{ padding: 2rem; }
.request-info-card > .bi{ display: block; margin-bottom: 1rem; color: #15803d; font-size: 2.4rem; }
.request-info-card h2,
.request-feature h2{ font-size: 1.15rem; font-weight: 750; }
.request-feature{ height: 100%; padding: 1.6rem; }
.request-feature > .bi{ display: inline-flex; width: 42px; height: 42px; margin-bottom: 1rem; align-items: center; justify-content: center; border-radius: 12px; background: #f4f4f5; font-size: 1.25rem; }
.request-feature p,
.request-info-card p{ margin-bottom: 0; color: #71717a; }

.request-form-container{ padding-top: 3rem; padding-bottom: 5rem; }
.request-result-container{ padding-top: 5rem; padding-bottom: 6rem; }
.request-detail-container{ padding-top: 3rem; padding-bottom: 5rem; }
.request-back-link{ display: inline-flex; margin-bottom: 1rem; align-items: center; gap: .4rem; color: #3f3f46; text-decoration: none; }
.request-form-card{ padding: clamp(1.4rem, 4vw, 2.5rem); }
.request-form-card--private{ max-width: 850px; }
.request-form-card__header{ margin-bottom: 1.8rem; }
.request-form-card h1,
.request-result-card h1{ font-weight: 800; letter-spacing: -.025em; }
.request-result-card{ max-width: 680px; margin: auto; padding: clamp(2rem, 5vw, 3.5rem); }
.request-result-icon{ display: inline-flex; width: 70px; height: 70px; margin-bottom: 1.25rem; align-items: center; justify-content: center; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 2rem; }
.request-result-icon--muted{ background: #f4f4f5; color: #52525b; }

.request-summary-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  background: var(--bs-border-color);
}
.request-summary-grid > div{ min-width: 0; padding: .9rem 1rem; background: #fff; }
.request-summary-grid span{ display: block; margin-bottom: .22rem; color: #71717a; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.request-summary-grid strong{ font-size: .92rem; }
.request-detail-heading{ display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.request-detail-grid{ display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 1.25rem; align-items: start; }
.request-staff-grid{ display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .7fr); gap: 1.25rem; align-items: start; }
.request-staff-grid > aside{ position: sticky; top: calc(var(--app-topbar-h) + 1rem); }
.request-panel{ padding: 1.35rem; }
.request-panel > h2,
.request-panel > div > h2{ font-size: 1.05rem; font-weight: 750; }
.request-panel--internal{ border-color: #fde68a; background: #fffbeb; }
.request-reply-panel{ position: sticky; top: 1rem; }

.request-thread{ display: flex; flex-direction: column; gap: .85rem; }
.request-message{ padding: 1rem; border: 1px solid #e4e4e7; border-radius: 14px; background: #fafafa; }
.request-message--staff{ margin-left: 2rem; border-color: #bbf7d0; background: #f0fdf4; }
.request-message--internal{ border-color: #fde68a; background: #fffbeb; }
.request-message--system{ background: #f4f4f5; }
.request-message header{ display: flex; margin-bottom: .7rem; justify-content: space-between; gap: 1rem; }
.request-message time{ flex: 0 0 auto; color: #71717a; font-size: .75rem; }
.request-message__body{ overflow-wrap: anywhere; color: #27272a; line-height: 1.55; }
.request-attachments{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.request-attachments a,
.request-attachments span{ display: inline-flex; max-width: 100%; padding: .35rem .65rem; align-items: center; gap: .3rem; overflow-wrap: anywhere; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; color: #27272a; font-size: .8rem; text-decoration: none; }

.request-list-card{ overflow: hidden; }
.request-list-item{ display: flex; padding: 1.15rem 1.3rem; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--bs-border-color); color: inherit; text-decoration: none; transition: background .15s ease; }
.request-list-item:last-child{ border-bottom: 0; }
.request-list-item:hover{ background: #fafafa; color: inherit; }
.request-list-item h2{ margin: 0 0 .2rem; font-size: 1rem; }
.request-list-item p{ margin: 0; color: #71717a; font-size: .85rem; }
.request-list-item__meta{ display: flex; align-items: center; gap: 1rem; color: #71717a; font-size: .85rem; }
.request-empty{ padding: 4rem 1rem; text-align: center; }
.request-empty > .bi{ font-size: 2.4rem; color: #a1a1aa; }
.request-empty h2{ margin-top: 1rem; font-size: 1.25rem; }

.request-metrics{ display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.request-metrics > div{ padding: 1rem 1.15rem; border: 1px solid var(--bs-border-color); border-radius: 14px; background: #fff; }
.request-metrics span{ display: block; color: #71717a; font-size: .78rem; }
.request-metrics strong{ font-size: 1.65rem; }
.request-filters{ display: grid; grid-template-columns: minmax(230px, 1.3fr) repeat(3, minmax(150px, .7fr)) auto; gap: .6rem; }
.request-table-card{ box-shadow: none; }
.request-table-card th{ color: #71717a; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.request-audit{ display: flex; flex-direction: column; gap: .85rem; }
.request-audit > div{ display: flex; gap: .75rem; }
.request-audit .bi{ color: #71717a; }
.request-audit span{ display: flex; flex-direction: column; }
.request-audit small{ color: #71717a; }

@media (max-width: 1199px){
  .request-filters{ grid-template-columns: 1fr 1fr; }
  .request-staff-grid{ grid-template-columns: 1fr; }
  .request-staff-grid > aside{ position: static; }
}

@media (max-width: 991px){
  .request-detail-grid{ grid-template-columns: 1fr; }
  .request-reply-panel{ position: static; }
  .request-metrics{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px){
  .request-public-hero{ padding-top: 2.5rem; }
  .request-detail-heading{ flex-direction: column; }
  .request-message--staff{ margin-left: 0; }
  .request-message header{ flex-direction: column; gap: .2rem; }
  .request-metrics,
  .request-filters{ grid-template-columns: 1fr; }
  .request-list-item{ align-items: flex-start; }
  .request-list-item__meta span{ display: none; }
}

.docs-figure{
  margin: 1.25rem 0 1.75rem;
}

.docs-figure img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  background: #ffffff;
}

.docs-figure figcaption{
  margin-top: .55rem;
  color: rgba(0,0,0,.58);
  font-size: .84rem;
  line-height: 1.45;
}

.docs-figure figcaption a{
  color: rgba(0,0,0,.78);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-table-wrap{
  width: 100%;
  margin: 1.25rem 0 1.75rem;
  overflow-x: auto;
}

.docs-table{
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border: 1px solid rgba(0,0,0,.12);
  font-size: .92rem;
  line-height: 1.45;
}

.docs-table th,
.docs-table td{
  padding: .8rem .9rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
  vertical-align: top;
}

.docs-table th{
  background: rgba(0,0,0,.03);
  color: rgba(0,0,0,.68);
  font-size: .8rem;
  font-weight: 760;
  text-align: left;
}

.docs-table tbody tr:last-child td{
  border-bottom: 0;
}

.docs-callout{
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(0,0,0,.12);
  border-left: 4px solid rgba(0,0,0,.72);
  border-radius: 8px;
  background: rgba(0,0,0,.025);
}

.docs-callout > :last-child{
  margin-bottom: 0;
}

.docs-route-example{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.25rem 0 1.75rem;
}

.docs-route-example div{
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  background: #ffffff;
}

.docs-route-example span{
  display: block;
  margin-bottom: .45rem;
  color: rgba(0,0,0,.58);
  font-size: .78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.docs-route-example strong{
  color: rgba(0,0,0,.84);
  font-size: .95rem;
  line-height: 1.45;
}

.docs-buttons-table{
  min-width: 700px;
}

.docs-button-cell{
  width: 210px;
}

.docs-button-sample{
  pointer-events: none;
  white-space: nowrap;
}

.docs-button-examples{
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .75rem;
}

.docs-process-flow{
  display: grid;
  justify-items: center;
  gap: 1.35rem;
  max-width: 420px;
  margin: 1.25rem auto 1.9rem;
  padding: 0;
  list-style: none;
  counter-reset: docs-process;
}

.docs-process-flow li{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: .2rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(0,0,0,.82);
  font-weight: 680;
  text-align: center;
  box-shadow: none;
}

.docs-process-flow li::before{
  counter-increment: docs-process;
  content: counter(docs-process);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.86);
  color: #ffffff;
  font-size: .82rem;
}

.docs-process-flow li:not(:last-child)::after{
  content: "\F128";
  position: absolute;
  left: 50%;
  bottom: -1.05rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(0,0,0,.46);
  font-family: "bootstrap-icons";
  font-size: 1rem;
  line-height: 1;
  transform: translateX(-50%);
}

.docs-article h3{
  margin: 1.25rem 0 .55rem;
  color: rgba(0,0,0,.86);
  font-size: 1.05rem;
  font-weight: 730;
  line-height: 1.3;
}

.docs-offcanvas{
  background: #ffffff;
}

.docs-topic-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.1rem 0 1.75rem;
}

.docs-topic-card{
  display: flex;
  min-height: 8rem;
  padding: 1.1rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #ffffff;
  color: rgba(0,0,0,.8);
  flex-direction: column;
  gap: .45rem;
  justify-content: center;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.docs-topic-card:hover{
  border-color: rgba(0,0,0,.28);
  color: rgba(0,0,0,.92);
  box-shadow: 0 .35rem 1rem rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.docs-topic-card strong{
  font-size: 1rem;
}

.docs-topic-card span{
  color: rgba(0,0,0,.62);
  font-size: .9rem;
  line-height: 1.5;
}

.docs-status-list{
  margin-left: 0 !important;
  list-style: none;
}

.docs-status-list li{
  margin-bottom: .7rem;
  padding: .85rem 1rem;
  border-left: 3px solid rgba(0,0,0,.34);
  background: rgba(0,0,0,.025);
}

.docs-faq-item{
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--docs-border);
}

.docs-faq-item:last-child{
  border-bottom: 0;
}

.docs-faq-item h3{
  margin-top: 0;
}

@media (max-width: 1199px){
  .docs-main{
    margin-right: 0;
    --docs-content-gutter: 2.25rem;
  }

}

@media (max-width: 991px){
  .docs-main{
    margin-left: 0;
    --docs-content-gutter: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .docs-sidebar{
    display: none;
  }

  .docs-offcanvas{
    top: var(--app-topbar-h);
    height: calc(100vh - var(--app-topbar-h));
  }

  .has-payment-banner .docs-offcanvas{
    top: calc(var(--app-topbar-h) + var(--payment-banner-h));
    height: calc(100vh - var(--app-topbar-h) - var(--payment-banner-h));
  }
}

@media (max-width: 575px){
  .docs-route-example{
    grid-template-columns: 1fr;
  }

  .docs-topic-grid{
    grid-template-columns: 1fr;
  }
}





/* Tabla estilo app (compacta) */
.app-table{
  font-size: .9rem;
}

.app-table > :not(caption) > * > *{
  padding: .85rem 1rem;
}

.app-table thead th{
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(0,0,0,.55);
  background: rgba(0,0,0,.02);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Link de primera columna */
.app-table-link{
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 400;
}
.app-table-link:hover{
  text-decoration: underline;
  color: var(--bs-link-hover-color);
}

/* Botones de acciones compactos */
.app-btn-table{
  border-radius: 999px;
  padding: .35rem .65rem;
  font-weight: 600;
  font-size: .85rem;
  border: 1px solid rgba(0,0,0,.12);
}

.app-btn-table-edit{
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.88);
}
.app-btn-table-edit:hover{
  background: rgba(0,0,0,.08);
}

.app-btn-table-danger{
  background: rgba(0,0,0,.86);
  border-color: rgba(0,0,0,.86);
  color: #fff;
}
.app-btn-table-danger:hover{
  opacity: .92;
}

/* Paginacion mas “neutral” */
.pagination .page-link{
  color: rgba(0,0,0,.75);
  border-color: rgba(0,0,0,.12);
}
.pagination .page-item.active .page-link{
  background: var(--calc-black);
  border-color: var(--calc-black);
  color: #fff;
}
/* Boton visualmente deshabilitado */
.app-btn-disabled{
  opacity: .45;
  pointer-events: none;   /* no clickeable */
  filter: grayscale(0.3);
}



/* Tabs tipo “pill” para detalle */
.app-tabs{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.app-tab{
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  color: rgba(0,0,0,.78);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.app-tab:hover{
  background: rgba(255,255,255,1);
  border-color: rgba(0,0,0,.14);
  color: rgba(0,0,0,.92);
}

.app-tab.active{
  background: rgba(0,0,0,.88);
  border-color: rgba(0,0,0,.88);
  color: #fff;
}

.app-field{
  padding: .75rem .85rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
}

.app-field-label{
  font-size: .75rem;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(0,0,0,.55);
  margin-bottom: .2rem;
}

.app-field-value{
  font-weight: 650;
  color: rgba(0,0,0,.90);
}



/* Auditoria */
.app-audit{
  display: grid;
  gap: .85rem;
}
.app-audit-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: .75rem;
  align-items: start;
}
.app-audit-label{
  font-size: .8rem;
  color: rgba(0,0,0,.55);
}
.app-audit-value{
  font-weight: 650;
  color: rgba(0,0,0,.90);
}


/* Bloque de firma */
.app-signature{
  margin-top: .5rem;
  padding: .75rem;
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 10px;
  background: #fff;
  max-width: 420px;   /* evita que se estire demasiado */
}
.app-signature img{
  max-height: 120px;  /* controla el alto visual */
  object-fit: contain;
}





/* Formularios compactos */
.app-form-label{
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(0,0,0,.58);
  font-weight: 700;
  margin-bottom: .35rem;
}

.app-field-optional{
  color: rgba(0,0,0,.48);
  font-size: .72rem;
  font-weight: 400;
}

.app-control{
  border-radius: 12px;
  border-color: rgba(0,0,0,.12);
  padding: .55rem .75rem;
}

.app-control:focus{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 0 0 .2rem rgba(0,0,0,.06);
}

.app-help{
  color: rgba(0,0,0,.55);
  font-size: .85rem;
}

/* Checkboxes mas “limpios” */
.app-check .form-check-input{
  border-color: rgba(0,0,0,.18);
}
.app-check .form-check-label{
  color: rgba(0,0,0,.80);
  font-weight: 500;
}

/* Input group addon */
.app-addon{
  border-radius: 12px;
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  color: rgba(0,0,0,.70);
}


/* File upload visual */
.app-file-upload{
  padding: 1rem;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  transition: border-color .15s ease, background .15s ease;
}

.app-file-upload:hover{
  border-color: rgba(0,0,0,.30);
  background: rgba(0,0,0,.04);
}

.app-file-help{
  font-size: .85rem;
  color: rgba(0,0,0,.55);
  margin-top: .35rem;
}


/* Modal mas limpio */
.app-modal{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
.modal-backdrop.show{
  opacity: .55; /* oscurece pero deja ver */
}



/* Boton IA */
.app-btn-ai{
  --bs-btn-color: #fff;
  --bs-btn-bg: #0d6efd;
  --bs-btn-border-color: #0d6efd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a58ca;
  --bs-btn-active-border-color: #0a53be;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #0d6efd;
  --bs-btn-disabled-border-color: #0d6efd;
}




/* Auth page */
.auth-page{
  min-height: 100vh;
  background: radial-gradient(1100px 600px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
              radial-gradient(900px 500px at 80% 0%, rgba(255,255,255,.08), transparent 60%),
              #0b0b0b;
  color: #fff;
}

.auth-wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}

.auth-brand{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
}

.auth-mark{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 800;
}

.auth-name{
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.15rem;
}

.auth-subtitle{
  color: rgba(255,255,255,.72);
}

.auth-card{
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  color: #fff;
}

.auth-muted{ color: rgba(255,255,255,.70); }

.auth-notice{
  padding: .75rem .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  font-size: .875rem;
}

.auth-label{
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.auth-inputgroup .auth-addon{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  border-right: none;
  border-radius: 12px 0 0 12px;
}

.auth-control{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: .6rem .75rem;
}

.auth-control::placeholder{ color: rgba(255,255,255,.45); }

.auth-control:focus{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.08);
  color: #fff;
}

.auth-eye{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-left: none;
  color: rgba(255,255,255,.82);
  border-radius: 0 12px 12px 0;
}

.auth-chip{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
}

.auth-btn{
  background: #fff;
  color: #0b0b0b;
  border-radius: 12px;
  font-weight: 700;
  padding: .65rem 1rem;
}

.auth-btn:disabled{
  cursor: not-allowed;
  opacity: .52;
}

.auth-btn:hover{
  background: rgba(255,255,255,.92);
  color: #0b0b0b;
}

.auth-btn-secondary{
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-weight: 700;
  padding: .65rem 1rem;
}

.auth-btn-secondary:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #ffffff;
}

.auth-link{
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover{ text-decoration: underline; }

.auth-legal-check{
  margin-bottom: .75rem;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}

.auth-legal-check .form-check{
  margin-bottom: .35rem;
}

.auth-legal-check .form-check-input{
  background-color: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}

.auth-legal-check .form-check-input:checked{
  background-color: #ffffff;
  border-color: #ffffff;
}

.auth-legal-links{
  padding-left: 1.55rem;
  line-height: 1.55;
}

.auth-legal-links-standalone{
  padding-left: 0;
}

.auth-legal-links a{
  color: #ffffff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal-warning{
  margin-bottom: .75rem;
  color: #ffd8a8;
  font-size: .86rem;
  font-weight: 650;
}

.auth-foot{
  color: rgba(255,255,255,.55);
}

.auth-control option{
  background: #0b0b0b;
  color: #fff;
}

.auth-control option:checked,
.auth-control option:hover{
  background: #1a1a1a;
  color: #fff;
}

select.auth-control{
  background-color: rgba(255,255,255,.04);
  color: #fff;
}




/* ===============================
   LAYOUT DE SOCIO
   =============================== */

/* Barra delgada */
:root{
  --app-contextbar-h: 40px;   /* altura barra contexto (delgada) */
  --context-max: 1180px;      /* ancho del bloque agrupado */
  --context-gap: 24px;        /* separacion normal sidebar-main */
  --context-side: 300px;      /* ancho sidebar */
}

/* Barra delgada */
.app-contextbar{
  position: sticky;
  top: var(--app-topbar-h);
  height: var(--app-contextbar-h);
  z-index: 1020;
  display: flex;
  align-items: center;
  padding: 0;
  background: #111111;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

/* Menú de notificaciones de las barras privadas */
.app-notifications__button{
  width: 40px;
  padding-inline: 0;
}

.app-notifications__badge{
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  border-radius: 999px;
  background: var(--bs-danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
}

.app-notifications__menu{
  width: min(390px, calc(100vw - 1.5rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0,0,0,.2);
}

.app-notifications__header{
  min-height: 52px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.app-notifications__read-all{
  padding: 0;
  font-size: .75rem;
  text-decoration: none;
}

.app-notifications__list{
  max-height: min(460px, calc(100vh - 130px));
  overflow-y: auto;
}

.app-notifications__item{
  padding: .85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--bs-body-color);
  text-decoration: none;
  border-bottom: 1px solid var(--bs-border-color);
}

.app-notifications__item:last-child{ border-bottom: 0; }
.app-notifications__item:hover{ background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.app-notifications__item--unread{ background: rgba(var(--bs-primary-rgb), .07); }

.app-notifications__icon{
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .12);
  color: var(--bs-primary);
}

.app-notifications__icon--success{ background: rgba(var(--bs-success-rgb), .12); color: var(--bs-success); }
.app-notifications__icon--warning{ background: rgba(var(--bs-warning-rgb), .18); color: #9a6700; }
.app-notifications__icon--error{ background: rgba(var(--bs-danger-rgb), .12); color: var(--bs-danger); }
.app-notifications__title{ font-size: .88rem; line-height: 1.25; }
.app-notifications__message{ margin-top: .2rem; color: var(--bs-secondary-color); font-size: .8rem; line-height: 1.35; }
.app-notifications__time{ margin-top: .25rem; color: var(--bs-secondary-color); font-size: .7rem; }
.app-notifications__unread-dot{ width: 8px; height: 8px; margin-top: .35rem; flex: 0 0 8px; border-radius: 50%; background: var(--bs-primary); }
.app-notifications__empty{ min-height: 150px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--bs-secondary-color); font-size: .88rem; }
.app-notifications__empty .bi{ font-size: 1.5rem; }

.app-contextbar--own{
  background: var(--bs-primary);
}

.app-contextbar--client{
  background: #111111;
}

.has-payment-banner .app-contextbar{
  top: calc(var(--app-topbar-h) + var(--payment-banner-h));
}

/* Contenedor centrado para TODO el modo */
.app-context-container{
  max-width: var(--context-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.app-contextbar .app-context-container{
  width: 100%;
}

.app-context-pill{
  padding: .14rem .45rem;
  font-size: .72rem;
  border-radius: 999px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.app-context-title{
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.1;
}

.app-context-meta{
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .82rem;
}

.app-context-close{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
}

/* Shell */
.app-context-shell{
  padding: 1rem 0 2rem;
  background: rgba(0,0,0,.02);
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: var(--app-topbar-h); /* baja el bloque completo estaba */
}

.has-payment-banner .app-context-shell{
  margin-top: calc(var(--app-topbar-h) + var(--payment-banner-h));
}

/* Layout: sidebar + main agrupados */
.app-context-layout{
  display: flex;
  align-items: flex-start;
  gap: var(--context-gap);
}

/* Sidebar fijo de ancho dentro del bloque agrupado */
.app-context-side{
  flex: 0 0 var(--context-side);
}

/* Main ocupa lo demas, NO se centra raro */
.app-context-main{
  flex: 1 1 auto;
  min-width: 0; /* evita overflow horizontal */
}

.account-main-section{
  border-top: 1px solid var(--bs-border-color);
}

@media (min-width: 992px){
  .account-main-section{
    border-top: 0;
    border-left: 1px solid var(--bs-border-color);
  }
}

/* Responsive: en movil apila */
@media (max-width: 991px){
  .app-context-layout{
    flex-direction: column;
  }
  .app-context-side{
    flex: 0 0 auto;
    width: 100%;
  }
}
