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;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0 0 15px 15px;
  position: relative;
  overflow: visible;
  z-index: 100;
}

.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: 16px;
  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;
  position: relative;
}

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

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(74, 107, 223, 0.9);  /* Este es el color azul */
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

.project-thumbnail {
  width: 100%;
  height: 180px;
  background-color: #f0f2f5;
  overflow: hidden;
  position: relative;
}

.project-thumbnail img,
.project-thumbnail svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

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

/* Limitar el título a 2 líneas */
.project-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em; /* Aproximadamente 2 líneas */
  line-height: 1.4;
}

/* Limitar la descripción a 5 líneas */
.project-description {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 7.5em; /* Aproximadamente 5 líneas */
  line-height: 1.5;
}

.points-badge {
  display: inline-block;
  background-color: #f39c12;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.price-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.price-badge.points {
  background-color: #f39c12;
  color: white;
}

.price-badge.usd {
  background-color: #2ecc71;
  color: white;
}

.rating-container {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.stars {
  display: flex;
  color: #f39c12;
  margin-right: 8px;
}

.star {
  font-size: 18px;
}

.star.half {
  position: relative;
  color: #e0e0e0;
}

.star.half::before {
  content: '★';
  position: absolute;
  color: #f39c12;
  width: 50%;
  overflow: hidden;
}

.star.empty {
  color: #e0e0e0;
}

.rating-value {
  font-weight: 600;
  color: #555;
}

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

.share-btn, .info-btn {
  color: #4a6bdf;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 6px;
}

.share-btn:hover, .info-btn:hover {
  background-color: rgba(74, 107, 223, 0.1);
}

.project-url {
  color: #4a6bdf;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  background: none;
}

.project-url:hover {
  background-color: rgba(74, 107, 223, 0.1);
}

.share-btn, .info-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.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, #4a6bdf 0%, #3a5bce 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(74, 107, 223, 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: #4a6bdf;
  color: white;
  border-color: #4a6bdf;
  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: #4a6bdf;
  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(74, 107, 223, 0.4);
  transition: all 0.3s ease;
  z-index: 1100;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background-color: #3a5bce;
  box-shadow: 0 8px 20px rgba(74, 107, 223, 0.5);
}

.search-filter-container {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.category-toggle {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50px;
  margin-left: 10px;
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.category-toggle:hover {
  background-color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.category-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.category-toggle.active svg {
  transform: rotate(180deg);
}

.category-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 300px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}

.category-dropdown.active {
  max-height: 400px;
  opacity: 1;
  pointer-events: all;
  padding: 15px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-filter {
  padding: 8px 16px;
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a5568;
}

.category-filter:hover {
  background-color: rgba(74, 107, 223, 0.1);
  border-color: #4a6bdf;
  color: #4a6bdf;
}

.category-filter.active {
  background-color: #4a6bdf;
  color: white;
  border-color: #4a6bdf;
}

#clear-filters {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  background-color: #e53e3e;
  color: white;
  border: none;
  display: none;
  transition: all 0.3s ease;
  margin-top: 10px;
  align-self: center;
}

#clear-filters.visible {
  display: block;
}

#clear-filters:hover {
  background-color: #c53030;
}

/* Share modal styles */
.share-input {
  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;
}

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

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  border: none;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.share-button svg {
  width: 20px;
  height: 20px;
}

.share-button.whatsapp {
  background-color: #25D366;
}

.share-button.telegram {
  background-color: #0088cc;
}

.share-button.copy {
  background-color: #3a5bce;
}

.share-button.copy.copied {
  background-color: #2ecc71;
}

#share-message {
  min-height: 80px;
  resize: vertical;
}

@media (max-width: 600px) {
  .share-buttons {
    flex-direction: column;
  }
}

/* Estilos responsive para el botón de categorías */
@media (max-width: 768px) {
  .search-filter-container {
    flex-direction: column;
    width: 100%;
  }

  #search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #search-input:focus {
    width: 100%;
  }

  .category-toggle {
    margin-left: 0;
    margin-top: 15px;
    width: 85%;
    justify-content: center;
  }

  /* Ajuste para el dropdown cuando está en versión móvil */
  .category-dropdown {
    right: 50%;
    transform: translateX(50%);
    width: 85%;
  }
}

.register-panel {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.08);
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  text-align: center;
  position: relative;
  border: 1px solid #eef1f8;
}

.register-panel p {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.register-panel i {
  color: #f39c12;
  margin-right: 10px;
}

.register-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #4a6bdf;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.register-link:hover {
  background-color: #3a5bce;
  transform: translateY(-2px);
}

.user-points {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #f39c12;
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.user-points i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .user-points {
    position: static;
    margin: 15px auto 0;
    display: inline-flex;
  }
}

.register-panel.full-width {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
}

.promo-text {
  text-align: center;
  margin-bottom: 15px;
  width: 100%;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.btn-action {
  padding: 10px 20px;
  background-color: #007bff; /* Color primario, puedes cambiarlo */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-action:hover {
  background-color: #0056b3; /* Un tono más oscuro al pasar el cursor */
}

/* Si quieres diferenciar un poco los botones pero mantener el estilo similar */
.login-link {
  background-color: #6c757d; /* Un tono gris */
}

.login-link:hover {
  background-color: #5a6268; /* Un tono gris más oscuro */
}

.separator {
  margin: 0 10px;
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
}

/* Estilos para el modal de autenticación */
.auth-modal-content {
  max-width: 450px;
  padding: 0 0 30px 0;
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, #4a6bdf 0%, #3451b2 100%);
  margin: 0 0 20px;
  padding: 25px 30px;
  text-align: center;
  color: white;
}

.auth-header h2 {
  font-size: 26px;
  margin: 10px 0 0;
  color: white;
  padding-bottom: 0;
}

.auth-header h2::after {
  display: none;
}

.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.auth-content {
  padding: 0 30px;
}

.auth-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 25px;
  text-align: center;
}

.auth-benefits {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 30px;
  border: 1px solid #edf2f7;
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

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

.benefit-item svg {
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 14px;
  color: #4a5568;
}

.auth-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.auth-btn {
  flex: 1;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.login-btn {
  background-color: #e2e8f0;
  color: #4a5568;
}

.login-btn:hover {
  background-color: #cbd5e0;
}

.register-btn {
  background-color: #4a6bdf;
  color: white;
}

.register-btn:hover {
  background-color: #3451b2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 107, 223, 0.3);
}

.price-badge.free {
  background-color: #10b981;
  color: white;
  font-weight: 700;
}

/* Estilos adicionales para el sistema de categorías dinámico */

.category-filter {
  padding: 8px 16px;
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-filter:hover {
  background-color: rgba(74, 107, 223, 0.1);
  border-color: #4a6bdf;
  color: #4a6bdf;
}

.category-filter.active {
  background-color: #4a6bdf;
  color: white;
  border-color: #4a6bdf;
}

.category-count {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.category-filter:not(.active) .category-count {
  background-color: rgba(74, 107, 223, 0.15);
  color: #4a6bdf;
}

.category-filter.active .category-count {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Loading state para categorías */
.category-filters.loading {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-filters.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #4a6bdf;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.category-loading-text {
  color: #718096;
  font-size: 14px;
  margin-left: 10px;
}

/* Error state para categorías */
.category-error {
  background-color: #fed7d7;
  color: #c53030;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #fbb6ce;
}

/* Responsive para los contadores */
@media (max-width: 768px) {
  .category-filter {
    font-size: 13px;
    padding: 6px 12px;
  }

  .category-count {
    font-size: 11px;
    padding: 1px 4px;
    min-width: 18px;
  }
}

/* Animación para cuando se cargan las categorías */
.category-filter {
  opacity: 0;
  animation: slideInCategory 0.3s ease forwards;
}

.category-filter:nth-child(1) { animation-delay: 0.1s; }
.category-filter:nth-child(2) { animation-delay: 0.15s; }
.category-filter:nth-child(3) { animation-delay: 0.2s; }
.category-filter:nth-child(4) { animation-delay: 0.25s; }
.category-filter:nth-child(5) { animation-delay: 0.3s; }
.category-filter:nth-child(6) { animation-delay: 0.35s; }

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

/* Mejorar el indicador cuando no hay categorías */
.no-categories-message {
  background-color: #f7fafc;
  color: #4a5568;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #e2e8f0;
}

/* ===== SISTEMA DE PESTAÑAS COMPACTO EN UNA LÍNEA ===== */

.controls-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.product-tabs-compact {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.tab-button-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.tab-button-compact:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
}

.tab-button-compact.active {
  background: rgba(255, 255, 255, 0.95);
  color: #4a6bdf;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.tab-button-compact svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.tab-count-compact {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  margin-left: 2px;
}

.tab-button-compact.active .tab-count-compact {
  background-color: rgba(74, 107, 223, 0.15);
  color: #4a6bdf;
}

/* ===== BARRA DE BÚSQUEDA Y FILTROS COMPACTA ===== */

.search-filter-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  max-width: 600px;
  position: relative;
}

.search-filter-compact #search-input {
  padding: 10px 20px 10px 40px;
  border: none;
  border-radius: 25px;
  flex-grow: 1;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' 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: 12px center;
  background-size: 18px;
  min-width: 200px;
}

.search-filter-compact #search-input:focus {
  outline: none;
  box-shadow: 0 2px 15px rgba(74, 107, 223, 0.3);
  background-color: white;
}

.category-toggle-compact {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 25px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.category-toggle-compact:hover {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.category-toggle-compact svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.category-toggle-compact.active svg {
  transform: rotate(180deg);
}

/* ===== DROPDOWN DE CATEGORÍAS ACTUALIZADO ===== */

.category-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 280px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid rgba(0,0,0,0.1);
}

.category-dropdown.active {
  max-height: 350px;
  opacity: 1;
  pointer-events: all;
  padding: 15px;
}

/* ===== INDICADORES PARA PRODUCTOS EXTERNOS (sin cambios) ===== */

.external-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.project-card.external-product {
  border: 2px solid rgba(229, 62, 62, 0.2);
  position: relative;
  overflow: visible;
}

.project-card.external-product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e53e3e, #c53030);
  border-radius: 12px 12px 0 0;
}

.project-card.external-product:hover {
  border-color: rgba(229, 62, 62, 0.4);
  box-shadow: 0px 10px 25px rgba(229, 62, 62, 0.15);
}

.price-badge.external {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.project-url.external {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.project-url.external:hover {
  background: linear-gradient(135deg, #c53030, #a02626);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

/* ===== RESPONSIVE PARA EL DISEÑO COMPACTO ===== */

@media (max-width: 1024px) {
  .controls-container {
    gap: 15px;
  }

  .search-filter-compact #search-input {
    min-width: 180px;
  }

  .tab-button-compact {
    padding: 8px 12px;
    font-size: 12px;
  }

  .tab-count-compact {
    font-size: 10px;
    padding: 1px 4px;
  }
}

@media (max-width: 768px) {
  .controls-container {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .product-tabs-compact {
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .search-filter-compact {
    order: 1;
    max-width: 100%;
  }

  .search-filter-compact #search-input {
    min-width: auto;
    flex: 1;
  }

  .category-dropdown {
    right: 0;
    left: 0;
    width: auto;
  }
}

@media (max-width: 480px) {
  .tab-button-compact {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }

  .tab-button-compact svg {
    width: 12px;
    height: 12px;
  }

  .search-filter-compact {
    flex-direction: column;
    gap: 10px;
  }

  .category-toggle-compact {
    order: 2;
    align-self: center;
  }
}

/* ===== ANIMACIONES ===== */

.tab-button-compact {
  animation: fadeInTab 0.5s ease forwards;
  opacity: 0;
}

.tab-button-compact:nth-child(1) { animation-delay: 0.1s; }
.tab-button-compact:nth-child(2) { animation-delay: 0.2s; }
.tab-button-compact:nth-child(3) { animation-delay: 0.3s; }

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

/* ===== ESTILOS PARA FOOTER SIN BOTÓN DE ACCIÓN (productos hotmart_solo) ===== */

.project-footer.no-action-button {
  justify-content: flex-start;
  gap: 15px;
}

.project-footer.no-action-button .info-btn {
  background: linear-gradient(135deg, #4a6bdf, #3451b2);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.project-footer.no-action-button .info-btn:hover {
  background: linear-gradient(135deg, #3451b2, #2a408f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 107, 223, 0.4);
}

.project-footer.no-action-button .share-btn {
  margin-left: auto;
}
