:root {
  --primary-color: #ff0044;
  --secondary-color: #f25c00;
  --tertiary-color: #27241d;
  --quaternary-color: #423d33;
  --quinary-color: #504a40;
  --senary-color: #625d52;
  --septenary-color: #e8e6e1;
  --octonary-color: #faf9f7;
  --nonary-color: #ffffff;
  --color-4: rgb(255, 146, 38);
  --color-5: rgb(20, 125, 254);
}

/* VIDEO */
.video-responsive {
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  padding-top: 30px;
  position: relative;
  box-shadow: 0 0 0.5rem #ffffffb7;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.document-responsive {
  background-color: #ddd;
  height: 200px;
  box-shadow: 0 0 0.5rem #ffffffb7;
}

.document-responsive iframe,
.document-responsive object,
.document-responsive embed {
  height: 100%;
  width: 100%;
}

/* offcanvas  */
.offcanvas-header {
  background-color: var(--primary-color);
  color: #eee;
}

.offcanvas-body {
  background: var(--tertiary-color) !important;
}

/* new style*/
/* *{
  font-family: 'Brush Script MT', cursive;
} */

*::selection {
  background-color: #111;
  color: #eee;
}

.input {
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 5px;
  width: 100%;
  padding: 5px;
  height: 40px;
  background-color: #fff;
}

.button-width {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.input:focus {
  outline: solid 3px var(--primary-color);
}

.integrant_list {
  background-color: var(--tertiary-color);
  display: block;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 0.5rem #000000b7;
}

#box_search {
  margin: 0;
  padding: 0;
  margin-top: 10px;
  list-style: none;
}

.i_title {
  color: #eee;
  text-align: center;
}

/* opciones de publicación */
.publication_header .p_menu {
  position: absolute;
  right: 15px;
}

.p_menu {
  list-style: none;
}

.options_deploy:hover,
.options_deploy:focus {
  box-shadow: 0 0 1rem var(--secondary-color) !important;
  outline: solid 2px var(--secondary-color) !important;
  color: var(--secondary-color);
}

.options {
  box-shadow: 0 0 1rem var(--secondary-color);
  outline: solid 2px var(--secondary-color);
  background-color: var(--tertiary-color);
  list-style: none;
  border-radius: 5%;
  position: absolute;
  top: 30px;
  right: -5px;
  overflow: visible;
  width: 165px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* .options:hover, .options:focus{
  box-shadow: 0 0 1rem var(--secondary-color);
  outline: solid 2px var(--secondary-color);
  background-color: var(--tertiary-color);
} */

.options_item {
  position: relative;
  left: -20px;
}

.options_item:hover,
.options_item:focus,
.options_item:active {
  color: var(--secondary-color) !important;
  box-shadow: none;
}

/* link */
a {
  text-decoration: none;
  color: #eee;
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

/* separador */
hr {
  color: #eee;
  margin: 2px;
  padding: 0;
}

/* botones */
.btn {
  box-shadow: none !important;
}

.btn-outline-danger,
.btn-outline-success {
  border: 2.5px solid;
}

.accordion-button {
  background-color: var(--primary-color) !important;
  color: #eee !important;
  font-size: 1.2em;
  font-weight: bold;
}

.accordion-button:focus {
  box-shadow: none;
}

.btn-outline-primary {
  border: 2.5px solid #eee;
  color: #eee;
}

.btn-outline-primary:hover {
  border: 2.5px solid #eee;
  background-color: var(--primary-color);
  color: #eee;
}

.remove_spacing {
  color: #eee;
  padding: 0;
  margin: 0;
}

.remove_spacing:hover {
  color: var(--secondary-color);
}

/* navbar */
.nav-link {
  color: var(--nonary-color) !important;
}

/* modal */
.modal-content {
  background: var(--tertiary-color);
}

.modal-header {
  color: #eee !important;
}

/* accordion */
.accordion-body {
  padding-bottom: 0;
}

/* form */
#registeruser {
  margin: 0;
  padding: 0;
}

/* publications */
.publication_header {
  width: 100%;
  height: 50px;
}

.publication_header .p_profile {
  position: absolute;
}

.publication_header .p_publicationdate {
  position: absolute;
  left: 75px;
  margin: auto;
}

.p_image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
}

.p_footer {
  width: 100%;
  height: 25px;
}

.p_footer>.p_like {
  position: absolute;
  right: 105px;
}

.p_footer>.p_comment {
  position: absolute;
  right: 25px;
}

.like_active {
  color: var(--primary-color);
}

.like_active:hover {
  color: var(--secondary-color);
}

.accordion-body {
  background-color: var(--tertiary-color);
}

/* comments */
.c_box {
  background: var(--quaternary-color);
  width: 100%;
}

#countLikes {
  padding: 0;
  margin: 0;
}

.c_options {
  height: 25px;
}

.c_options>.c_answer {
  position: absolute;
  right: 30px;
}

.c_options>.c_like {
  position: absolute;
  right: 115px;
}

/* answer */
.a_box {
  background: var(--quaternary-color);
  width: 100%;
}

.a_options>.a_answer {
  position: absolute;
  right: 50px;
}

.a_options>.a_like {
  position: absolute;
  right: 135px;
}

/* ------------------------------- surveys --------------------------------- */
.ps_button {
  width: 100%;
  color: #eee;
  margin: 5px 0 5px 0;
  outline: solid 2px #eee;
}

.ps_button:hover {
  width: 100%;
  color: var(--secondary-color);
  margin: 5px 0 5px 0;
  outline: solid 2px var(--secondary-color);
}

.psb_text {
  display: inline-block;
  width: 85%;
  text-align: left;
}

.psb_percentage {
  display: inline;
}

.sb_active {
  color: var(--primary-color);
  outline: solid 2px var(--primary-color);
}

.sb_active:hover {
  color: #eee;
  outline: solid 2px #eee;
}

/* opciones de survey */
.s_options {
  position: absolute;
  right: 18px;
  list-style: none;
  padding-top: 5px;
}

/* COMENTARIO */
.c_menu {
  position: absolute;
  right: 30px;
  list-style: none;
}

/* RESPUESTAS */
.a_menu {
  position: absolute;
  right: 51px;
  list-style: none;
}


/* ------------------------------- fondo ------------------------------- */
body {
  background: var(--quaternary-color);
}

/* ---------------------------------------------------------------------------- */

h1 {
  color: #eee;
}

/* encajar imágenes */
.portada {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0.5rem #000000b7;
  border-radius: 50px;
}

.portada>.imagen {
  position: absolute;
  min-height: 100%;
  min-width: 100%;
}

@supports(object-fit: cover) {
  .portada>.imagen {
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

.portada>.foto {
  border-radius: 200px;
  margin: auto;
  margin-top: 150px;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0.5rem #000000b7;
}

.foto {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.foto>.perfil {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.foto>a>.perfil {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* estilo minifotos */
.miniatura {
  height: 50px;
  width: 50px;
  border: 2px solid #fff;
  object-fit: cover;
}

.miniaturanavbar {
  height: 32px;
  width: 32px;
  border: 2px solid #fff;
  object-fit: cover;
}

.miniminiatura {
  height: 20px;
  width: 20px;
  border: 1px solid #fff;
  object-fit: cover;
}

/* table */
thead {
  background-color: var(--primary-color);
  color: #eee;
  font-weight: bold;
}

tbody {
  background-color: var(--quinary-color);
  color: #eee;
}

/* card */
.card-header {
  background-color: var(--primary-color);
  color: #eee;
  font-size: 1.2em;
  font-weight: bold;
}

.card-footer {
  background-color: var(--primary-color);
}

.card-footer>a {
  color: #eee;
}

.card {
  background-color: var(--tertiary-color);
  color: #eee;
  box-shadow: 0 0 0.5rem #000000b7;
}

.card-body>a>h5 {
  color: #eee;
}

.card-body>div>label {
  color: #000;
}

.card-body>div>form>div>label {
  color: #000;
}

/* ADAPTAR */
@media screen and (max-width: 767px) {
  #adapt_profile {
    display: none;
  }

  /* EXTERNO */
  .base_to_center {
    padding: 25px;
  }

  .adapt_computer {
    display: none;
  }

  .general_margins {
    margin: 25px 0;
  }

  .form_iframe {
    width: 100%;
    height: 3000px;
  }
}

@media screen and (min-width: 767px) {

  /* EXTERNO */
  .adapt_mobile {
    display: none;
  }

  .base_to_center {
    position: relative;
  }

  .center_object {
    width: 65%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -32.5% 0 0 -32.5%;
  }

  .general_margins {
    margin: 50px 0;
  }

  .extra_margins {
    margin: 10% auto;
  }

  .form_iframe {
    width: 100%;
    height: 2500px;
  }
}

/* EXTERNO */
.image_circle {
  border-radius: 100%;
  width: 90%;
  margin: auto;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0.5rem #ffffffb7;
  object-fit: cover;
}

.general_letter {
  color: #eee;
}

.menu_right {
  position: absolute;
  right: 15px;
}

.p_content {
  max-height: 150px;
  overflow: hidden;
}

/* PUBLICACIONES EXTERNAS */
.post_header {
  background-color: var(--primary-color);
  color: #eee;
  display: block;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 0.5rem #fff1d9;
}

.image_publication {
  object-fit: cover;
  max-height: 225px;
  width: 100%;
}

/*  MODULO */
.module {
  width: 100%;
  height: 200px;
}

@supports(object-fit: cover) {
  .module {
    object-fit: cover;
    object-position: center center;
  }
}

.text_justify {
  text-align: justify;
}

/* Questions Answers */
.customize-radio {
  display: none;
}

.customize-radio-label {
  display: block;
  padding: 5px;
  margin: 5px 0;
  border: solid 2px var(--color-5);
  color: var(--color-5) !important;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.customize-radio-label:hover,
.customize-radio-label-active {
  border: solid 2px var(--primary-color);
  color: var(--primary-color) !important;
  box-shadow: 0 0 10px var(--primary-color) !important;
}

/* Relate */
.customize-box-relate {
  /* display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  flex-direction: row; */
}

.customize-box-relate div {
  width: 100%;
  padding: 5px;
}

.customize-relate {
  width: 100%;
  margin: 0 0 10px 0;
  background-color: #222 !important;
  border: solid 2px var(--nonary-color);
  color: var(--nonary-color);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.customize-relate:hover,
.customize-relate-active {
  border: solid 2px var(--primary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 0 10px var(--primary-color) !important;
}

/* box */
.customize-box {
  display: none;
  box-sizing: border-box;
}

.customize-box-show {
  display: inherit;
  text-align: left;
}

/* customize */
.customize-hide {
  display: none;
}

.customize-show {
  display: inherit;
}

.customize-disabled,
.customize-disabled:hover {
  border: solid 2px var(--color-4) !important;
  color: var(--color-4) !important;
  box-shadow: none !important;
}

/* Whatsapp */
#advanceAttempts {
  height: 38.5px;
  width: 38.5px;
  text-align: center;
  position: fixed;
  bottom: 80px;
  right: 20px;
  padding: 6px;
  background-color: var(--primary-color);
  color: var(--nonary-color);
  border-radius: 50%;
  z-index: 1000;
  font-weight: 900;
  outline: solid 2px var(--nonary-color);
}

/* 
.whatsapp .enlace-fijo svg{
	position: absolute;
	top: -4.5px;
    left: -1px;
}

.whatsapp .enlace-fijo::before {
    content: "";
    position: absolute;
	top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: #ffffff80;
    border: 3px solid #70a919;
    animation: auraAnimation 1.5s linear infinite;
}

.whatsapp .enlace-fijo:hover{
    fill: #037C8F;
    outline: 2px solid #037C8F;
}

.whatsapp .enlace-fijo:hover::before{
    content: "";
    position: absolute;
	top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 3px solid #037C8F;
    animation: auraAnimation 1.5s linear infinite;
}

@keyframes auraAnimation {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.40);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

.personalize-textarea{
	height: 100px !important;
	resize: none;
} */

/* ----- New Designs ----- */
/* Recursos */
.hide-element {
  display: none;
}



/* ------------------------------------------------------------------------------------ */

/* ====== NAVBAR BASE ====== */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  background: var(--primary-color);
}

.navbar-container {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.nav-links,
.nav-actions {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
}

.nav-item.is-active>.nav-link {
  color: var(--quaternary-color);
}

.nav-item.is-active>.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

.nav-links a,
.nav-actions a,
.nav-actions .dropdown-toggle {
  text-decoration: none;
  font-weight: 600;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-user-label {
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--quaternary-color);
  transform: translateY(-1px);
}

.nav-actions a:hover,
.nav-actions a:focus {
  color: var(--quaternary-color);
}

.nav-actions .dropdown-toggle {
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-actions .dropdown-toggle:focus {
  color: var(--quaternary-color);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.nav-actions .dropdown-toggle:focus .avatar-wrapper {
  background: rgba(255, 255, 255, 0.16);
}

.navbar-toggle {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 8px 22px rgba(9, 16, 35, 0.18);
  cursor: pointer;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.navbar-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(9, 16, 35, 0.22);
}

.navbar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.navbar-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-color);
}

.navbar-toggle-label {
  display: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.dropdown-toggle {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 55px rgba(16, 27, 48, 0.18);
  backdrop-filter: blur(9px);
  z-index: 1200;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 35px;
  width: 18px;
  height: 18px;
  background: inherit;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
  z-index: -1;
}

.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -25px;
  width: 220px;
  height: 25px;
  z-index: -1;
}

.dropdown-menu li {
  margin: 0 0 10px 0;
}

.dropdown-menu a {
  display: block;
  padding: 11px 26px;
  color: var(--primary-color);
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--primary-color);
  color: #fff;
}

.dropdown-menu li+li a {
  border-top: 1px solid rgba(9, 16, 35, 0.08);
}

.dropdown-caret {
  display: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 12px;
}

.dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown.is-open .dropdown-caret {
  transform: rotate(-135deg);
}

@media screen and (min-width: 992px) {
  .nav-actions .dropdown:hover .dropdown-menu {
    display: block;
  }

  .nav-actions .dropdown:hover .dropdown-caret {
    transform: rotate(-135deg);
  }

  .nav-actions .dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .nav-actions .dropdown:focus-within .dropdown-caret {
    transform: rotate(-135deg);
  }
}

.navbar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 16, 35, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1040;
}

.navbar-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.navbar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 86vw);
  background: var(--quaternary-color);
  color: #ffffff;
  display: none;
  flex-direction: column;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -12px 0 40px rgba(9, 16, 35, 0.14);
  z-index: 1100;
}

.navbar-drawer.is-open {
  transform: translateX(0);
}

.navbar-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  color: #fff;
}

.navbar-drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.navbar-drawer-brand .logo {
  height: 48px;
}

.navbar-close {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.navbar-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(4deg);
}

.navbar-close-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 99px;
}

.navbar-close-bar:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar-close-bar:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.navbar-drawer-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.24);
  margin: 22px 0;
}

.nav-links-mobile,
.nav-actions-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.navbar-drawer .nav-links li,
.navbar-drawer .nav-actions li {
  width: 100%;
}

.navbar-drawer .nav-links a,
.navbar-drawer .nav-actions a,
.navbar-drawer .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.navbar-drawer .nav-links a:hover,
.navbar-drawer .nav-links a:focus,
.navbar-drawer .nav-actions a:hover,
.navbar-drawer .nav-actions a:focus {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.navbar-drawer .dropdown-toggle:focus {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.navbar-drawer .dropdown-toggle {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-align: left;
}

.navbar-drawer .dropdown.is-open .dropdown-toggle {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.navbar-drawer .avatar {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.navbar-drawer .dropdown-menu {
  position: static;
  display: none;
  margin-top: 10px;
  border: 1px solid rgba(9, 16, 35, 0.08);
  border-radius: 14px;
  background: rgba(9, 16, 35, 0.04);
  box-shadow: none;
  padding: 10px 0;
}

.navbar-drawer .dropdown-menu::before {
  display: none;
}

.navbar-drawer .dropdown.is-open .dropdown-menu {
  display: block;
}

.navbar-drawer .dropdown-menu a {
  padding: 10px 18px;
}

body.navbar-open {
  overflow: hidden;
}

/* ====== SCROLLED ====== */
.navbar.scrolled {
  position: fixed;
  background: var(--nonary-color);
  color: var(--primary-color);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-actions a,
.navbar.scrolled .nav-actions .dropdown-toggle {
  color: var(--primary-color) !important;
}

.navbar.scrolled .nav-links a:hover {
  color: #ff0040;
}

.navbar.scrolled .navbar-toggle {
  background: rgba(9, 16, 35, 0.08);
  box-shadow: 0 8px 20px rgba(9, 16, 35, 0.16);
  color: var(--primary-color);
}

.navbar.scrolled .navbar-toggle-icon {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-color);
}

.navbar.scrolled .avatar {
  border-color: rgba(9, 16, 35, 0.12);
  box-shadow: 0 6px 16px rgba(9, 16, 35, 0.18);
}

@media screen and (max-width: 991px) {

  .nav-links-desktop,
  .nav-actions-desktop {
    display: none;
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-drawer {
    display: flex;
  }

  .nav-links-mobile,
  .nav-actions-mobile {
    display: flex;
  }

  .navbar-toggle-label {
    display: inline;
  }

  .dropdown-caret {
    display: inline-flex;
  }

  .navbar {
    padding: 0 16px;
  }

  .navbar-container {
    padding: 12px 0;
  }

  .nav-actions-mobile .navbar-user-label {
    display: inline-flex;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {

  .navbar,
  .logo,
  .nav-links a,
  .nav-actions a,
  .nav-actions .dropdown-toggle,
  .avatar,
  .navbar-toggle,
  .navbar-overlay,
  .navbar-drawer {
    transition: none !important;
  }
}

/* ====== Topics ====== */
.delete-btn {
  position: absolute;
  right: 14px;
  margin-top: 5px;
  background: var(--primary-color);
  color: var(--nonary-color);
  border-radius: 5px;
  border: none;
}

.delete-btn:hover {
  color: var(--primary-color);
  background: var(--nonary-color);
}

/*  */
.difficulties {
  position: absolute;
  right: 15px;
  margin-top: 10px;
  background: var(--primary-color);
  color: var(--nonary-color);
  border-radius: 5px;
  border: none;
  width: 20px;
  height: 20px;
}

[contenteditable]:empty:before {
  content: attr(placeholder);
  color: #888;
  pointer-events: none;
  display: block;
}

/* */
/* Fondo oscuro */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Imagen en el centro */
#overlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 20px #000;
  cursor: pointer;
}

/* Barra de Progreso */
.progress-container {
  width: 100%;
  height: 25px;
  background-color: #ddd;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.4s ease;
  color: white;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

/* Module path */
.module-path-wrapper {
  border: none;
  background: none;
  color: #e2e8f0;
  box-shadow: none;
}

.module-path-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--primary-color);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.module-path-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(148, 163, 184, 0.12);
}

.module-path-description {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.95rem;
}

.module-path-empty {
  margin: 1.5rem 0 0;
  text-align: center;
  color: rgba(226, 232, 240, 0.7);
  font-style: italic;
}

.module-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
}

.module-path::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 6px;
  background: rgba(94, 106, 138, 0.35);
  border-radius: 999px;
}

.module-path-step {
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.module-path-left {
  justify-content: flex-start;
  padding-right: 46%;
}

.module-path-right {
  justify-content: flex-end;
  padding-left: 46%;
}

.module-path-step:first-child::before,
.module-path-step:last-of-type::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 30px;
}

.module-path-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: 28px;
  padding: 1.25rem 1.5rem;
  max-width: 280px;
  border: 2px solid rgba(226, 232, 240, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  text-align: center;
  background: rgba(30, 41, 59, 0.85);
  color: inherit;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.45);
}

.module-path-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 55px rgba(46, 68, 140, 0.55);
  border-color: rgba(148, 163, 184, 0.4);
}

.module-path-card.module-path-node-locked {
  cursor: default;
  opacity: 0.75;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.module-path-card.module-path-node-locked:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  border-color: rgba(148, 163, 184, 0.1);
}

.module-path-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.45), rgba(129, 140, 248, 0.2));
  position: relative;
  box-shadow: inset 0 6px 14px rgba(148, 163, 184, 0.18);
}

.module-path-node-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.module-path-node-status {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  bottom: -14px;
  right: -14px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.6);
}

.module-path-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.module-path-order {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.85);
}

.module-path-card.module-path-node-completed {
  background: linear-gradient(150deg, rgba(34, 211, 149, 0.28), rgba(16, 185, 129, 0.18));
  border-color: rgba(45, 212, 191, 0.45);
  color: #ecfdf5;
}

.module-path-card.module-path-node-completed .module-path-node {
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.85), rgba(34, 197, 94, 0.65));
  border-color: rgba(134, 239, 172, 0.45);
}

.module-path-card.module-path-node-completed .module-path-node-status {
  background: #16a34a;
  color: #ecfdf5;
}

.module-path-card.module-path-node-current {
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.35), rgba(129, 140, 248, 0.22));
  border-color: rgba(96, 165, 250, 0.45);
  color: #e2e8f0;
}

.module-path-card.module-path-node-current .module-path-node {
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.9), rgba(59, 130, 246, 0.65));
  border-color: rgba(191, 219, 254, 0.4);
}

.module-path-card.module-path-node-current .module-path-node-status {
  background: #2563eb;
  color: #eff6ff;
}

.module-path-card.module-path-node-available {
  background: linear-gradient(150deg, rgba(250, 204, 21, 0.28), rgba(251, 191, 36, 0.18));
  border-color: rgba(250, 204, 21, 0.45);
  color: #fef3c7;
}

.module-path-card.module-path-node-available .module-path-node {
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.85), rgba(245, 158, 11, 0.65));
  border-color: rgba(253, 224, 71, 0.45);
}

.module-path-card.module-path-node-available .module-path-node-status {
  background: #f59e0b;
  color: #0f172a;
}

.module-path-card.module-path-node-locked {
  background: linear-gradient(150deg, rgba(21, 30, 46, 0.9), rgba(30, 41, 59, 0.85));
  border-color: rgba(148, 163, 184, 0.1);
  color: rgba(148, 163, 184, 0.9);
  cursor: default;
}

.module-path-card:focus {
  outline: none;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.3), 0 28px 55px rgba(46, 68, 140, 0.55);
}

.module-path-card.module-path-node-locked .module-path-node {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.75));
  border-color: rgba(71, 85, 105, 0.35);
}

.module-path-card.module-path-node-locked .module-path-node-status {
  background: #475569;
  color: #0f172a;
}

.module-path-connector {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.module-path-connector::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.75), rgba(59, 130, 246, 0.15));
}

.module-path-connector-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.2);
  z-index: 2;
}

.module-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1090;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.module-modal-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.module-modal-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.module-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 32, 0.7);
  backdrop-filter: blur(4px);
}

.module-modal-dialog {
  position: relative;
  width: min(90%, 540px);
  /* border-radius: 24px; */
  background: var(--tertiary-color);
  color: #e2e8f0;
  /* border: 1px solid rgba(148, 163, 184, 0.25); */
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.module-modal-dialog-xl {
  width: 100vw;
  height: 100vh;
}

.module-modal-header,
.module-modal-footer {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tertiary-color);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.module-modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: none;
  gap: 1rem;
  justify-content: flex-end;
}

.module-modal-body {
  /* padding: 1.5rem 1.75rem; */
  overflow-y: auto;
  overflow-x: hidden;
  /* 
  max-height: 100vh; */
}

.module-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.module-modal-close {
  border: none;
  background: none;
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.3rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.module-modal-close:hover {
  color: #f8fafc;
  transform: scale(1.1);
}

.module-modal-badge {
  margin-bottom: 1rem;
}

.module-modal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--primary-color);
  color: #e8f1ff;
  box-shadow: 0 0 5px var(--primary-color);
}

.module-modal-heading {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.module-modal-text {
  color: rgba(226, 232, 240, 0.85);
  margin: 0;
  line-height: 1.6;
}

.module-modal-button {
  border-radius: 999px;
  padding: 0.55rem 1.6rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.module-modal-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.35);
}

.module-modal-button-primary {
  background: var(--primary-color);
  color: #f8fafc;
  border-color: var(--secondary-color);
}

.module-modal-button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px var(--secondary-color);
}

.module-modal-button-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.9);
}

.module-modal-button-secondary:hover {
  border-color: rgba(226, 232, 240, 0.7);
  background: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.module-topics-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  z-index: 1080;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.module-topics-panel-visible {
  opacity: 1;
  pointer-events: auto;
}

.module-topics-panel-backdrop {
  flex: 1;
  background: rgba(8, 15, 32, 0.6);
  backdrop-filter: blur(3px);
}

.module-topics-panel-dialog {
  width: min(90%, 320px);
  max-width: 360px;
  background: var(--tertiary-color);
  color: #e2e8f0;
  padding: 1.25rem;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.55);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.module-topics-panel-visible .module-topics-panel-dialog {
  transform: translateX(0);
}

.module-topics-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.module-topics-panel-close {
  border: none;
  background: none;
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.module-topics-panel-close:hover {
  color: #f8fafc;
  transform: scale(1.08);
}

.module-topics-panel-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.module-topics-panel-body a {
  display: block;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  transition: color 0.2s ease, transform 0.2s ease;
}

.module-topics-panel-body a:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

.module-topics-empty {
  margin: 0;
  color: rgba(226, 232, 240, 0.65);
  font-style: italic;
}

body.module-modal-open,
body.module-topics-open {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 992px) {

  .module-path-left,
  .module-path-right {
    padding: 0;
    justify-content: center;
  }

  .module-path::before {
    left: 50%;
  }
}

@media (max-width: 576px) {
  .module-path-card {
    max-width: 90%;
  }

  .module-path-node {
    width: 80px;
    height: 80px;
  }

  .module-path-node-status {
    width: 30px;
    height: 30px;
    bottom: -12px;
    right: -12px;
    font-size: 0.95rem;
  }

  .module-modal-dialog {
    width: 100%;
  }

  .module-modal-body {
    /* padding: 1.25rem; */
  }

  .module-topics-panel-dialog {
    width: 100%;
    max-width: none;
  }
}