
/* GENERAL STYLES */
.btn {
    box-shadow: none !important;
}

/* PAGE INDEX */
#page-site-index {
  #page {
    padding: 0;
    .rui-hero {
      border-radius: 0;
    }
  }
}


/* LOGO TOP BAR */
.rui-topbar-logo {
  position: relative;
  justify-content: flex-start;
  width: auto;
  max-width: 200px;
  height: auto;
  img {
    width: auto;
    max-width: 200px;
    object-fit: contain;
  }
}

/* NO LOGIN */

body.notloggedin {

  /* MENU TOP BAR */
  .rui-topbarlogo-wrapper {
    width: calc(100% - 140px);
  }
  nav.moremenu.observed {
    width: calc(100% - 140px) !important;
  }
  .rui-icon-menu {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    .rui-login-btn {
      height: 40px;
    }
  }


}


/* my/courses.php */
body#page-my-index {
  &.page-mycourses {
    .rui-breadcrumbs,
    .rui-topbar-title {
      display: none !important;
    }
    /* Vista general de cursos */
    section.block_myoverview {
      #instance-5-header,
      div[data-region="filter"]{
        display: none !important;
      }
      .rui-course-card-deck {
        display: flex;
        align-items: center;
      }
      .rui-course-card {
        width: 100%;
        .rui-coursemenu-btn {
          display: none !important;
        }
      }
    }
  }
}

/* PAGE CURSO */

body.path-course.path-course-view {
  &.role-student {
    .rui-breadcrumbs,
    .secondary-navigation {
      display: none !important;
    }
  }
}

/* FOOTER*/
#s-page-footer{
  .rui-footer-logotypes-grid {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    .rui-footer-logotype-item-wrapper {
      flex-direction: column-reverse;
    }
  }
}

 /* Estilos del Botón Flotante cookies*/
.cookie-float {
    position: fixed !important;
    bottom: 20px;
    right: 20px; /* Cambiar a 'right' si se prefiere en el otro lado */
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: #2b3035; /* Color oscuro tipo Bootstrap */
    color: white;
    padding: 12px 13px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    overflow: hidden;
    max-width: 50px; /* Estado inicial: solo icono */
    white-space: nowrap;
    /* border: 2px solid transparent; */
    i {
        font-size: 1.5rem;
        min-width: 24px;
        display: flex;
        justify-content: center;
    }
    .cookie-text {
        opacity: 0;
        margin-left: 0;
        font-weight: 500;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    &:hover {
        max-width: 220px; /* Se expande para mostrar el texto */
        padding-right: 20px;
        background-color: #495057;
        /* border-color: white; */ /* Toque de color al borde */
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        .cookie-text {
            opacity: 1;
            margin-left: 10px;
        }
    }
}


/* page-local */
body#page-local-staticpage-view {
  .rui-breadcrumbs,
  .rui-topbar-title {
    display: none !important;
  }
}


/* PAGE RIGISTRO */

.form-control, .comment-area textarea, .usp-search-field, .path-mod-assign [data-region="grade-panel"] .comment-area textarea[cols], .form-select {
    box-shadow: none !important;
}
#page-login-signup {
  /* Acuerdo con las Condiciones del Sitio */
  .rui-ftoggler .ftoggler {
    background: transparent;
    border: var(--bs-border-width) solid var(--bs-border-color);
    padding: 4px 0px 4px 8px;
    h3 {
      font-size: var(--bs-font-size-xs);
      font-weight: var(--bs-font-weight-bold);
    }
  }
  .rui-login-layout--1 {
    .rui-login-box {
        width: 100%;
        max-width: 830px;
    }
  }
  @media (min-width: 992px) {
      .rui-login-box .rui-login-content {
          width: 600px;
      }
  }
  .btn--cookie {display: none !important;}
}

/* PAGE LOGIN*/
#page-login-index {
  .rui-login-layout--1 {
    .rui-login-box {
        max-width: 600px;
        .rui-login-content {
        width: 430px;
      }
    }
  }
  .btn--cookie {display: none !important;}
}