/* Custom Styles for Plataforma de Cursos con Landrick */
:root {
  --brand-primary: #2f55d4;
  --brand-gradient: linear-gradient(135deg, #2f55d4 0%, #173b9e 100%);
  --brand-dark: #161c2d;
}

/* Ensure topnav works gracefully with internal pages */
#topnav {
  background-color: #ffffff;
  box-shadow: 0 0 3px rgba(60, 72, 88, 0.15);
}

#topnav.nav-sticky {
  background-color: #ffffff !important;
}

#topnav .navigation-menu > li {
  margin: 0 0px;
}

#topnav .navigation-menu > li > a {
  text-transform: none;
}

/* Color universal para placeholders de campos de formulario */
::placeholder {
  color: #999999 !important;
  opacity: 1;
}

::-webkit-input-placeholder {
  color: #999999 !important;
}

:-moz-placeholder {
  color: #999999 !important;
  opacity: 1;
}

::-moz-placeholder {
  color: #999999 !important;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #999999 !important;
}

.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
  color: #999999 !important;
  opacity: 1;
}

body {
  padding-top: 74px;
}

body.maintenance-page {
  padding-top: 0 !important;
}

/* Banner de Modo Mantenimiento en Frontend */
body.has-maintenance-bar {
  padding-top: 114px !important;
}

body.has-maintenance-bar .maintenance-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  min-height: 40px;
}

body.has-maintenance-bar #topnav {
  top: 40px;
}

@media (max-width: 768px) {
  body.has-maintenance-bar {
    padding-top: 0 !important;
  }
  body.has-maintenance-bar .maintenance-bar {
    position: relative;
    top: auto;
  }
  body.has-maintenance-bar #topnav {
    position: relative;
    top: auto;
  }
}

/* Hero & Section banners */
.bg-course-hero {
  background: linear-gradient(135deg, rgba(22, 28, 45, 0.92) 0%, rgba(47, 85, 212, 0.88) 100%), url('/assets/images/course/bg01.jpg') center center;
  background-size: cover;
  position: relative;
}

.bg-course-detail {
  background: linear-gradient(135deg, rgba(22, 28, 45, 0.94) 0%, rgba(30, 41, 59, 0.92) 100%), url('/assets/images/course/bg05.jpg') center center;
  background-size: cover;
  position: relative;
}

/* Course card styling */
.course-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 10px;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(47, 85, 212, 0.15) !important;
}

.course-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.course-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.course-badge-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Feature icon box */
.feature-box-icon {
  width: 54px;
  height: 54px;
  line-height: 54px;
  border-radius: 12px;
  background: rgba(47, 85, 212, 0.1);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-box:hover .feature-box-icon {
  background: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Classroom Video & Lesson styles */
.classroom-video-container {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.lesson-nav-item.active {
  background-color: rgba(47, 85, 212, 0.1);
  color: var(--brand-primary);
  font-weight: 600;
  border-left: 3px solid var(--brand-primary);
}

/* Bold payment badges - Colores e icono oficial de Bold */
.bold-badge-container {
  background: linear-gradient(135deg, #ffffff 0%, #fdf6f8 45%, #f5f6fc 100%);
  border: 1px solid #ebdbe3;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(16, 17, 59, 0.04);
}

.bold-tag {
  background: linear-gradient(135deg, #FF1E56 0%, #7E1856 50%, #10113B 100%);
  color: #ffffff !important;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 17, 59, 0.22), 0 1px 3px rgba(255, 30, 86, 0.28);
  text-transform: uppercase;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
  vertical-align: middle;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bold-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 17, 59, 0.3), 0 2px 6px rgba(255, 30, 86, 0.38);
}

.bold-tag::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 10.5C3 6.3 6.8 3 12 3s9 3.3 9.5 7.5H2.5z' fill='%23ffffff'/%3E%3Cpath d='M2.5 13.5H21.5C21 17.7 17.2 21 12 21s-9-3.3-9.5-7.5z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.text-bold-brand {
  background: linear-gradient(90deg, #10113B 0%, #7E1856 50%, #FF1E56 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Payment Badges & Methods */
.badge-pay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.badge-pay-pse {
  background: #003865;
  color: #ffffff !important;
}

.badge-pay-visa {
  background: #1A1F71;
  color: #ffffff !important;
}

.badge-pay-mastercard {
  background: #252525;
  color: #ffffff !important;
}

.badge-pay-amex {
  background: #0077A6;
  color: #ffffff !important;
}

.badge-pay-nequi {
  background: #1F022A;
  color: #ffffff !important;
}

.badge-pay-daviplata {
  background: #ED1C24;
  color: #ffffff !important;
}

.badge-pay-llave {
  background: #0d6efd;
  color: #ffffff !important;
}

.badge-pay-paypal {
  background: #003087;
  color: #ffffff !important;
  border: 1px solid rgba(0, 195, 248, 0.4);
  box-shadow: 0 1px 3px rgba(0, 48, 135, 0.25);
}
.badge-pay-paypal .pp-p1 {
  color: #ffffff;
  font-weight: 800;
}
.badge-pay-paypal .pp-p2 {
  color: #00C3F8;
  font-weight: 800;
}

.badge-pay-dolarapp {
  background: #000000;
  color: #ffffff !important;
  border: 1px solid #00D563;
  box-shadow: 0 1px 4px rgba(0, 213, 99, 0.25);
}
.badge-pay-dolarapp .da-dolar {
  color: #ffffff;
  font-weight: 800;
}
.badge-pay-dolarapp .da-app {
  color: #00D563;
  font-weight: 800;
}

/* Branded Payment Action Buttons */
.btn-paypal {
  background: #FFC439 !important;
  color: #003087 !important;
  border: 1.5px solid #E0AB26 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(255, 196, 57, 0.25);
  transition: all 0.2s ease;
}
.btn-paypal:hover, .btn-paypal:focus {
  background: #f5b927 !important;
  color: #002266 !important;
  border-color: #c99312 !important;
  box-shadow: 0 4px 14px rgba(255, 196, 57, 0.45);
  transform: translateY(-1px);
}

.btn-dolarapp {
  background: #000000 !important;
  color: #00D563 !important;
  border: 1.5px solid #00D563 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 213, 99, 0.2);
  transition: all 0.2s ease;
}
.btn-dolarapp:hover, .btn-dolarapp:focus {
  background: #0e141f !important;
  color: #38ff98 !important;
  border-color: #38ff98 !important;
  box-shadow: 0 4px 14px rgba(0, 213, 99, 0.35);
  transform: translateY(-1px);
}

.pay-number-highlight {
  background: #ffffff;
  border: 1.5px dashed #FF1E56;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  color: #10113B;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(255, 30, 86, 0.08);
}

/* Honey pot hidden field for spam protection */
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* ==========================================================================
   Mobile Header & Responsive Navigation Overrides
   ========================================================================== */

/* Desktop Header Alignment */
@media (min-width: 992px) {
  #topnav .header-action-wrap {
    float: right;
    height: 74px;
    display: flex;
    align-items: center;
  }

  #topnav .header-action-wrap .buy-button {
    float: none !important;
    line-height: normal !important;
  }

  #topnav .header-action-wrap .menu-extras {
    display: none !important;
  }

  .nav-mobile-auth {
    display: none !important;
  }
}

/* Mobile & Tablet Header (<= 991px) */
@media (max-width: 991px) {
  #topnav {
    min-height: 70px;
    background-color: #ffffff !important;
  }

  #topnav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 70px;
    padding-left: 16px !important;
    padding-right: 16px !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
  }

  #topnav .logo {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    height: auto !important;
    max-width: calc(100% - 150px);
  }

  #topnav .logo span {
    font-size: 1.1rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #topnav .header-action-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    margin-left: auto;
  }

  #topnav .buy-button {
    float: none !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  #topnav .buy-button .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
  }

  #topnav .menu-extras {
    float: none !important;
    margin: 0 !important;
    display: block !important;
  }

  #topnav .menu-extras .menu-item {
    float: none !important;
    margin: 0 !important;
  }

  /* Hamburger Toggle Button */
  #topnav .navbar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px;
    background: rgba(47, 85, 212, 0.08);
    border: 1px solid rgba(47, 85, 212, 0.2);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  #topnav .navbar-toggle:hover,
  #topnav .navbar-toggle.open {
    background: rgba(47, 85, 212, 0.15) !important;
    border-color: rgba(47, 85, 212, 0.4) !important;
  }

  #topnav .navbar-toggle .lines {
    width: 20px;
    height: 14px;
    margin: 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #topnav .navbar-toggle span {
    height: 2px;
    width: 100%;
    background-color: #161c2d;
    display: block;
    margin: 0 !important;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
  }

  #topnav .navbar-toggle.open span:first-child {
    transform: translateY(6px) rotate(45deg);
    background-color: #2f55d4;
  }

  #topnav .navbar-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  #topnav .navbar-toggle.open span:last-child {
    transform: translateY(-6px) rotate(-45deg);
    background-color: #2f55d4;
  }

  /* Mobile Navigation Dropdown Menu */
  #topnav #navigation {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background-color: #ffffff !important;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 15px 35px rgba(22, 28, 45, 0.12) !important;
    z-index: 9999;
    padding: 8px 0 16px;
  }

  #topnav #navigation.open {
    display: block !important;
    animation: fadeInNav 0.2s ease-out;
  }

  @keyframes fadeInNav {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #topnav #navigation .navigation-menu {
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #topnav #navigation .navigation-menu > li {
    float: none;
    margin: 0;
    display: block;
    border-bottom: 1px solid #f1f3f8;
  }

  #topnav #navigation .navigation-menu > li:last-child {
    border-bottom: none;
  }

  #topnav #navigation .navigation-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: #161c2d !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  #topnav #navigation .navigation-menu > li > a:hover,
  #topnav #navigation .navigation-menu > li.active > a {
    color: #2f55d4 !important;
    background-color: rgba(47, 85, 212, 0.06);
  }
}

/* ==========================================================================
   Ecosistema Kilopolis - Estilos Temáticos y Acentos por Vertical
   ========================================================================== */
.ecosystem-topbar .hover-white:hover {
  color: #ffffff !important;
}

.ecosystem-topbar .transition-all {
  transition: all 0.2s ease;
}

body.theme-portal {
  --vertical-accent: #0f172a;
}
body.theme-academia {
  --vertical-accent: #2f55d4;
}
body.theme-colegios {
  --vertical-accent: #0d9488;
}
body.theme-colegios #topnav .logo span {
  color: #0d9488 !important;
}
body.theme-ops {
  --vertical-accent: #4f46e5;
}
body.theme-ops #topnav .logo span {
  color: #4f46e5 !important;
}
body.theme-servicios {
  --vertical-accent: #d97706;
}
body.theme-servicios #topnav .logo span {
  color: #d97706 !important;
}
body.theme-tienda {
  --vertical-accent: #16a34a;
}
body.theme-tienda #topnav .logo span {
  color: #16a34a !important;
}
body.theme-directorio {
  --vertical-accent: #0284c7;
}
body.theme-directorio #topnav .logo span {
  color: #0284c7 !important;
}
body.theme-clasificados {
  --vertical-accent: #ea580c;
}
body.theme-clasificados #topnav .logo span {
  color: #ea580c !important;
}
body.theme-editorial {
  --vertical-accent: #6366f1;
}
body.theme-editorial #topnav .logo span {
  color: #6366f1 !important;
}

/* ==========================================================================
   Landrick Transversal Chat Styles (Kilopolis & Tenants)
   ========================================================================== */
.chat .chat-list {
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
}
.chat .chat-list:hover,
.chat .chat-list.active,
.chat .chat-list:focus {
  background: #f8f9fa !important;
  box-shadow: 0 0 4px rgba(60, 72, 88, 0.12);
}
.chat .chat-list .on-off,
.chat .chat-type .on-off {
  position: absolute;
  left: -2px;
  top: -2px;
  font-size: 13px !important;
}
.chat.chat-person .on-off {
  font-size: 11px;
}
.chat.chat-person .chat-msg {
  margin-left: 10px;
}
.chat.chat-person .chat-msg .msg {
  background: #ffffff;
  color: #3c4858;
  border: 1px solid #e9ecef;
  word-break: break-word;
  line-height: 1.5;
}
.chat.chat-person .chat-msg .msg-time {
  font-size: 11px !important;
}
.chat.chat-person .chat-right {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}
.chat.chat-person .chat-right .chat-user-image {
  order: 2;
}
.chat.chat-person .chat-right .chat-user-image .on-off {
  right: -2px;
  left: auto;
}
.chat.chat-person .chat-right .chat-msg {
  margin-right: 10px;
  margin-left: 0;
}
.chat.chat-person .chat-right .chat-msg .msg {
  display: inline-block;
  background: #2f55d4;
  color: #ffffff !important;
  border-color: #2f55d4;
  text-align: left;
}
.chat.chat-person .chat-right .chat-msg .msg a {
  color: #ffffff;
  text-decoration: underline;
}
.chat.chat-person .chat-right .chat-msg .msg-time {
  display: block;
}

/* Typing indicator */
.chat-typing-container {
  min-height: 28px;
}
.chat-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #f1f5f9;
  border-radius: 16px;
  font-size: 0.8rem;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: #2f55d4;
  border-radius: 50%;
  animation: chatTypingBounce 1.4s infinite ease-in-out both;
}
.chat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes chatTypingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1.0); opacity: 1; }
}

/* Attachment pill inside chat messages */
.chat-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.chat.chat-person .chat-right .chat-attachment-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}
.chat-attachment-pill:hover {
  background: rgba(0, 0, 0, 0.1);
}
.chat.chat-person .chat-right .chat-attachment-pill:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Scroll area container */
.chat-scroll-area {
  overflow-y: auto;
  scroll-behavior: smooth;
}
.chat-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.chat-scroll-area::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.chat-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}



