.soporte-btn-wrapper {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.soporte-floating-tag {
  background: #ffffff;
  color: #541cab;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: floatingLabel 3s ease-in-out infinite;
  border: 1px solid #e2e8f0;
}

.soporte-floating-tag::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

@keyframes floatingLabel {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.soporte-btn-container {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.soporte-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(124, 58, 237, 0.4);
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: soportePulse 2s infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes soportePulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.soporte-en-vivo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #541cab 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 6px 20px rgba(84, 28, 171, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  outline: none;
  padding: 0;
}

.soporte-en-vivo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(84, 28, 171, 0.5);
  background: linear-gradient(135deg, #6d2ee6 0%, #a855f7 100%);
}

.support-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.soporte-en-vivo-btn .support-icon-img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Custom Modal Styles */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.custom-modal-overlay.open {
  display: flex;
}

.custom-modal-container {
  background: #fdfdff;
  width: 550px;
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  font-size: 20px;
}

.custom-modal-close:hover {
  background: #f1f5f9;
  color: #1e1b4b;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.soporte-modal-header {
  text-align: center;
  margin-bottom: 16px;
  padding-top: 0;
}

.soporte-modal-content {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 20px;
  flex: 1;
  min-height: 0;
  font-family: var(--font-sans), 'Inter', sans-serif;
}

.soporte-modal-content::-webkit-scrollbar {
  width: 6px;
}

.soporte-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.soporte-modal-content::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.soporte-modal-content::-webkit-scrollbar-thumb:hover {
  background: #c4b5fd;
}

.header-icon-wrap {
  background: #f3e8ff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.header-support-logo {
  width: 40px;
  height: 40px;
}

.header-title {
  margin: 0 0 8px;
  color: #1e1b4b;
  font-weight: 700;
  font-size: 1.25rem;
}

.header-subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.modal-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0;
  width: 100%;
}

.support-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.card-main-icon {
  font-size: 24px;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 10px;
  border-radius: 12px;
  height: min-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-title {
  margin: 0 0 4px;
  color: #1e1b4b;
  font-size: 1rem;
  font-weight: 600;
}

.card-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.horario-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 30px;
  width: fit-content;
  margin-bottom: 12px;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
}

.hours-alert-inline {
  border-radius: 12px;
  border: 1px solid #ffd591;
  background-color: #fffbe6;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-message {
  font-weight: 600;
  color: #fa8c16;
  margin-bottom: 4px;
  font-size: 14px;
}

.alert-desc {
  color: #d46b08;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  text-align: justify;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.cancel-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.accept-btn {
  flex: 2;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.accept-btn:hover:not(:disabled) {
  background: #6d2ee6;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
}

.accept-btn:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media screen and (max-width: 768px) {
  .soporte-btn-wrapper {
    bottom: 22px;
    right: 22px;
  }
}

/* Added Styles for Tutorial List and Search */
.search-section {
  margin-bottom: 12px;
}

.support-search-input {
  border-radius: 12px;
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
}

.support-search-input:hover,
.support-search-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
  outline: none;
}

.results-container {
  border-radius: 12px;
}

.results-container::-webkit-scrollbar {
  width: 6px;
}

.results-container::-webkit-scrollbar-track {
  background: transparent;
}

.results-container::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.results-container::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.suggestions-header {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: block;
}

.suggestion-item {
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-item:hover {
  background: #f5f3ff;
  border-color: #ede9fe;
}

.suggestion-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #4338ca;
  font-weight: 500;
  line-height: 1.4;
}

.play-icon {
  font-size: 18px;
  color: #7c3aed;
  flex-shrink: 0;
  margin-top: 2px;
}

.no-results {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 14px;
}

/* Video Player View Styles */
.video-player-view {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-header {
  margin-bottom: 20px;
}

.back-to-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #7c3aed;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  transition: color 0.2s;
  font-size: 14px;
}

.back-to-search-btn:hover {
  color: #6d2ee6;
}

.video-player-title {
  margin: 0;
  color: #1e1b4b;
  font-size: 1.25rem;
  font-weight: 700;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  margin-bottom: 24px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.category-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 4px;
}

/* Accordion Categories Styles */
.categories-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item.active {
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.category-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #fff;
  user-select: none;
  transition: background 0.2s;
}

.category-header:hover {
  background: #f8fafc;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e1b4b;
  font-weight: 600;
  font-size: 13px;
}

.category-icon {
  color: #7c3aed;
  background: #f5f3ff;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-chevron {
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.category-item.active .category-chevron {
  transform: rotate(180deg);
  color: #7c3aed;
}

.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fdfdff;
}

.category-item.active .category-content {
  max-height: 800px;
  /* Large enough for content */
  border-top: 1px solid #f1f5f9;
}

.category-video-list {
  padding: 8px 12px;
  list-style: none;
  margin: 0;
}

.category-video-list .suggestion-item {
  background: transparent;
  width: 100%;
}

.category-video-list .suggestion-item:hover {
  background: #f5f3ff;
}

.inline-soporte-target {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  background: #fdfdff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  font-family: var(--font-sans), 'Inter', sans-serif;
}

.inline-soporte-target .soporte-modal-content {
  padding: 30px;
  max-height: none;
  overflow: visible;
}