:root {
  /* Paleta de colores principal */
  --color-primary: #0a0428;
  --color-secondary: #07295f;
  --color-accent: #2493d4;
  --color-highlight: #570b8d;
  --color-purple: #260c59;
  --color-purple-light: #cb6ce6;
  --color-cyan: #00ffff;
  --color-cyan-light: #4bc6ff;
  --color-white: #fdfffe;
  --color-gray: #bbbec6;
  --color-dark: #1e1e1e;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #004aad, #cb6ce6);
  --gradient-secondary: linear-gradient(135deg, #07295f, #004aad);
  --gradient-accent: linear-gradient(135deg, #570b8d, #cb6ce6);
  --gradient-dark: linear-gradient(135deg, #0a0428, #260c59);

  /* Fuentes */
  --font-main: "Work Sans", sans-serif;
  --font-heading: "Major Mono Display", serif;
  --font-alt: "Roboto", sans-serif;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  padding: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}

/* HEADER FIXED Y VISIBLE */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.85);
  color: #d9d9d9;
  padding: 1rem;
  z-index: 2000;
  height: 60px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logoaura {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #004aad, #cb6ce6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aura-logo {
  width: 32px;
  height: auto;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* BARRA LATERAL VISIBLE */
nav {
  position: fixed;
  top: 80px;
  left: 0;
  bottom: 0;
  width: 200px;
  margin: 0.1rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1900;
  box-sizing: border-box;
  border-radius: 0 15px 15px 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.nav-button {
  width: 100%;
  padding: 0.8rem 0.5rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 10px;
}

.nav-button:hover {
  background-color: var(--color-highlight);
}

.nav-button.active {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.nav-button-icon {
  width: 24px;
  height: 24px;
}

.nav-button.hidden{
  display: none;
}
.nav-button-icon-config {
  width: 24px;
  height: 24px;
}

/* AJUSTES DE CONTENIDO PRINCIPAL */
main {
  margin-left: 220px;
  margin-top: 80px;
  padding: 1.5rem;
  height: calc(100vh - 80px);
  overflow: auto;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

section {
  display: none;
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

section.active {
  display: block;
}

/* CHATBOT AJUSTADO */
.chatbot-fullscreen {
  position: relative;
  height: 100%;
  width: 100%;
}

.chat-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  padding: 20px;
  z-index: 3;
}

.background,
.glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.glass-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* CONTENIDO DE EJEMPLO */
.content-section {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.course-card {
  background: rgba(10, 4, 40, 0.8);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    width: 70px;
  }

  main {
    margin-left: 90px;
  }

  .nav-button span {
    display: none;
  }
}

@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.containerAura {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: xx-large;
}

.auraCoins {
  width: 32px;
  height: 32px;
}

.lang-container {
  position: relative;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  background: var(--color-secondary);
  border-radius: 20px;
  padding: 5px 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  margin-left: auto;
  transform: translate(0, -10px);
}

.translate-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-white);
  margin-right: 5px;
}

.lang-select {
  background: none;
  border: none;
  color: var(--color-white);
  background-color: var(--color-dark);
  cursor: pointer;
  outline: none;
  font-size: 12px;
  padding: 2px 5px;
}

.translate-btn:hover {
  opacity: 0.8;
}

.mobile-menu-button {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  touch-action: manipulation;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-button.active {
  transform: translateX(-50%) rotate(90deg);
  background: linear-gradient(45deg, var(--color-purple-light), #004aad);
}

.header a {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logoaura {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aura-logo {
  width: 32px;
  height: auto;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section#section1.active {
  transform: none;
  opacity: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.mode-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mode-selector button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background-color: #e0e0e0;
  color: #023047;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.mode-selector button.active {
  background-color: #023047;
  color: var(--color-white);
}

.cursos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}

.progress-container {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 45%;
  height: 20%;
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
}

.progress-bar {
  position: relative;
  background-color: var(--color-accent);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease-in-out;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-dark);
  font-weight: bold;
  text-align: center;
}

.progress-bar span {
  position: absolute;
  z-index: 3;
  font-size: 1vw;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  right: 0;
  top: 100%;
  margin-top: 5px;
  border-radius: 8px;
  right: 1.5%;
  top: 91%;
  z-index: 400;
  max-width: 16%;
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu li {
  padding: 10px;
  cursor: pointer;
  color: var(--color-cyan-light);
  border-radius: 8px;
}

.dropdown-menu li:hover {
  background-color: #1d6474;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.hidden {
  display: none;
}

.menu-overlay {
  z-index: 2;
  position: fixed;
  inset: 4rem 0 2.5rem 0;
  background-color: rgba(8, 9, 10, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.menu-container {
  background-color: #023047;
  border-radius: 0.5rem;
  padding: 1rem;
  width: 100%;
  margin: 0 1rem;
  z-index: 900;
}

.menu-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  z-index: 900;
}

.menu-header h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-cyan-light);
}

.close-button {
  color: var(--color-gray);
  transition: color 0.2s;
}

.close-button:hover {
  color: #fb8500;
}

.menu-content {
  width: 100%;
}

.menu-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-cyan-light);
  margin-bottom: 0.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-field {
  padding: 0.5rem;
  background-color: #08090a;
  border: 1px solid #68696e;
  border-radius: 0.25rem;
  color: var(--color-gray);
  outline: none;
  transition: border 0.2s;
}

.input-field:focus {
  border-color: var(--color-cyan-light);
}

.button {
  background-color: #fb8500;
  color: #08090a;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #ffb703;
}

.container {
  background-color: #023047;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-y: auto;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
}

.modal {
  position: relative;
  overflow-y: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-cyan-light);
}

.subscription-options {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .subscription-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .subscription-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.subscription-option {
  border: 1px solid #68696e;
  border-radius: 0.5rem;
  padding: 0rem 1rem;
  cursor: pointer;
  transition: border-color 0.3s;
  min-width: 20vw;
  min-height: 60vh;
  box-sizing: border-box;
  overflow: hidden;
  flex: 1;
}

.subscription-option.selected {
  border-color: var(--color-cyan-light);
  background-color: rgba(75, 198, 255, 0.1);
}

.subscription-option:hover {
  border-color: var(--color-cyan-light);
}

.option-title {
  color: var(--color-cyan-light);
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.option-price {
  color: var(--color-gray);
  margin-bottom: 0.1rem;
  margin-top: 0.05rem;
}

.option-features {
  font-size: 0.75rem;
  color: var(--color-gray);
  overflow-y: auto;
  padding-left: 1.25rem;
}

.option-features li {
  margin-bottom: 0.25rem;
  list-style-type: disc;
}

.truncate {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gap-2 {
  gap: 0.5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: var(--color-purple);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 100px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  font-weight: bold;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.userInfoDisplay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 5px;
  width: fit-content;
}

.user-tokens {
  font-weight: bold;
  color: #333;
}

.user-info {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.containerAura {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(
    45deg,
    var(--color-purple-light),
    var(--color-purple-light),
    #3680e0,
    var(--color-purple-light),
    var(--color-purple-light)
  );
  border-radius: 5px;
  width: fit-content;
  max-width: 8vw;
}

.containerAura p {
  margin: 0;
  font-size: 14px;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.modal-discover {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close-btn-a {
  position: fixed;
  top: 4px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: translate(-10%);
}

.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.btn,
.select {
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:hover,
.select:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.icon {
  font-size: 20px;
}

.select {
  appearance: none;
  width: 80%;
  padding-right: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

#podcastTextContainer {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 20px;
  line-height: 1.6;
  font-size: 18px;
  max-height: 400px;
  overflow-y: auto;
}

.word {
  transition: background-color 0.3s;
}

.word.highlight {
  background-color: var(--color-accent);
  color: var(--color-primary);
  padding: 2px 4px;
  border-radius: 4px;
}

.entrevistador {
  color: var(--color-accent);
}
.invitado {
  color: var(--color-white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-highlight);
}

.voice-selectors {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.voice-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
}

.voice-group label {
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
}

.containera {
  background-color: rgba(10, 4, 40, 0.8);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  height: calc(100vh - 40px);
  max-height: 85%;
  max-width: 85%;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: auto;
  position: fixed;
  top: 10%;
  left: 12%;
  z-index: 999;
  margin: 0;
}

.logoa {
  background: var(--gradient-primary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 25%;
}

.logoa img {
  max-width: 100%;
  height: auto;
}

.contenta {
  padding: 30px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
}

.skills-container {
  max-height: 8vh;
  overflow-y: auto;
  padding: 5px;
  background-color: rgba(10, 4, 40, 0.7);
  border-radius: 10px;
}

.skills-courses {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.skills,
.coursesa {
  width: 48%;
}

.course-descriptiona {
  display: none;
  padding: 10px;
  background-color: rgba(87, 11, 141, 0.5);
  border-radius: 10px;
  margin-top: 5px;
}

.actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.actions button {
  padding: 10px 20px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.actions button:hover {
  background-color: #1c74a6;
  transform: scale(1.05);
}

#qrcode {
  background-color: var(--color-white);
  padding: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(36, 147, 212, 0.7);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(36, 147, 212, 1);
}

.skills {
  width: 100%;
  height: 3vh;
  max-height: 3vh;
  margin-top: 1px;
}

.skills ul {
  display: flex;
  overflow-x: auto;
  padding: 1px 0;
  gap: 1px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.skills-tags li {
  padding: 2px 4px;
  background-color: rgba(36, 147, 212, 0.2);
  border: 1px solid rgba(36, 147, 212, 0.5);
  border-radius: 12px;
  white-space: nowrap;
  margin: 4px;
  display: inline-block;
  font-size: smaller;
}

.course-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: rgba(10, 4, 40, 0.95);
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

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

.popup-title {
  color: var(--color-accent);
  font-size: 24px;
  margin-bottom: 10px;
}

.popup-overview {
  margin-bottom: 20px;
  line-height: 1.5;
}

.popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.popup-tag {
  background-color: rgba(36, 147, 212, 0.2);
  border: 1px solid rgba(36, 147, 212, 0.5);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9em;
}

.popup-certificate {
  color: var(--color-accent);
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.popup-close:hover {
  color: var(--color-accent);
}

#nombre {
  margin-top: 0;
  font-size: 3em;
  font-weight: bold;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 10px;
}

#titulo {
  font-size: 1.5em;
  font-style: italic;
  color: var(--color-white);
  margin-bottom: 15px;
}

#descripcion {
  font-size: 1em;
  color: var(--color-white);
  margin-bottom: 20px;
}

#cursos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 20vh;
  max-width: 70vw;
  width: 70vw;
  overflow-y: auto;
  padding: 10px;
  background-color: rgba(10, 4, 40, 0.7);
  border-radius: 10px;
}

#cursos li {
  list-style: none;
  text-align: left;
  padding: 12px;
  width: 10;
  transition: transform 0.2s ease;
}

#cursos li:hover {
  transform: scale(1.02);
  background-color: rgba(36, 147, 212, 0.4);
}

#cursos::-webkit-scrollbar {
  width: 8px;
}

#cursos::-webkit-scrollbar-thumb {
  background-color: rgba(36, 147, 212, 0.7);
  border-radius: 10px;
}

.certificate-info {
  margin-top: 0;
  padding-top: 0;
}

.search-bar-container {
  width: 100%;
  height: 7%;
  padding: 10px 0;
  background-color: rgba(36, 147, 212, 0);
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.search-bar {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.content-container {
  margin-top: 60px;
  padding: 20px;
}

#section3 {
  margin-left: 11%;
  width: 89%;
  transition: margin-left 0.3s ease-in-out;
}

main.expanded #section3 {
  margin-left: 6%;
  width: 94%;
}

.curso-card {
  width: calc(50% - 20px);
  max-width: 450px;
  min-width: 300px;
  background: rgba(10, 4, 40, 0.8);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  margin: 10px;
  box-sizing: border-box;
}

.cursos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding: 20px;
  width: 100%;
}

.course-card {
  width: calc(50% - 30px);
  max-width: 500px;
  min-width: 300px;
  margin: 15px;
  background: rgba(10, 4, 40, 0.9);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.cursos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 20px;
  gap: 20px;
}

.course-card .course-overlay {
  padding: 15px;
  position: relative;
  z-index: 2;
}

.course-card .course-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  opacity: 0.4;
  z-index: 1;
}

.popupDiscover {
  position: fixed;
  top: 15%;
  left: 15%;
  width: 80%;
  max-width: 75%;
  background: linear-gradient(90deg, #004aad, #4f3557);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 60%;
  color: var(--color-white);
}

.modalDiscover {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8%;
}

.option-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-white);
  margin-bottom: 15px;
  text-shadow: 0 1px 3px var(--color-primary);
}

.close-btn-b {
  position: fixed;
  width: 130%;
  height: 0%;
  z-index: 1;
  color: var(--color-white);
  font-size: 1.8rem;
  text-align: center;
  cursor: pointer;
}

.close-btn-b:hover {
  font-size: 1.9rem;
}

.popup-buttons {
  position: sticky;
  bottom: 10px;
  padding: 10px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
}

.enter-btn {
  padding: 10px 20px;
  color: var(--color-white);
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(
    270deg,
    #004aad,
    var(--color-purple-light),
    #004aad
  );
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.enter-btn:hover {
  background-color: var(--color-purple);
  transform: scale(1.05);
}

.enter-btn:active {
  background-color: var(--color-primary);
  transform: scale(0.95);
}

.enter-bt0n {
  padding: 10px 20px;
  color: var(--color-white);
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(
    270deg,
    #004aad,
    var(--color-purple-light),
    #004aad
  );
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.enter-bt0n:hover {
  background-color: var(--color-purple);
  transform: scale(1.05);
}

.enter-bt0n:active {
  background-color: var(--color-primary);
  transform: scale(0.95);
}

.enter-bt0nnn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  color: var(--color-white);
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(
    270deg,
    #004aad,
    var(--color-purple-light),
    #004aad
  );
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  z-index: 3;
}

.enter-bt0nnn:hover {
  background-color: var(--color-purple);
  transform: scale(1.05);
}

.enter-bt0nnn:active {
  background-color: var(--color-primary);
  transform: scale(0.95);
}

.create-container {
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}

.create-container p {
  color: var(--color-gray);
  margin-bottom: 10px;
  font-size: 16px;
}

.create-button {
  background: linear-gradient(
    270deg,
    #004aad,
    var(--color-purple-light),
    #004aad
  )!important;
  background-size: 200% 200%!important;
  color: var(--color-white)!important;
  border: none!important;
  padding: 10px 20px!important;
  border-radius: 50px!important;
  font-size: 16px!important;
  cursor: pointer!important;
  transition: transform 0.3s ease, box-shadow 0.3s ease!important;
  animation: gradientShift 3s ease infinite!important;
}

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

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.custom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-purple);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.custom-button.active {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.custom-button:hover {
  background-color: #185375;
}

.custom-button svg {
  stroke: var(--color-white);
}

.custom-button span {
  font-size: 1.5vw;
}

.custom-button:hover span {
  color: var(--color-white);
}

.custom-button-icon {
  width: 4vw;
  height: 4vw;
}

.button-container {
  display: grid;
  width: 50vw;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  min-height: auto;
  margin: 0 auto;
}

.button-container.hidden {
  display: none;
}

.button-container .custom-button {
  width: 100%;
  height: auto;
  padding: 8px;
  font-size: 1.5vw;
}

#courseListContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.course-card {
  width: 92%;
  height: 16vw;
  border: 3px solid transparent;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: scale(1.05);
}

.course-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 180%;
  z-index: 1;
}

.course-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 16vh;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0)
  );
  backdrop-filter: blur(10px);
  color: white;
  z-index: 2;
  box-sizing: border-box;
}

.course-id {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 6px;
  font-size: 1.3vh;
  color: #c1c1c1;
  margin-bottom: 0.1rem;
}

.course-title {
  font-size: 1.5vw;
  font-weight: bold;
  text-align: center;
  margin: 0 0;
  margin-top: 0;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow: hidden;
  max-height: 4vw;
  margin-left: 1rem;
}

.tag {
  background-color: #050b20;
  color: var(--color-white);
  padding: 0.4% 0.2%;
  border-radius: 8px;
  font-size: 0.8vw;
}

.course-description {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 2vh;
  color: var(--color-white);
  margin: 5px 0;
}

.course-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: 1.5vh;
}

.stars {
  color: #ffc107;
}

.score {
  font-weight: bold;
}

.search-container {
  display: flex;
  max-width: 35%;
  margin: 1px auto;
  padding: 3px;
  border-radius: 50px;
  background: linear-gradient(135deg, #004aad, var(--color-purple-light));
  animation: gradient-border 3s infinite;
  background-size: 300% 300%;
}

@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.search-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-primary);
}

.search-input::placeholder {
  color: var(--color-gray);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-accent);
}

.search-button {
  background-color: var(--color-highlight);
  border: none;
  color: var(--color-white);
  padding: 10px 15px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: var(--color-purple);
}

.search-button svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.chat-container,
.chat-container * {
  all: initial;
  box-sizing: border-box;
  font-family: "Work Sans", sans-serif;
}

.chat-container {
  display: block;
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 50%;
  height: 100vh;
  margin: 12% auto;
  padding: 20px;
  height: calc(5000vh - 80px);
  max-height: 5000vh;
}

.chat-container.expanded {
  margin-top: 10px;
  height: calc(110vh - 20px);
}

.background {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.glass-overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.cards-row {
  display: flex;
  position: relative;
  height: 25%;
  width: 200%;
  animation-duration: 180s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.row-1 {
  animation-name: moveLeftInfinite;
}
.row-2 {
  animation-name: moveRightInfinite;
}
.row-3 {
  animation-name: moveLeftInfinite;
}
.row-4 {
  animation-name: moveRightInfinite;
}

@keyframes moveLeftInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes moveRightInfinite {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.course-card-back {
  display: flex;
  flex: 0 0 auto;
  width: 320px;
  height: 180px;
  margin: 0.5%;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-white);
  background: var(--gradient-primary);
  box-shadow: 0 4px 30px rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.chat-messages {
  display: block;
  width: 100%;
  max-height: 0;
  overflow-y: auto;
  margin-bottom: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  color: var(--color-white);
}

.chat-messages.active {
  opacity: 1;
  max-height: 80vh;
}

.chat-controls {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.config-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.glass-select,
.glass-input {
  display: block;
  background: rgba(7, 41, 95, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: var(--color-white);
  padding: 10px 15px;
  outline: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.glass-select {
  flex: 1;
  min-width: 120px;
  cursor: pointer;
  appearance: none;
  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='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}

.glass-select option {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.glass-input {
  flex: 2;
  min-width: 200px;
}

.chat-input-container {
  display: flex;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.accessibility-controls {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.accessibility-btn {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--color-white);
  opacity: 0.6;
  cursor: pointer;
  padding: 8px;
}

.accessibility-btn.active {
  color: var(--color-cyan);
  opacity: 1;
  text-shadow: 0 0 10px var(--color-cyan);
}

#chat-input-main {
  display: block;
  flex: 1;
  width: auto;
  padding: 15px 20px;
  border: none;
  background: transparent;
  color: var(--color-white);
  font-size: 1rem;
  outline: none;
}

#chat-input-main::placeholder {
  color: rgba(253, 255, 254, 0.6);
}

#send-button {
  display: inline-block;
  background: var(--gradient-primary);
  border: none;
  color: var(--color-white);
  padding: 15px 25px;
  cursor: pointer;
}

#send-button i {
  text-shadow: 0 0 10px var(--color-cyan);
}

.message {
  display: block;
  margin: 10px 0;
  padding: 15px;
  border-radius: 15px;
  max-width: 80%;
  color: var(--color-white);
}

.user-message {
  margin-left: auto;
  background: var(--gradient-secondary);
  border-bottom-right-radius: 0;
}

.bot-message {
  margin-right: auto;
  background: var(--gradient-accent);
  border-bottom-left-radius: 0;
}

.disclaimer {
  display: none;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(253, 255, 254, 0.4);
  padding: 10px 5px;
  margin-top: 15px;
  opacity: 0;
}

.chat-container.expanded .disclaimer {
  display: block;
  opacity: 0.4;
}

.chatbot-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
}

.chatbot-fullscreen {
  height: calc(100vh - 60px);
  top: 60px;
}

.background {
  top: -60px;
  height: calc(100% + 60px);
}

.glass-overlay {
  top: -60px;
  height: calc(100% + 60px);
}

.math {
  background: linear-gradient(135deg, #004aad, var(--color-accent));
}
.physics {
  background: linear-gradient(135deg, var(--color-secondary), #004aad);
}
.chemistry {
  background: var(--gradient-accent);
}
.biology {
  background: linear-gradient(135deg, #004aad, var(--color-cyan));
}
.history {
  background: linear-gradient(135deg, var(--color-highlight), #004aad);
}
.literature {
  background: linear-gradient(
    135deg,
    var(--color-purple-light),
    var(--color-accent)
  );
}
.geography {
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-accent)
  );
}
.art {
  background: linear-gradient(
    135deg,
    var(--color-purple-light),
    var(--color-cyan)
  );
}
.programming {
  background: linear-gradient(135deg, #004aad, var(--color-secondary));
}
.economics {
  background: linear-gradient(135deg, var(--color-accent), #004aad);
}
.psychology {
  background: linear-gradient(135deg, var(--color-highlight), #004aad);
}
.philosophy {
  background: linear-gradient(
    135deg,
    var(--color-purple-light),
    var(--color-highlight)
  );
}
.music {
  background: linear-gradient(135deg, var(--color-accent), var(--color-cyan));
}
.languages {
  background: var(--gradient-primary);
}
.sports {
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-accent)
  );
}
.astronomy {
  background: linear-gradient(
    135deg,
    var(--color-highlight),
    var(--color-cyan)
  );
}

.message-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 6px;
}

.message-icon i {
  font-size: 1.2em;
  color: var(--color-white);
}

.message {
  margin: 12px 0;
  gap: 15px;
  padding: 18px;
}

.user-message {
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.bot-message {
  box-shadow: 0 4px 15px rgba(87, 11, 141, 0.3);
}

.chat-messages.active {
  max-height: 55vh;
  padding-right: 10px;
}

.message-content {
  white-space: pre-line;
}
.message-content p {
  color: var(--color-white);
  margin: 1em 0 0.5em 0;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3em;
}
.message-content li {
  color: var(--color-white);
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3em;
}

.message-content h3 {
  color: var(--color-white);
  margin: 1em 0 0.5em 0;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3em;
}

.message-content ul {
  list-style-type: none;
  padding-left: 10%;
}

.message-content li {
  position: relative;
  margin: 0.1rem 0;
  padding-left: 1.5em;
}

.message-content li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--color-cyan);
}

.message-content h3 {
  color: var(--color-cyan);
  font-size: 1.2em;
  margin: 0.1rem 0 0.1rem;
  padding-bottom: 0.3em;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.message-content ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

.message-content li {
  margin: 0.1em 0;
  line-height: 1.5;
  position: relative;
}

.message-content li:before {
  content: "▹";
  color: var(--color-purple-light);
  position: absolute;
  left: -1.3em;
}

.message-content strong {
  color: var(--color-cyan);
  font-weight: 600;
  display: block;
  margin: 1.5em 0 0.5em;
}

.message-content strong:before {
  content: "➤ ";
}

.message-content h3 {
  clear: both;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.message-content h3:not(:first-child) {
  margin-top: 3em;
}

.message-content li {
  display: block;
  margin-bottom: 1.2em;
  white-space: normal;
}

.user-message,
.bot-message,
.message-content {
  color: var(--color-white);
}

.message-content h3 {
  color: var(--color-purple-light);
  border-bottom-color: rgba(203, 108, 230, 0.3);
}

.message-content strong {
  color: var(--color-cyan);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.message-content strong::before {
  color: #00ff88;
}

.message-content li::before {
  color: var(--color-accent);
  text-shadow: 0 0 5px rgba(36, 147, 212, 0.3);
}

.final-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  padding: 10px 0;
}

.final-course-card {
  position: relative;
  min-height: 200px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.final-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(0.7) saturate(1.2);
  transition: filter 0.3s ease;
}

.final-card-content {
  position: relative;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 20%, transparent 100%);
}

.final-card-title {
  color: var(--color-white);
  font-size: 1.2rem;
  margin: 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.final-card-id {
  color: var(--color-cyan-light);
  font-size: 0.85rem;
  font-family: monospace;
}

.final-card-tags {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.final-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(75, 198, 255, 0.2);
}

.final-course-card:hover .final-card-bg {
  filter: brightness(0.9) saturate(1.4);
}

#tutor-widget {
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 300px;
  background-color: var(--color-primary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out,
    transform 0.3s ease;
}

#tutor-widget.hidden {
  width: 0;
  height: 0;
  overflow: hidden;
}

#tutor-widget.expanded {
  width: 35%;
  height: 85%;
  transform: translateY(0);
}

#tutor-button {
  width: 100%;
  padding: 10px;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

#tutor-button:hover {
  background: linear-gradient(135deg, var(--color-purple-light), #004aad);
  transform: translateY(-5px);
}

#tutor-chat.visible {
  display: flex;
  opacity: 1;
}

#tutor-chat {
  display: none;
  height: 100%;
  flex-direction: column;
  transition: opacity 0.3s ease;
}

#tutor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: var(--color-purple);
}

#tutor-title {
  color: var(--color-white);
  font-weight: bold;
}

#tutor-controls {
  display: flex;
  gap: 10px;
}

.tutor-control-btn {
  background: none;
  border: none;
  color: var(--color-gray);
  cursor: pointer;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.tutor-control-btn:hover,
.tutor-control-btn.active {
  color: var(--color-accent);
  transform: scale(1.1);
}

#tutor-history {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: var(--color-primary);
}

.tutor-message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 95%;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

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

.tutor-user-message {
  background-color: var(--color-secondary);
  align-self: flex-end;
  margin-left: auto;
}

.tutor-bot-message {
  background-color: var(--color-highlight);
}

#tutor-input-area {
  display: flex;
  padding: 10px;
  background-color: var(--color-purple);
  border-top: 2px solid var(--color-highlight);
}

#tutor-input {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid var(--color-highlight);
  border-radius: 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  transition: border-color 0.3s ease;
}

#tutor-input:focus {
  border-color: var(--color-accent);
  outline: none;
}

#tutor-send {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  padding: 5px 10px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

#tutor-send:hover {
  transform: scale(1.1);
}

#tutor-description {
  color: var(--color-gray);
  font-size: 12px;
  text-align: center;
  padding: 5px;
  background-color: rgba(10, 4, 40, 0.7);
  border-radius: 10px;
  margin-bottom: 10px;
}

#tutor-history::-webkit-scrollbar {
  width: 6px;
}

#tutor-history::-webkit-scrollbar-track {
  background: var(--color-primary);
}

#tutor-history::-webkit-scrollbar-thumb {
  background-color: var(--color-highlight);
  border-radius: 3px;
}

#tutor-history::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-accent);
}

.popupTask {
  position: fixed;
  bottom: 2.5%;
  left: 3%;
  width: 55%;
  height: 79%;
  background-color: var(--color-purple);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#send-task {
  align-items: center;
  width: 30%;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#chat-task {
  width: 95%;
  max-width: 95%;
  height: 40%;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-highlight);
  border-radius: 5px;
  padding: 10px;
}

.content-section-exam {
  margin: 1% 0 1%;
  border: 2px solid #8ecae6;
  border-radius: 10px;
  left: 3%;
  width: 93%;
  padding: 15px;
  background-color: #2c2c2c;
  color: white;
  max-height: calc(80vh - 50px);
  overflow-y: auto;
}

.content-section-exam li {
  margin-left: 50px;
}

.content-section-exam::-webkit-scrollbar {
  width: 6px;
}

.content-section-exam::-webkit-scrollbar-track {
  background: var(--color-primary);
}

.content-section-exam::-webkit-scrollbar-thumb {
  background-color: var(--color-highlight);
  border-radius: 3px;
}

.content-section-exam::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-accent);
}

.popupWarning {
  position: relative;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  width: 25%;
  padding: 16px 24px;
  background-color: #023047;
  color: var(--color-white);
  border: 2px solid #023047;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  font-size: 16px;
  z-index: 9999;
  text-align: center;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease-out, fadeOut 0.3s ease-in 3s forwards;
}

.option-title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#formContainer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

#userForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 400px;
}

#userForm > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#userForm > div > label {
  flex: 0 0 100px;
  text-align: right;
  margin-right: 10px;
  font-weight: bold;
}

#userForm > div > input,
#userForm > div > select {
  flex: 1;
  padding: 8px;
  font-size: 16px;
}

#userForm #countryProvince {
  display: flex;
  gap: 1rem;
}

#userForm #countryProvince > div {
  flex: 1;
}

#userForm .textInput,
#userForm .selector {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-column {
  flex: 1;
  min-width: 200px;
}

.form-and-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.features-column {
  flex: 1;
  min-width: 300px;
  padding-left: 20px;
}

select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.option-features {
  list-style: none;
  padding-left: 0;
}

.option-features li {
  margin-bottom: 5px;
}

.option-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
  transition: color 0.3s;
  z-index: 1000;
}

.close-button:hover {
  color: var(--color-cyan-light);
}

.close-button svg {
  width: 24px;
  height: 24px;
}

.headerPlans {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ========== MEDIA QUERIES (MÓVILES) ========== */
@media (max-width: 768px) {
  header {
    height: 50px;
    padding: 0.5rem;
  }

  nav {
    width: 50%;
    top: 12%;
    bottom: 0;
  }

  nav.collapsed {
    width: 0;
  }

  #toggleSidebar {
    top: 50%;
    right: -15px;
    width: 15px;
    height: 30px;
  }

  .nav-button {
    font-size: 1rem;
    padding: 0.3rem;
    margin-bottom: 20px !important;
    margin: 0 !important;
  }

  .nav-button-icon {
    width: 6vw;
    height: 6vw;
  }

  main {
    margin-left: 0;
    margin-top: 50px;
  }

  main.expanded {
    margin-left: 0;
  }

  .mobile-menu-button {
    display: flex;
  }

  nav {
    position: fixed;
    bottom: calc(-100vh - 100px);
    left: 0;
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: rgba(0, 0, 0, 0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
      visibility 0.3s ease;
  }

  nav.active {
    bottom: 80px;
    opacity: 1;
    visibility: visible;
  }

  #toggleSidebar {
    display: none;
  }

  .user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
  }

  .lang-container {
    margin-left: 0 !important;
    transform: none !important;
    position: static !important;
  }

  .main-content {
    margin-right: 0;
    padding-top: 120px;
  }

  .fixed-container {
    width: 100%;
    padding: 10px 15px;
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .progress-bar {
    height: 15px;
    margin-bottom: 8px;
  }

  .course-navigation {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
  }

  .nav-class-top {
    flex: 1 1 45%;
    padding: 8px;
    font-size: 0.9em;
    margin-top: 0;
    min-width: 120px;
  }

  .nav-class-top.special {
    animation: none;
    border: 2px solid #8ecae6;
  }

  .content-section {
    margin: 15px 0;
    padding: 10px;
    border-width: 1px;
  }

  .content-section li {
    margin-left: 25px;
  }

  pre {
    margin: 10px -15px;
    border-radius: 0;
  }

  pre code {
    font-size: 0.8em;
    padding: 8px;
    max-height: 300px;
  }

  .copy-btn {
    padding: 4px 8px;
    font-size: 0.8em;
    right: 5px;
    top: 5px;
  }

  .bottomTaskContainer {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    left: 0;
    transform: none;
    padding: 12px 15px;
  }

  .main-content {
    padding-bottom: 90px;
  }

  .bottomTaskContainer.hide-on-scroll {
    transform: translateY(100%);
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  #section3 {
    margin-left: 0 !important;
    width: 100%;
    padding: 15px;
  }

  .cursos-container {
    justify-content: center;
    padding-right: 0;
  }

  .curso-card {
    width: 100%;
  }

  .dropdown-menu {
    max-width: 100% !important;
    width: 95% !important;
    right: 2.5% !important;
    left: auto !important;
    top: 100% !important;
    transform: translateY(5px);
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--color-accent);
  }

  .dropdown-menu li {
    padding: 15px;
    font-size: 14px;
  }

  .popup {
    width: 95%;
    max-width: 100%;
    padding: 15px;
  }

  .menu-overlay {
    inset: 0;
    padding: 20px;
  }

  .menu-container {
    margin: 0;
    padding: 15px;
    border-radius: 12px;
  }

  .subscription-options {
    grid-template-columns: 1fr !important;
  }

  .subscription-option {
    min-width: 100% !important;
    min-height: auto !important;
    padding: 15px !important;
    margin-bottom: 15px;
  }

  .option-title {
    font-size: 1.1rem;
  }

  .option-features {
    font-size: 0.9rem;
    padding-left: 15px;
    max-height: 200px;
    overflow-y: auto;
  }

  .input-field {
    padding: 12px;
    font-size: 16px;
  }

  .button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .custom-button {
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    width: 100% !important;
  }

  .custom-button span {
    font-size: 3.5vw !important;
    line-height: 1.2;
    text-align: center;
  }

  .custom-button-icon {
    width: 8vw !important;
    height: 8vw !important;
  }

  .button-container {
    grid-template-columns: 1fr !important;
    width: 90% !important;
    gap: 10px;
    padding: 10px 0;
  }

  #courseListContainer {
    grid-template-columns: 1fr !important;
    padding: 0 5%;
  }

  .course-card {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    margin-bottom: 15px;
  }

  .course-title {
    font-size: 4vw !important;
    padding: 0 10px;
  }

  .course-description {
    -webkit-line-clamp: 2;
    font-size: 3.5vw;
    margin: 8px 10px;
  }

  .tag {
    font-size: 3vw !important;
    padding: 2px 5px !important;
    margin: 2px;
  }

  .search-container {
    max-width: 90% !important;
    margin: 15px auto;
  }

  .search-input {
    font-size: 14px;
    padding: 8px 12px;
  }

  .search-button {
    padding: 8px 12px;
  }

  .create-container {
    width: 90% !important;
    margin: 30px auto;
  }



  .popupDiscover {
    top: 5% !important;
    left: 5% !important;
    width: 90% !important;
    max-width: none !important;
    max-height: 85vh;
  }

  .option-title {
    font-size: 6vw !important;
  }

  .enter-btn,
  .enter-bt0n {
    font-size: 4vw !important;
    padding: 8px 15px;
  }

  .header {
    height: 50px !important;
    padding: 0 10px !important;
    transition: transform 0.3s ease;
  }

  .logo {
    height: 35px !important;
  }

  .user-avatar {
    width: 30px !important;
    height: 30px !important;
  }

  .containerAura {
    display: none;
  }

  .header.hidden {
    transform: translateY(-100%);
  }

  .user-name {
    display: none;
  }

  .lang-container {
    margin-right: 5px !important;
  }

  .lang-select {
    font-size: 12px !important;
    padding: 2px !important;
  }

  .translate-btn {
    font-size: 16px !important;
  }

  .modal-discover {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    max-height: 90vh;
    border-radius: 15px;
  }

  .close-btn-a {
    top: 10px;
    right: 10px;
    font-size: 32px;
    transform: none;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .controls {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .btn,
  .select {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    border-radius: 25px;
  }

  .select {
    width: 100%;
    background-position: right 15px center;
  }

  #podcastTextContainer {
    padding: 15px;
    font-size: 16px;
    max-height: 50vh;
    line-height: 1.5;
  }

  .voice-selectors {
    flex-direction: column;
    gap: 15px;
  }

  .voice-group {
    min-width: 100%;
  }

  .btn,
  .select,
  .voice-group label {
    min-height: 44px;
  }

  ::-webkit-scrollbar {
    width: 5px;
  }

  .containera {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    padding: 10px;
    margin-top: 0;
  }

  .logoa {
    width: 100%;
    padding: 15px;
    border-radius: 0 0 20px 20px;
  }

  .logoa img {
    max-width: 150px;
  }

  .contenta {
    padding: 15px;
    height: auto;
    width: 10vw;
  }

  .skills-container {
    max-height: 15vh;
  }

  .skills-tags li {
    font-size: 0.8em;
    padding: 4px 8px;
    margin: 3px;
  }

  #nombre {
    font-size: 2em;
    margin-bottom: 5px;
  }

  #titulo {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  #cursos {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
    max-height: 30vh;
    padding: 5px;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 15px;
  }

  .actions button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
  }

  .course-popup {
    padding: 10px;
  }

  .popup-content {
    width: 95%;
    padding: 20px;
  }

  .popup-title {
    font-size: 1.5em;
  }

  .popup-tag {
    font-size: 0.8em;
  }

  ::-webkit-scrollbar {
    width: 4px;
  }

  #tutor-widget {
    width: 90% !important;
    bottom: 10px !important;
    right: 10px !important;
    max-width: calc(30% - 20px);
  }

  #tutor-widget.expanded {
    width: calc(100% - 20px) !important;
    height: 80vh;
  }

  #tutor-button {
    padding: 15px;
    font-size: 14px;
  }

  #tutor-header {
    padding: 8px;
  }

  #tutor-title {
    font-size: 1.1em;
  }

  .tutor-control-btn {
    font-size: 22px;
    padding: 8px;
  }

  #tutor-history {
    padding: 8px;
    max-height: 60vh;
  }

  .tutor-message {
    font-size: 0.9em;
    padding: 6px 10px;
    margin-bottom: 8px;
  }

  #tutor-input-area {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  #tutor-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  #tutor-send {
    width: 100%;
    padding: 12px;
    font-size: 18px;
  }

  .popupTask {
    width: 90% !important;
    height: 85vh !important;
    left: 5% !important;
    bottom: 5% !important;
    padding: 15px;
  }

  #send-task {
    width: 100% !important;
    padding: 12px;
    margin-top: 10px;
  }

  #chat-task {
    height: 30vh;
    font-size: 14px;
  }

  .content-section-exam {
    width: 100% !important;
    left: 0 !important;
    margin: 10px 0;
    padding: 10px;
    max-height: 60vh;
  }

  .content-section-exam li {
    margin-left: 20px !important;
  }

  #tutor-history::-webkit-scrollbar,
  .content-section-exam::-webkit-scrollbar {
    width: 4px;
  }

  #chat-widget {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  nav {
    width: 80%;
    top: 15%;
  }

  nav.collapsed {
    width: 0;
  }

  .nav-button {
    font-size: 0.9rem;
    padding: 0.3rem;
  }

  .nav-button-icon {
    width: 8vw;
    height: 8vw;
  }

  main {
    margin-left: 0;
    margin-top: 50px;
  }

  main.expanded {
    margin-left: 0;
  }

  .nav-class-top {
    flex: 1 1 100%;
    font-size: 0.8em;
  }

  .content-section {
    font-size: 0.9em;
  }

  pre code {
    font-size: 0.75em;
  }

  .copy-btn {
    position: relative;
    margin-top: 8px;
    width: 100%;
    right: auto;
    top: auto;
  }

  .subscription-option {
    padding: 10px !important;
  }

  .option-title {
    font-size: 1rem;
  }

  .option-features {
    font-size: 0.85rem;
  }

  .custom-button span {
    font-size: 4.5vw !important;
  }

  .course-title {
    font-size: 5.5vw !important;
  }

  .course-description {
    font-size: 4vw;
  }

  .tag {
    font-size: 3.5vw !important;
  }

  .search-input {
    font-size: 12px;
  }

  .modal-discover {
    width: 95%;
    padding: 15px;
  }

  #podcastTextContainer {
    font-size: 14px;
    padding: 10px;
  }

  .btn,
  .select {
    font-size: 13px;
    padding: 12px;
  }

  .icon {
    font-size: 18px;
  }

  .popupTask {
    height: 90vh !important;
    padding: 10px;
  }

  .content-section-exam {
    font-size: 0.9em;
  }

  #tutor-widget {
    border-radius: 10px !important;
  }

  .tutor-message {
    max-width: 85% !important;
    font-size: 0.85em;
  }

  #tutor-input {
    font-size: 12px;
  }

  .popup-content {
    padding: 15px;
  }

  .skills-tags li {
    font-size: 0.7em;
  }

  #cursos li {
    padding: 8px;
    font-size: 0.9em;
  }
}

/* Fallback para backdrop-filter en móviles */
@supports not (backdrop-filter: blur(10px)) {
  .modal-discover {
    background: rgba(0, 0, 0, 0.7);
  }
}

/* ESTILOS BASE PARA NAV-CLASS-TOP */
.nav-class-top {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: inline-block;
}

.nav-class-top:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.nav-class-top.special {
  animation: pulse 2s infinite;
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple-light));
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 147, 212, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(36, 147, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(36, 147, 212, 0);
  }
}

/* ESTILOS EXISTENTES PARA RESPONSIVE */
@media (max-width: 768px) {
  .nav-class-top {
    flex: 1 1 45%;
    padding: 8px;
    font-size: 0.9em;
    margin-top: 0;
    min-width: 120px;
  }

  .nav-class-top.special {
    animation: none;
    border: 2px solid #8ecae6;
  }
}

@media (max-width: 480px) {
  .nav-class-top {
    flex: 1 1 100%;
    font-size: 0.8em;
  }
}

/* Reproductor de Audio Compacto con Centrado Perfecto */
.audio-player {
  display: flex;
  align-items: center;
  background: rgba(10, 4, 40, 0.85);
  padding: 8px 15px;
  border-radius: 25px;
  gap: 10px;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;
  border: 1px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  height: 40px; /* Altura fija para consistencia */
}

.song-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center; /* Alineación vertical interna */
  height: 100%;
}

#songTitle {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.controls {
  display: flex;
  gap: 6px;
  height: 100%; /* Toma toda la altura */
  align-items: center; /* Centrado vertical */
}

.control-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  font-size: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative; /* Para ajuste fino */
  top: 0; /* Elimina cualquier desplazamiento */
}

/* Ajuste óptico del icono de play */
#playPauseBtnExp::before {
  content: "▶";
  position: relative;
  left: 1px; /* Compensa el desfase visual */
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100px;
  height: 100%; /* Toma toda la altura */
}

.volume-icon {
  color: var(--color-white);
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  align-items: center; /* Centrado vertical */
}

#volumeSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  position: relative;
  top: 0; /* Elimina desplazamiento vertical */
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Estado de reproducción */
.playing .control-btn {
  background: var(--color-cyan);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .audio-player {
    max-width: 100%;
    padding: 6px 12px;
    height: 38px;
  }
  
  #songTitle {
    font-size: 0.8rem;
  }
  
  .control-btn {
    width: 28px;
    height: 28px;
  }
  
  .volume-control {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .audio-player {
    gap: 8px;
    height: 36px;
  }
  
  .volume-icon {
    display: none;
  }
  
  #volumeSlider {
    width: 70px;
  }
  
  .control-btn {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
}


  /* ===== ESTILOS MEJORADOS ===== */
    .popupTask {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 85%;
      height: 85vh;
      max-width: 1100px;
      background: linear-gradient(135deg, #1a0933, #2d0b5e);
      display: flex;
      flex-direction: column;
      padding: 15px;
      border-radius: 16px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
      z-index: 2000;
      overflow: hidden;
    }
    
    .task-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 1;
      overflow: hidden;
    }
    
    /* CONTENIDO PRINCIPAL - 80% del espacio */
    .task-content-container {
      display: flex;
      flex-direction: column;
      height: 80%; /* Máximo espacio para consigna */
      gap: 10px;
    }
    
    .task-content {
      background: rgba(10, 4, 40, 0.85);
      border-radius: 12px;
      padding: 18px;
      color: #e6e6ff;
      line-height: 1.6;
      flex: 1;
      overflow-y: auto;
      box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
      font-size: 1.05rem;
      border: 1px solid rgba(100, 77, 237, 0.3);
    }
    
    /* ÁREA DE RESPUESTA COMPACTA */
    .task-response-container {
      height: auto; /* Altura automática */
    }
    
    .task-response {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    
    .response-controls {
      display: flex;
      gap: 10px;
    }
    
    #chat-task {
      flex: 1;
      min-height: 60px; /* Altura reducida */
      padding: 12px;
      border-radius: 12px;
      background: rgba(10, 4, 40, 0.9);
      color: #fff;
      border: 1px solid #5d43e6;
      resize: vertical;
      font-family: var(--font-main);
      font-size: 0.95rem; /* Tamaño de fuente reducido */
      line-height: 1.4;
    }
    
    /* BOTÓN MUCHO MÁS PEQUEÑO */
    .submit-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      background: linear-gradient(135deg, #6d4aff, #4329d6);
      color: white;
      border: none;
      padding: 8px 15px; /* Padding reducido */
      border-radius: 30px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.25s ease;
      height: 36px; /* Altura reducida (antes 48px) */
      align-self: flex-end;
      font-size: 0.9rem; /* Tamaño de fuente reducido */
    }
    
    .submit-btn:hover {
      background: linear-gradient(135deg, #7d5aff, #5339e6);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(93, 67, 230, 0.4);
    }
    
    .submit-btn svg {
      width: 16px; /* Icono más pequeño */
      height: 16px;
    }
    
    /* FEEDBACK COMPACTO */
    .feedback-system {
      background: rgba(10, 4, 40, 0.85);
      border-radius: 12px;
      padding: 12px;
      margin-top: 8px;
      border-left: 4px solid #5d43e6;
      min-height: 80px; /* Altura reducida */
      max-height: 80px;
      height: auto;
      overflow:auto;
    }
    
    /* HEADER MÁS COMPACTO */
    .task-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      margin-bottom: 12px;
    }
    
    .task-meta {
      display: flex;
      gap: 10px;
      font-size: 0.8rem; /* Tamaño reducido */
    }
    
    .task-meta span {
      background: rgba(93, 67, 230, 0.2);
      padding: 4px 8px;
      border-radius: 6px;
    }
    
    /* TIPS EN UNA SOLA LÍNEA */
    .task-tips {
      display: flex;
      gap: 15px;
      margin-top: 10px;
      font-size: 0.85rem; /* Tamaño reducido */
    }
    
    .tip {
      padding: 8px 12px;
      border-radius: 10px;
      white-space: nowrap; /* Evitar saltos de línea */
      background: rgba(93, 67, 230, 0.15);
    }
    
    /* BOTÓN DE CERRAR - NUEVO ESTILO */
    .close-btnt {
      position: absolute;
      top: 10px;
      right: -0px;
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      color: white;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3010; /* Por encima de todo */
      transition: all 0.2s ease;
    }
    
    .close-btn:hover {
      background: rgba(255, 0, 0, 0.3);
      transform: rotate(90deg);
    }
    
    /* RESPONSIVE */
    @media (max-width: 992px) {
      .popupTask {
        width: 92%;
        height: 88vh;
      }
      
      .task-content-container {
        height: 75%;
      }
    }
    
    @media (max-width: 768px) {
      .popupTask {
        width: 96%;
        left: 2%;
        padding: 12px;
      }
      
      .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      
      .response-controls {
        flex-direction: column;
      }
      
      .submit-btn {
        width: 100%;
      }
      
      .task-tips {
        flex-wrap: wrap;
      }
      
      .task-content-container {
        height: 65%;
      }
    }
    
    @media (max-width: 576px) {
      .popupTask {
        width: 98%;
        height: 94vh;
        left: 1%;
      }
      
      .task-content-container {
        height: 60%;
      }
      
      .task-content {
        padding: 15px 12px;
        font-size: 1rem;
      }
      
      .task-tips {
        flex-direction: column;
        gap: 8px;
      }
      
      .tip {
        width: 100%;
      }
    }