:root {
  /* Colores primarios */
  --color-primary-313: #0092BC;
  --color-primary-2728: #0047BB; 
  
  /* Colores secundarios */
  --color-secondary-light: #f0f8ff;
  --color-secondary-lighter: #e1f0fa;
  --color-secondary-border: #e6edf2;
  --color-secondary-text: #5a6a7a;
  --color-secondary-meta: #6b7c8d;
  --color-secondary-rating: #e6a800;
  --color-secondary-star: #ffc107;
  --color-secondary-star-hover: #ffd54f;
  --color-secondary-disabled: #d1dbe3;
}

.er-library-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Nunito', Roboto, 'Helvetica Neue', sans-serif;
  background-color: #f8fafc;
}

.er-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.er-resource-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 91, 148, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 119, 182, 0.1);
}

.er-resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 91, 148, 0.12);
}

.er-card-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.er-card-image {
  position: relative;
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary-lighter) 100%);
}

.er-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.er-resource-card:hover .er-card-image img {
  transform: scale(1.03);
}

.er-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-primary-313);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.er-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e6edf2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #8a9aac;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.er-favorite-btn:hover {
    background-color: #ff0000; 
    color: white;
    border: none;
}


.er-favorite-btn.active {
    background-color: #ff0000; /* Rojo más intenso */
    color: white;
    border: none;
}

.er-card-content {
  padding: 0.8rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.er-card-title {
  margin: 0 0 0.3rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-313);
  line-height: 1.2; 
}

.er-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.er-card-title a:hover {
  color: var(--color-primary-313);
}

.er-card-subtitle {
  margin: 0 0 0.4rem 0;
  font-size: 0.9rem;
  color: var(--color-secondary-text);
  line-height: 1.3;
  font-weight: 400;
}

.er-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.er-card-meta-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-secondary-meta);
}

.er-card-meta-item i {
  margin-right: 4px;
  font-size: 0.9rem;
  color: var(--color-primary-313);
}

.er-official-rating {
  color: var(--color-secondary-rating);
  font-weight: 600;
}

.er-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--color-secondary-border);
}

.er-user-rating {
  display: flex;
  align-items: center;
}

.er-star-rating {
  display: flex;
  margin-right: 6px;
}

.er-rating-link {
    text-decoration: none;
    color: inherit;
}

.er-rating-link:hover {
    color: inherit;
}



.er-star {
  color: var(--color-secondary-disabled);
  cursor: default;
  font-size: 1.1rem;
  transition: color 0.2s ease;
  margin: 0 1px;
}

.er-star.filled {
  color: var(--color-secondary-star);
}

.er-star:hover {
  color: var(--color-secondary-star-hover);
}

.er-rating-count {
  font-size: 0.9rem;
  color: #8a9aac;
  margin-left: 4px; 
}

.er-comments-link {
  display: flex;
  align-items: center;
  font-size: 0.9rem; 
  color: var(--color-secondary-meta);
  text-decoration: none;
  transition: color 0.2s ease;
}

.er-comments-link:hover {
  color: var(--color-primary-313);
}

.er-comments-link i {
  margin-right: 6px;
  font-size: 1.1rem; 
  color: var(--color-primary-313);
}

.er-library-filters {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 91, 148, 0.05);
  margin-bottom: 2rem;
  border: 1px solid var(--color-secondary-border);
}

.er-filter-search {
  display: flex;
  margin-bottom: 1rem;
}

.er-search-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-secondary-border);
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: #2d3747;
}

.er-search-input:focus {
  outline: none;
  border-color: var(--color-primary-313);
  box-shadow: 0 0 0 2px rgba(0, 91, 148, 0.1);
}

.er-search-button {
  background: var(--color-primary-313);
  color: white;
  border: none;
  padding: 0 1.25rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.er-search-button:hover {
  background: var(--color-primary-313);
}

.er-filter-dropdowns {
  display: flex;
  gap: 1rem;
}

.er-filter-select {
  flex-grow: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-secondary-border);
  border-radius: 8px;
  font-size: 0.9rem;
  background-color: white;
  cursor: pointer;
  color: #2d3747;
  transition: all 0.3s ease;
}

.er-filter-select:focus {
  outline: none;
  border-color: var(--color-primary-313);
  box-shadow: 0 0 0 2px rgba(0, 91, 148, 0.1);
}

.er-library-pagination {
  margin-top: 3rem;
  text-align: center;
}

.er-library-pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.er-library-pagination .page-numbers li a,
.er-library-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  color: #2d3747;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 91, 148, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--color-secondary-border);
}

.er-library-pagination .page-numbers li a:hover,
.er-library-pagination .page-numbers li span.current {
  background: var(--color-primary-313);
  color: white;
  border-color: var(--color-primary-313);
}

@media (max-width: 768px) {
  .er-resources-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .er-filter-dropdowns {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .er-library-container {
    padding: 1rem;
  }
  
  .er-resources-grid {
    grid-template-columns: 1fr;
  }
  
  .er-card-content {
    padding: 1rem;
  }
  
  .er-card-title {
    font-size: 1.1rem;
  }
  
  .er-card-subtitle {
    font-size: 0.85rem;
  }
}

.er-resource-card,
.er-favorite-btn,
.er-star,
.er-comments-link,
.er-search-button,
.er-filter-select {
  transition: all 0.25s ease-in-out;
}

.er-card-title a:focus,
.er-search-input:focus,
.er-search-button:focus,
.er-filter-select:focus,
.er-favorite-btn:focus {
  outline: 2px solid var(--color-primary-313);
  outline-offset: 2px;
}







.er-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.er-card-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem; 
    color: var(--color-secondary-meta);
    background-color: #ffffff;
    padding: 0.15rem 0.5rem; 
    border-radius: 20px;
    border: 1.5px solid var(--color-primary-313);
}

.er-card-meta-item i {
    margin-right: 5px; 
    font-size: 0.95rem; 
    color: var(--color-primary-313);
}
















/*DETALLE CSSS*/
/* Estilos generales del contenedor */
.dspace-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Nunito', Roboto, 'Helvetica Neue', sans-serif;
  background-color: #f8fafc;
}

/* Breadcrumb */
.dspace-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-secondary-meta);
}

.dspace-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.dspace-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--color-secondary-meta);
}

.dspace-breadcrumb a {
  color: var(--color-primary-313);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dspace-breadcrumb a:hover {
  color: var(--color-primary-2728);
}

.dspace-breadcrumb .active {
  color: var(--color-secondary-text);
}

/* Layout principal */
.dspace-content-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.dspace-sidebar {
  position: relative;
}

.dspace-main-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 91, 148, 0.08);
}

/* Thumbnail y archivos */
.dspace-thumbnail-container {
  position: sticky;
  top: 1rem;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 91, 148, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dspace-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dspace-files-section {
  border-top: 1px solid var(--color-secondary-border);
  padding-top: 1.5rem;
}

.dspace-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dspace-file-item {
  display: flex;
  align-items: center;
}

.dspace-file-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-313);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

.dspace-file-link:hover {
  background-color: var(--color-secondary-lighter);
  color: var(--color-primary-2728);
}

.dspace-file-link i {
  color: var(--color-primary-313);
}

.dspace-no-files {
  color: var(--color-secondary-meta);
  font-style: italic;
  font-size: 0.9rem;
}

/* Botones de acción */
.dspace-resource-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dspace-favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e6edf2;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #8a9aac;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dspace-favorite-btn:hover {
    background-color: #ff0000; 
    color: white;
    border: none;
}

.dspace-favorite-btn.active {
    background-color: #ff0000; /* Rojo más intenso */
    color: white;
    border: none;
}

.dspace-favorite-btn i {
  font-size: 1.1rem;
}

/* Cabecera del recurso */
.dspace-resource-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-secondary-border);
}

.dspace-resource-title {
  color: var(--color-primary-313);
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.dspace-resource-subtitle {
  color: var(--color-secondary-text);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}

/* Secciones de contenido */
.dspace-description-section,
.dspace-metadata-section,
.dspace-skills-section,
.dspace-comments-section {
  margin-bottom: 2.5rem;
}

.dspace-description-section h3,
.dspace-metadata-section h3,
.dspace-skills-section h3,
.dspace-comments-section h3 {
  color: var(--color-primary-313);
  font-size: 1.3rem;
  margin: 0 0 1.5rem 0;
}

.dspace-description {
  color: var(--color-secondary-text);
  line-height: 1.6;
}

/* Grid de metadatos */
.dspace-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.dspace-metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dspace-metadata-item dt {
  font-size: 0.85rem;
  color: var(--color-secondary-meta);
  font-weight: 600;
}

.dspace-metadata-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-secondary-text);
  padding: 0.5rem;
  background-color: var(--color-secondary-light);
  border-radius: 6px;
}

/* Valoración */
.dspace-rating-widget {
  margin-bottom: 2rem;
}

.dspace-rating-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dspace-rating-average {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dspace-rating-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-313);
}

.dspace-star-rating {
  display: flex;
  gap: 0.25rem;
}

.dspace-star {
  color: var(--color-secondary-disabled);
  cursor: pointer;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.dspace-star.filled {
  color: var(--color-secondary-star);
}

.dspace-star:hover {
  color: var(--color-secondary-star-hover);
}

.dspace-rating-count {
  font-size: 0.9rem;
  color: var(--color-secondary-meta);
}

/* Formulario de comentarios */
.dspace-comment-form {
  margin-bottom: 2rem;
}

.dspace-comment-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-secondary-border);
  border-radius: 8px;
  min-height: 100px;
  margin-bottom: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.dspace-comment-textarea:focus {
  outline: none;
  border-color: var(--color-primary-313);
  box-shadow: 0 0 0 2px rgba(0, 91, 148, 0.1);
}

.dspace-submit-comment {
  background: var(--color-primary-313);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dspace-submit-comment:hover {
  background: var(--color-primary-2728);
}

.dspace-login-prompt {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--color-secondary-light);
  border-radius: 8px;
  text-align: center;
}

.dspace-login-prompt a {
  color: var(--color-primary-313);
  text-decoration: none;
  font-weight: 600;
}

.dspace-login-prompt a:hover {
  text-decoration: underline;
}

/* Lista de comentarios */
.dspace-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .dspace-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .dspace-thumbnail-container {
    position: static;
    margin-bottom: 2rem;
  }
  
  .dspace-metadata-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .dspace-container {
    padding: 1rem;
  }
  
  .dspace-main-content {
    padding: 1.5rem;
  }
  
  .dspace-resource-title {
    font-size: 1.5rem;
  }
  
  .dspace-resource-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .dspace-metadata-grid {
    grid-template-columns: 1fr;
  }
  
  .dspace-rating-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}








/*admins tyles reports*/
/* Estilos para botón de reportar */
.er-report-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.er-report-btn:hover {
    background: #c82333;
}

.er-report-btn i {
    margin-right: 5px;
}

/* Modal de reportes */
.er-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.er-modal {
    background: white;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.er-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.er-modal-header h3 {
    margin: 0;
    color: #333;
}

.er-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.er-modal-close:hover {
    color: #333;
}

.er-modal-body {
    padding: 0 20px 20px 20px;
}

.er-modal-body form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.er-modal-body form select,
.er-modal-body form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.er-modal-body form textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.er-modal-body form select:focus,
.er-modal-body form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.er-modal-actions {
    text-align: right;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.er-btn-cancel,
.er-btn-submit {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.er-btn-cancel {
    background: #6c757d;
    color: white;
}

.er-btn-cancel:hover {
    background: #5a6268;
}

.er-btn-submit {
    background: #007cba;
    color: white;
}

.er-btn-submit:hover {
    background: #005a87;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .er-modal {
        width: 95%;
        margin: 10px;
    }
    
    .er-modal-header,
    .er-modal-body {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .er-modal-actions {
        text-align: center;
    }
    
    .er-btn-cancel,
    .er-btn-submit {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}





/*DETALLE LISTA*/

/* Layout principal del detalle */
.er-resource-detail-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar del detalle */
.er-resource-detail-sidebar .er-resource-card {
    position: sticky;
    top: 20px;
    margin-bottom: 0;
}

/* Imagen en vista detalle */
.er-resource-detail-sidebar .er-card-image {
    aspect-ratio: 3/4;
    padding-bottom: 0;
}

.er-resource-detail-sidebar .er-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón DSpace usando estilos similares a los existentes */
.er-dspace-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: #007cba;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.er-dspace-link:hover {
    background: #005a87;
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none !important;
}

.er-dspace-link i {
    margin-right: 8px;
    font-size: 14px;
}

/* Contenido principal */
.er-resource-detail-main {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
	width: 100% !important;
}

.er-resource-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.er-card-title.main-title {
    font-size: 28px;
    margin-bottom: 8px;
    color: #333;
}

.er-card-subtitle.main-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
}

/* Secciones de contenido */
.er-description-section,
.er-comments-section {
    padding: 30px;
}

.er-description-section {
    border-bottom: 1px solid #eee;
}

.er-description-section h3,
.er-comments-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.er-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Sistema de calificación en sidebar */
.er-rating-section {
    margin-top: 20px;
    padding: 20px 0 0 0;
    border-top: 1px solid #eee;
}

.er-rating-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.er-user-rating-interactive {
    margin-bottom: 20px;
}

.er-user-rating-interactive p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

/* Estrellas interactivas */
.er-star-rating.interactive .er-star {
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 2px;
}

.er-star-rating.interactive .er-star:hover,
.er-star-rating.interactive .er-star.hover {
    transform: scale(1.1);
}

.er-star-rating.interactive .er-star i {
    color: #ddd;
}

.er-star-rating.interactive .er-star.filled i,
.er-star-rating.interactive .er-star:hover i,
.er-star-rating.interactive .er-star.hover i {
    color: #ffc107;
}

/* Feedback de calificación */
.er-rating-feedback {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.er-rating-message {
    margin: 0;
    font-weight: 500;
}

/* Prompts de login */
.er-login-prompt-rating,
.er-login-prompt {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
}

.er-login-prompt-rating p,
.er-login-prompt p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.er-login-prompt-rating a,
.er-login-prompt a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.er-login-prompt-rating a:hover,
.er-login-prompt a:hover {
    text-decoration: underline;
}

/* Resumen de calificación principal */
.er-rating-summary-main {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.er-rating-summary-main h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.er-rating-summary-main .er-user-rating {
    justify-content: center;
}

/* Formulario de comentarios */
.er-comment-form {
    margin-bottom: 30px;
}

.er-comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.er-comment-textarea:focus {
    outline: none;
    border-color: #007cba;
}

.er-submit-comment {
    margin-top: 10px;
    padding: 10px 20px;
    background: #007CBA;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.er-submit-comment:hover {
    background: #218838;
}

/* Ajustes para el título de comentarios */
.er-comments-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.er-comments-section h3 .er-comments-link {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    text-decoration: none;
}

.er-comments-section h3 .er-comments-link:hover {
    color: #007cba;
}

/* Responsive */
@media (max-width: 968px) {
    .er-resource-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .er-resource-detail-sidebar .er-resource-card {
        position: static;
    }
    
    .er-resource-detail-sidebar {
        order: 2;
    }
    
    .er-resource-detail-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .er-resource-header,
    .er-description-section,
    .er-comments-section {
        padding: 20px;
    }
    
    .er-card-title.main-title {
        font-size: 24px;
    }
    
    .er-card-subtitle.main-subtitle {
        font-size: 16px;
    }
    
    .er-rating-summary-main {
        padding: 15px;
    }
}

/* Elimina el título y todo el espacio del contenedor */
.entry-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
.er-report-section {
    margin-top: 15px;
    text-align: right;
}

.er-report-btn-discrete {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: color 0.3s ease;
}

.er-report-btn-discrete:hover {
    color: #666;
    background-color: rgba(0,0,0,0.05);
}

.er-report-btn-discrete i {
    font-size: 11px;
}