/* ==========================================================================
   LICENCIAS DE CONDUCIR - ESTILOS MODERNOS
   Municipio de Moreno - Dirección de Licencias
   ========================================================================== */

:root {
  --lic-primary: #223467;
  --lic-primary-dark: #172449;
  --lic-primary-light: #2c427f;
  --lic-teal: #00b0ad;
  --lic-teal-hover: #008f8c;
  --lic-teal-light: #e6f7f7;
  --lic-amber: #f59e0b;
  --lic-amber-light: #fef3c7;
  --lic-blue-light: #eff6ff;
  --lic-slate-dark: #1e293b;
  --lic-slate-muted: #64748b;
  --lic-border: #e2e8f0;
  --lic-bg-soft: #f8fafc;
  --lic-radius: 12px;
  --lic-radius-sm: 8px;
  --lic-shadow: 0 4px 20px rgba(34, 52, 103, 0.07);
  --lic-shadow-hover: 0 8px 30px rgba(34, 52, 103, 0.12);
}

.text-teal {
  color: #008f8c !important;
}

.bg-teal {
  background-color: var(--lic-teal) !important;
}

.bg-teal-light {
  background-color: var(--lic-teal-light) !important;
}

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.lic-hero {
  background: linear-gradient(135deg, #172449 0%, #223467 65%, #1e40af 100%);
  color: #ffffff;
  padding: 4rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.lic-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 176, 173, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lic-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lic-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
}

.lic-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lic-breadcrumb a:hover {
  color: #00b0ad;
  text-decoration: underline;
}

.lic-breadcrumb span.active {
  color: #00b0ad;
  font-weight: 600;
}

.lic-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 176, 173, 0.2);
  color: #38efec;
  border: 1px solid rgba(0, 176, 173, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lic-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.lic-hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.lic-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.btn-hero-turno {
  background-color: var(--lic-teal);
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--lic-radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 176, 173, 0.4);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-hero-turno:hover {
  background-color: var(--lic-teal-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 176, 173, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--lic-radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   QUICK FACTS CARDS
   -------------------------------------------------------------------------- */
.lic-quick-facts-wrapper {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 3.5rem;
}

.lic-fact-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 1.5rem 1.25rem;
  height: 100%;
  box-shadow: var(--lic-shadow);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lic-fact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lic-shadow-hover);
}

.lic-fact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: var(--lic-teal-light);
  color: var(--lic-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.lic-fact-icon.blue {
  background: var(--lic-blue-light);
  color: var(--lic-primary);
}

.lic-fact-icon.amber {
  background: var(--lic-amber-light);
  color: var(--lic-amber);
}

.lic-fact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--lic-slate-muted);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.lic-fact-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lic-slate-dark);
  margin: 0;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS
   -------------------------------------------------------------------------- */
.lic-section-header {
  margin-bottom: 2.2rem;
  text-align: left;
}

.lic-section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lic-teal);
  background: var(--lic-teal-light);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.lic-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--lic-primary);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.lic-section-subtitle {
  font-size: 1.1rem;
  color: var(--lic-slate-muted);
  max-width: 800px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   REQUISITOS - GRID DE CARDS
   -------------------------------------------------------------------------- */
.lic-req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.lic-req-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 1.75rem;
  box-shadow: var(--lic-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lic-req-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--lic-primary);
  transition: width 0.25s ease;
}

.lic-req-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lic-shadow-hover);
  border-color: #cbd5e1;
}

.lic-req-card:hover::before {
  width: 6px;
  background: var(--lic-teal);
}

.lic-req-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.lic-req-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  background: rgba(34, 52, 103, 0.08);
  color: var(--lic-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.lic-req-card.featured::before {
  background: var(--lic-teal);
}

.lic-req-card.featured .lic-req-icon {
  background: var(--lic-teal-light);
  color: var(--lic-teal);
}

.lic-req-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lic-slate-dark);
  margin: 0;
}

.lic-req-body {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.6;
  flex-grow: 1;
}

.lic-req-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.lic-req-body li {
  margin-bottom: 0.5rem;
}

.lic-req-body li:last-child {
  margin-bottom: 0;
}

.lic-req-badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   STEPPER - LÍNEA DE TIEMPO INTERACTIVA
   -------------------------------------------------------------------------- */
.lic-stepper-container {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--lic-shadow);
  margin-bottom: 3.5rem;
}

.lic-step-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.lic-step-item:last-child {
  padding-bottom: 0;
}

.lic-step-item::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 50px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.lic-step-item:last-child::after {
  display: none;
}

.lic-step-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--lic-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(34, 52, 103, 0.25);
  position: relative;
  z-index: 2;
}

.lic-step-item.active .lic-step-badge {
  background: var(--lic-teal);
  box-shadow: 0 4px 12px rgba(0, 176, 173, 0.4);
}

.lic-step-content {
  flex-grow: 1;
  padding-top: 0.35rem;
}

.lic-step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lic-slate-dark);
  margin-bottom: 0.5rem;
}

.lic-step-desc {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Grilla de infracciones en Paso 1 */
.lic-infracciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.lic-btn-infraccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--lic-bg-soft);
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius-sm);
  color: var(--lic-slate-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.lic-btn-infraccion:hover {
  background: #ffffff;
  border-color: var(--lic-teal);
  color: var(--lic-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lic-btn-infraccion.municipal {
  border-left: 4px solid var(--lic-primary);
}

.lic-btn-infraccion i.external-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Banner de Turno en Paso 2 */
.lic-turno-callout {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  border-radius: var(--lic-radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.btn-sacar-turno-step {
  background-color: #2563eb;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--lic-radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-sacar-turno-step:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

/* --------------------------------------------------------------------------
   ARANCELES Y COSTOS - TABS MODERNAS
   -------------------------------------------------------------------------- */
.lic-costos-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 2.2rem;
  box-shadow: var(--lic-shadow);
  margin-bottom: 3.5rem;
}

.lic-nav-pills {
  display: flex;
  background: var(--lic-bg-soft);
  padding: 0.4rem;
  border-radius: var(--lic-radius-sm);
  border: 1px solid var(--lic-border);
  max-width: 480px;
  margin-bottom: 2rem;
}

.lic-nav-pills .nav-link {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lic-slate-muted);
  border-radius: 6px;
  transition: all 0.2s ease;
  border: none;
}

.lic-nav-pills .nav-link.active {
  background: var(--lic-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(34, 52, 103, 0.2);
}

.lic-table-modern {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--lic-radius-sm);
  overflow: hidden;
  border: 1px solid var(--lic-border);
}

.lic-table-modern thead th {
  background: var(--lic-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.2rem;
  text-align: center;
  vertical-align: middle;
  border: none;
  letter-spacing: 0.3px;
}

.lic-table-modern tbody tr {
  transition: background-color 0.2s ease;
}

.lic-table-modern tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.lic-table-modern tbody tr:hover {
  background-color: #f1f5f9;
}

.lic-table-modern tbody td,
.lic-table-modern tbody th {
  padding: 1rem 1.2rem;
  font-size: 0.98rem;
  text-align: center;
  vertical-align: middle;
  border-top: 1px solid var(--lic-border);
  color: var(--lic-slate-dark);
}

.lic-table-modern tbody th {
  font-weight: 700;
  text-align: left;
  padding-left: 1.5rem;
  color: var(--lic-primary);
}

.lic-costo-total-badge {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f766e;
  background: var(--lic-teal-light);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(0, 176, 173, 0.25);
}

.lic-costo-info-box {
  background: var(--lic-bg-soft);
  border: 1px dashed #cbd5e1;
  border-radius: var(--lic-radius-sm);
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--lic-slate-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.lic-costo-info-box i {
  font-size: 1.3rem;
  color: var(--lic-teal);
}

/* --------------------------------------------------------------------------
   SEDE Y CONTACTO
   -------------------------------------------------------------------------- */
.lic-sede-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 2.2rem;
  box-shadow: var(--lic-shadow);
  margin-bottom: 3.5rem;
}

.lic-sede-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.25rem;
}

.lic-sede-item:last-child {
  margin-bottom: 0;
}

.lic-sede-item-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: var(--lic-teal-light);
  color: var(--lic-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   BOTÓN VOLVER
   -------------------------------------------------------------------------- */
.btn-volver-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lic-primary);
  background: #ffffff;
  border: 2px solid var(--lic-primary);
  border-radius: var(--lic-radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-volver-modern:hover {
  background: var(--lic-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 52, 103, 0.25);
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .lic-hero {
    padding: 3rem 1.25rem 3.5rem;
  }
  .lic-hero-title {
    font-size: 2.2rem;
  }
  .lic-quick-facts-wrapper {
    margin-top: -1.5rem;
  }
  .lic-section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .lic-hero {
    padding: 2.5rem 1rem 3rem;
  }
  .lic-hero-title {
    font-size: 1.85rem;
  }
  .lic-hero-desc {
    font-size: 1.05rem;
  }
  .lic-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-turno,
  .btn-hero-secondary {
    justify-content: center;
  }
  .lic-quick-facts-wrapper {
    margin-top: 1rem;
  }
  .lic-step-item {
    gap: 1rem;
  }
  .lic-step-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
  }
  .lic-step-item::after {
    left: 19px;
  }
  .lic-nav-pills {
    max-width: 100%;
  }
  .lic-table-modern thead th,
  .lic-table-modern tbody td,
  .lic-table-modern tbody th {
    padding: 0.75rem 0.6rem;
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   DECRETO PROVINCIAL 3153/25 (PROFESIONAL)
   -------------------------------------------------------------------------- */
.lic-decreto-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-left: 6px solid var(--lic-teal);
  border-radius: var(--lic-radius);
  padding: 2.2rem;
  box-shadow: var(--lic-shadow);
  margin-bottom: 3.5rem;
}

.lic-decreto-badge {
  background: var(--lic-teal);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lic-decreto-subcard {
  background: #f8fafc;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius-sm);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lic-decreto-subcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.lic-decreto-subcard.cambios {
  border-left: 4px solid var(--lic-teal);
}

.lic-decreto-subcard.mantiene {
  border-left: 4px solid var(--lic-primary);
}

.lic-decreto-subcard h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lic-slate-dark);
  margin-bottom: 1rem;
}

.lic-decreto-subcard ul {
  padding-left: 1.2rem;
  margin: 0;
}

.lic-decreto-subcard li {
  margin-bottom: 0.75rem;
  color: #475569;
  line-height: 1.5;
}

.lic-decreto-subcard li:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   MATERIALES DE ESTUDIO Y SIMULADOR (EXAMEN TEÓRICO)
   -------------------------------------------------------------------------- */
.lic-material-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 1.5rem;
  box-shadow: var(--lic-shadow);
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  height: 100%;
}

.lic-material-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lic-shadow-hover);
  border-color: var(--lic-teal);
}

.lic-material-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.lic-material-info {
  flex-grow: 1;
}

.lic-material-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lic-slate-dark);
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.lic-material-card:hover .lic-material-title {
  color: var(--lic-teal);
}

.lic-material-desc {
  font-size: 0.85rem;
  color: var(--lic-slate-muted);
  margin: 0;
}

.lic-simulador-banner {
  background: linear-gradient(135deg, #172449 0%, #223467 60%, #0f766e 100%);
  color: #ffffff;
  border-radius: var(--lic-radius);
  padding: 2.8rem 2.2rem;
  box-shadow: var(--lic-shadow-hover);
  position: relative;
  overflow: hidden;
  margin: 3.5rem 0;
}

.lic-simulador-banner::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 176, 173, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lic-tip-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  gap: 14px;
  box-shadow: var(--lic-shadow);
  transition: transform 0.2s ease;
}

.lic-tip-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.lic-tip-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: var(--lic-teal-light);
  color: var(--lic-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   PORTAL PRINCIPAL DE LICENCIAS (INDEX)
   -------------------------------------------------------------------------- */
.lic-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.lic-portal-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: var(--lic-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.lic-portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--lic-primary);
  transition: background 0.3s ease, height 0.3s ease;
}

.lic-portal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lic-shadow-hover);
  border-color: #cbd5e1;
}

.lic-portal-card:hover::before {
  background: var(--lic-teal);
  height: 6px;
}

.lic-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.lic-portal-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 12px;
  background: rgba(34, 52, 103, 0.08);
  color: var(--lic-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.lic-portal-card:hover .lic-portal-icon {
  background: var(--lic-teal-light);
  color: var(--lic-teal);
  transform: scale(1.05);
}

.lic-portal-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.lic-portal-card:hover .lic-portal-arrow {
  background: var(--lic-teal);
  color: #ffffff;
  transform: translateX(4px);
}

.lic-portal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lic-slate-dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.lic-portal-sub {
  font-size: 0.92rem;
  color: var(--lic-slate-muted);
  line-height: 1.5;
  margin: 0;
}

.lic-portal-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--lic-bg-soft);
  color: var(--lic-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 991px) {
  .lic-portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .lic-portal-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   EXÁMENES PRÁCTICOS (PISTA, ETAPAS Y FALTAS)
   -------------------------------------------------------------------------- */
.lic-pista-banner {
  background: linear-gradient(135deg, #172449 0%, #223467 65%, #0f766e 100%) !important;
  border-radius: var(--lic-radius);
  padding: 2.5rem 2rem;
  color: #ffffff !important;
  box-shadow: var(--lic-shadow-hover);
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.lic-pista-banner h3 {
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1.25;
}

.lic-pista-banner p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.lic-pista-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 176, 173, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lic-etapa-box {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 2rem;
  box-shadow: var(--lic-shadow);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.lic-etapa-box.etapa-1 {
  border-left: 6px solid #f59e0b;
}

.lic-etapa-box.etapa-2 {
  border-left: 6px solid var(--lic-teal);
}

.lic-etapa-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lic-border);
}

.lic-etapa-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.lic-etapa-num.amber {
  background: var(--lic-amber-light);
  color: #b45309;
}

.lic-etapa-num.teal {
  background: var(--lic-teal-light);
  color: var(--lic-teal);
}

.lic-falta-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-left: 4px solid #ef4444;
  border-radius: var(--lic-radius-sm);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--lic-shadow);
  display: flex;
  gap: 14px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lic-falta-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lic-shadow-hover);
  border-color: #fca5a5;
}

.lic-falta-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: #fef2f2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   SELECTOR DE CATEGORÍAS (EXAMEN PRÁCTICO HUB)
   -------------------------------------------------------------------------- */
.lic-cat-selector-card {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: var(--lic-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.lic-cat-selector-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--lic-primary);
  transition: all 0.3s ease;
}

.lic-cat-selector-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lic-shadow-hover);
  border-color: var(--lic-teal);
}

.lic-cat-selector-card:hover::before {
  background: var(--lic-teal);
  height: 7px;
}

.lic-cat-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 16px;
  background: rgba(34, 52, 103, 0.08);
  color: var(--lic-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.lic-cat-selector-card:hover .lic-cat-icon {
  background: var(--lic-teal-light);
  color: var(--lic-teal);
  transform: scale(1.08);
}

.btn-cat-selector {
  background-color: var(--lic-bg-soft);
  color: var(--lic-primary);
  border: 1px solid var(--lic-border);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--lic-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.25s ease;
  font-size: 1rem;
}

.lic-cat-selector-card:hover .btn-cat-selector {
  background-color: var(--lic-teal);
  color: #ffffff !important;
  border-color: var(--lic-teal);
}

/* --------------------------------------------------------------------------
   CUADRO DE CATEGORÍAS (CLASES Y SUBCLASES)
   -------------------------------------------------------------------------- */
.lic-categories-nav-wrapper {
  position: sticky;
  top: 15px;
  z-index: 100;
  margin-bottom: 2.2rem;
  width: 100%;
}

.lic-categories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--lic-border);
  box-shadow: 0 4px 20px rgba(34, 52, 103, 0.08);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.lic-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.65rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--lic-slate-dark);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.lic-pill-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  min-width: 21px;
  border-radius: 50%;
  background: var(--lic-primary);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  transition: all 0.2s ease;
}

.lic-pill-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.lic-cat-pill.cat-a .lic-pill-letter {
  background: var(--lic-teal);
}

.lic-cat-pill.cat-b .lic-pill-letter {
  background: var(--lic-primary);
}

.lic-cat-pill.cat-c .lic-pill-letter,
.lic-cat-pill.cat-d .lic-pill-letter,
.lic-cat-pill.cat-e .lic-pill-letter {
  background: #b45309;
}

.lic-cat-pill.cat-f .lic-pill-letter {
  background: #0d9488;
}

.lic-cat-pill.cat-g .lic-pill-letter {
  background: var(--lic-primary);
}

.lic-cat-pill:hover {
  background: var(--lic-primary);
  color: #ffffff !important;
  border-color: var(--lic-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 52, 103, 0.2);
}

.lic-cat-pill:hover .lic-pill-letter {
  background: #ffffff;
  color: var(--lic-primary);
}

.lic-cat-pill.cat-a:hover {
  background: var(--lic-teal);
  border-color: var(--lic-teal);
  box-shadow: 0 4px 12px rgba(0, 176, 173, 0.3);
}

.lic-cat-pill.cat-a:hover .lic-pill-letter {
  color: var(--lic-teal);
}

.lic-cat-pill.cat-c:hover,
.lic-cat-pill.cat-d:hover,
.lic-cat-pill.cat-e:hover {
  background: #b45309;
  border-color: #b45309;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.lic-cat-pill.cat-c:hover .lic-pill-letter,
.lic-cat-pill.cat-d:hover .lic-pill-letter,
.lic-cat-pill.cat-e:hover .lic-pill-letter {
  color: #b45309;
}

.lic-cat-pill.cat-f:hover {
  background: #0d9488;
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.lic-cat-pill.cat-f:hover .lic-pill-letter {
  color: #0d9488;
}

/* Responsive para tablets y móviles */
@media (max-width: 991px) {
  .lic-categories-nav-wrapper {
    top: 10px;
    margin-bottom: 1.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 4px 8px;
  }

  .lic-categories-nav-wrapper::-webkit-scrollbar {
    display: none;
  }

  .lic-categories-nav {
    justify-content: flex-start;
    width: max-content;
    margin: 0;
    padding: 0.4rem 0.65rem;
    border-radius: 35px;
    gap: 6px;
  }

  .lic-cat-pill {
    padding: 0.32rem 0.55rem;
    font-size: 0.8rem;
    gap: 5px;
  }

  .lic-pill-letter {
    width: 19px;
    height: 19px;
    min-width: 19px;
    font-size: 0.7rem;
  }
}

.lic-clase-section {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--lic-shadow);
  margin-bottom: 2.5rem;
  scroll-margin-top: 95px;
  position: relative;
  overflow: hidden;
}

.lic-clase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--lic-primary);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  margin-right: 15px;
}

.lic-clase-badge.teal {
  background: var(--lic-teal);
}

.lic-clase-badge.amber {
  background: #f59e0b;
}

/* Contenedor de Cuadros Oficiales */
.lic-clase-img-box {
  background: #ffffff;
  border: 1px solid var(--lic-border);
  border-radius: var(--lic-radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.lic-clase-img-single {
  max-width: 720px;
  margin: 0 auto;
}

.lic-img-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  transition: all 0.25s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lic-img-card:hover {
  border-color: #00b0ad;
  box-shadow: 0 6px 20px rgba(0, 176, 173, 0.12);
  transform: translateY(-2px);
}

.lic-img-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lic-primary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lic-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lic-zoomable-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.lic-img-wrapper:hover .lic-zoomable-img {
  transform: scale(1.02);
}

.lic-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34, 52, 103, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.lic-img-wrapper:hover .lic-img-overlay {
  opacity: 1;
}

.lic-img-overlay span {
  background: #ffffff;
  color: var(--lic-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   SIMULADOR DE EXAMEN TEÓRICO (INTERACTIVO)
   -------------------------------------------------------------------------- */
.simulator-container {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 43, 73, 0.08);
  padding: 40px;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid rgba(0, 43, 73, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

@media (max-width: 768px) {
  .simulator-container {
    padding: 24px 16px;
    border-radius: 16px;
  }
}

.sim-header-card {
  background: linear-gradient(135deg, var(--lic-primary) 0%, #001f35 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-header-badge {
  background: rgba(0, 176, 173, 0.2);
  border: 1px solid rgba(0, 176, 173, 0.4);
  color: #38efec;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.question-number {
  font-size: 0.95rem;
  color: var(--lic-slate-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.question-text {
  font-size: 1.45rem;
  color: var(--lic-primary);
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .question-text {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 22px;
  margin-bottom: 14px;
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.05rem;
  color: #334155;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.option-btn:hover:not(:disabled) {
  background-color: #ffffff;
  border-color: var(--lic-teal);
  color: var(--lic-primary);
  box-shadow: 0 4px 14px rgba(0, 176, 173, 0.12);
  transform: translateY(-2px);
}

.option-btn.selected {
  background-color: #e6f7f7 !important;
  border-color: var(--lic-teal) !important;
  color: var(--lic-primary) !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 176, 173, 0.15);
}

.option-btn.correct {
  background-color: #d1e7dd !important;
  border-color: #badbcc !important;
  color: #0f5132 !important;
  font-weight: 600;
}

.option-btn.incorrect {
  background-color: #f8d7da !important;
  border-color: #f5c2c7 !important;
  color: #842029 !important;
  font-weight: 600;
}

.progress-bar-container {
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lic-teal) 0%, var(--lic-primary) 100%);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#timer {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.result-screen {
  text-align: center;
  padding: 20px 0;
}

.result-screen h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--lic-primary);
  margin-bottom: 15px;
}

.result-screen .score {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
}

.result-screen .pass { color: #198754; }
.result-screen .fail { color: #dc3545; }

.loading-spinner {
  text-align: center;
  padding: 60px 20px;
}

.category-badge-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 12px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  height: 100%;
  transition: all 0.25s ease;
}

.category-badge-pill:hover {
  border-color: var(--lic-teal);
  color: var(--lic-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 176, 173, 0.1);
}

.category-badge-pill i {
  color: var(--lic-teal);
  font-size: 1.1rem;
}

.sim-tip-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--lic-teal);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

/* ==========================================================================
   MODO CONCENTRACIÓN / PANTALLA EXCLUSIVA DE EXAMEN (DISTRACTION-FREE)
   ========================================================================== */
body.simulador-modo-examen {
  background-color: #f1f5f9 !important;
  overflow-x: hidden;
}

/* Ocultar elementos que distraen durante el examen */
body.simulador-modo-examen #chat-button-mobile,
body.simulador-modo-examen .site-navbar,
body.simulador-modo-examen #navbar-mobile,
body.simulador-modo-examen .lic-hero,
body.simulador-modo-examen .lic-quick-facts-wrapper,
body.simulador-modo-examen .lic-hide-on-exam,
body.simulador-modo-examen footer.sub {
  display: none !important;
}

/* Adaptación del layout a pantalla completa / modo inmersivo */
body.simulador-modo-examen .container-fluid {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.simulador-modo-examen main.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.simulador-modo-examen #simulador-app {
  padding: 30px 20px !important;
  margin: 0 !important;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f1f5f9;
}

body.simulador-modo-examen .simulator-container {
  width: 100%;
  max-width: 920px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 43, 73, 0.12) !important;
  border: 1px solid rgba(0, 43, 73, 0.08) !important;
  margin: auto !important;
  padding: 32px 36px;
}

/* Encabezado compacto del modo examen */
.exam-header-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
}

.exam-badge-municipio {
  font-weight: 800;
  color: var(--lic-primary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* En mobile: interfaz de tablet nativa pantalla completa */
@media (max-width: 768px) {
  body.simulador-modo-examen #simulador-app {
    padding: 0 !important;
    align-items: flex-start;
    background: #ffffff;
  }
  
  body.simulador-modo-examen .simulator-container {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 100vh;
    padding: 18px 16px 35px 16px !important;
  }

  .exam-header-strip {
    padding: 10px 12px;
  }
}








