:root {
  --header-height: clamp(40px, 8vh, 60px);
  --header-padding: clamp(10px, 3vw, 15px);
  --welcome-header-padding: clamp(4.9px,3vw,5px);
  --container-padding: clamp(16px, 3vw, 32px);
  --grid-gap: clamp(16px, 3vw, 24px);
  --card-min-width: 300px;

  --primary-color: #0066ff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --border-color: #e9ecef;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}


body::before {
  content: '';
  position: fixed;
  top: -100%;
  left: -100%;
  right: -100%;
  bottom: -100%;
  background-image:
      /* Primera columna */
      url('../Images/Nuevo_logo_merlin_blanco_negro.svg'),
      /* Segunda columna */
      url('../Images/Nuevo_logo_merlin_blanco_negro.svg');
  background-color: rgba(240, 240, 240, 0.9);
  background-repeat: space space;
  background-position:
      0 0,                /* Primera columna */
      400px 50px;       /* Segunda columna (desplazada) */
  background-size:
      calc(60px + 240px),  /* Tamaño del logo + padding virtual */
      calc(60px + 240px);  /* Tamaño del logo + padding virtual */
  transform: rotate(45deg);
  opacity: 0.09;
  z-index: -1;
  pointer-events: none;
}

.analytics-section {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: clamp(32px, 4vh, 32px) 0;
  padding: var(--container-padding);
}

.section-header, .section-header-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-header, .section-header-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--grid-gap);
  padding: var(--container-padding);
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}


.section-actions {
  display: flex;
  gap: clamp(8px, 2vw, 16px);
  align-items: center;
  flex-wrap: wrap;
}

.chart-filter {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.chart-type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.chart-type-btn i {
  margin-right: 8px;
  font-size: 16px;
}

.chart-type-btn.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.chart-type-btn:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  transform: translateY(-1px);
}

.chart-type-btn.active:hover {
  background: #2980b9;
  border-color: #2980b9;
}

.chart-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 400px;
  max-width: 100%;
  padding: 0 10px;
}

.legend-wrapper {
  background: var(--bg-primary);
  border-radius: 12px;
  border: 2px dashed var(--border-color);
  min-height: 300px;
  display: flex;
  justify-content: center;
  padding: 24px;
  transition: all 0.3s ease;
}

.chart-wrapper {
  background: var(--bg-primary);
  border-radius: 12px;
  border: 2px dashed var(--border-color);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: all 0.3s ease;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

.carousel-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-pagination {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-secondary);
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  width: 100%;
  max-width: 300px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.empty-state-icon i {
  font-size: 32px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.empty-state-content h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.empty-state-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 250px;
}

/* Efecto hover */
.chart-wrapper:hover, .legend-wrapper:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.chart-wrapper:hover .empty-state-icon,
.legend-wrapper:hover .empty-state-icon {
  background: var(--primary-color);
}

.chart-wrapper:hover .empty-state-icon i,
.legend-wrapper:hover .empty-state-icon i {
  color: white;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Estilos para el estado de carga */
.chart-loading-state {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border: 0.25em solid var(--primary-color);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

/* Animación del spinner */
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Ajustes para los contenedores */
.chart-wrapper, .legend-wrapper {
  position: relative;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  min-height: 300px;
  overflow: hidden;
}

#chartLegend {
  width: 100%;
}

.canvas-container {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.canvas-container.loaded, #chartLegend.loaded {
  opacity: 1;
}

.legend-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 6px;
  background: var(--bg-primary);
  transition: background-color 0.2s ease;
}

.legend-item:hover {
  transform: translateX(5px);
  background: rgba(247, 248, 250, 0.8);
  border-color: rgba(52, 152, 219, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legend-label {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-bar-container {
  position: relative;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  min-width: 100px;
}

.legend-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}



/*Estilos de la gráfica de crecimiento de usuarios*/
.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 24px;
  color: #3498db;
  background: #ebf5fb;
  padding: 15px;
  border-radius: 50%;
}

.stat-info h3 {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0 0 5px 0;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.legend-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}


.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  transition: all 0.2s ease;
}
.action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.action-link:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);}

.action-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color-light);
}


body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn.primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.btn.secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.welcome-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: var(--welcome-header-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.merlin-logo {
  height: 32px;
  width: auto;
  margin-top: 8px;
  margin-left: 10px;
}

.welcome-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}


.sign-out-btn, .project-btn {
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

.sign-out-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
  gap: var(--grid-gap);
  padding: var(--container-padding);
}

.candidate-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.candidate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  border-color: #cbd5e0;
}

.card-content {
  padding: var(--container-padding);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3px;
  margin-bottom: 16px;
}

.candidate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.card-title {
  flex: 1;
  min-width: 0;
}

.candidate-username {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-project-title {
  align-items: center;
  max-width: calc(100% - 40px);
}

.card-project-title h3 {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}


.card-project-body {
  width: 100%;
  overflow: hidden;
}

.card-project-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  word-break: break-word;
  margin: 0 !important;
  padding: 5px 0 !important;
  color: #4b5563 !important;
  font-size: 14px !important;
}

.card-description {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 3em;
  overflow: hidden;
  position: relative;
}

.candidate-info {
  min-width: 0;
}

.candidate-info h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.card-date {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Contenedor principal */
.container {
  padding-top: calc(var(--welcome-header-padding) + var(--container-padding));
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.delete-all-btn {
  background-color: #dc3545;
  border: 1px solid #dc3545;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.delete-all-btn:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
  color: white;
}

.delete-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.project-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-project-btn {
  background: none;
  border: none;
  padding: 8px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.search-project-btn {
  /* Reseteo y estructura básica */
  background: none;
  border: none;
  padding: 8px 8px;
  cursor: pointer;
  gap: 8px;

  /* Dimensiones y alineación */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;

  /* Estilo visual */
  color: var(--text-secondary);
  border-radius: 6px;

  /* Transiciones */
  transition: all 0.2s ease-in-out;

  /* Posicionamiento para el tooltip */
  position: relative;
}

.project-card:hover .delete-project-btn , .project-card:hover .search-project-btn {
  opacity: 1;
}

.delete-project-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.search-project-btn:hover {
  background-color: rgba(3, 102, 214, 0.1);
  color: #0366d6;
}

.delete-project-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.search-project-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(3, 102, 214, 0.25);
}

.delete-project-btn:active , .search-project-btn:active {
  transform: scale(0.95);
}

/* Icono dentro del botón */
.delete-project-btn i , .search-project-btn i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.delete-project-btn:hover i , .search-project-btn:hover i {
  transform: scale(1.1);
}

.delete-project-btn::before , .search-project-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.delete-project-btn:hover::before , .search-project-btn:hover::before {
  opacity: 1;
  visibility: visible;
  top: -35px;
}

.description-input {
  resize: vertical;
  min-height: 100px;
  resize: none;
}

@media (hover: none) {
  .delete-project-btn , .search-project-btn {
      opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delete-project-btn,
  .delete-project-btn::before,
  .delete-project-btn i , .search-project-btn i {
      transition: none;
  }
}

@media (forced-colors: active) {
  .delete-project-btn , .search-project-btn {
      border: 1px solid currentColor;
  }

  .delete-project-btn:hover , .search-project-btn:hover {
      background-color: ButtonFace;
      color: ButtonText;
  }
}

.delete-warning {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.delete-description {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.delete-consequences {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 2.5rem;
  margin: 1rem 0;
}

.delete-consequences li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.delete-consequences li:last-child {
  margin-bottom: 0;
}

.delete-permanent-warning {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 1rem;
}


.edit-btn,.btn-search-project {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.edit-btn:hover , .btn-search-project:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.empty-team-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.empty-team-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-team-icon {
  margin-bottom: 1.5rem;
}

.empty-team-icon i {
  font-size: 64px;
}

.empty-team-text h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.empty-team-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}


.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.error-state {
  text-align: center;
  padding: var(--spacing-xl);
  max-width: 400px;
}

.error-state i {
  font-size: 48px;
  color: var(--danger-color);
  margin-bottom: var(--spacing-md);
}

.error-state h3 {
  color: var(--danger-color);
  margin-bottom: var(--spacing-sm);
}

.error-state p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}


/* Secciones */
.help-section, .projects-section {
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: clamp(32px, 4vh, 32px);
  margin-bottom: var(--grid-gap);
}


.help-content {
  padding: var(--container-padding);
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--grid-gap);
}

.help-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
}

.help-card h3 {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.help-card ul {
  margin: 0;
  padding-left: clamp(16px, 5%, 24px);
  color: var(--text-secondary);
}

.help-card li {
  font-size: clamp(13px, 1.4vw, 14px);
  margin: 8px 0;
  line-height: 1.5;
}

.filter-btn, .new-project-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.filter-group textarea {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  resize: none;
}

.filter-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
  resize: none;
}

.filter-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 24px;
  width: 100%;
  max-width: 95%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  max-width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}


.new-project-btn {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.new-project-btn:hover {
  background-color: #1b62cd;
  border: none;
  color: white;
}

.no-candidates {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  text-align: center;
  min-height: 300px;
}

.no-projects {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
  text-align: center;
}

.no-projects {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.no-candidates-icon, .no-projects-icon {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.no-candidates h3, .no-projects h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 0 0 8px;
}

.no-candidates p, .no-projects p {
  color: var(--text-secondary);
  margin: 0 0 24px;
}


.no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.no-results i {
  font-size: 24px;
  color: var(--text-secondary);
  padding: 10px;
  margin-bottom: 15px;
}

.no-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}

.no-results-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--surface-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.no-results-icon i {
  font-size: 24px;
  color: var(--primary-color);
}

.no-results h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.no-results p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  font-size: 1rem;
}

.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.notification {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  border-left-color: var(--success-color, #10B981);
}

.notification-error {
  border-left-color: var(--danger-color, #EF4444);
}

.notification-warning {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.notification-warning .notification-icon {
  color: #f59e0b;
}

.notification-warning .notification-close {
  color: #92400e;
}

.notification-icon {
  font-size: 20px;
  margin-right: 12px;
  margin-top: 2px;
}

.notification-success .notification-icon {
  color: var(--success-color, #10B981);
}

.notification-error .notification-icon {
  color: var(--danger-color, #EF4444);
}

.notification-content {
  flex: 1;
  margin-right: 12px;
}

.notification-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.notification-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-tertiary);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}

.filter-btn:hover {
  background-color: var(--bg-secondary);
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.filter-group input,
.filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--bg-primary);
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.filter-btn.apply {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.filter-btn.clear {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px !important;
  margin-top: 0.5rem;
}

.modal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn.cancel {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-btn.delete {
  background-color: #dc3545;
  color: white;
}

.modal-btn.cancel:hover {
  background-color: #e9ecef;
}

.modal-btn.delete:hover {
  background-color: #c82333;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text-primary);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 10px !important;
}

.modal-section {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

.modal-section:last-child {
  border-bottom: none;
}


.project-description {
  padding: 16px;
  background-color: var(--bg-secondary);
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  font-size: 14px;
  color: #4b5563;
  max-width: 100%;
}

.project-input.error {
  border-color: #dc3545;
}

.project-input.error:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.team-member-row {
  padding: 12px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  margin-bottom: 8px;
  background: white;
}

.team-member-row {
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fff;
  cursor: pointer;
}

.member-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.member-info {
  flex: 1;
}

.member-header {
  margin-bottom: 4px;
}

.member-name {
  font-weight: 600;
  color: #24292e;
  margin-right: 8px;
}

.member-username {
  color: #586069;
  font-size: 0.9em;
}

.member-description {
  color: #444d56;
  margin: 4px 0;
}

.member-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #f6f8fa;
  border-radius: 12px;
  font-size: 0.85em;
  border: 1px solid #e1e4e8;
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.language-label {
  color: #666;
  margin-right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.language-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background-color: #f1f1f1;
  border-radius: 12px;
  font-size: 0.85em;
  color: #24292e;
  transition: all 0.2s ease;
}

.language-tag:hover {
  background-color: #e1e4e8;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Grid de proyectos */
.projects-container {
  padding: 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Tarjetas de proyecto */
.project-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  max-width: calc(100% - 100px);
}

.project-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.no-projects-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.no-projects h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.no-projects p {
  margin: 0 0 24px 0;
}

.create-project-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-md);
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.projects-section, .candidates-section {
  margin-bottom: 32px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.project-title-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-update-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 0.9em;
}

.project-update-time i {
  font-size: 1.1em;
}


.required-fields-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding: 0 2px;
  line-height: 1;
}

.required-fields-note .asterisk {
  color: #dc3545;
  margin-right: 2px;
}

.remove-member-btn {
  color: #dc3545;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.remove-member-btn:hover {
  background: #dc35451a;
}

.remove-member-btn i {
  font-size: 16px;
}

/* .open-popup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.open-popup i {
  font-size: 0.9rem;
} */

.search-candidates-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.search-candidates-btn:hover {
  background-color: var(--primary-hover);
}

.search-candidates-btn i {
  font-size: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-count, .candidates-count {
  font-size: 14px;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.team-filter {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  width: 300px;
  max-width: 90%;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.search-btn, .create-project-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  padding: 8px 10px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}


.search-btn i, .create-project-btn i {
  font-size: 14px;
}


.team-member-search {
  width: 80%;
  padding: 8px 12px 8px 35px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.team-member-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.team-members-grid {
  padding: 12px 16px;
  margin-top: 0;
}

.team-member-card {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.teamMembers-header, .proyectDescription-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.teamMembers-header i, .proyectDescription-header i {
  color: black;
  font-size: 20px;
}

.teamMembers-header h3, .proyectDescription-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}



@media (max-width: 1200px) {
  :root {
      --card-min-width: 250px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  .project-footer {
    flex-wrap: wrap;
    gap: 12px;
  }

  .project-team {
    width: 100%;
    margin-bottom: 8px;
  }

  .delete-project-btn {
    min-width: max-content;
  }

  .project-btn {
    flex: 1;
    min-width: max-content;
  }

  .welcome-header {
    position: relative;
    flex-direction: column;
    padding: 12px var(--container-padding);
    gap: 12px;
  }

  .container {
    padding-top: calc(120px + var(--container-padding));
  }

  .section-header, .section-header-help {
    flex-direction: column;
    align-items: stretch;
  }

  .section-actions {
    justify-content: stretch;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .help-content {
    grid-template-columns: 1fr; /* Una columna en móvil */
    padding: 16px;
  }

  .help-card {
    padding: 16px;
  }

  .help-card h3 {
    font-size: 14px;
  }

  .help-card li {
    font-size: 13px;
  }

  .header-left,
  .header-actions {
    width: 100%;

  }

  .welcome-header h1 {
    font-size: 18px;
    margin-right: 50px;
  }

  .user-avatar {
    position: fixed;
    top: 1%;
    right: 3%;
  }

  .user-menu.active {
    position: fixed !important;
    top: 8% !important;
    right: 1% !important;
  }

  .search-btn {
    margin-left: 20px;
  }
}

@media (max-width: 480px) {
  :root {
      --container-padding: 16px;
      --grid-gap: 16px;
      --card-min-width: 100%;
  }

  .container {
    padding-top: calc(140px + var(--container-padding));
}

  .projects-grid {
      grid-template-columns: 1fr;
  }

  .project-card {
      padding: 16px;
  }
  .help-content {
    gap: 12px;
    padding: 12px;
}

.help-card {
    padding: 12px;
}

.help-card ul {
    padding-left: 16px;
}
.modal-header {
  padding: 16px;
}

.modal-body {
  padding: 16px;
}



}
.action-link:hover,
.search-btn:hover,
.sign-out-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* Animaciones suaves */
.action-link,
.search-btn,
.sign-out-btn,
.project-card {
    transition: all 0.2s ease;
}

.avatar-container {
  position: relative;
}

.avatar-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 8px;
  z-index: 1000;
}

.user-menu.active {
  display: block;
}

.user-menu-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
}

.user-type {
  font-size: 0.85em;
  color: #666;
}

.menu-divider {
  height: 1px;
  background: #eee;
  margin: 8px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background-color: #f5f5f5;
}

.menu-item i {
  width: 20px;
}

.text-danger {
  color: #dc3545;
}

.text-danger:hover {
  background-color: #fff5f5;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 16px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-top: 5px;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.help-section {
  margin-top: 60px;
}

.section-header-help {
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-actions {
      width: 100%;
      justify-content: center;
  }

  .header-buttons {
      margin-right: 0;
      margin-bottom: 8px;
  }
}

.premium-modal {
  background: linear-gradient(135deg, #ffc800, #ff9500);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
}

.premium-modal-content {
  text-align: center;
}

.premium-modal-header h2 {
  color: #000000;
  font-weight: bold;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.premium-features-list {
  list-style-type: none;
  padding: 0;
  font-size: 1.25rem;
}

.premium-features-list i {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.premium-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.premium-features-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-modal-buttons button i {
  margin-right: 8px;
}

.premium-price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3498db;
  margin: 1.5rem 0;
}

.premium-pricing {
  font-size: 1rem;
}

.premium-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.premium-guarantee i {
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

.premium-guarantee p {
  margin: 0;
}


.projects-wrapper, .candidates-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 0 25px;
  justify-content: start;
}

@media (max-width: 1400px) {
  .projects-wrapper {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
  .candidates-wrapper {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

.projects-carousel, .candidates-carousel {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 0 20px;
   margin: 0 0 20px 0;
}

#cancelPremium {
  background-color: white;
  color: #333;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#cancelPremium:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#confirmPremium {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  border: 2px solid #FFD700;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border-width: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

#confirmPremium:hover {
  background: linear-gradient(135deg, #FFE55C, #FFB52E); /* Dorado aún más brillante en hover */
  border-color: #FFE55C;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {

  .feedback-section {
    margin-bottom: 50px;
  }

  .recent-activity {
    margin-bottom: 50px;
  }

  .filter-btn,.new-project-btn,.delete-all-btn {
    justify-content: center;
  }

  .candidates-wrapper, .projects-wrapper {
    grid-template-columns: 1fr;
  }

  .container {
    padding-top: 0;
    margin-top: 0;
}

.welcome-header {
  position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--bg-primary);
    margin-bottom: 0;
}

.help-section {
  position: relative;
    margin-top: 10px;
    padding-top: 0;
    z-index: 1;
    width: 100%;
    background: var(--bg-primary);
}

.section-header-help {
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.help-content {
    margin-top: 0;
    padding: 15px;
}

.projects-section,
.candidates-section {
    margin-top: 20px;
}

  .analytics-section {
    padding: 10px;
}

  .chart-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
    margin: 0;
  }

  .legend-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    transition: background-color 0.2s ease;
  }

  .legend-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
  }

  .legend-bar-container {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
}

  .legend-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
  }


.legend-value {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

    canvas {
        max-width: 100% !important;
        height: auto !important;
    }


    .chart-wrapper {
      height: 400px;
      padding: 10px 0;
    }

    .legend-wrapper {
      background: var(--bg-primary);
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      overflow: hidden;
      margin: 0;
      padding: 0;
      width: 100%;
    }

    /* Hacer las estadísticas más compactas */
    .legend-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
    }

    /* Ajustar los controles de la gráfica */
    .section-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .chart-type-btn,
    .chart-filter {
        width: 100%;
    }


  .card-project-description {
    -webkit-line-clamp: 2;
    height: 3em;
}


  .premium-modal {
      padding: 2rem;
      max-width: 90%;
  }

  .premium-modal-header h2 {
      font-size: 2rem;
  }

  .premium-features-list {
      font-size: 1.1rem;
  }

  .premium-price {
      font-size: 2rem;
  }

  #cancelPremium,
  #confirmPremium {
      padding: 12px 24px;
      font-size: 1.1rem;
  }

  .candidates-section {
    margin: 0;
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
}

input[type="text"], textarea {
 margin-bottom: 0 !important;
 resize: none;
}

.search-wrapper {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
}

.team-member-search {
  width: 100%;
  height: 20px;
  padding: 8px 12px 8px 35px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
}

.search-icon {
  position: absolute;
  left: 12px;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}

.team-member-search::placeholder {
  color: #6c757d;
  font-size: 14px;
}

.team-member-search:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

}

.notification-new {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #4a90e2;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification-new.show {
  transform: translateY(0);
  opacity: 1;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 1rem;
  width: 100%;
  height: 200px;
}

.loading-state p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

.spinner-border {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
  color: #000000;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 500px) {
  .card-project-title h3 {
    width: 80px;
  }
}

@media screen and (max-width: 768px) {
  .section-header-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .section-header-help h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }

  .section-header-help .toggle-icon {
    margin-top: 4px;
  }
}

.projects-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s ease;
}

.projects-title-link:hover {
  opacity: 0.8;
}

.projects-title-link h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.view-all-btn:hover {
  background-color: #1b62cd;
  border: none;
  color: white;
}

.view-all-btn i {
  font-size: 12px;
}

@media (max-width: 768px) {
  .section-actions {
      flex-wrap: wrap;
      gap: 8px;
  }

  .view-all-btn {
      width: 100%;
      justify-content: center;
  }
}

.link-button {
  background: none;
  color: blue;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

#valorateModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.valorateModal-content {
  background-color: var(--bg-primary);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease;
}

.valorateModal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.valorateModal-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text-primary);
}

.valorateModal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.valorateModal-close:hover {
  color: var(--text-primary);
}

.valorateModal-body {
  padding: 10px 0;
}

.star-rating {
  display: flex;
  justify-content: space-around;
  margin: 10px 0;
}

.star {
  cursor: pointer;
  font-size: 2rem;
  color: #ccc;
}

.star.highlighted {
  color: #FFD700;
}

textarea#feedbackText {
  width: 90%;
  height: 80px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  resize: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  resize: none;
}

textarea#feedbackText:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
  resize: none;
}

.valorateModal-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.valorateModal-btn:hover {
  background-color: #1b62cd;
}

.admin-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-notification-badge {
  position: absolute;
  right: -25px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  min-width: 10px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  max-width: 10px;
}

.issue-popup.large {
  width: 500px; /* tamaño más grande */
}

.issue-popup.large .issue-content textarea {
  min-height: 200px;
  resize: none;
}

.issue-popup.large .issue-header h3 {
  font-size: 1.5em; /* título más grande */
}

textarea {
    resize: none;
}