:root { --dataco-primary: #0d6efd; --sidebar-w: 250px; }
body { background: #f4f6f9; font-size: .925rem; }

/* ── Variables DataCo ── */
:root {
  --dc-red:   #c8102e;
  --dc-navy:  #0a1e5e;
  --dc-gray:  #f0f4fa;
}

/* ── Auth layout split-screen ── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #fff;
}

/* Panel izquierdo — blanco */
.auth-panel-img {
  flex: 0 0 56%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #edf0f6;
}
.auth-panel-img::before { display:none; }

.auth-panel-img-logo { margin-bottom: 1.6rem; }

/* Heading izquierdo */
.auth-left-heading {
  font-size: 2rem; font-weight: 800;
  line-height: 1.25; color: var(--dc-navy);
  margin-bottom: .8rem;
}
.auth-left-heading span { color: var(--dc-red); }
.auth-left-sub {
  font-size: .92rem; color: #5a6480;
  line-height: 1.65; margin-bottom: 1.4rem;
}

/* Feature cards */
.auth-feat-row { display: flex; gap: .7rem; margin-bottom: 1.5rem; }
.auth-feat-card {
  flex: 1; background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: .8rem;
  padding: .9rem .5rem .7rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(10,30,94,.05);
  font-size: .7rem; color: #4a5672;
  font-weight: 600; line-height: 1.3;
}
.auth-feat-card i {
  display: block; font-size: 1.35rem;
  color: var(--dc-red); margin-bottom: .4rem;
}

/* Ilustración building — ocupa el resto del alto */
.auth-panel-img-illo {
  flex: 1; display: flex;
  align-items: flex-end; justify-content: center;
  overflow: hidden; margin: 0 -3rem;
}
.auth-panel-img-illo svg { width: 100%; max-height: 280px; }

/* Panel derecho — gris suave */
.auth-panel-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--dc-gray);
  position: relative;
  overflow: hidden;
}
/* Círculos decorativos rojo top-right */
.auth-panel-form::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--dc-red);
  opacity: .10;
}
.auth-panel-form::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--dc-red);
  opacity: .13;
}

/* Puntos decorativos */
.auth-deco-dots {
  position: absolute;
  top: 10px; right: 170px;
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 8px; opacity: .25;
}
.auth-deco-dots span {
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--dc-red);
  display: block;
}

.auth-card {
  width: 100%; max-width: 430px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 2.2rem 1.8rem;
  box-shadow: 0 8px 40px rgba(10,30,94,.12);
  position: relative; z-index: 1;
}

/* Línea roja bajo subtitle */
.auth-card-divider {
  width: 48px; height: 3px;
  background: var(--dc-red);
  border-radius: 2px;
  margin: .6rem auto 1.4rem;
}

/* Inputs */
.auth-input-group .input-group-text {
  background: #f7f9fc !important;
  border-color: #dde3f0 !important;
  color: #94a3b8;
}
.auth-input-group .form-control {
  border-color: #dde3f0 !important;
  background: #f7f9fc !important;
  font-size: .9rem;
}
.auth-input-group .form-control:focus {
  background: #fff !important;
  border-color: var(--dc-red) !important;
  box-shadow: 0 0 0 .18rem rgba(200,16,46,.15) !important;
}

/* Botón iniciar sesión */
.btn-dc-red {
  background: var(--dc-red) !important;
  border-color: var(--dc-red) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: .55rem;
  transition: opacity .15s;
}
.btn-dc-red:hover { opacity: .88; }

/* Botón demo outline */
.btn-dc-outline {
  background: transparent !important;
  border: 2px solid var(--dc-red) !important;
  color: var(--dc-red) !important;
  font-weight: 700;
  border-radius: .55rem;
  transition: all .15s;
}
.btn-dc-outline:hover { background: var(--dc-red) !important; color: #fff !important; }

/* Checkbox recordarme */
.form-check-input:checked { background-color: var(--dc-red); border-color: var(--dc-red); }

@media (max-width: 767.98px) {
  .auth-panel-img { display: none; }
  .auth-body { background: var(--dc-gray); align-items: center; justify-content: center; padding: 1rem; }
  .auth-panel-form { width: 100%; }
  .auth-card { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
}

/* Footer auth */
.auth-footer {
  text-align: center; padding: 1rem 0 .5rem;
  font-size: .7rem; color: #94a3b8;
}
.auth-footer strong { color: var(--dc-navy); }

.sidebar { width: var(--sidebar-w); min-height: 100vh; background: #1d2536; color: #cfd6e4;
  position: fixed; top: 0; left: 0; z-index: 1040; overflow-y: auto; transition: margin-left .25s; }
.sidebar-brand { display:flex; align-items:center; gap:.6rem; padding: 1rem; font-weight: 700;
  font-size: 1.05rem; color:#fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo { height: 32px; width: 32px; object-fit: cover; border-radius: 6px; }
.sidebar .nav-link { color: #aeb9cd; padding: .55rem 1rem; font-size: .9rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 22px; display: inline-block; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.08); border-left-color: var(--dataco-primary); }
.main-content { margin-left: var(--sidebar-w); min-height: 100vh; width: calc(100% - var(--sidebar-w)); }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e7eaf0; position: sticky; top: 0; z-index: 1030; }

@media (max-width: 991.98px) {
  .sidebar { margin-left: calc(var(--sidebar-w) * -1); }
  .sidebar.show { margin-left: 0; }
  .main-content { margin-left: 0; width: 100%; }
}

.card { border: none; box-shadow: 0 1px 4px rgba(20,30,60,.08); border-radius: .6rem; }
.stat-card { border-left: 4px solid var(--dataco-primary); }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; }
.table > :not(caption) > * > * { padding: .55rem .75rem; }
.btn-primary, .bg-primary { background-color: var(--dataco-primary) !important; border-color: var(--dataco-primary) !important; }
.text-primary { color: var(--dataco-primary) !important; }
.notif-list { max-height: 350px; overflow-y: auto; }
.notif-item { padding: .6rem .8rem; border-bottom: 1px solid #f0f2f5; font-size: .85rem; display:block; color:inherit; text-decoration:none; }
.notif-item.unread { background: #eef4ff; }
.notif-item:hover { background:#f6f8fb; }
.required:after { content: " *"; color: #dc3545; }

/* Portal público */
.site-nav { background: var(--dataco-primary); }
.site-hero { background: linear-gradient(120deg, var(--dataco-primary), #16325c); color: #fff; padding: 4rem 0; }
.site-footer { background: #1d2536; color: #aeb9cd; padding: 2rem 0; margin-top: 3rem; }
.news-card img { height: 180px; object-fit: cover; }
.gallery-img { height: 200px; object-fit: cover; cursor: pointer; }
