body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

.subheader {
    background: linear-gradient(135deg, #4a6bdf 0%, #3a5bce 100%);
    padding: 40px 15px; /* Padding lateral ajustado para móvil */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    max-width: 1160px; /* Máximo ancho en desktop */
    width: 100%; /* Ancho total en móvil */
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 0 0 15px 15px;
    position: relative;
    overflow: hidden;
}

.subheader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

.subheader h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 0px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.header-description {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 30px;
  max-width: 700px;
  line-height: 1.7;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

#search-input {
  padding: 15px 25px 15px 50px;
  border: none;
  border-radius: 50px;
  width: 350px;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 20px;
}

#search-input:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  width: 380px;
  background-color: white;
}

#add-project-section {
  padding: 25px;
  background-color: #fff;
  margin: 25px auto;
  max-width: 600px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
  border-radius: 12px;
}

#add-project-section input[type="text"],
#add-project-section textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s ease;
}

#add-project-section input[type="text"]:focus,
#add-project-section textarea:focus {
  outline: none;
  border-color: #4a6bdf;
  box-shadow: 0 0 0 2px rgba(74, 107, 223, 0.2);
}

#add-project-section button {
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  background-color: #4a6bdf;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

#add-project-section button:hover {
  background-color: #3a5bce;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#add-project-section button:disabled {
  background-color: #9ca8db;
  cursor: not-allowed;
  transform: none;
}

#projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #eef1f8;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 10px 20px rgba(0,0,0,0.12);
}

/* Estilos para la etiqueta de categoría */
.category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(106, 61, 232, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-transform: capitalize;
}

/* Variantes de color para diferentes categorías */
.category-badge.chatbot {
  background-color: rgba(79, 70, 229, 0.9); /* Violeta */
}

.category-badge.imagen {
  background-color: rgba(6, 182, 212, 0.9); /* Cyan */
}

.category-badge.audio {
  background-color: rgba(245, 158, 11, 0.9); /* Ámbar */
}

.category-badge.video {
  background-color: rgba(220, 38, 38, 0.9); /* Rojo */
}

.category-badge.productividad {
  background-color: rgba(5, 150, 105, 0.9); /* Esmeralda */
}

.category-badge.programacion {
  background-color: rgba(79, 70, 229, 0.9); /* Violeta */
}

.category-badge.escritura {
  background-color: rgba(59, 130, 246, 0.9); /* Azul */
}

/* Asegurarse que la miniatura tenga posición relativa para que la etiqueta se posicione correctamente */
.project-thumbnail {
  width: 100%;
  height: 180px;
  background-color: #f0f2f5;
  overflow: hidden;
  position: relative; /* Importante para posicionar el badge */
}

.project-thumbnail img,
.project-thumbnail svg {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Cambiado de 'cover' a 'contain' */
  display: block;
  transition: transform 0.5s ease;
  background-color: #f8f9fa; /* Fondo para cuando la imagen no llene todo el espacio */
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  flex-grow: 1;
}

.project-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
}

.project-description {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: none; /* Quitar cualquier altura máxima que pudiera haber */
}

.project-footer {
  padding: 12px 20px;
  border-top: 1px solid #eef1f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-url {
  padding: 8px 12px;
  background-color: #f0f2f5;
  color: #6a3de8;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-url:hover {
  background-color: #e4e0f5;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(106, 61, 232, 0.15);
}

.like-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #e74c3c;
  font-size: 16px;
  gap: 5px;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 50px;
}

.like-btn.liked {
  transform: scale(1.2);
}

.like-btn .heart-icon {
  width: 22px;
  height: 22px;
  fill: #e0e0e0;
  transition: all 0.3s ease;
}

.like-btn:hover .heart-icon,
.liked .heart-icon {
  fill: #e74c3c;
}

.like-btn:hover {
  background-color: rgba(231, 76, 60, 0.1);
}

/* Modal styles */
.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-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(20px);
  animation: modal-appear 0.3s forwards;
}

@keyframes modal-appear {
  to { transform: translateY(0); }
}

.modal-content h2 {
  margin-top: 0;
  color: #2d3748;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.modal-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #4a6bdf, #3a5bce);
  border-radius: 3px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #a0aec0;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #2d3748;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a6bdf;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-description {
  font-size: 13px;
  color: #718096;
  margin-top: 6px;
}

.thumbnail-preview {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  border: 2px dashed #cbd5e0;
  transition: all 0.3s ease;
}

.thumbnail-preview.loading {
  border-color: #4a6bdf;
  background-color: rgba(74, 107, 223, 0.05);
}

.thumbnail-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.btn-add-project {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6a3de8 0%, #5429d6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-add-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(106, 61, 232, 0.4);
}

.btn-add-project:active {
  transform: translateY(0);
}

.btn-add-project:disabled {
  background: linear-gradient(135deg, #9ca8db 0%, #8794cf 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px;
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
  color: #718096;
}

.empty-state svg {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 22px;
  color: #2d3748;
  margin-bottom: 10px;
}

/* Add pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0 50px 0;
  gap: 8px;
  align-items: center;
}

.pagination button {
  padding: 8px 16px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
}

.pagination button.active {
  background-color: #6a3de8;
  color: white;
  border-color: #6a3de8;
  font-weight: 600;
}

.pagination button:hover:not(.active):not(.disabled) {
  background-color: #f0f2f5;
}

.pagination button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .ellipsis {
  margin: 0 4px;
  color: #718096;
}

.pagination .prev-btn,
.pagination .next-btn {
  font-weight: bold;
}

#pagination-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Floating button for opening modal */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #6a3de8;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(106, 61, 232, 0.4);
  transition: all 0.3s ease;
  z-index: 1100;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background-color: #5429d6;
  box-shadow: 0 8px 20px rgba(106, 61, 232, 0.5);
}

.ia-detail-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: flex-start;
  z-index: 1000;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 30px 0;
}

.ia-detail-content {
  background-color: #fff;
  border-radius: 16px;
  max-width: 1100px;
  width: 95%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin: 20px auto;
  overflow: hidden;
}

.ia-detail-header {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

/* Para el modal de detalle también */
.ia-detail-thumbnail {
  position: relative;
}

.ia-detail-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(106, 61, 232, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-transform: capitalize;
}

@media (min-width: 768px) {
  .ia-detail-header {
    flex-direction: row;
    gap: 30px;
  }
}

.ia-detail-thumbnail {
  flex: 0 0 250px;
  height: 250px;
  background-color: #f0f2f5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .ia-detail-thumbnail {
    margin-bottom: 0;
  }
}

.ia-detail-thumbnail img,
.ia-detail-thumbnail svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ia-detail-info {
  flex: 1;
}

.ia-detail-title {
  font-size: 28px;
  margin: 0 0 15px 0;
  color: #2d3748;
}

.ia-detail-description {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #6a3de8 0%, #5429d6 100%);
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ia-visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(106, 61, 232, 0.4);
}

.ia-detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.ia-detail-close:hover {
  background-color: rgba(0,0,0,0.2);
  color: #2d3748;
}

/* Videos section */
.videos-section {
  padding: 30px;
  border-top: 1px solid #eef1f8;
}

.videos-header {
  margin-bottom: 30px;
}

.videos-title {
  font-size: 24px;
  margin: 0 0 15px 0;
  color: #2d3748;
}

.videos-description {
  font-size: 14px;
  line-height: 1.6;
  color: #718096;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #6a3de8;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.video-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid #eef1f8;
  transition: all 0.3s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background-color: #f0f2f5;
  overflow: hidden;
  display: block;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(106, 61, 232, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-card:hover .video-play-icon {
  background-color: rgba(106, 61, 232, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.video-actions {
  display: flex;
  padding: 15px;
  justify-content: space-around;
  align-items: center;
}

.video-like-btn,
.video-dislike-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.video-like-btn:hover {
  background-color: rgba(52, 211, 153, 0.1);
}

.video-dislike-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.video-like-btn svg,
.video-dislike-btn svg {
  width: 18px;
  height: 18px;
  fill: #a0aec0;
  transition: fill 0.3s ease;
}

.like-count,
.dislike-count {
  font-size: 14px;
  font-weight: 600;
  color: #718096;
}

.video-like-btn.active svg {
  fill: #34D399;
}

.video-like-btn.active .like-count {
  color: #34D399;
}

.video-dislike-btn.active svg {
  fill: #EF4444;
}

.video-dislike-btn.active .dislike-count {
  color: #EF4444;
}

.video-info {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  flex: 1;
}

.video-actions {
  display: flex;
  gap: 10px;
}

.video-like-btn,
.video-dislike-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.video-like-btn:hover {
  background-color: rgba(52, 211, 153, 0.1);
}

.video-dislike-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.video-like-btn svg,
.video-dislike-btn svg {
  width: 18px;
  height: 18px;
  fill: #a0aec0;
  transition: fill 0.3s ease;
}

.video-like-btn.active svg {
  fill: #34D399;
}

.video-dislike-btn.active svg {
  fill: #EF4444;
}

.add-video-form {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-top: 30px;
}

.add-video-form h3 {
  margin-top: 0;
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 15px;
}

.add-video-form .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-direction: column;
}

@media (min-width: 768px) {
  .add-video-form .form-row {
    flex-direction: row;
  }
}

.add-video-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

.add-video-form button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #6a3de8 0%, #5429d6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-video-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(106, 61, 232, 0.3);
}

/* Estilos para el badge de "Pendiente de aprobación" */
.pending-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 152, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Deshabilitar botones de voto para videos pendientes */
.video-like-btn:disabled,
.video-dislike-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Estilo para indicar que un video está pendiente */
.video-thumbnail {
  position: relative;
}

.video-thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  display: none;
}

.pending-video .video-thumbnail::after {
  display: block;
}

/* Mensaje informativo sobre videos pendientes */
.pending-info {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #555;
}

/* Tooltips para botones deshabilitados */
.disabled-tooltip {
  position: relative;
}

.disabled-tooltip:hover::before {
  content: "Este video está pendiente de aprobación";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 100;
  margin-bottom: 5px;
}

.disabled-tooltip:hover::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  margin-bottom: -5px;
}

/* Estilos para secciones de videos */
.videos-section-container {
  margin-bottom: 24px;
}

.videos-section-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.pending-title {
  color: #f57c00;
}

.pending-videos-container {
  background-color: #fffdf7;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ffe0b2;
  margin-top: 24px;
}

/* Estilos para el badge de "Pendiente de aprobación" */
.pending-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 152, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Deshabilitar botones de voto para videos pendientes */
.video-like-btn:disabled,
.video-dislike-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Estilo para indicar que un video está pendiente */
.video-thumbnail {
  position: relative;
}

.video-thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  display: none;
}

.pending-video .video-thumbnail::after {
  display: block;
}

/* Mensaje informativo sobre videos pendientes */
.pending-info {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #555;
}

/* Tooltips para botones deshabilitados */
.disabled-tooltip {
  position: relative;
}

.disabled-tooltip:hover::before {
  content: "Este video está pendiente de aprobación";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 100;
  margin-bottom: 5px;
}

.disabled-tooltip:hover::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  margin-bottom: -5px;
}

/* Estilos para notificaciones */
.success-notice,
.error-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.success-notice {
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.error-notice {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  color: #c62828;
}

.success-notice svg,
.error-notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilos para el botón de agregar mientras está deshabilitado */
#add-video-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

#add-video-btn .loading-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Estilos para secciones de videos */
.videos-section-container {
  margin-bottom: 24px;
}

.videos-section-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.pending-title {
  color: #f57c00;
}

/* Sistema de notificaciones en página */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  width: 100%;
}

.notification {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  transform: translateX(120%);
  animation: slide-in 0.3s forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-left: 4px solid #4a6bdf;
}

.notification.removing {
  transform: translateX(120%);
  opacity: 0;
}

.notification-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

.notification-icon svg {
  width: 20px;
  height: 20px;
}

.notification-content {
  flex: 1;
}

.notification-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a5568;
}

.notification-close {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s ease;
}

.notification-close:hover {
  color: #4a5568;
}

/* Tipos de notificaciones */
.notification.success {
  border-left-color: #48bb78;
}

.notification.success .notification-icon svg {
  color: #48bb78;
}

.notification.error {
  border-left-color: #e53e3e;
}

.notification.error .notification-icon svg {
  color: #e53e3e;
}

.notification.warning {
  border-left-color: #ed8936;
}

.notification.warning .notification-icon svg {
  color: #ed8936;
}

.notification.info {
  border-left-color: #4299e1;
}

.notification.info .notification-icon svg {
  color: #4299e1;
}

@keyframes slide-in {
  to {
    transform: translateX(0);
  }
}

/* Estilos mejorados para el modal de inicio de sesión */
#login-modal .modal-content {
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-top: 5px solid #6a3de8;
}

#login-modal h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #2d3748;
  font-weight: 600;
}

#login-modal h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6a3de8, #5429d6);
  margin: 15px auto 0;
  border-radius: 2px;
}

#login-modal p {
  font-size: 16px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 30px;
}

.login-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6a3de8 0%, #5429d6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(106, 61, 232, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(106, 61, 232, 0.5);
}

.btn-secondary {
  background-color: #f0f2f5;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  transform: translateY(-3px);
}

/* Mejora para la animación del modal */
@keyframes modal-appear {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#login-modal .modal-content {
  animation: modal-appear 0.4s ease-out forwards;
}

/* Mejora para el botón de cierre */
#login-modal .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: #f0f2f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
}

#login-modal .modal-close:hover {
  background-color: #e2e8f0;
  color: #1a202c;
  transform: rotate(90deg);
}

/* Añadir un icono al modal */
#login-modal .modal-content::before {
  content: '';
  display: block;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3de8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}
