/*@import "../lib/bootstrap/dist/css/bootstrap.min.css";*/
/*@import "../lib/fontawesome/css/fontawesome.min.css";*/
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.35);
}

html {
  position: relative;
  min-height: 100%;
}

/* -------------------------------------------------------------
   Corporate theme + layout (static header/footer, scroll in content)
-------------------------------------------------------------- */
:root {
    --portal-primary: #0b5ed7;
    --portal-primary-2: #073b8c;
    --portal-ink: #0f172a;
    --card-header-text: #fff;
}

/* Re-skin SB Admin "primary gradient" to a more corporate palette */
.bg-gradient-primary {
  background-color: var(--portal-primary);
  background-image: linear-gradient(180deg, var(--portal-primary) 10%, var(--portal-primary-2) 100%);
  background-size: cover;
}

body {
  margin-bottom: 0;
  background: #f8f9fc;
  color: #1f2937;
}

/* -------------------------------------------------------------
   Card headers (corporate tint)
-------------------------------------------------------------- */
.card .card-header {
    background-color: var(--portal-primary); /* --portal-primary with alpha */
    background-image: linear-gradient(180deg, var(--portal-primary) 10%, var(--portal-primary-2) 100%);
    border-bottom: 1px solid rgba(11, 94, 215, 0.18);
}

    .card .card-header .text-primary {
        color: var(--card-header-text) !important;
    }

    .card .card-header a.btn-link {
        color: var(--card-header-text);
    }

.card .card-header a.btn-link:hover,
.card .card-header a.btn-link:focus {
  color: var(--portal-primary-2);
  text-decoration: underline;
}

.portal-login-cta,
.portal-login-secondary {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Breadcrumb in topbar (left side) */
.topbar-breadcrumb {
  min-width: 0;
}

.topbar-breadcrumb .breadcrumb {
  font-size: 0.85rem;
}

.topbar-breadcrumb .breadcrumb-item a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.topbar-breadcrumb .breadcrumb-item a:hover,
.topbar-breadcrumb .breadcrumb-item a:focus {
  text-decoration: underline;
}

.topbar-breadcrumb .breadcrumb-item.active {
  color: #cdcdcd;
  max-width: 44vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Keep header fixed while scrolling the page (desktop + mobile) */
.header-container {
  position: sticky;
  top: 0;
  z-index: 1040; /* above cards/content */
}

.footer-container {
  position: sticky;
  bottom: 0;
  z-index: 1040;
}

/* Brand logo */
.portal-brand-logo {
  height: 55px;
  width: auto;
  display: inline-block;
  margin-right: 20px;
  padding-right: 20px;
  /* border-right: 1px solid #ccc; */
}

.portal-brand-logo--auth {
  height: 30px;
}

.portal-brand-logo--login {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
  height: 100px;
}

/* Auth layout (Login) */
body.portal-auth {
  background: #f8f9fc;
}

.portal-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-auth-header,
.portal-auth-footer {
  flex: 0 0 auto;
  background: transparent;
  color: #ffffff;
}

.portal-auth-header {
  padding: 1rem 1.25rem;
}

.portal-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.portal-auth-brand:hover,
.portal-auth-brand:focus {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.95;
}

.portal-auth-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.portal-auth-footer {
  padding: 0.75rem 1.25rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

.portal-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  color: var(--portal-ink);
}

.portal-login-submit {
  font-weight: 800;
}

img.left-image-box {
  width: 100%;
  height: auto;
  position: absolute;
}
/* -------------------------------------------------------------
   Mobile navigation (full-width collapsible; replaces sidebar)
-------------------------------------------------------------- */
.mobile-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav__inner {
  padding: 0.25rem 0;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

    .mobile-nav__brand .portal-brand-logo {
        width: 100%;
    }

    .portal-brand-logo--mobile-nav {
        height: 60px;
        margin-right: 0;
        padding-right: 0;
    }

.mobile-nav__close {
  color: #6c757d;
  padding: 0.25rem 0.5rem;
}

.mobile-nav__close:hover,
.mobile-nav__close:focus {
  color: #111827;
  text-decoration: none;
}

.mobile-nav__section + .mobile-nav__section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.mobile-nav__heading {
  padding: 0.65rem 1rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #1f2937;
  text-decoration: none;
}

.mobile-nav__link i {
  width: 18px;
  text-align: center;
  color: #4e73df;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
  background: #f8f9fc;
  text-decoration: none;
  color: #111827;
}

.mobile-nav__link.active {
  background: rgba(78, 115, 223, 0.12);
  color: #111827;
}

ul.navbar-nav.sidebar {
  min-height: 100%;
  overflow-y: auto !important;
  transition: width 0.3s ease;
  overflow-x: hidden;
}

/* Give the toggle icon a subtle animation */
#mobileMenuToggle i {
  transition: transform 140ms ease;
}

#mobileMenuToggle.is-open i {
  transform: rotate(90deg);
}

@media (max-width: 767.98px) {
  /* Lock background scroll when mobile nav is open (JS toggles the class) */
  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  /* Make the mobile menu a full-screen overlay */
  .mobile-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1050; /* above content */
    border-bottom: 0;
  }

  /* Keep topbar accessible above the overlay toggle area */
  nav.topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
  }

  /* Ensure menu items don't get hidden behind the topbar */
  .mobile-nav__inner {
    padding-top: 10px;
  }

  /* The mobile menu lives under the topbar; remove the big bottom margin */
  nav.topbar {
    margin-bottom: 0 !important;
  }

  /* Keep content flush with header */
  #content > .container-fluid {
    padding-top: 0;
  }

	.portal-brand-logo {
		margin-right: 0px;
		padding-right: 0px;
		border-right: none;
	}

    div.portal-login-brand .portal-brand-logo {
        width: 100%;
        height: auto;
    }

  a.sidebar-brand {
    text-align: center;
    margin: 0 auto;
  }
}

/* -------------------------------------------------------------
   Tables (portal style – similar to modern admin lists)
-------------------------------------------------------------- */
.table-portal {
  border-collapse: separate;
  border-spacing: 0;
}

.table-portal thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
  background: #f8f9fc;
  border-top: 0;
  border-bottom: 1px solid #e3e6f0;
}

.table-portal tbody td {
  border-top: 1px solid #edf2f7;
  vertical-align: middle;
  padding: 0.85rem 0.9rem;
}

.table-portal.table-hover tbody tr:hover {
  background: #f6f9ff;
}

.table-actions {
  white-space: nowrap;
}

.table-actions .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.table-actions form.d-inline {
  margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.btn.btn-warning, .badge.badge-warning {
  color: #000;
}

div.alert {
    overflow-wrap: break-word;
}

/* -------------------------------------------------------------
   Public landing (Home/Index for anonymous users)
-------------------------------------------------------------- */
body.landing-public {
  height: auto !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, #f7f9ff 0%, #f8f9fc 100%);
}

body.landing-public #wrapper {
  height: auto !important;
  min-height: 100vh;
  display: block;
  overflow: visible !important;
}

body.landing-public #wrapper #content-wrapper {
  overflow: visible !important;
  display: block;
}

body.landing-public #content-wrapper #content {
  width: 100%;
  overflow: visible !important;
  padding-top: 0;
}

body.landing-public .topbar {
  padding-left: 1rem;
  padding-right: 1rem;
  backdrop-filter: blur(8px);
  background: #506471 !important;
  border-bottom: 1px solid #435662;
}

body.landing-public .topbar .nav-link {
  font-weight: 700;
  color: #ffffff;
}

body.landing-public .topbar .nav-link:hover,
body.landing-public .topbar .nav-link:focus {
  color: #fff3e0;
}

body.landing-public .landing-mobile-menu-toggle {
  color: #fff;
}

body.landing-public .landing-mobile-menu-toggle:hover,
body.landing-public .landing-mobile-menu-toggle:focus {
  color: #fff3e0;
  text-decoration: none;
}

body.landing-public .landing-mobile-nav {
  background: #506471;
  border-top: 1px solid #435662;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

body.landing-public .landing-mobile-nav-link {
  display: block;
  padding: 0.8rem 1rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.landing-public .landing-mobile-nav-link:last-child {
  border-bottom: 0;
}

body.landing-public .landing-mobile-nav-link:hover,
body.landing-public .landing-mobile-nav-link:focus {
  color: #fff3e0;
  background: rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.landing-section {
  padding: 3rem 0;
}

body.landing-public #inicio.landing-section {
  padding-top: 0;
}

.landing-title {
  margin-bottom: 1.25rem;
  font-weight: 800;
  color: #1f2937;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  text-align: center;
}

.landing-subtitle {
  color: #6b7280;
  text-align: center;
  font-size: 1.02rem;
}

.landing-carousel {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.landing-slide {
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.landing-slide h2 {
  font-weight: 900;
  margin-bottom: 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.01em;
}

.landing-slide p {
  max-width: 680px;
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
}

.landing-slide .container {
  background: rgba(7, 11, 28, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 1.1rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2px);
}

.landing-slide-1 {
  background-image:
    linear-gradient(120deg, rgba(11, 94, 215, 0.55) 0%, rgba(10, 63, 151, 0.62) 60%, rgba(29, 78, 216, 0.45) 100%),
    url('/images/landing/landing-1.jpg');
}

.landing-slide-2 {
  background-image:
    linear-gradient(120deg, rgba(17, 24, 39, 0.68) 0%, rgba(37, 52, 78, 0.55) 55%, rgba(51, 65, 85, 0.5) 100%),
    url('/images/landing/landing-2.jpg');
}

.landing-slide-3 {
  background-image:
    linear-gradient(120deg, rgba(15, 118, 110, 0.6) 0%, rgba(14, 148, 136, 0.56) 50%, rgba(15, 156, 161, 0.45) 100%),
    url('/images/landing/landing-31.jpg');
}

.landing-facilities {
  background: linear-gradient(180deg, #f8f9fc 0%, #eef4ff 100%);
}

.facility-item {
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.facility-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

#servicios .card,
#planes .card,
#contacto .card {
  border: 0;
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

#servicios .card .card-body,
#planes .card .card-body,
#contacto .card .card-body {
  padding: 1.3rem;
}

#servicios .card h5,
#planes .card h5 {
  font-weight: 800;
  color: #0f172a;
}

#servicios .card p,
#planes .card p {
  color: #4b5563;
}

.landing-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13) !important;
}

.landing-plan-card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14) !important;
}

.landing-plan-card-featured {
  border: 2px solid #22c55e !important;
  transform: translateY(-3px);
}

.landing-plan-badge {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #065f46;
  background: #d1fae5;
}

.landing-plan-list {
  list-style: none;
  padding: 0;
}

.landing-plan-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  color: #4b5563;
  font-weight: 600;
}

.landing-plan-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.02rem;
  color: #16a34a;
  font-size: 0.82rem;
}

.landing-plan-btn {
  border-radius: 0.6rem;
  font-weight: 700;
}

.landing-cta-card {
  background: linear-gradient(120deg, #0b5ed7 0%, #1d4ed8 100%);
  border-radius: 1rem;
  box-shadow: 0 16px 35px rgba(29, 78, 216, 0.35) !important;
}

.landing-contact-card .card-header {
  background: #f8fbff;
  border-bottom: 1px solid #e6eefc;
}

.landing-contact-card .form-control {
  border-radius: 0.6rem;
  border-color: #d9e2f5;
}

.landing-contact-card .form-control:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.landing-carousel .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.landing-carousel .carousel-control-prev,
.landing-carousel .carousel-control-next {
  width: 8%;
}

.landing-carousel .btn,
.landing-cta-card .btn {
  border-radius: 0.65rem;
  font-weight: 700;
}

.landing-price {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--portal-primary-2);
}

.landing-price small {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
}

@media (max-width: 991.98px) {
  .landing-slide {
    min-height: 360px;
  }

  .landing-slide .container {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.4rem;
  }
}

div.contract-html-editor .ql-editor {
    min-height: 500px;
}

.html-editor-box {
    height: fit-content;
}

div.modal-html-editor .ql-editor {
    min-height: 300px;
}