/*!
 * Ortofix - Capacitación Médica
 * Tema personalizado basado en Chamilo Default v.2.0
 * Paleta: teal médico #0d7d8c, azul profundo #085a66, verde #2e9b8e
 */

html {
  position: relative;
}
body {
  margin: 0 0 60px;
}
body > main footer.footer {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
}

a {
  color: #0d7d8c;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #085a66;
  text-decoration: none;
}
a:focus {
  outline: none;
}

.navbar-nav > li{
  margin-bottom: 0;
}
.navbar-collapse{
  overflow: hidden !important;
}
.navbar-default {
  background: #0d7d8c;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:hover {
  color: #c8e6e9;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus{
  color: #fff;
  background-color: #085a66;
}
.navbar-default .navbar-nav > li > a{
  color: #ffffff;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus{
  background: #054550;
  color: #ffffff;
}
.navbar-nav > li > .dropdown-menu{
  min-width: 100%;
  margin-top: 2px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
}
.navbar-default .navbar-nav > .open > .dropdown-menu{
  padding: 3px 4px;
}
.navbar-default .navbar-nav > .open > .dropdown-menu > li > a{
  padding: 6px 9px;
}
.nav > li > a:hover, .nav > li > a:focus{
   background-color: transparent;
}
.navbar-form .form-control{
  height: 25px;
  padding: 6px;
}
.navbar-default .navbar-brand {
  color: white;
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form{
  border-color: #085a66;
}

.navbar-default .navbar-toggle{
  border-color: #054550;
}
.navbar-default .navbar-toggle .icon-bar{
  background-color: #ffffff;
}
.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover{
  background-color: #085a66;
}
.badge-warning{
  background-color: #e67e22;
}
.breadcrumb{
  padding: 8px 15px;
  margin-bottom: 21px;
  list-style: outside none none;
  background-color: #eaf4f5;
}
.breadcrumb > .active{
  color: #5a7a80;
}
.panel-default{
  border-color: #eaf4f5;
}
/* Botones primarios */
.btn-primary {
  background-color: #0d7d8c;
  border-color: #0b6a77;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #085a66;
  border-color: #054550;
}
.btn-success {
  background-color: #2e9b8e;
  border-color: #278a7e;
}
.btn-success:hover,
.btn-success:focus {
  background-color: #247a6f;
  border-color: #1d635a;
}
/* Panel heading */
.panel-primary > .panel-heading {
  background-color: #0d7d8c;
  border-color: #0d7d8c;
}
/* Etiquetas */
.label-primary {
  background-color: #0d7d8c;
}
.label-success {
  background-color: #2e9b8e;
}
/* Enlaces de paginación */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  background-color: #0d7d8c;
  border-color: #0d7d8c;
}
/* Jquery UI */
.ui-accordion .ui-accordion-icons{
  padding-left: 0.2em;
}
/* End Jquery UI */
.bgfooter{
  background-color: #05363d;
}
.bgfooter{
  color: #ffffff;
}
.bgfooter a{
  color: #c8e6e9;
}
/* Logo header */
#header-logo {
  max-height: 50px;
}
/* Títulos de curso en catálogo */
.course-item .panel-heading {
  background-color: #eaf4f5;
  border-color: #d0e6e9;
}
/* Banner de login */
.section-login .panel-primary > .panel-heading {
  background-color: #0d7d8c;
  border-color: #0d7d8c;
}

/* ==============================================
   ORTOFIX LOGIN - Diseño de última generación
   ============================================== */

/* Wrapper principal del login */
.ortofix-login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* Card del login con glassmorphism */
.ortofix-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(5, 54, 61, 0.25),
              0 4px 20px rgba(13, 125, 140, 0.15);
  padding: 36px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

/* Brillo decorativo superior */
.ortofix-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0d7d8c 0%, #2e9b8e 50%, #0d7d8c 100%);
}

/* Header del card */
.ortofix-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.ortofix-login-logo {
  max-width: 180px;
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

.ortofix-login-title {
  font-size: 22px;
  font-weight: 700;
  color: #05363d;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.ortofix-login-subtitle {
  font-size: 13px;
  color: #5a7a80;
  margin: 0;
  font-weight: 500;
}

/* Grupos de input */
.ortofix-input-group {
  position: relative;
  margin-bottom: 16px;
}

.ortofix-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0d7d8c;
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}

.ortofix-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  font-size: 15px;
  color: #05363d;
  background: #f7fbfc;
  border: 2px solid #e0eaec;
  border-radius: 12px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.ortofix-input:focus {
  border-color: #0d7d8c;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 125, 140, 0.12);
}

.ortofix-input::placeholder {
  color: #9ab4ba;
}

/* Toggle de password */
.ortofix-pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ab4ba;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: color 0.2s;
}

.ortofix-pwd-toggle:hover {
  color: #0d7d8c;
}

/* Botón primario (Entrar) */
.ortofix-btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0d7d8c 0%, #085a66 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(13, 125, 140, 0.35);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ortofix-btn-primary:hover {
  background: linear-gradient(135deg, #085a66 0%, #05363d 100%);
  box-shadow: 0 6px 20px rgba(13, 125, 140, 0.5);
  transform: translateY(-1px);
}

.ortofix-btn-primary:active {
  transform: translateY(0);
}

/* Botón de registro */
.ortofix-btn-register {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  color: #2e9b8e;
  background: transparent;
  border: 2px solid #2e9b8e;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.ortofix-btn-register:hover {
  background: #2e9b8e;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Links inferiores */
.ortofix-login-links {
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eaf4f5;
}

.ortofix-link-forgot {
  font-size: 13px;
  color: #5a7a80;
  text-decoration: none;
  transition: color 0.2s;
}

.ortofix-link-forgot:hover {
  color: #0d7d8c;
  text-decoration: none;
}

/* Selector de idioma */
.ortofix-login-card .form-group {
  margin-bottom: 12px;
}

.ortofix-login-card select.form-control {
  border-radius: 10px;
  border: 2px solid #e0eaec;
  padding: 8px 12px;
  font-size: 13px;
  color: #5a7a80;
  background: #f7fbfc;
}

/* Mensaje de error de login */
.ortofix-login-card .alert-warning,
.ortofix-login-card .alert-danger {
  border-radius: 10px;
  border: none;
  background: #fff4f4;
  color: #c0392b;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* === HERO SECTION para home no-logueada === */
.ortofix-hero {
  display: none;
}

.section-login .ortofix-hero {
  display: block;
  background: linear-gradient(135deg, #05363d 0%, #0d7d8c 50%, #085a66 100%);
  border-radius: 20px;
  padding: 48px 40px;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.section-login .ortofix-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 155, 142, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.section-login .ortofix-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13, 125, 140, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.section-login .ortofix-hero-content {
  position: relative;
  z-index: 1;
}

.section-login .ortofix-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-login .ortofix-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-login .ortofix-hero p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
  max-width: 600px;
}

.section-login .ortofix-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.section-login .ortofix-hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-login .ortofix-hero-feature i {
  font-size: 18px;
  color: #2e9b8e;
}

/* === Responsive === */
@media (max-width: 991px) {
  .ortofix-login-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .section-login .ortofix-hero {
    padding: 32px 24px;
  }

  .section-login .ortofix-hero h1 {
    font-size: 26px;
  }

  .section-login .ortofix-hero-features {
    gap: 8px;
  }

  .section-login .ortofix-hero-feature {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .ortofix-login-card {
    padding: 28px 22px 22px;
    border-radius: 16px;
  }

  .ortofix-login-logo {
    max-width: 140px;
  }

  .ortofix-login-title {
    font-size: 20px;
  }

  .section-login .ortofix-hero {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .section-login .ortofix-hero h1 {
    font-size: 22px;
  }

  .section-login .ortofix-hero p {
    font-size: 14px;
  }

  .section-login .ortofix-hero-features {
    flex-direction: column;
  }

  .ortofix-input {
    font-size: 16px; /* evita zoom en iOS */
  }
}

@media (max-width: 480px) {
  .ortofix-login-card {
    padding: 24px 18px 20px;
    border-radius: 14px;
  }

  .ortofix-btn-primary,
  .ortofix-btn-register {
    padding: 12px;
    font-size: 15px;
  }
}
/* === Selector de idioma integrado en login card === */
.ortofix-login-card .btn-group {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.ortofix-login-card .btn-group .btn-default {
  background: #f7fbfc;
  border: 2px solid #e0eaec;
  border-radius: 10px;
  font-size: 12px;
  color: #5a7a80;
  padding: 6px 14px;
  transition: all 0.2s;
}

.ortofix-login-card .btn-group .btn-default:hover,
.ortofix-login-card .btn-group .btn-default:focus {
  border-color: #0d7d8c;
  color: #0d7d8c;
}

.ortofix-login-card .btn-group .dropdown-menu {
  border-radius: 10px;
  border: 1px solid #e0eaec;
  box-shadow: 0 6px 20px rgba(5, 54, 61, 0.15);
  min-width: 160px;
}

.ortofix-login-card .btn-group .dropdown-menu li a {
  padding: 8px 14px;
  font-size: 13px;
  color: #5a7a80;
  transition: all 0.15s;
}

.ortofix-login-card .btn-group .dropdown-menu li a:hover {
  background: #eaf4f5;
  color: #0d7d8c;
}

/* === Ajuste sidebar login en home === */
.section-login .sidebar .ortofix-login-wrap {
  padding: 4px 0;
}

/* En desktop, el login card ya tiene max-width 420px pero el sidebar es col-md-3 */
/* Hacer que el login use todo el ancho disponible del sidebar */
.section-login .col-md-3 .ortofix-login-card {
  max-width: 100%;
}

/* === Animación de entrada del card === */
@keyframes ortofixFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ortofix-login-card {
  animation: ortofixFadeInUp 0.5s ease-out;
}

@keyframes ortofixHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-login .ortofix-hero {
  animation: ortofixHeroFadeIn 0.6s ease-out 0.1s both;
}

/* === Focus visible accesible === */
.ortofix-btn-primary:focus-visible,
.ortofix-btn-register:focus-visible,
.ortofix-input:focus-visible {
  outline: 3px solid rgba(46, 155, 142, 0.5);
  outline-offset: 2px;
}

/* === Scrollbar styling para dropdown de idioma largo === */
.ortofix-login-card .dropdown-menu {
  max-height: 280px;
  overflow-y: auto;
}

.ortofix-login-card .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.ortofix-login-card .dropdown-menu::-webkit-scrollbar-track {
  background: #f0f4f5;
  border-radius: 3px;
}

.ortofix-login-card .dropdown-menu::-webkit-scrollbar-thumb {
  background: #0d7d8c;
  border-radius: 3px;
}

/* === Ocultar selector de idioma (solo español activo) === */
.ortofix-login-card .btn-group {
  display: none !important;
}
