:root {
  --primary: #3e2744;
  --secondary: #4700cc;
  --accent: #824ce7;
  --light: #f8f9fa;
  --gray: rgb(228, 228, 228);
}



@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap');


body {
  font-family: "Space Grotesk", sans-serif;
}

.mose{
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}

.darkBG {
  background-color: var(--primary);
  color: white;
}

.lightBG {
  background-color: var(--accent);
  color: var(--light);
}

.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
}

.nav-link {
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}

.dropdown-toggle::after {
  vertical-align: middle;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:active{
  background-color: var(--accent);;
  border-color: var(--primary);;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--accent);
  color: white;
}

.hero-section {
  position: relative;
  background-color: #eeecf3;
  overflow: hidden;
  height: 400px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('/public/img/src/bg15.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
}

.wave-1 {
  position: absolute;
  bottom: -10px;
  left: -100px;
  width: 900px;
  height: 200px;
  background-color: var(--primary);
  border-radius: 50% 70% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(-10deg);
}

.wave-2 {
  position: absolute;
  bottom: -70px;
  right: -200px;
  width: 800px;
  height: 250px;
  background-color: var(--accent);
  border-radius: 50% 50% 50% 40% / 60% 40% 60% 40%;
  transform: rotate(15deg);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 3rem;
}

.hero-image {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-heading {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  line-height: 1.2;
}

.category-box {
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  background-color: white;
}

.category-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 38, 119, 0.1);
}

.category-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  color: white;
}

.icon-individual {
  background-color: var(--primary);
}

.icon-medicare {
  background-color: var(--accent);
}

.icon-business {
  background-color: #36b37e;
}

.icon-shortterm {
  background-color: #ff5630;
}

.category-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.category-desc {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.shop-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
}

.shop-heading {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.shop-form {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-check-label {
  margin-left: 0.5rem;
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 2rem 0;
}

.footer-links a {
  color: #d9d9d9;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: white;
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* New Clean Styles for PCT Parquetec */
.hero-section-clean {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-card {
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.hero-visual {
  position: relative;
}

.hero-bg-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.hero-main-img {
  position: relative;
  z-index: 2;
  max-height: 400px;
  object-fit: cover;
}

.floating-stat-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 3;
}

.service-card-clean {
  border-radius: 16px;
  transition: all 0.3s ease;
  background: white;
}

.service-card-clean:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon-clean {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
}

.sector-card-clean {
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.sector-card-clean:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sector-icon-clean {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.8rem;
}

/* Enhanced dropdown */
.dropdown-menu {
  border-radius: 12px;
  padding: 0.5rem 0;
}

.dropdown-item {
  border-radius: 8px;
  margin: 0 0.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(62, 39, 68, 0.1);
}

/* Admin Panel Badge Styles - Matrix Design */
.admin-code-badge {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #475569;
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.admin-code-badge:hover {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.admin-badge-primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid #2563eb;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
  transition: all 0.2s ease;
}

.admin-badge-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.admin-badge-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid #059669;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.admin-badge-success:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.admin-badge-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid #d97706;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
  transition: all 0.2s ease;
}

.admin-badge-warning:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.admin-badge-info {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid #0891b2;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(6, 182, 212, 0.2);
  transition: all 0.2s ease;
}

.admin-badge-info:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  box-shadow: 0 2px 4px rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

/* Admin Table Enhancements */
.admin-table-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.admin-table-th {
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.admin-table-row {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.admin-table-row:hover {
  background-color: #f8fafc;
}

.admin-table-cell {
  padding: 0.875rem 1rem;
  vertical-align: middle;
}

.admin-text-secondary {
  color: #6b7280;
  font-weight: 500;
}

.admin-text-muted {
  color: #9ca3af;
  font-size: 0.875rem;
}

.admin-item-title {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.admin-item-subtitle {
  color: #6b7280;
  font-size: 0.75rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background-color: #f3f4f6;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.admin-action-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-action-btn.text-success:hover {
  background-color: #dcfce7;
  color: #16a34a;
  border-color: #16a34a;
}

.admin-action-btn.text-info:hover {
  background-color: #cffafe;
  color: #0891b2;
  border-color: #0891b2;
}

/* Empty State Styles */
.admin-empty-state {
  padding: 3rem 2rem;
}

.admin-empty-icon {
  opacity: 0.3;
}

.admin-empty-title {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-empty-text {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ============================================
   DASHBOARD ADMINISTRATIVO - LAYOUT BASE
   ============================================ */

.admin-layout-container {
  display: flex;
  min-height: 100vh;
  background-color: #e2e8f0;
}

.admin-sidebar {
  width: 280px;
  background: #2d3748;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px;
  border-radius: 8px;
  font-size: 1.2rem;
}

.admin-brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.admin-brand-subtitle {
  opacity: 0.8;
  font-size: 0.75rem;
}

.admin-nav {
  flex-grow: 1;
  flex-shrink: 1; 
  padding: 1rem 0;
  min-height: 0;
}

.admin-nav-section {
  margin-bottom: 1.5rem;
}



.admin-user-section {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.admin-user-details {
  flex: 1;
}

.admin-user-details h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.admin-user-details small {
  opacity: 0.8;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.admin-user-name {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.admin-user-role {
  opacity: 0.8;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.admin-user-career {
  font-size: 0.75rem;
  opacity: 0.8;
  font-style: italic;
}

.admin-main-content {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #e2e8f0;
}

.admin-content-wrapper {
  flex: 1;
  padding: 0;
}

.dynamic-content-container {
  background: #e2e8f0;
  min-height: 100vh;
}

/* Matrix Navbar */
.matrix-navbar {
  background: #2d3748;
  padding: 1rem 2rem;
  border-bottom: 1px solid #4a5568;
}

.matrix-navbar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.matrix-navbar-icon {
  color: #4299e1;
  font-size: 1.5rem;
}

.matrix-navbar-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* ============================================
   CONTENIDO DEL DASHBOARD - SECCIONES
   ============================================ */

/* Sección de Inicio */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-card.lab-stat {
  border-left-color: #3b82f6;
}

.stat-card.paper-stat {
  border-left-color: #10b981;
}

.stat-card.patent-stat {
  border-left-color: #f59e0b;
}

.stat-card.career-stat {
  border-left-color: #8b5cf6;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.stat-icon.lab-icon {
  background: #3b82f6;
}

.stat-icon.paper-icon {
  background: #10b981;
}

.stat-icon.patent-icon {
  background: #f59e0b;
}

.stat-icon.career-icon {
  background: #8b5cf6;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.stat-label {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

.stat-sublabel {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Gestión de Laboratorios */
.lab-management-container {
  padding: 0;
  background: #e2e8f0;
  min-height: calc(100vh - 80px);
}

.eventos-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: fit-content;
  margin: 1rem;
}

.section-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.section-title {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
  font-size: 1.25rem;
}

.search-box {
  padding: 0 1.5rem;
}

.search-box input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.eventos-list {
  max-height: 60vh;
  overflow-y: auto;
}

.evento-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.evento-item:hover {
  background: #f9fafb;
}

.evento-item.active {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.evento-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.evento-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.evento-item.active .evento-icon {
  background: #3b82f6;
  color: white;
}

.evento-content {
  flex: 1;
}

.evento-title {
  margin: 0 0 0.25rem 0;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 600;
}

.evento-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.evento-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.status-badge {
  background: #d1fae5;
  color: #065f46;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.participants-count {
  color: #9ca3af;
  font-size: 0.7rem;
}

.empty-state {
  padding: 3rem 2rem;
}

.empty-state i {
  opacity: 0.3;
}

/* ============================================
   ESTILOS SIDEBAR ESPECÍFICOS
   ============================================ */

/* FORZAR: Solo el sidebar principal debe tener scroll */
.admin-sidebar .admin-sidebar-nav,
.admin-sidebar .admin-sidebar-actions,
.admin-sidebar .admin-nav,
.admin-sidebar nav,
.admin-sidebar .admin-nav-section,
nav.admin-sidebar-nav,
div.admin-sidebar-actions {
  height: auto;
}

/* ASEGURAR: Scroll solo en el contenedor principal */
.admin-sidebar {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.admin-sidebar * {
  overflow: visible;
}

.admin-sidebar:not(.admin-sidebar) * {
  overflow: visible;
}

.admin-sidebar-nav {
  flex-grow: 1;
  flex-shrink: 1;
  padding: 1rem 0;
  min-height: 0;
}

.admin-nav-icon {
  width: 20px;
  margin-right: 12px;
  font-size: 1rem;
}

.admin-nav-text {
  flex: 1;
}



.admin-sidebar-actions {
  margin-top: auto;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.admin-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  background: #e53e3e;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  font-weight: 500;
}

.admin-logout-btn:hover {
  background: #c53030;
  color: white;
}

.admin-badge-sidebar {
  background: #4299e1;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .admin-sidebar.active {
    transform: translateX(0);
  }
  
  .admin-main-content {
    margin-left: 0;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .lab-management-container {
    padding: 1rem;
  }
}