
/* Materiales y actividades personalizadas */
.activity-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-bottom: 4px solid #330644;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.meta-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(51, 6, 68, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.component-link {
    color: #330644;
    text-decoration: none;
    font-weight: 500;
}

.component-link:hover {
    text-decoration: underline;
    color: #4a0e5c;
}

@media (max-width: 768px) {
    .activity-meta-inline {
        flex-direction: column;
        gap: 0.75rem;
    }

    .meta-item {
        width: 100%;
        min-width: unset;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/*#########################################*/

/* Materiales y Actividades */
.card {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.card-body {
    padding: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    background-color: transparent;
}

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

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #6b7280;
    content: "/";
}

.breadcrumb-item a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #4b5563;
}

.btn-help {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 0.2s;
}

.btn-help:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 1;
}

.search-input {
    flex-grow: 1;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.search-button {
    margin-left: 0.5rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 0.375rem;
    width: 2.5rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #1d4ed8;
}

.filter-button {
    margin-left: 0.5rem;
    background-color: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.filter-button.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filter-button i {
    margin-right: 0.25rem;
}

.list-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    background-color: white;
}

.list-header {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.2s;
    border-radius: 0.375rem;
}

.list-header:hover {
    background-color: #f9fafb;
}

.list-content {
    padding: 0 1rem 0.75rem 2rem;
    display: none;
}

.list-content.show {
    display: block;
}

.list-header a {
    color: #111827;
    text-decoration: none;
    flex-grow: 1;
}

.list-header a:hover {
    color: #2563eb;
}

.list-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.list-content li {
    padding: 0.375rem 0;
}

.list-content li a {
    color: #4b5563;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
}

.list-content li a:hover {
    color: #2563eb;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.badge-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-gray {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon.active {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.dropdown-content.show {
    display: block;
}

.dropdown-header {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f9fafb;
}

.dropdown-item .codigo {
    font-weight: 500;
    margin-right: 0.5rem;
    color: #4b5563;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: #dcfce7;
    margin-right: 0.5rem;
}

.check-icon-inner {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background-color: #22c55e;
}

.modal-help {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-help.show {
    display: block;
}

.modal-help-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 0.5rem;
    max-width: 600px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-help-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-help-close:hover {
    color: #111827;
}

/* Contador de actividades */
.list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
    padding: 0 0.375rem;
}

.subclass-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.subclass-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.subclass-item:last-child {
    border-bottom: none;
}

.subclass-item:hover {
    background-color: #f9fafb;
}

.subclass-link {
    display: flex;
    align-items: center;
    color: #111827;
    text-decoration: none;
    font-weight: 400;
}

.subclass-link:hover {
    color: #2563eb;
}

.subclass-code {
    font-weight: 500;
    margin-right: 0.5rem;
    color: #4b5563;
}

.options-menu {
    position: relative;
    display: inline-block;
}

.options-button {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.options-button:hover {
    background-color: #f3f4f6;
}

.options-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    min-width: 12rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    z-index: 10;
    display: none;
    padding: 0.5rem;
}

.options-dropdown.show {
    display: block;
}

.options-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    border-radius: 0.25rem;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.options-item:hover {
    background-color: #f9fafb;
    color: #111827;
    }

.options-item i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.options-item.share:hover {
    color: #047857;
}

.options-item.add-to-list:hover {
    color: #2563eb;
}

.share-menu {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    border-radius: 0.375rem;
    cursor: pointer;
}

.share-menu:hover {
    background-color: #f9fafb;
    color: #047857;
}

.share-menu i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.options-dropdown .icono-personalizado-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.options-dropdown .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

.options-dropdown .fa-star,
.options-dropdown .fa-check-circle {
    color: #2563eb;
    margin-right: 0.5rem;
}

#IrArriba {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
}

#IrArriba a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

#IrArriba a:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
}


.object-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.object-subtitle {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1rem;
}


.object-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-bottom: 4px solid #330644;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.meta-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(51, 6, 68, 0.1);
}

/* Enlaces de componentes con color morado específico */
.component-link {
    color: #330644;
    text-decoration: none;
    font-weight: 500;
}

.component-link:hover {
    text-decoration: underline;
    color: #4a0e5c;
    }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}


@media (max-width: 768px) {
    .search-container {
        flex-wrap: wrap;
    }

    .search-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .search-button, .filter-button {
        margin-bottom: 0.5rem;
    }

    .card-header {
      padding: 0.75rem;
    }

    .card-body {
      padding: 0.75rem;
    }

    .action-bar {
      flex-direction: column;
      align-items: flex-start;
    }

    .object-meta-inline {
      flex-direction: column;
      gap: 0.75rem;
    }

    .meta-item {
      width: 100%;
      min-width: unset;
    }

    .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }

}
/*#########################################*/

/* Modal agregar precio */

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.table-responsive {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

.table th {
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
}

.table td {
  font-size: 0.875rem;
}

.btn-sm {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
  }

  .row.g-3 {
    --bs-gutter-x: 0.75rem;
  }

  .col-md-3 {
    margin-bottom: 1rem;
  }

  .d-flex.gap-2 {
    flex-direction: column;
  }

  .d-flex.gap-2 .btn {
    width: 100%;
  }
}

/* Select2 básico */
.select2-container--bootstrap-5 .select2-selection {
  min-height: calc(1.5em + 0.75rem + 2px);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
