/* =============================================
   JurisBase — main.css
   Paleta: #13123B | #3651D4 | #594DC2 | #18BAC9 | #FFFFFF
   Tipografía: Public Sans
   Estilo: fondo blanco predominante, acentos de marca
   ============================================= */

/* --- Variables --- */
:root {
  --navy:          #13123B;
  --blue:          #3651D4;
  --violet:        #594DC2;
  --cyan:          #18BAC9;
  --navbar-h:      62px;   /* altura real del navbar — ajustar si cambia */
  --primary:       #3651D4;
  --primary-dark:  #2a3ea8;
  --accent:        #18BAC9;
  --accent-dark:   #119aaa;
  --secondary:     #594DC2;
  --text:          #13123B;
  --text-body:     #374151;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --bg:            #ffffff;
  --bg-light:      #f8f9ff;
  --sidebar-width: 185px;
  --navbar-height: 64px;
}

/* --- Base --- */
* { box-sizing: border-box; }
html, body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text-body);
  background: #fff;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  color: var(--navy);
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-juris {
  background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 100%);
  height: var(--navbar-height);
  padding: 0 1.5rem;
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(89,77,194,0.25);
  z-index: 1030;
  position: sticky;
  top: 0;
}
.navbar-juris .navbar-brand {
  padding: 0;
  line-height: 1;
}
.navbar-juris .navbar-brand:hover { opacity: 0.9; }
.navbar-logo {
  height: 44px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
}
.navbar-juris .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}
.navbar-juris .nav-link:hover { color: #fff !important; }
.navbar-juris .nav-link.active { color: #fff !important; font-weight: 600; }
.navbar-juris .nav-link-accent strong { font-weight: 700; letter-spacing: 0.01em; color: #fff; font-size: 18.5px; }
.navbar-juris .nav-link-accent { color: #fff !important; }
.navbar-juris .nav-link-accent:hover { color: #fff !important; opacity: 0.85; }
.navbar-juris .navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-juris .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-juris .dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(89,77,194,0.18);
  border-radius: 8px;
  min-width: 200px;
}
.navbar-juris .dropdown-item { font-size: 13px; padding: 8px 16px; color: var(--text-body); }
.navbar-juris .dropdown-item:hover { background: var(--bg-light); color: var(--violet); }
.navbar-juris .btn-login {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border-radius: 7px;
  padding: 6px 16px;
  background: transparent;
  transition: all 0.2s;
}
.navbar-juris .btn-login:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.navbar-juris .btn-register {
  background: #fff;
  color: var(--violet);
  font-weight: 700;
  font-size: 13px;
  border-radius: 7px;
  padding: 6px 16px;
  border: none;
  transition: all 0.2s;
}
.navbar-juris .btn-register:hover { background: rgba(255,255,255,0.9); color: var(--navy); }

/* =============================================
   HERO — fondo claro con acento
   ============================================= */
.hero-section {
  scroll-margin-top: var(--navbar-h);
  background: url("/static/images/banner-hero.e51bdaa34b31.jpg") center center / cover no-repeat;
  background-image: image-set(
    url("/static/images/banner-hero.fd87c931c659.webp") type('image/webp'),
    url("/static/images/banner-hero.e51bdaa34b31.jpg") type('image/jpeg')
  );
  padding: 0;
  height: calc((100vh - var(--navbar-h)) * 0.60);
  position: relative;
  display: flex;
  align-items: center;
}
.hero-section > .container {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 20px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Filtro blanco solo en la parte superior; se desvanece en el 65% para no tapar el triángulo del banner */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.55) 60%,
    rgba(255,255,255,0) 100%
  );
}
/* Etiqueta "BASE DE JURISPRUDENCIA" */
.hero-label {
  display: inline-block;
  font-size: 22pt;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  padding: 0;
  margin-bottom: -0.4rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

/* Título principal */
.hero-title {
  font-size: 20pt;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
  margin-top: 0 !important;
}
.hero-title-sub {
  display: block;
  color: #000;
  font-weight: 700;
  margin-top: 1.2rem;
  font-size: 26pt;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1rem;
  color: #000;
  max-width: 500px;
  line-height: 1.75;
  position: relative;
  z-index: 2;
  font-weight: 400;
}
.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-hero-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-hero-outline:hover { border-color: var(--primary); color: var(--primary); }
.hero-image-placeholder {
  background: linear-gradient(135deg, rgba(54,81,212,0.08), rgba(24,186,201,0.08));
  border-radius: 16px;
  border: 1px solid rgba(54,81,212,0.12);
  padding: 3rem;
  text-align: center;
  color: var(--primary);
}

/* =============================================
   SECCIONES GENERALES
   ============================================= */
.section-white { background: #fff; }
.section-light { background: var(--bg-light); }
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-title .accent { color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.section-label {
  display: inline-block;
  background: rgba(54,81,212,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* =============================================
   FEATURES
   ============================================= */
.feature-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  box-shadow: 0 8px 28px rgba(54,81,212,0.09);
  transform: translateY(-2px);
}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.icon-blue   { background: rgba(54,81,212,0.1);  color: var(--blue); }
.icon-cyan   { background: rgba(24,186,201,0.1); color: var(--cyan); }
.icon-violet { background: rgba(89,77,194,0.1);  color: var(--violet); }
.feature-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-text  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   NEWS / DATO LEGAL
   ============================================= */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 6px 20px rgba(19,18,59,0.08);
  transform: translateY(-2px);
}
.news-card-img { width: 100%; height: 180px; object-fit: cover; }
.news-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 2rem;
}
.news-card-body { padding: 1rem; }
.news-card-date { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.news-card-title { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.news-list-img { height: 240px; object-fit: cover; }
.news-content img { max-width: 100%; border-radius: 6px; }

/* =============================================
   PLANS
   ============================================= */
.plan-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}
.plan-card:hover { box-shadow: 0 12px 32px rgba(54,81,212,0.1); transform: translateY(-4px); }
.plan-featured { border: 2px solid var(--primary); }
.plan-featured-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  text-align: center;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-name { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.plan-price { line-height: 1; margin: 0.6rem 0; }
.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  vertical-align: top;
  margin-top: 5px;
  display: inline-block;
}
.price-amount { font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.price-period { font-size: 13px; color: var(--text-muted); }
.plan-divider { border-color: var(--border); }
.plan-features li { padding: 10px 0; font-size: 15px; color: var(--text-body); border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li i.fa-check { color: var(--cyan); }
.btn-plan-primary {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 0;
  width: 100%;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-plan-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-plan-outline {
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 0;
  width: 100%;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-plan-outline:hover { background: var(--primary); color: #fff; }

/* =============================================
   CTA SECTION — fondo claro, estilo limpio
   ============================================= */
.cta-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 6rem 0 7rem;
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: flex-start;
  padding-top: 3rem;
  scroll-margin-top: var(--navbar-h);
}
.cta-section h2 { color: var(--navy); font-size: 1.9rem; }
.cta-section p { color: var(--text-muted); }
.btn-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 11px 30px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--primary-dark); color: #fff; }
.btn-cta-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-cta-outline:hover { border-color: var(--primary); color: var(--primary); }

/* =============================================
   UTILITIES
   ============================================= */
.bg-navy { background-color: var(--navy) !important; }
.text-navy { color: var(--navy) !important; }

/* =============================================
   LIBRO DE RECLAMACIONES
   ============================================= */
.complaint-section-header {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 4px 4px 0 0;
}
.complaint-card {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.complaint-card .card-body { padding: 1.5rem; }
.complaint-sub-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: var(--navbar-h);
}
/* Isotipo */
.footer-isotipo { height: 188px; width: auto; }
/* Info central */
.footer-company-name { color: #fff; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; }
.footer-ruc { color: rgba(255,255,255,0.6); font-size: 1rem; }
.footer-contact-label { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 1.05rem; }
.footer-contact-link { color: var(--cyan); text-decoration: none; font-size: 1rem; }
.footer-contact-link:hover { color: #fff; }
.footer-legal-link { color: rgba(255,255,255,0.6); font-size: 0.95rem; text-decoration: none; transition: color 0.2s; }
.footer-legal-link:hover { color: var(--cyan); }
.footer-legal-sep { color: rgba(255,255,255,0.3); }
/* Redes sociales */
.footer-social { display: flex; justify-content: center; gap: 18px; }
.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7); font-size: 1.3rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.footer-social-link:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }
/* Logotipo footer bottom */
.footer-logotipo { max-width: 840px; width: 90%; height: auto; display: block; margin: 0 auto; line-height: 0; }
/* Libro de Reclamaciones */
.footer-libro { max-width: 200px; width: 100%; border-radius: 6px; transition: opacity 0.2s; }
.footer-libro:hover { opacity: 0.85; }
/* Divider y bottom */
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 0; }
.footer-bottom {
  background: rgba(0,0,0,0.15);
  padding: 12px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 4px;
  font-size: 13px;
}
.footer-social a:hover { background: var(--cyan); color: #fff; }

/* =============================================
   AUTH
   ============================================= */
.auth-page { background: var(--bg-light); min-height: 100vh; }
.auth-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(19,18,59,0.08);
  background: #fff;
}
.auth-logo { color: var(--navy); font-size: 1.3rem; font-weight: 700; }
.auth-logo .brand-accent { color: var(--cyan); }
.auth-card .input-group-text { background: var(--bg-light); border-right: none; color: var(--text-muted); }
.auth-card .form-control { border-left: none; }
.auth-card .form-control:focus { box-shadow: 0 0 0 2px rgba(54,81,212,0.12); border-color: var(--primary); }
.auth-card .btn-primary {
  background: var(--primary);
  border: none;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}
.auth-card .btn-primary:hover { background: var(--primary-dark); }
.auth-divider { position: relative; text-align: center; color: var(--text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* =============================================
   DASHBOARD — sidebar + content
   ============================================= */
.dashboard-html,
.dashboard-body { background: #f5f6fa; min-height: 100vh; }
.dashboard-wrapper { min-height: 100vh; display: flex; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--navy);
  flex-shrink: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: width 0.25s ease;
  white-space: nowrap;
}

/* Header: logo + toggle */
.sidebar-header {
  min-height: 70px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* "D" visible solo cuando está colapsado */
.sidebar-brand-initial {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  transition: opacity 0.2s, max-width 0.25s ease;
  max-width: 40px;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  margin: 6px 0;
}

.sidebar-brand-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  white-space: nowrap;
}


/* Nav area: sin scroll — ocupa todo el espacio disponible */
/* Navegación interna: scroll sin scrollbar visible */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge legacy */
}
.sidebar-nav::-webkit-scrollbar { display: none; } /* Chrome / Safari / Edge moderno */

/* Section labels */
.sidebar-section-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  padding: 0 16px;
  margin: 8px 0 2px;
  font-weight: 700;
  transition: opacity 0.2s;
}

/* Menu links */
.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 7px 16px;
  color: rgba(255,255,255,0.6);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  gap: 10px;
}
.sidebar-menu a span { transition: opacity 0.2s; }
.sidebar-menu a i { width: 16px; text-align: center; flex-shrink: 0; transition: all 0.15s; }
.sidebar-menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-menu a.active {
  color: #fff;
  background: rgba(54,81,212,0.25);
  border-left-color: var(--cyan);
}

/* ── Módulo "Próximamente" en sidebar ───────────────────────── */
.sidebar-link-soon {
  opacity: 0.55;
  cursor: default !important;
  pointer-events: none;
}
.sidebar-link-soon:hover { background: transparent !important; }
.sidebar-soon-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  background: rgba(124,58,237,0.25);
  color: #c4b5fd;
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Footer logo en color */
.sidebar-footer {
  flex-shrink: 0;
  padding: 10px 16px 14px 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: opacity 0.2s;
}
.sidebar-footer-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  display: block;
  text-align: center;
}

/* ── SIDEBAR: colapsado por defecto, expande al hover ── */

/* Transiciones base */
.sidebar-brand         { transition: opacity 0.2s, max-width 0.25s ease; overflow: hidden; }
.sidebar-footer        { transition: opacity 0.2s; }
.sidebar-section-label { transition: opacity 0.15s, max-height 0.2s ease, margin 0.2s, padding 0.2s; }
.sidebar-menu a span   { transition: opacity 0.15s, max-width 0.2s ease; overflow: hidden; display: inline-block; }

/* Estado por defecto: colapsado (solo íconos) */
.sidebar { width: 56px; }

.sidebar .sidebar-brand-initial  { opacity: 1; max-width: 40px; }
.sidebar .sidebar-brand          { max-width: 0; opacity: 0; }
.sidebar .sidebar-section-label  { max-height: 0; opacity: 0; margin: 0 !important; padding: 0; overflow: hidden; }
.sidebar .sidebar-menu a span    { max-width: 0; opacity: 0; }
.sidebar .sidebar-footer         { opacity: 0; }

.sidebar .sidebar-menu a {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}
.sidebar .sidebar-menu a i { width: 56px; text-align: center; font-size: 16px; }

/* Estado hover: expandido */
.sidebar:hover { width: var(--sidebar-width); }

.sidebar:hover .sidebar-brand-initial { max-width: 0; opacity: 0; }
.sidebar:hover .sidebar-brand         { max-width: 180px; opacity: 1; }
.sidebar:hover .sidebar-section-label { max-height: 40px; opacity: 1; margin: 8px 0 2px !important; padding: 0 16px; }
.sidebar:hover .sidebar-menu a span   { max-width: 160px; opacity: 1; }
.sidebar:hover .sidebar-footer        { opacity: 1; }

.sidebar:hover .sidebar-menu a {
  justify-content: flex-start;
  padding-left: 16px;
  padding-right: 16px;
  gap: 10px;
}

/* Enlace con texto multilínea (ej. Arbitraje y Contrataciones) */
.sidebar:hover .sidebar-link-wrap {
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
}
.sidebar:hover .sidebar-link-wrap span {
  white-space: normal !important;
  overflow: visible !important;
  line-height: 1.35;
  max-width: 130px !important;
}
.sidebar:hover .sidebar-menu a i { width: 16px; text-align: center; font-size: inherit; }

/* Dashboard content */
.dashboard-content { flex: 1; padding: 1.5rem; min-width: 0; }

/* ── Arbitraje y Contrataciones Públicas ── */
.arbitraje-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
}
.arbitraje-card-header {
  background: var(--navy);
  color: #F59E0B;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 22px;
}
.arbitraje-card-body {
  background: #fff;
  padding: 20px 16px 8px;
}

/* Sub-tarjetas */
.arbitraje-sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  padding: 20px 12px 0;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  height: 100%;
}
.arbitraje-sub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none !important;
}
.arbitraje-sub-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  opacity: 0.85;
}
.arbitraje-sub-count {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.arbitraje-sub-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 12px;
  flex: 1;
}
.arbitraje-sub-footer {
  width: calc(100% + 24px);
  margin: 0 -12px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,0,0,0.12);
}

/* Colores amarillos */
.arbitraje-sub-amber  { background: linear-gradient(135deg, #F59E0B, #D97706); }
.arbitraje-sub-gold   { background: linear-gradient(135deg, #FBBF24, #B45309); }
.arbitraje-sub-yellow { background: linear-gradient(135deg, #FCD34D, #F59E0B); color: #1e293b !important; }
.arbitraje-sub-yellow .arbitraje-sub-footer { background: rgba(0,0,0,0.08); color: #1e293b; }

/* Pronto: deshabilitado */
.arbitraje-sub-soon {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  cursor: not-allowed;
}
.arbitraje-sub-soon:hover { transform: none; box-shadow: none; }

/* Gap de 60px entre tarjetas Dato Legal y Dato Adicional */
.row-dato-cards > .col-lg-6:first-child { padding-right: 30px; }
.row-dato-cards > .col-lg-6:last-child  { padding-left: 30px; }

/* Stat cards */
.stat-card { border: none; border-radius: 12px; overflow: hidden; color: #fff; }
.stat-card-body { display: flex; align-items: center; padding: 20px; gap: 16px; }
.stat-icon { font-size: 2rem; opacity: 0.7; }
.stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.stat-card-footer {
  display: block;
  padding: 8px 20px;
  background: rgba(0,0,0,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  text-decoration: none;
}
.stat-card-footer:hover { color: #fff; text-decoration: none; background: rgba(0,0,0,0.18); }
.stat-card-blue   { background: linear-gradient(135deg, var(--blue), #5b78e8); }
.stat-card-cyan   { background: linear-gradient(135deg, var(--cyan), #22d3ee); }
.stat-card-violet { background: linear-gradient(135deg, var(--violet), #7c6fe8); }
.stat-card-navy   { background: linear-gradient(135deg, #1e1c6e, var(--navy)); }
.stat-card-green  { background: linear-gradient(135deg, #059669, #10b981); }
.stat-card-orange { background: linear-gradient(135deg, #d97706, #f59e0b); }
.stat-card-purple { background: linear-gradient(135deg, var(--violet), #7c6fe8); }

/* Page header */
.page-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 12px; }
.breadcrumb-item + .breadcrumb-item::before { color: #9ca3af; }
.breadcrumb-item a { color: var(--primary); }

/* =============================================
   JURISPRUDENCIA
   ============================================= */
.detail-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(54,81,212,0.12);
  margin-bottom: 10px;
}
.detail-content { font-size: 14px; line-height: 1.85; color: var(--text-body); }
.detail-content p { margin-bottom: 0.75rem; }
.juris-tag {
  display: inline-block;
  background: rgba(54,81,212,0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px;
}

/* =============================================
   FILTER FORMS
   ============================================= */
.filter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.filter-card label { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.filter-card input[type="text"],
.filter-card input[type="date"],
.filter-card select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-body);
  background: #fff;
  font-family: 'Public Sans', sans-serif;
}
.filter-card input:focus, .filter-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(54,81,212,0.1);
}

/* =============================================
   CARDS GENERALES
   ============================================= */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy);
  padding: 0.85rem 1.25rem;
}

/* Botones globales */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 7px;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 7px;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-sm { font-size: 12px; padding: 4px 12px; }

/* Badges */
.badge-brand { background: rgba(54,81,212,0.1); color: var(--primary); font-weight: 600; border-radius: 20px; }
.badge-cyan   { background: rgba(24,186,201,0.1); color: var(--cyan); font-weight: 600; border-radius: 20px; }

/* =============================================
   CAROUSEL
   ============================================= */
.carousel-img { max-height: 420px; object-fit: cover; width: 100%; }
.carousel-caption { background: rgba(19,18,59,0.5); border-radius: 8px; padding: 1rem; }

/* =============================================
   ALERTS / MESSAGES
   ============================================= */
.alert { border-radius: 8px; border: none; font-size: 13px; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-info    { background: #eff6ff; color: #1e40af; }

/* =============================================
   SOBREESCRITURA BOOTSTRAP — colores de marca
   ============================================= */
.text-primary { color: var(--primary) !important; }
a.text-primary:hover { color: var(--primary-dark) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.badge-primary {
  background: rgba(54,81,212,0.1);
  color: var(--primary);
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
}
.badge-primary-light {
  background: rgba(54,81,212,0.08);
  color: var(--primary);
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* Hero icon */
.hero-icon {
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.15;
}

/* Features section */
.features-section { background: #fff; }

/* ===== DATO LEGAL SECTION ===== */
.dato-legal-section {
  background: #fff;
  padding: 0.5rem 0 !important;
  height: calc((100vh - var(--navbar-h)) * 0.40);
  overflow: hidden;
}

.dato-legal-icon { color: var(--cyan); }

.dato-legal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0;
}
.dato-legal-title span { color: var(--blue); }

.dato-legal-wrapper { /* eliminado */ }
/* Gap mínimo entre tarjetas */
/* Carrusel full-width */
#carrusel {
  margin: 0;
  padding: 0;
  scroll-margin-top: var(--navbar-h);
}
.carousel-img-full {
  width: 100%;
  height: calc(100vh - var(--navbar-h));
  display: block;
  object-fit: cover;
  object-position: center;
}
/* Indicadores (puntos) centrados abajo */
#carruselJuris .carousel-indicators {
  bottom: 18px;
}
#carruselJuris .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.6);
  border: none;
  margin: 0 5px;
  cursor: pointer;
}
#carruselJuris .carousel-indicators li.active {
  background-color: var(--cyan);
}
@media (max-width: 768px) {
  .carousel-img-full { height: 60vw; }
}

.dato-legal-section .row.no-gutters { gap: 12px; }
.dato-legal-section .row.no-gutters .col { padding: 0 5px; }

/* Paginación dato legal */
.dato-legal-page-link {
  color: var(--blue);
  border-color: #dee2e6;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
}
.page-item.active .dato-legal-page-link {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.dato-legal-page-link:hover {
  background-color: var(--bg-light);
  color: var(--navy);
}

.dato-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf2;
}

.dato-card-thumb {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dato-card-thumb--light {
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
}
.dato-card-thumb--gradient {
  background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
}

.dato-d-logo {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cyan);
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
}
.dato-card-thumb--gradient .dato-d-logo { color: #fff; }

.dato-card-body { padding: 0.75rem 1rem 1rem; }

.dato-card-date {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.dato-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.dato-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cyan);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.dato-card-btn:hover { background: var(--blue); color: #fff !important; }

/* =============================================
   UTILITIES
   ============================================= */
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }
.text-navy   { color: var(--navy) !important; }
.text-cyan   { color: var(--cyan) !important; }
.text-blue   { color: var(--blue) !important; }
.min-vh-60 { min-height: 0; }
.min-vh-80 { min-height: 80vh; }

/* =============================================
   DATO LEGAL — DETALLE
   ============================================= */
.dato-legal-detail-section {
  background: var(--bg-light);
  min-height: calc(100vh - var(--navbar-h));
}

.dato-detail-back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.dato-detail-back:hover { color: var(--violet); text-decoration: none; }

.dato-detail-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(19,18,59,0.08);
  overflow: hidden;
}

/* Thumbnail cuadrado superior izquierdo */
.dato-detail-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
}

.dato-detail-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dato-detail-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dato-d-logo-lg {
  font-size: 6rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
}

.dato-detail-content-col {
  padding: 2.5rem 2rem 2rem 2.5rem;
}

.dato-detail-date {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dato-detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.dato-detail-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1rem;
}

.dato-detail-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.dato-detail-body {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .dato-detail-image-col { min-height: 200px; }
  .dato-detail-content-col { padding: 1.5rem 1rem; }
  .dato-detail-title { font-size: 1.3rem; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero-title { font-size: 1.9rem; }
  .sidebar { display: none; }
  .dashboard-content { width: 100%; }
  .stat-card-body { padding: 14px; }
  .stat-value { font-size: 1.4rem; }
  /* En móvil las secciones fluyen libremente sin altura fija */
  .hero-section       { height: auto; padding: 2.5rem 0 1.5rem; }
  .dato-legal-section { height: auto !important; overflow: visible; padding: 1.5rem 0 !important; }
  .min-vh-60          { min-height: 20vh; }
}
