/* Custom styles for Lupiey */

.lupiey-brand {
  font-weight: 700;
  display: inline-block;
}

.lupiey-l {
  color: #0d6efd;
}

.lupiey-u {
  color: #dc3545;
}

.lupiey-p {
  color: #ffc107;
}

.lupiey-i {
  color: #0d6efd;
}

.lupiey-e {
  color: #198754;
}

.lupiey-y {
  color: #dc3545;
}


.btn-getstarted-custom {
  background: var(--accent-color);
  color: var(--default-color);
  padding: 8px 25px;
  margin-left: 30px;
  border-radius: 50px;
  transition: 0.3s;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}

.btn-getstarted-custom:hover {
  background: rgba(var(--accent-color-rgb), 0.85);
  color: var(--default-color);
}

.btn-login {
  color: var(--nav-color);
  font-weight: 500;
  padding: 8px 20px;
  margin-left: 15px;
  transition: 0.3s;
  font-size: 14px;
}

.btn-login:hover {
  color: var(--accent-color);
}

.contact-map-iframe {
  border: 0;
  width: 100%;
  height: 350px;
}

/* Category Cards Grid */
.category-card {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 20px;
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.category-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.1);
}

.category-card .card-header {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.category-card .card-header:focus {
  outline: none;
}

.category-card i {
  font-size: 32px;
  line-height: 0;
  margin-right: 15px;
}

.category-card h3 {
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-size: 18px;
  color: var(--heading-color);
  transition: 0.3s;
}

.category-card:hover h3 {
  color: var(--accent-color);
}

.category-card .subcategory-collapse {
  margin-top: 15px;
}

.category-card .subcategory-list {
  list-style: none;
  padding: 15px 0 0 0;
  margin: 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.category-card .subcategory-list li {
  padding: 5px 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
}

.category-card .subcategory-list li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 16px;
  line-height: 1.2;
}

.category-card .toggle-icon {
  margin-left: auto;
  font-size: 18px;
  transition: 0.3s;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.category-card[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

/* Nested Subcategories for Cursos */
.nested-subcategory {
  display: block !important;
  width: 100%;
}

.nested-header {
  display: flex !important;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
  color: var(--default-color);
  font-weight: 500;
  width: 100%;
}

.nested-header:hover {
  background: rgba(var(--accent-color-rgb), 0.05);
  color: var(--accent-color);
}

.nested-header i:first-child {
  font-size: 18px;
  margin-right: 12px;
  color: var(--accent-color);
}

.nested-header .nested-arrow {
  font-size: 14px;
  transition: 0.3s;
  opacity: 0.6;
}

.nested-header[aria-expanded="true"] .nested-arrow {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent-color);
}

.nested-list {
  list-style: none;
  padding: 5px 0 10px 40px;
  margin: 0;
}

.nested-list li {
  padding: 3px 0;
  font-size: 13px !important;
  color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
  position: relative;
}

.nested-list li::before {
  content: "•";
  position: absolute;
  left: -15px;
  color: var(--accent-color);
}

/* Enriched Professional Profile Page Styles */
.profile-hero-premium {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0000 100%);
  height: 250px;
  position: relative;
  border-radius: 0 0 40px 40px;
}

.prof-card-premium {
  margin-top: -100px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 40px;
  position: relative;
  z-index: 10;
}

.prof-img-premium {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid #fff;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: -120px;
  margin-left: 0;
}

.price-tag-premium {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--accent-color);
  color: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.3);
}

.stat-box-premium {
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid #f1f5f9;
}

.stat-box-premium:hover {
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.stat-box-premium i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

.stat-box-premium .num {
  font-size: 22px;
  font-weight: 800;
  display: block;
}

.stat-box-premium .txt {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.portfolio-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.portfolio-item-premium {
  border-radius: 12px;
  overflow: hidden;
  height: 150px;
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-item-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.portfolio-item-premium:hover img {
  transform: scale(1.1);
}

.calendar-card-premium {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  border: 1px solid #f1f5f9;
}

.availability-day-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f1f5f9;
}

.availability-day-premium:last-child {
  border-bottom: none;
}

.availability-day-premium.booked {
  background: rgba(var(--accent-color-rgb), 0.03);
  opacity: 0.7;
}

.badge-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 700;
}

.badge-available {
  background: #dcfce7;
  color: #15803d;
}

.badge-busy {
  background: #fee2e2;
  color: #b91c1c;
}

/* Navigation Login Button */
.btn-login-nav {
  color: var(--nav-color);
  font-weight: 500;
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 5px 15px !important;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  margin-left: 15px;
  transition: 0.3s;
}

.btn-login-nav:hover {
  background: var(--accent-color);
  color: #fff !important;
}

.btn-login-nav i {
  font-size: 18px;
}

/* Scheduling Button */
.btn-schedule {
  background: var(--accent-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
  border: none;
  text-decoration: none;
}

.btn-schedule:hover {
  background: color-mix(in srgb, var(--accent-color), black 15%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Classroom Button */
.btn-room {
  background: #28a745;
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-room.btn-sm {
  padding: 2px 10px !important;
  font-size: 12px !important;
}

/* Trainer Link Styling */
.trainer-link,
.trainer-profile img {
  cursor: pointer;
  transition: 0.3s;
}

.trainer-link:hover {
  color: var(--accent-color) !important;
}

.trainer-profile img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Classroom Interface */
.classroom-container {
  padding: 20px;
  background: #1a1a1a;
  min-height: 100vh;
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.video-box {
  background: #333;
  border-radius: 10px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #444;
}

.video-placeholder {
  font-size: 14px;
  color: #888;
}

.video-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 12px;
}

.chat-sidebar {
  background: #2c2c2c;
  border-radius: 10px;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid #444;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.message {
  margin-bottom: 15px;
  max-width: 85%;
}

.message-content {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.message.sent {
  margin-left: auto;
}

.message.sent .message-content {
  background: var(--accent-color);
}

.message.received .message-content {
  background: #444;
}

.message-info {
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.7;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid #444;
}

.file-preview {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.file-item {
  background: #444;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.interaction-icon {
  cursor: pointer;
  transition: 0.2s;
}

.interaction-icon:active {
  transform: scale(0.9);
}

/* Heart Icon Aesthetics */
.heart-icon {
  color: #ff4d4d;
  transition: 0.3s;
  cursor: pointer;
}

.heart-icon:hover {
  transform: scale(1.2);
  color: #ff0000;
}

.pulse-animation {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* Fix for Trainers/Mentors Index Section Cards */
.trainers-index .member,
.trainers .member {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  text-align: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.trainers-index .member img,
.trainers .member img {
  width: 100%;
  height: 300px;
  /* Standardized height for all mentor photos */
  object-fit: cover;
  margin: 0 !important;
}

.trainers-index .member .member-content,
.trainers .member .member-info {
  padding: 20px 20px 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.trainers-index .member .member-content h4,
.trainers .member .member-info h4 {
  margin-top: 10px;
}

.trainers-index .member .member-content p,
.trainers .member .member-info p {
  flex-grow: 1;
  /* Makes description take up space so bottom icons align */
}

/* Support Center Specific Styles */
.support-search-bar .input-group {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}

.support-search-bar .form-control {
  border: none;
  padding: 15px 30px;
  font-size: 16px;
}

.support-search-bar .form-control:focus {
  box-shadow: none;
}

.support-categories .category-card {
  padding: 40px 30px;
}

.support-categories .category-card i {
  color: var(--accent-color);
  font-size: 48px;
  margin-bottom: 20px;
}

.support-categories .category-card p {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 0;
}

/* FAQ Styling */
.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-radius: 10px;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 32px;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-icon {
  position: absolute;
  top: 22px;
  left: 20px;
  font-size: 20px;
  color: var(--accent-color);
  line-height: 0;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-content {
  display: none;
  padding: 10px 30px 0 32px;
}

.faq .faq-container .faq-item.faq-active {
  background-color: var(--accent-color);
}

.faq .faq-container .faq-item.faq-active h3,
.faq .faq-container .faq-item.faq-active .faq-icon,
.faq .faq-container .faq-item.faq-active .faq-toggle {
  color: #fff;
}

.faq .faq-container .faq-item.faq-active .faq-content {
  display: block;
  color: #fff;
}

.faq .faq-container .faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
}

/* Message Center Styles */
.ticket-card-user {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ticket-card-user:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.admin-reply {
  position: relative;
  background-color: #f0f7ff !important;
}

.admin-reply::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #f0f7ff;
}

.badge-status {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Floating Chat Widget */
.floating-chat-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-bubble-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
}

.chat-bubble-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chat-window {
  width: 350px;
  height: 480px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: bottom right;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-window-header {
  background: var(--accent-color);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-window-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.chat-window-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background: white;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-msg.user {
  background: var(--accent-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-window-footer {
  padding: 15px;
  background: white;
  border-top: 1px solid #eee;
}

.chat-input-group {
  display: flex;
  gap: 8px;
}

.chat-input-group input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 8px 15px;
  font-size: 0.9rem;
  outline: none;
}

.chat-input-group button {
  background: var(--accent-color);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.chat-input-group button:hover {
  background: var(--heading-color);
}

@media (max-width: 575px) {
  .chat-window {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 90px;
  }
}

/* Professional Messaging & File Uploads */
.btn-attach {
  background: none;
  border: none;
  color: #64748b;
  padding: 5px;
  transition: 0.2s;
}

.btn-attach:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.file-attachment {
  transition: 0.2s;
}

.file-attachment:hover {
  border-color: var(--accent-color) !important;
  background-color: #f8fafc !important;
}

.cursor-pointer {
  cursor: pointer;
}

.msg-text {
  word-break: break-word;
}

/* Admin Messaging Inbox */
.chat-container-admin {
  display: flex;
  height: 700px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-sidebar {
  width: 350px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  padding: 20px;
  border-bottom: 1px solid #f8f9fa;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}

.chat-item:hover {
  background: #f8fafc;
}

.chat-item.active {
  background: #f1f5f9;
  border-right: 4px solid #5f0c0c;
}

.chat-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #5f0c0c;
  border-radius: 50%;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.chat-header {
  padding: 20px 30px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-history {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-footer {
  padding: 20px 30px;
  background: #fff;
  border-top: 1px solid #eee;
}

.msg-bubble-admin {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
}

.msg-bubble-admin.user {
  align-self: flex-start;
  background: #fff;
  color: #334155;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.msg-bubble-admin.admin {
  align-self: flex-end;
  background: #1e293b;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-meta {
  font-size: 0.75rem;
  margin-top: 5px;
  opacity: 0.7;
}

/* Custom Scrollbar for Chat */
.chat-history::-webkit-scrollbar,
.chat-list::-webkit-scrollbar {
  width: 5px;
}

.chat-history::-webkit-scrollbar-track,
.chat-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-history::-webkit-scrollbar-thumb,
.chat-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.chat-action-btn {
  width: 42px;
  height: 42px;
}
/* Catálogo de cursos: separadores de categoria (courses.html) */
.category-block { display: none; }
.category-block.active { display: block; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 30px; }
.filter-tabs .ftab {
  padding: 9px 18px; border-radius: 999px; background: #F5F7FB; color: #64748B; font-size: 13.5px;
  font-weight: 600; cursor: pointer; transition: .2s; border: 1.5px solid transparent;
}
.filter-tabs .ftab:hover { background: #EEF1FF; }
.filter-tabs .ftab.active { background: #2D5BFF; color: #fff; }
