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

/* Alineaciones genéricas 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 números se vean más 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 translúcido */
  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 {
  font-weight: 500;
  transition: opacity .2s ease;
}

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

/* Botón 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 distracción */
@media (max-width: 991px) {
  .hero-video-bg {
    opacity: 0.70;
  }
}

/* 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,.78) 0%,
      rgba(0,0,0,.65) 45%,
      rgba(0,0,0,.75) 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;
}

/* Tipografía */
.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-nav a:hover {
  color: #ffffff;
}

.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-head {
  min-height: 9.25rem;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  margin-bottom: 1rem;
  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-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-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, .85fr) minmax(0, 1.15fr);
  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-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: #f7f7f8; /* sidebar */
  --app-sidebar-border: rgba(0,0,0,.07);
  --app-card-bg: #ffffff;
  --app-radius: 14px;

  --app-topbar-h: 56px;
  --app-sidebar-w: 260px;
}

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

/* TOPBAR negra fija */
.app-topbar{
  height: var(--app-topbar-h);
  background: rgba(11,11,11,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.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,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
}

.app-btn-ghost{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 999px;
  padding: .4rem .75rem;
}
.app-btn-ghost:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}

/* 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);
  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: 650;
  line-height: 1.25;
}

.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 .btn {
  min-height: 2.65rem;
}

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

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

.app-title{
  font-size: 1.25rem; /* más pequeño que landing */
  font-weight: 700;
}

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

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

.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);
}

/* Botones app */
.app-btn-primary{
  background: var(--calc-black);
  border: 1px solid var(--calc-black);
  color: #fff;
  border-radius: 999px;
  padding: .5rem .9rem;
  font-weight: 600;
}
.app-btn-primary:hover,
.app-btn-primary:focus{
  background: var(--calc-black);
  border-color: var(--calc-black);
  color: #fff;
  opacity: .92;
}

.app-btn-primary:active{
  background: var(--calc-black);
  border-color: var(--calc-black);
  color: #fff;
  opacity: .88;
}

.app-btn-secondary{
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
  color: rgba(0,0,0,.85);
  border-radius: 999px;
  padding: .5rem .9rem;
  font-weight: 600;
}
.app-btn-secondary:hover{
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.92);
}

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

/* Offcanvas móvil: ancho y estética */
.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));
  }
}

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

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

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





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

.app-table thead th{
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  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: rgba(0,0,0,.88);
  text-decoration: none;
  font-weight: 600;
}
.app-table-link:hover{
  text-decoration: underline;
  color: rgba(0,0,0,.95);
}

/* 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;
}

/* Paginación más “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;
}
/* Botón 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: uppercase;
  letter-spacing: .04em;
  color: rgba(0,0,0,.55);
  margin-bottom: .2rem;
}

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



/* Auditoría */
.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: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.58);
  font-weight: 700;
  margin-bottom: .35rem;
}

.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 más “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;
}


/* Tom Select: que se vea como tus inputs */
/*para que no aprezca doble select*/
.ts-hidden-accessible {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* Modal más 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 */
}



/* Botón IA degradado */
.app-btn-ai{
  background: linear-gradient(135deg, #6f42c1, #0d6efd);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: .5rem .9rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: all .18s ease;
  box-shadow: 0 6px 16px rgba(13,110,253,.25);
}

.app-btn-ai:hover{
  background: linear-gradient(135deg, #5e36aa, #0b5ed7);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13,110,253,.35);
}

.app-btn-ai:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(13,110,253,.25);
}




/* 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-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:hover{
  background: rgba(255,255,255,.92);
  color: #0b0b0b;
}

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

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

.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;        /* separación 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: linear-gradient(135deg, #6f42c1, #0d6efd);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

/* 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 */
}

/* 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 demás, NO se centra raro */
.app-context-main{
  flex: 1 1 auto;
  min-width: 0; /* evita overflow horizontal */
}

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