:root {
  --site-header-offset: 126px;
  --site-header-offset-compact: 62px;
  --site-header-offset-mobile: 72px;
  --tp-bg: #f5f1e8;
  --tp-bg-soft: #fbf8f2;
  --tp-surface: #fffdf8;
  --tp-surface-2: #f8f2e7;
  --tp-surface-3: #eef6f5;
  --tp-border: rgba(201, 163, 93, 0.22);
  --tp-border-strong: rgba(14, 75, 79, 0.12);
  --tp-shadow: 0 16px 36px rgba(34, 39, 42, 0.08);
  --tp-shadow-soft: 0 10px 24px rgba(34, 39, 42, 0.05);
  --tp-text: #1f2b2e;
  --tp-text-soft: #5f6a70;
  --tp-heading: #0e4b4f;
  --tp-primary: #0e4b4f;
  --tp-primary-strong: #123f42;
  --tp-primary-soft: #dfeeee;
  --tp-accent: #c9a35d;
  --tp-accent-soft: #f3e7cf;
  --tp-filter-bg: linear-gradient(180deg, #fdf8e4 0%, #fbf3d8 100%);
  --tp-filter-bg-focus: linear-gradient(180deg, #fffbee 0%, #fcf5de 100%);
  --tp-filter-border: rgba(201, 163, 93, 0.34);
  --tp-filter-border-strong: rgba(201, 163, 93, 0.48);
  --tp-filter-text: #746238;
  --tp-filter-placeholder: #9a8962;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(180deg, var(--tp-bg-soft) 0%, var(--tp-bg) 100%);
  color: var(--tp-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(201, 163, 93, 0.08), transparent 22%),
    radial-gradient(circle at bottom left, rgba(51, 209, 198, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0));
}

.site-shell {
  min-height: 100vh;
}

.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-header-offset);
}

.site-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1 1 auto;
  padding-top: 0.9rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--tp-heading);
  letter-spacing: -0.03em;
}

a {
  color: var(--tp-primary);
}

a:hover,
a:focus {
  color: var(--tp-primary-strong);
}

#kt_app_root,
#kt_app_page,
#kt_app_wrapper,
#kt_app_main,
#kt_app_content,
#kt_app_content_container,
.site-header,
.site-header-actions,
.site-nav,
.row,
[class*="col-"],
.card,
.card-body,
.table-responsive {
  min-width: 0;
  max-width: 100%;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

.app-sidebar,
.app-sidebar-wrapper {
  display: none !important;
}

[data-kt-app-sidebar-enabled="true"] .app-wrapper,
[data-kt-app-sidebar-enabled="true"] .app-main {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

#kt_app_wrapper,
#kt_app_main,
#kt_app_content,
#kt_app_content_container {
  margin-left: auto;
  margin-right: auto;
}

.site-container,
.app-container.container-fluid {
  width: 100%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1060;
  background: rgba(252, 248, 241, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(201, 163, 93, 0.12), 0 10px 28px rgba(34, 39, 42, 0.07);
  transition: all 0.18s ease;
}

body.calendario-grupos-page .modal {
  z-index: 1085;
}

body.calendario-grupos-page .modal-backdrop {
  z-index: 1080;
}

body.calendario-grupos-page .calendar-form-modal .modal-header {
  padding: 1rem 1rem 0.25rem;
  border-bottom: 0;
  align-items: flex-start;
  position: relative;
}

body.calendario-grupos-page .calendar-form-modal .modal-content {
  overflow: hidden;
}

body.calendario-grupos-page .calendar-form-modal__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

body.calendario-grupos-page .calendar-form-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.calendario-grupos-page .calendar-form-modal__titleblock {
  width: 100%;
  padding: 1rem 3.25rem 1rem 1.1rem;
  border: 1px solid var(--tp-border);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(201, 163, 93, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,242,231,0.9));
  box-shadow: var(--tp-shadow-soft);
}

body.calendario-grupos-page .calendar-form-modal__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #8f6c37;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.calendario-grupos-page .calendar-form-modal .modal-title {
  color: var(--tp-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.calendario-grupos-page .calendar-form-modal__subtitle {
  margin-top: 0.45rem;
  max-width: 680px;
  color: var(--tp-text-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

body.calendario-grupos-page .calendar-form-modal__close {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  z-index: 2;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 93, 102, 0.12);
  background-color: rgba(255, 255, 255, 0.92);
  background-size: 0.8rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  opacity: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.calendario-grupos-page .calendar-form-modal__close:hover,
body.calendario-grupos-page .calendar-form-modal__close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 93, 102, 0.28);
  background-color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

body.calendario-grupos-page .calendar-form-modal__close:focus-visible {
  outline: 2px solid rgba(15, 93, 102, 0.28);
  outline-offset: 2px;
}

.site-header__top {
  border-bottom: 1px solid rgba(201, 163, 93, 0.16);
}

.site-header__inner {
  min-height: 72px;
  gap: 1rem;
}

.site-header__navrow {
  background: rgba(252, 248, 241, 0.94);
}

.site-header__navinner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
}

.site-header__navleft,
.site-header__navcenter,
.site-header__navright {
  min-width: 0;
  display: flex;
  align-items: center;
}

.site-header__navleft {
  flex: 1 1 0;
  gap: 0.75rem;
}

.site-header__navcenter {
  flex: 0 1 320px;
  justify-content: center;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  align-self: center;
}

.site-header__navright {
  flex: 0 0 auto;
  justify-content: flex-end;
  min-width: fit-content;
  align-self: center;
}

.site-header-brand,
.site-brand-title,
.site-header-actions,
.site-header-actions__nav,
.site-header-actions__tools,
.topbar-inline-search,
.site-nav,
.site-nav .nav-link,
.site-nav .dropdown-toggle,
.site-header-brand img {
  transition: all 0.18s ease;
}

.site-header-brand {
  min-width: 0;
  gap: 0.85rem !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

.site-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand-link--compact {
  display: none;
  flex: 0 0 auto;
}

.site-header-brand img {
  max-height: 52px;
  width: auto;
}

.site-brand-link--compact img {
  max-height: 34px;
  width: auto;
}

.site-brand-title {
  line-height: 1.1;
}

.site-header-actions {
  min-width: 0;
  align-items: center;
  display: flex;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.site-header-actions__nav,
.site-header-actions__tools {
  min-width: 0;
}

.site-header-actions__tools {
  margin-left: auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
}

.site-header-actions__tools--nav {
  flex: 0 0 auto;
  gap: 0.35rem;
  max-width: 100%;
}

.site-header-actions__tools--tablet {
  margin-left: auto !important;
  flex: 0 0 auto;
  min-width: fit-content;
}

.site-header-actions .btn.btn-sm,
.site-header-actions .dropdown-toggle.btn-sm {
  height: 38px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.site-nav {
  border-top: 0;
  background: transparent;
  flex: 1 1 auto;
}

.site-nav.site-nav-inline {
  border-top: 0;
  background: transparent;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: nowrap;
  padding: 0.48rem 0 0.56rem;
  min-width: 0;
}

.site-nav .nav-link,
.site-nav .dropdown-toggle {
  color: #44545b;
  font-weight: 650;
  border-radius: 0.95rem;
  padding: 0.44rem 0.78rem;
  line-height: 1.1;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.site-nav.site-nav-inline .nav-link,
.site-nav.site-nav-inline .dropdown-toggle {
  padding: 0.4rem 0.72rem;
}

.site-nav .dropdown-toggle {
  border: 0;
}

.site-nav .nav-link.active,
.site-nav .dropdown-toggle.active {
  background: rgba(223, 238, 238, 0.82);
  color: var(--tp-primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(14, 75, 79, 0.08);
}

.site-nav .nav-link:hover,
.site-nav .dropdown-toggle:hover,
.site-nav .nav-link:focus,
.site-nav .dropdown-toggle:focus {
  background: rgba(201, 163, 93, 0.13);
  color: var(--tp-primary);
}

.topbar-inline-search {
  min-width: 220px;
  width: 320px;
  max-width: 100%;
  flex: 0 1 320px;
  display: flex;
  align-items: center;
}

.topbar-inline-search .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  border-radius: 0.95rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar-inline-search form {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
}

.topbar-inline-search .form-control {
  height: 38px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.92rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-menu-dropdown,
.dropdown-menu {
  border-radius: 1rem;
  border: 1px solid var(--tp-border);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 34px rgba(34, 39, 42, 0.11);
}

.dropdown-item {
  color: #314147;
  border-radius: 0.75rem;
}

.dropdown-item-with-arrow,
.topbar-menu-parent-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
}

.topbar-menu-section .dropdown-item {
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
}

.topbar-menu-child {
  padding-left: 0.7rem;
}

.topbar-menu-child .dropdown-item {
  font-size: 0.95rem;
  padding-left: 0.95rem;
}

.topbar-menu-parent-link__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  color: #8f6c37;
  white-space: nowrap;
}

.topbar-menu-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 163, 93, 0.32);
  background: rgba(243, 231, 207, 0.72);
  color: #8f6c37;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.topbar-menu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: rgba(14, 75, 79, 0.58);
  font-size: 0.95rem;
  line-height: 1;
  flex: 0 0 auto;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(201, 163, 93, 0.12);
  color: var(--tp-primary);
}

.topbar-menu-current {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  border-radius: 0.82rem;
  background: rgba(223, 238, 238, 0.72);
  color: var(--tp-primary);
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(14, 75, 79, 0.06);
}

.topbar-menu-current:hover,
.topbar-menu-current:focus {
  background: rgba(223, 238, 238, 0.72);
  color: var(--tp-primary);
}

.topbar-menu-current .topbar-menu-parent-link__meta {
  color: var(--tp-primary);
}

.topbar-menu-current .topbar-menu-pill {
  border-color: rgba(14, 75, 79, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--tp-primary);
}

.dropdown-item:hover .topbar-menu-arrow,
.dropdown-item:focus .topbar-menu-arrow,
.dropdown-item:hover .topbar-menu-parent-link__meta,
.dropdown-item:focus .topbar-menu-parent-link__meta {
  color: var(--tp-primary);
}

.dropdown-item:hover .topbar-menu-pill,
.dropdown-item:focus .topbar-menu-pill {
  border-color: rgba(14, 75, 79, 0.22);
  background: rgba(223, 238, 238, 0.9);
  color: var(--tp-primary);
}

.topbar-inline-search .btn {
  height: 38px;
  min-height: 38px;
  padding: 0.4rem 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 650;
  border-radius: 0.95rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar-menu-dropdown {
  max-height: 70vh;
  overflow: auto;
  min-width: 280px;
}

.topbar-language-dropdown,
.topbar-user-dropdown {
  flex: 0 0 auto;
}

.topbar-mobile-current {
  border-radius: 0.82rem;
  background: rgba(223, 238, 238, 0.72);
  color: var(--tp-primary);
  cursor: default;
  border-color: rgba(14, 75, 79, 0.12);
  box-shadow: inset 0 0 0 1px rgba(14, 75, 79, 0.06);
}

.offcanvas .list-group {
  gap: 0.38rem;
}

.offcanvas .list-group-item {
  border-radius: 0.9rem;
  border-color: rgba(14, 75, 79, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: #314147;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.offcanvas .list-group-item.active,
.offcanvas .list-group-item.list-group-item-action.active {
  background: rgba(223, 238, 238, 0.78);
  color: var(--tp-primary);
  border-color: rgba(14, 75, 79, 0.14);
  box-shadow: inset 0 0 0 1px rgba(14, 75, 79, 0.06);
}

.offcanvas .list-group-item-action:hover,
.offcanvas .list-group-item-action:focus {
  background: rgba(201, 163, 93, 0.1);
  color: var(--tp-primary);
}

.offcanvas .bg-light {
  background: rgba(255, 252, 247, 0.94) !important;
  border: 1px solid rgba(14, 75, 79, 0.08);
  box-shadow: 0 12px 24px rgba(34, 39, 42, 0.06);
}

.offcanvas .topbar-inline-search .input-group {
  box-shadow: 0 10px 22px rgba(34, 39, 42, 0.05);
}

.topbar-language-dropdown .dropdown-toggle,
.topbar-user-dropdown .dropdown-toggle {
  height: 38px;
  border-radius: 0.95rem;
  border-color: rgba(14, 75, 79, 0.12);
  background: rgba(255, 252, 247, 0.94);
  color: #314147;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar-language-label,
.topbar-user-name {
  white-space: nowrap;
}

.topbar-user-name {
  display: inline-block;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-size: 0.9rem;
}

.topbar-language-dropdown .dropdown-toggle,
.topbar-user-dropdown .dropdown-toggle {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.topbar-inline-search .input-group:hover {
  box-shadow: 0 10px 24px rgba(34, 39, 42, 0.06);
}

.topbar-inline-search .input-group:focus-within {
  box-shadow: 0 12px 26px rgba(34, 39, 42, 0.08);
}

.topbar-inline-search .btn:hover,
.topbar-inline-search .btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 75, 79, 0.16);
}

.topbar-language-dropdown .dropdown-toggle:hover,
.topbar-user-dropdown .dropdown-toggle:hover,
.topbar-language-dropdown .dropdown-toggle:focus,
.topbar-user-dropdown .dropdown-toggle:focus {
  background: rgba(223, 238, 238, 0.76);
  border-color: rgba(14, 75, 79, 0.18);
  color: var(--tp-primary);
  box-shadow: inset 0 0 0 1px rgba(14, 75, 79, 0.06), 0 10px 22px rgba(34, 39, 42, 0.08);
  transform: translateY(-1px);
}

.topbar-language-dropdown .dropdown-toggle::after,
.topbar-user-dropdown .dropdown-toggle::after {
  margin-left: 0.4rem;
}

.topbar-language-label {
  font-size: 0.9rem;
}

.ui-icon {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}

.ui-icon-sm {
  width: 1rem;
  height: 1rem;
}

.ui-icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-icono-global .ui-icon,
.btn-nuevo-global .ui-icon {
  line-height: 1;
}

.btn-icono-global,
.btn-nuevo-global {
  column-gap: 0.45rem;
}

.site-content > :first-child {
  margin-top: 0 !important;
}

.card {
  border-radius: 1.25rem;
  border: 1px solid var(--tp-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,251,245,0.9));
  box-shadow: var(--tp-shadow-soft);
}

.card-header {
  background: linear-gradient(180deg, #fffdf8 0%, #f6efe3 100%);
  border-bottom: 1px solid rgba(201, 163, 93, 0.18);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.card-title {
  color: var(--tp-heading);
}

.table-responsive {
  border-radius: 1rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(201, 163, 93, 0.05);
  --bs-table-hover-bg: rgba(14, 75, 79, 0.04);
  --bs-table-border-color: rgba(201, 163, 93, 0.16);
}

.table th {
  color: var(--tp-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.table td,
.table th {
  vertical-align: middle;
}

.table > :not(caption) > * > * {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.form-control,
.form-select,
.input-group-text,
.form-control:focus,
.form-select:focus {
  border-radius: 0.9rem;
}

.form-control,
.form-select {
  border-color: rgba(14, 75, 79, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: #2b3940;
  box-shadow: none;
}

.form-control::placeholder {
  color: #8b949a;
}

input[type="search"],
.filtro-busqueda,
.topbar-inline-search .form-control,
body.busqueda-page .form-control-lg {
  background: var(--tp-filter-bg);
  border-color: var(--tp-filter-border);
  color: var(--tp-filter-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

input[type="search"]::placeholder,
.filtro-busqueda::placeholder,
.topbar-inline-search .form-control::placeholder,
body.busqueda-page .form-control-lg::placeholder {
  color: var(--tp-filter-placeholder);
  opacity: 1;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(14, 75, 79, 0.32);
  box-shadow: 0 0 0 0.2rem rgba(14, 75, 79, 0.11);
}

input[type="search"]:focus,
.filtro-busqueda:focus,
.topbar-inline-search .form-control:focus,
body.busqueda-page .form-control-lg:focus {
  background: var(--tp-filter-bg-focus);
  border-color: var(--tp-filter-border-strong);
  color: var(--tp-filter-text);
  box-shadow: 0 0 0 0.22rem rgba(201, 163, 93, 0.14), inset 0 1px 0 rgba(255,255,255,0.65);
}

.input-group-text {
  border-color: rgba(14, 75, 79, 0.12);
  background: #f8f2e7;
  color: var(--tp-heading);
}

.badge {
  border-radius: 999px;
}

.btn-light-primary,
.btn-light-success,
.btn-light-danger,
.btn-light-warning,
.btn-light-info,
.btn-light-dark,
.btn-light-secondary {
  border-width: 1px;
  border-style: solid;
}

.btn-light-primary {
  color: var(--tp-primary);
  background: #eef5f4;
  border-color: rgba(14, 75, 79, 0.14);
}

.btn-light-primary:hover,
.btn-light-primary:focus,
.btn-light-primary.active {
  color: #fff;
  background: var(--tp-primary);
  border-color: var(--tp-primary);
}

.btn-light-success {
  color: #46654f;
  background: #edf5ee;
  border-color: rgba(70, 101, 79, 0.16);
}

.btn-light-success:hover,
.btn-light-success:focus,
.btn-light-success.active {
  color: #fff;
  background: #198754;
  border-color: #198754;
}

.btn-light-danger {
  color: #9a4040;
  background: #faefec;
  border-color: rgba(154, 64, 64, 0.18);
}

.btn-light-danger:hover,
.btn-light-danger:focus,
.btn-light-danger.active {
  color: #fff;
  background: #dc3545;
  border-color: #dc3545;
}

.btn-light-warning {
  color: #8f6c37;
  background: #fbf3e0;
  border-color: rgba(201, 163, 93, 0.28);
}

.btn-light-warning:hover,
.btn-light-warning:focus,
.btn-light-warning.active {
  color: #212529;
  background: #ffc107;
  border-color: #ffc107;
}

.btn-light-info {
  color: var(--tp-primary);
  background: #e8f3f2;
  border-color: rgba(14, 75, 79, 0.14);
}

.btn-light-info:hover,
.btn-light-info:focus,
.btn-light-info.active {
  color: #fff;
  background: #0dcaf0;
  border-color: #0dcaf0;
}

.btn-light-dark {
  color: #36434a;
  background: #f0f1ef;
  border-color: rgba(54, 67, 74, 0.14);
}

.btn-light-dark:hover,
.btn-light-dark:focus,
.btn-light-dark.active {
  color: #fff;
  background: #212529;
  border-color: #212529;
}

.btn-light-secondary {
  color: #58646b;
  background: #f5f4f1;
  border-color: rgba(88, 100, 107, 0.14);
}

.btn-light-secondary:hover,
.btn-light-secondary:focus,
.btn-light-secondary.active {
  color: #fff;
  background: #6c757d;
  border-color: #6c757d;
}

.btn-pastel-action {
  color: #315c7c;
  background: #e6f0f8;
  border: 1px solid #c9dceb;
}

.btn-pastel-action:hover,
.btn-pastel-action:focus,
.btn-pastel-action.active {
  color: #22455f;
  background: #d7e8f4;
  border-color: #b7d1e4;
}

.btn-primary {
  color: #fff;
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  box-shadow: 0 14px 24px rgba(14, 75, 79, 0.14);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.active,
.btn-primary:active {
  color: #fff !important;
  background: var(--tp-primary-strong) !important;
  border-color: var(--tp-primary-strong) !important;
  box-shadow: 0 0 0 0.2rem rgba(14, 75, 79, 0.12) !important;
}

body.home-page-compact .site-content {
  padding-top: 0.35rem !important;
}

body.home-page-compact .site-container {
  padding-top: 0.35rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 93, 0.24);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(51, 209, 198, 0.1), transparent 26%),
    radial-gradient(circle at bottom left, rgba(201, 163, 93, 0.14), transparent 28%),
    linear-gradient(135deg, #fcf8f1 0%, #f6f0e5 52%, #eef7f6 100%);
  box-shadow: 0 20px 42px rgba(34, 39, 42, 0.08);
}

.home-hero__layout {
  position: relative;
  z-index: 1;
}

.home-hero__copy {
  flex: 1 1 0;
  max-width: 780px;
}

.home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #8f6c37;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  color: #0e4b4f;
  font-size: clamp(2.35rem, 4.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 0.9rem !important;
  max-width: 760px;
}

.home-hero__lead {
  max-width: 700px;
  color: #5d666d;
  line-height: 1.7;
}

.home-hero__meta {
  margin-top: 1.5rem !important;
}

.home-hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 75, 79, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #0e4b4f;
  font-size: 0.92rem;
  font-weight: 700;
}

.home-hero__side {
  flex: 0 0 330px;
  max-width: 100%;
}

.home-hero__brandpanel {
  position: relative;
  padding: 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(30, 37, 43, 0.08);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(250, 245, 236, 0.9));
  box-shadow: 0 18px 34px rgba(34, 39, 42, 0.09);
  backdrop-filter: blur(6px);
}

.home-hero__brandtop {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.home-hero__logo {
  width: 86px;
  height: auto;
  flex: 0 0 auto;
}

.home-hero__brandtitle {
  color: #0e4b4f;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.home-hero__brandtext {
  color: #5d666d;
  font-size: 0.94rem;
  line-height: 1.65;
}

.home-hero__btn {
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
}

.home-hero__btn--soft {
  color: #0e4b4f;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(14, 75, 79, 0.12);
}

.home-hero__btn--soft:hover,
.home-hero__btn--soft:focus {
  color: #0e4b4f;
  background: #ffffff;
  border-color: rgba(14, 75, 79, 0.22);
}

.home-hero__btn--primary {
  color: #fff;
  background: #0e4b4f;
  border: 1px solid #0e4b4f;
  box-shadow: 0 14px 24px rgba(14, 75, 79, 0.18);
}

.home-hero__btn--primary:hover,
.home-hero__btn--primary:focus {
  color: #fff;
  background: #133f42;
  border-color: #133f42;
}

.home-section {
  scroll-margin-top: 90px;
}

.home-section + .home-section {
  margin-top: 0.75rem;
}

.home-section-header {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.home-section-header h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1.08;
}

.home-summary-grid .card,
.home-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.home-summary-grid .card-body {
  padding: 1.35rem 1.25rem;
}

.home-summary-grid .fs-2 {
  font-size: clamp(2rem, 3vw, 2.4rem) !important;
  line-height: 1;
}

.summary-kpi-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.summary-kpi-card .summary-kpi-body,
.summary-kpi-card.card .card-body {
  padding: 1.35rem 1.25rem;
}

.summary-kpi-card .text-uppercase {
  letter-spacing: 0.04em;
}

.summary-kpi-card .fs-2 {
  font-size: clamp(2rem, 3vw, 2.4rem) !important;
  line-height: 1;
}

.summary-kpi-row {
  margin-bottom: 1.75rem !important;
}

.home-panel .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-panel__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.95rem;
  color: #355e61;
  background: linear-gradient(180deg, #f5f1e8 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(53, 94, 97, 0.10);
}

.home-panel__icon .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.calendar-groups__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.calendar-groups__toolbar--static {
  justify-content: flex-start;
}

.calendar-groups__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.calendar-groups__weekdays,
.calendar-groups__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

.calendar-groups__weekdays {
  margin-bottom: 0.6rem;
}

.calendar-groups__weekday {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.calendar-groups__day {
  min-height: 144px;
  padding: 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.calendar-groups__day.is-outside {
  background: #f8fafc;
  opacity: 0.72;
}

.calendar-groups__day.is-today {
  border-color: rgba(53, 94, 97, 0.35);
  box-shadow: inset 0 0 0 1px rgba(53, 94, 97, 0.12);
}

.calendar-groups__daynum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #355e61;
  background: rgba(53, 94, 97, 0.08);
}

.calendar-groups__events {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.calendar-groups__event {
  padding: 0.45rem 0.5rem;
  border-radius: 0.8rem;
  background: #f7f3ea;
  border: 1px solid rgba(181, 154, 116, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.calendar-groups__event:hover {
  border-color: rgba(53, 94, 97, 0.28);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.calendar-groups__event:focus-visible {
  outline: 2px solid rgba(53, 94, 97, 0.42);
  outline-offset: 2px;
}

.calendar-groups__eventtime {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a5a2b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calendar-groups__eventgroup {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-groups__eventplace {
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-groups__more {
  font-size: 0.76rem;
  font-weight: 600;
  color: #355e61;
}

.calendar-groups--compact .calendar-groups__day {
  min-height: 118px;
  padding: 0.55rem;
}

.calendar-groups--compact .calendar-groups__daynum {
  min-width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}

.calendar-groups--compact .calendar-groups__event {
  padding: 0.35rem 0.45rem;
}

.calendar-groups--compact .calendar-groups__eventgroup {
  font-size: 0.78rem;
}

.calendar-view-switch {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

body.calendario-grupos-page .site-content {
  padding-top: 1rem !important;
  padding-bottom: 1.5rem !important;
}

body.calendario-grupos-page .premium-page-hero {
  margin-bottom: 2rem !important;
}

body.calendario-grupos-page .calendar-main-card,
body.calendario-grupos-page .calendar-form-card,
body.calendario-grupos-page .calendar-list-card {
  border-radius: 1.15rem;
}

body.calendario-grupos-page .calendar-main-card .card-body {
  padding-top: 1.75rem !important;
  padding-bottom: 1.9rem !important;
}

body.calendario-grupos-page .calendar-form-card .card-body,
body.calendario-grupos-page .calendar-list-card .card-body {
  padding-top: 1.35rem;
  padding-bottom: 1.5rem;
}

body.calendario-grupos-page .calendar-main-card .calendar-groups__toolbar:first-of-type {
  margin-bottom: 1.35rem;
}

body.calendario-grupos-page .calendar-main-card .calendar-view-switch {
  margin-bottom: 0.15rem;
}

.calendar-select-wrap {
  position: relative;
}

.calendar-select {
  appearance: none;
  padding-right: 3rem;
  cursor: pointer;
  font-weight: 600;
  background-image: none !important;
}

.calendar-select-wrap__icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-35%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 0.34rem solid transparent;
  border-right: 0.34rem solid transparent;
  border-top: 0.42rem solid #355e61;
  opacity: 0.85;
}

.calendar-duplicate-picker-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.calendar-duplicate-picker-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.calendar-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 170px;
  padding: 1.4rem 1.2rem;
  border: 1px dashed rgba(53, 94, 97, 0.28);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fdfbf7 0%, #f7f3ea 100%);
  text-align: center;
  color: #355e61;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.calendar-upload-dropzone:hover,
.calendar-upload-dropzone:focus,
.calendar-upload-dropzone.is-dragover {
  border-color: rgba(53, 94, 97, 0.5);
  box-shadow: inset 0 0 0 1px rgba(53, 94, 97, 0.14), 0 12px 26px rgba(34, 39, 42, 0.06);
  transform: translateY(-1px);
}

.calendar-upload-dropzone__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(53, 94, 97, 0.12);
}

.calendar-upload-dropzone__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
}

.calendar-upload-dropzone__hint {
  font-size: 0.85rem;
  color: #6b7280;
}

.calendar-upload-preview {
  margin-top: 0.95rem;
}

.calendar-upload-current__label {
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a5a2b;
}

.calendar-upload-preview__img,
.calendar-week-list__photo {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.calendar-list__photo {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.calendar-list__comment,
.calendar-week-list__comment {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #5b6470;
}

.calendar-list__photo-wrap,
.calendar-week-list__photo-wrap {
  margin-top: 0.7rem;
}

.calendar-groups__eventextras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.calendar-groups__eventtag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(53, 94, 97, 0.08);
  color: #355e61;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-week-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.calendar-week-list__day {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 0.9rem 1rem;
}

.calendar-week-list__day.is-today {
  border-color: rgba(53, 94, 97, 0.35);
  box-shadow: inset 0 0 0 1px rgba(53, 94, 97, 0.12);
}

.calendar-week-list__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.calendar-week-list__weekday {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a5a2b;
  font-weight: 700;
}

.calendar-week-list__date {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.calendar-week-list__events {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.calendar-week-list__event {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  background: #f7f3ea;
  border: 1px solid rgba(181, 154, 116, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.calendar-week-list__event:hover {
  border-color: rgba(53, 94, 97, 0.28);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.calendar-week-list__event:focus-visible {
  outline: 2px solid rgba(53, 94, 97, 0.42);
  outline-offset: 2px;
}

.calendar-week-list__time {
  min-width: 3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #355e61;
}

.calendar-week-list__content {
  flex: 1 1 auto;
  min-width: 0;
}

.calendar-week-list__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
}

.calendar-week-list__group {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.calendar-week-list__place {
  font-size: 0.8rem;
  color: #6b7280;
}

.calendar-week-list__empty {
  color: #6b7280;
  font-size: 0.85rem;
}

.calendar-event-detail__meta {
  display: grid;
  gap: 0.8rem;
}

.calendar-event-detail__line {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: #f8fafb;
  border: 1px solid rgba(53, 94, 97, 0.1);
}

.calendar-event-detail__line strong {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a5a2b;
}

.calendar-event-detail__line span {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1f2937;
}

.calendar-event-detail__photo-wrap {
  margin-top: 1rem;
}

.calendar-event-detail__photo {
  display: block;
  width: auto;
  max-width: 400px;
  max-height: 400px;
  object-fit: contain;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.calendar-event-detail__comment {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fcfbf7 0%, #f7f3ea 100%);
  border: 1px solid rgba(181, 154, 116, 0.16);
  color: #4b5563;
  line-height: 1.7;
}

.calendar-event-detail__confirm {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff4f2 0%, #fde9e5 100%);
  border: 1px solid rgba(186, 61, 47, 0.18);
  box-shadow: 0 12px 24px rgba(186, 61, 47, 0.08);
}

.calendar-event-detail__confirm-text {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9f2d20;
  text-transform: uppercase;
}

.home-panel + .home-panel {
  margin-top: 1.5rem !important;
}

body.header-compact .site-header {
  background: rgba(252, 248, 241, 0.94);
  box-shadow: 0 10px 30px rgba(34, 39, 42, 0.08);
}

body.header-compact .site-page {
  padding-top: var(--site-header-offset-compact);
}

body.header-compact .site-header__top {
  display: none;
}

body.header-compact .site-brand-link--compact {
  display: inline-flex;
}

body.header-compact .site-header-brand {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  gap: 0.6rem !important;
}

body.header-compact .site-header-brand img {
  max-height: 40px;
}

body.header-compact .site-brand-title .fw-bold {
  font-size: 1.15rem !important;
  line-height: 1.05;
  color: #0e4b4f;
}

body.home-page-compact .site-header,
body.home-page-compact .site-header__navrow {
  background: rgba(252, 248, 241, 0.96);
}

body.home-page-compact .site-header__top {
  border-bottom-color: rgba(201, 163, 93, 0.18);
}

body.home-page-compact .site-header {
  box-shadow: 0 8px 28px rgba(34, 39, 42, 0.07);
}

body.home-page-compact .site-nav .nav-link.active,
body.home-page-compact .site-nav .dropdown-toggle.active {
  color: #0e4b4f;
  background: rgba(223, 238, 238, 0.78);
  box-shadow: inset 0 0 0 1px rgba(14, 75, 79, 0.08);
}

body.home-page-compact .site-nav .nav-link:hover,
body.home-page-compact .site-nav .dropdown-toggle:hover {
  color: #0e4b4f;
  background: rgba(201, 163, 93, 0.12);
}

body.home-page-compact .site-header-brand img,
body.home-page-compact .site-brand-link--compact img {
  filter: drop-shadow(0 8px 14px rgba(34, 39, 42, 0.08));
}

body.header-compact .topbar-inline-search {
  width: 320px;
  min-width: 240px;
}

body.header-compact .site-nav .nav-link,
body.header-compact .site-nav .dropdown-toggle {
  padding: 0.28rem 0.6rem;
  font-size: 0.89rem;
}

body.header-compact .site-nav__list {
  gap: 0.34rem;
  padding-top: 0.36rem;
  padding-bottom: 0.36rem;
}

body.header-compact .site-header-actions .btn.btn-sm,
body.header-compact .site-header-actions .dropdown-toggle.btn-sm {
  height: 34px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

body.header-compact .site-header-actions__tools {
  margin-left: 0.65rem !important;
}

.site-footer {
  margin-top: 2rem;
  background: rgba(252, 248, 241, 0.9);
  border-top: 1px solid rgba(201, 163, 93, 0.18);
}

.site-footer-nav .nav-link {
  color: #6a747a;
  font-weight: 700;
}

.site-footer-nav .nav-link:hover {
  color: var(--tp-primary);
}

.text-gray-900 {
  color: #111827 !important;
}

.text-gray-800 {
  color: #1f2937 !important;
}

.text-gray-700 {
  color: #374151 !important;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-move {
  cursor: move;
}

.barra-rapida {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.lista-portada-box {
  min-height: 260px;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lista-portada-box img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
}

.lista-portada-vacia {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  font-weight: 600;
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.card-insercion-activa {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.12);
}

.resultado-general-cancion,
.bloque-cancion-ensayo > .card,
.bloque-ordenable > .card,
.cancion-item,
.cancion-seleccionada {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.resultado-general-cancion:hover,
.bloque-cancion-ensayo > .card:hover,
.bloque-ordenable > .card:hover,
.cancion-item:hover,
.cancion-seleccionada:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

body.verlista-page .site-content,
body.lista-editar-page .site-content,
body.actuaciones-detail-page .site-content {
  padding-top: 1rem;
}

body.verlista-page .barra-rapida {
  position: sticky;
  top: 88px;
  z-index: 20;
}

body.verlista-page .barra-rapida .card-body {
  padding: 1.6rem 1.8rem;
}

body.verlista-page .barra-rapida h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  line-height: 1.02;
}

body.verlista-page .badge-numero,
body.actuaciones-detail-page .badge-numero {
  background-color: #dbe5f1;
  color: #1e293b;
  font-size: 1rem;
  padding: 0.55rem 0.9rem;
}

body.verlista-page .card-cancion-pdf,
body.actuaciones-detail-page .card-cancion-pdf {
  border: 1px solid #e6e8ec;
  border-radius: 16px;
}

body.verlista-page .filtro-busqueda,
body.lista-editar-page .filtro-busqueda {
  border-radius: 0.85rem;
}

body.verlista-page .filtro-busqueda:focus,
body.lista-editar-page .filtro-busqueda:focus {
  box-shadow: 0 0 0 0.22rem rgba(201, 163, 93, 0.14), inset 0 1px 0 rgba(255,255,255,0.65);
}

body.verlista-page #sinResultadosFiltroLista,
body.verlista-page #sinResultadosGeneral {
  display: none;
}

body.verlista-page #bloqueCancionesLista {
  margin-top: 0.5rem;
}

body.verlista-page .site-container > .card:not(.barra-rapida) {
  border-radius: 1.15rem;
}

body.lista-editar-page #posterDrop {
  min-height: 180px;
  border-width: 2px !important;
  border-color: #cbd5e1 !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%) !important;
  transition: border-color 0.18s ease, background 0.18s ease;
}

body.lista-editar-page #posterDrop:hover,
body.lista-editar-page #posterDrop.is-dragover {
  border-color: #86b7fe !important;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
}

body.lista-editar-page #bloquePortadaActual {
  min-height: 180px;
  border-color: #e2e8f0 !important;
  border-radius: 1rem !important;
}

body.lista-editar-page #canciones-disponibles,
body.lista-editar-page #lista-destino {
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.lista-editar-page .bloque-sticky {
  position: sticky;
  top: 90px;
}

body.lista-editar-page .site-container > .d-flex:first-child {
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

body.lista-editar-page .site-container > .d-flex:first-child h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.04;
}

body.lista-editar-page .site-container > .d-flex:first-child .btn {
  min-width: 170px;
  justify-content: center;
}

body.lista-editar-page .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.actuaciones-detail-page a[data-bs-target="#galeriaModal"] .ratio:hover {
  filter: brightness(0.95);
}

body.actuaciones-detail-page .site-container {
  max-width: 1480px;
}

body.actuaciones-detail-page .gallery-wrap {
  display: grid;
  gap: 1rem;
}

body.actuaciones-detail-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

body.actuaciones-detail-page .tile:hover {
  filter: brightness(0.97);
}

body.actuaciones-detail-page .galeria-masonry {
  column-count: 4;
  column-gap: 1rem;
}

body.actuaciones-detail-page .galeria-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

body.actuaciones-detail-page .galeria-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 0.5rem;
}

body.actuaciones-detail-page #modalFoto .modal-content {
  background: rgba(0, 0, 0, 0.95);
}

body.actuaciones-detail-page .sequence-wrapper {
  margin-top: 2rem;
}

body.actuaciones-detail-page .sequence-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

body.actuaciones-detail-page .sequence-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 1rem;
  font-size: 0.9rem;
}

body.actuaciones-detail-page .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

body.actuaciones-detail-page .punt-1 { background: #1e88e5; }
body.actuaciones-detail-page .punt-2 { background: #43a047; }
body.actuaciones-detail-page .punt-3 { background: #fb8c00; }
body.actuaciones-detail-page .punt-4 { background: #8e24aa; }
body.actuaciones-detail-page .punt-5 { background: #e53935; }

body.actuaciones-detail-page .sequence-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.75rem;
}

body.actuaciones-detail-page .sequence-step {
  min-width: 28px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  color: #fff;
  border: 0;
  cursor: pointer;
}

body.actuaciones-detail-page .sequence-break {
  padding: 0 0.5rem;
  opacity: 0.6;
  font-weight: 600;
}

body.actuaciones-detail-page .sequence-preview {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  max-width: 760px;
}

body.actuaciones-detail-page .sequence-preview-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #667085;
  background: #f8fafc;
}

body.actuaciones-detail-page .sequence-preview-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0f172a;
}

body.actuaciones-detail-page .galeria-titulo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  font-weight: 600;
  color: #222;
}

body.actuaciones-detail-page .galeria-titulo::before,
body.actuaciones-detail-page .galeria-titulo::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
}

body.actuaciones-detail-page .galeria-titulo span {
  white-space: nowrap;
  font-size: 2rem;
}

body.actuaciones-detail-page .titulo-cancion {
  font-size: 1.6rem;
  line-height: 1.2;
}

body.actuaciones-detail-page .btn-pdf {
  min-height: 96px;
  min-width: 220px;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.actuaciones-detail-page .btn-pdf-iniciacion {
  background: #e8f1ff;
  color: #0d47a1;
  border: 1px solid #cfe0ff;
}

body.actuaciones-detail-page .btn-pdf-basico {
  background: #eaf8ee;
  color: #1b5e20;
  border: 1px solid #cfead7;
}

body.actuaciones-detail-page .btn-pdf-intermedio {
  background: #fff4e5;
  color: #a15c00;
  border: 1px solid #ffe1b3;
}

body.actuaciones-detail-page .pdf-titulo {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

body.actuaciones-detail-page .pdf-subtitulo {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

body.actuaciones-detail-page .descripcion-cancion {
  color: #4b5563;
}

body.actuaciones-detail-page .tabla-canciones-actuacion td,
body.actuaciones-detail-page .tabla-canciones-actuacion th {
  padding: 1rem 0.9rem;
}

body.actuaciones-detail-page .tabla-canciones-actuacion tbody tr:hover {
  background: #fafbff;
}

body.actuaciones-detail-page .actuacion-audio-mini {
  width: 100%;
  max-width: 180px;
  min-width: 150px;
  height: 36px;
}

@media (min-width: 992px) {
  body.actuaciones-detail-page .gallery-wrap {
    grid-template-columns: 45% 55%;
    align-items: stretch;
  }

  body.actuaciones-detail-page .poster {
    height: 100%;
  }

  body.actuaciones-detail-page .gallery-grid {
    grid-auto-rows: 1fr;
  }

  body.actuaciones-detail-page .tile {
    height: 100%;
  }
}

@media (max-width: 1200px) {
  body.actuaciones-detail-page .galeria-masonry {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  body.verlista-page .barra-rapida {
    position: static;
  }

  body.verlista-page .barra-rapida .card-body,
  body.lista-editar-page .site-container > .d-flex:first-child {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.lista-editar-page .bloque-sticky {
    position: static;
  }

  body.actuaciones-detail-page .galeria-masonry {
    column-count: 2;
  }

  body.actuaciones-detail-page .titulo-cancion {
    font-size: 1.25rem;
  }

  body.actuaciones-detail-page .btn-pdf {
    min-height: 84px;
    min-width: 100%;
  }

  body.actuaciones-detail-page .tabla-canciones-actuacion th:nth-child(3),
  body.actuaciones-detail-page .tabla-canciones-actuacion th:nth-child(4),
  body.actuaciones-detail-page .tabla-canciones-actuacion th:nth-child(5),
  body.actuaciones-detail-page .tabla-canciones-actuacion td:nth-child(3),
  body.actuaciones-detail-page .tabla-canciones-actuacion td:nth-child(4),
  body.actuaciones-detail-page .tabla-canciones-actuacion td:nth-child(5) {
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  body.actuaciones-detail-page .galeria-masonry {
    column-count: 1;
  }
}

.text-gray-600 {
  color: #4b5563 !important;
}

.text-hover-primary:hover {
  color: #0d6efd !important;
}

.badge-light-primary {
  color: #0d6efd;
  background-color: #e7f1ff;
}

.badge-light-success {
  color: #198754;
  background-color: #e8f6ee;
}

.badge-light-danger {
  color: #dc3545;
  background-color: #fdecef;
}

.card-rounded {
  border-radius: 1rem;
}

.min-h-175px {
  min-height: 175px;
}

.w-15px {
  width: 15px !important;
}

.h-15px {
  height: 15px !important;
}

.w-40px {
  width: 40px !important;
}

.h-40px {
  height: 40px !important;
}

.w-80px {
  width: 80px !important;
}

.h-85px {
  height: 85px !important;
}

.fs-7 {
  font-size: 0.875rem !important;
}

.fs-8 {
  font-size: 0.75rem !important;
}

.bgi-no-repeat {
  background-repeat: no-repeat !important;
}

.bgi-size-cover {
  background-size: cover !important;
}

.bgi-position-center {
  background-position: center center !important;
}

.separator {
  width: 100%;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.separator.separator-dashed {
  border-top-style: dashed;
}

.bullet-custom {
  display: block;
}

body.usuarios-page .site-container > .d-flex:first-child,
body.enlaces-page .site-container > .d-flex:first-child,
body.biblioteca-page .site-container > .d-flex:first-child,
body.coordinacion-hilos-page .site-container > .d-flex:first-child,
body.coordinacion-hilo-page .site-container > .d-flex:first-child {
  padding: 1rem 1.25rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.usuarios-page .site-container > .d-flex:first-child h1,
body.enlaces-page .site-container > .d-flex:first-child h1,
body.biblioteca-page .site-container > .d-flex:first-child h1,
body.coordinacion-hilos-page .site-container > .d-flex:first-child h1,
body.coordinacion-hilo-page .site-container > .d-flex:first-child h1 {
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  line-height: 1.15;
}

body.usuarios-page .site-container > .d-flex:first-child .btn,
body.enlaces-page .site-container > .d-flex:first-child .btn,
body.biblioteca-page .site-container > .d-flex:first-child .btn,
body.coordinacion-hilos-page .site-container > .d-flex:first-child .btn,
body.coordinacion-hilo-page .site-container > .d-flex:first-child .btn {
  min-height: 42px;
}

body.usuarios-page .card,
body.enlaces-page .card,
body.biblioteca-page .card,
body.coordinacion-espacios-page .card,
body.coordinacion-hilos-page .card,
body.coordinacion-hilo-page .card {
  border-radius: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body.usuarios-page .card-header,
body.enlaces-page .card-header,
body.biblioteca-page .card-header,
body.coordinacion-hilos-page .card-header,
body.coordinacion-hilo-page .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.usuarios-page .card-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.usuarios-page .card-title {
  line-height: 1.2;
}

body.usuarios-page .badge,
body.coordinacion-hilos-page .badge {
  border-radius: 999px;
}

body.usuarios-page .table-responsive,
body.enlaces-page .table-responsive {
  border-radius: 1rem;
}

body.usuarios-page .table th,
body.usuarios-page .table td,
body.enlaces-page .table th,
body.enlaces-page .table td {
  vertical-align: middle;
}

body.enlaces-page .accordion-item {
  border-color: rgba(15, 23, 42, 0.08) !important;
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

body.enlaces-page .site-container > .d-flex:first-child > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.enlaces-page .site-container > .d-flex:first-child > div:last-child .btn {
  min-width: 124px;
}

body.enlaces-page .accordion-button {
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,245,237,0.92));
}

body.enlaces-page .accordion-button:not(.collapsed) {
  color: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,241,231,0.98));
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.06);
}

body.enlaces-page .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

body.enlaces-page .accordion-button .text-muted.small:last-child {
  max-width: 38%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

body.enlaces-page .accordion-button .fw-bold {
  line-height: 1.2;
}

body.enlaces-page .accordion-body {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

body.enlaces-page .enlace-card-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(180px, 34%);
  align-items: center;
  gap: 1rem;
}

body.enlaces-page .enlace-card-thumb {
  width: 92px;
  height: 92px;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 93, 0.24);
  background: linear-gradient(180deg, #fffdf8 0%, #f5ebdc 100%);
  box-shadow: 0 10px 24px rgba(58, 40, 18, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.enlaces-page .enlace-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.enlaces-page .enlace-card-thumb--empty {
  color: #8f7a51;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.enlaces-page .enlace-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

body.enlaces-page .enlace-card-title {
  line-height: 1.2;
  color: #243137;
}

body.enlaces-page .enlace-card-meta {
  color: #7f6a41 !important;
  font-size: 0.8rem;
  font-weight: 600;
}

body.enlaces-page .enlace-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

body.enlaces-page .enlace-card-url {
  justify-self: end;
  max-width: 100%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

body.enlaces-page .site-container .bg-light.border.rounded.mb-4 {
  border-color: rgba(15, 23, 42, 0.08) !important;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.enlaces-page .accordion-body .border.rounded.p-3.bg-light {
  background: #fbfcff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.enlaces-page .accordion-body form + form {
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

body.biblioteca-page .site-container > .d-flex:first-child {
  margin-bottom: 1.75rem !important;
}

body.mis-actuaciones-page .premium-page-hero,
body.perfil-page .premium-page-hero,
body.enlaces-page .premium-page-hero,
body.enlaces-public-page .premium-page-hero,
body.cursos-list-page .premium-page-hero,
body.actuaciones-archivo-page .premium-page-hero,
body.cursos-detail-page .premium-page-hero,
body.cursos-admin-page .premium-page-hero,
body.coordinacion-espacios-page .premium-page-hero,
body.coordinacion-hilos-page .premium-page-hero,
body.coordinacion-hilo-page .premium-page-hero,
body.usuarios-page .premium-page-hero,
body.pendientes-page .premium-page-hero,
body.acordes-page .premium-page-hero,
body.busqueda-page .premium-page-hero,
body.lista-editar-page .premium-page-hero {
  margin-bottom: 1.75rem !important;
}

.premium-page-hero {
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--tp-border);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(201, 163, 93, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,242,231,0.9));
  box-shadow: var(--tp-shadow-soft);
}

.premium-page-hero.premium-page-hero--with-icon,
.premium-page-hero > .d-flex.premium-page-hero--with-icon,
.premium-page-hero > .curso-detail-head__top.premium-page-hero--with-icon {
  justify-content: flex-start !important;
}

.premium-page-hero__copy {
  min-width: 0;
  max-width: 760px;
}

.premium-page-hero__media {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.92), transparent 42%),
    linear-gradient(145deg, rgba(224, 240, 239, 0.98), rgba(243, 231, 207, 0.96));
  border: 1px solid rgba(14, 75, 79, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 12px 30px rgba(34, 39, 42, 0.06);
  overflow: hidden;
}

.premium-page-hero__icon {
  width: 8.75rem;
  height: 8.75rem;
  color: var(--tp-primary);
  opacity: 0.92;
}

.premium-page-hero h1 {
  margin: 0;
  color: var(--tp-heading);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.premium-page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #8f6c37;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.premium-page-hero__text {
  margin-top: 0.6rem;
  max-width: 640px;
  color: var(--tp-text-soft);
  line-height: 1.65;
}

.premium-page-hero__actions {
  margin-left: auto;
}

.premium-page-hero__actions .btn {
  min-height: 42px;
}

body.cursos-detail-page .curso-detail-head {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem 1.1rem;
}

body.cursos-detail-page .curso-detail-head__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

body.cursos-detail-page .curso-detail-head .premium-page-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
}

body.cursos-detail-page .curso-detail-head .premium-page-hero__copy {
  max-width: 720px;
}

body.cursos-detail-page .curso-detail-head .premium-page-hero__text {
  max-width: 560px;
  margin-top: 0.2rem;
}

body.cursos-detail-page .curso-detail-tabs {
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: stretch;
}

body.cursos-detail-page .curso-detail-tabs .nav-item {
  margin-bottom: 0 !important;
  margin-right: 0 !important;
}

body.cursos-detail-page .curso-detail-tabs .nav-link {
  width: auto !important;
  min-width: 112px;
  height: auto !important;
  min-height: 58px;
  padding: 0.7rem 0.95rem !important;
  border-radius: 1rem;
  position: relative;
  border: 1px solid rgba(15, 93, 102, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.cursos-detail-page .curso-detail-tabs .nav-link:hover,
body.cursos-detail-page .curso-detail-tabs .nav-link:focus-visible {
  border-color: rgba(15, 93, 102, 0.2);
  background: rgba(247, 241, 231, 0.92);
  box-shadow: 0 8px 20px rgba(34, 39, 42, 0.06);
  transform: translateY(-1px);
}

body.cursos-detail-page .curso-detail-tabs .nav-link.active {
  background: linear-gradient(180deg, #f0e8d6 0%, #e9dfca 100%);
  border-color: rgba(165, 125, 59, 0.26);
  box-shadow: 0 10px 24px rgba(34, 39, 42, 0.08);
}

body.cursos-detail-page .curso-detail-tabs .nav-link .bullet-custom {
  display: none;
}

body.cursos-detail-page .curso-detail-tabs .nav-text {
  text-align: center;
  color: #184f57;
}

body.cursos-detail-page .curso-detail-tabs .nav-link.active .nav-text {
  color: #0f5d66;
}

body.cursos-detail-page .curso-capitulo-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #173f48;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

body.cursos-detail-page .curso-capitulo-title:hover,
body.cursos-detail-page .curso-capitulo-title:focus-visible {
  color: #0f5d66;
  text-decoration: none;
}

body.cursos-detail-page .curso-capitulo-author {
  color: #6c6f73;
  font-weight: 600;
  text-decoration: none;
}

body.cursos-detail-page .curso-capitulo-author:hover,
body.cursos-detail-page .curso-capitulo-author:focus-visible {
  color: #173f48;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  body.cursos-detail-page .curso-detail-head {
    padding: 0.95rem 1rem 1rem;
  }

  body.cursos-detail-page .curso-detail-head__top {
    align-items: flex-start;
  }

  body.cursos-detail-page .curso-detail-head .premium-page-hero__actions {
    width: 100%;
  }

  body.cursos-detail-page .curso-detail-head .premium-page-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  body.cursos-detail-page .curso-capitulo-title {
    font-size: 1.32rem;
  }
}

.premium-filter-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,245,236,0.92));
}

body.biblioteca-page .card-body > .row.g-4,
body.biblioteca-page .card-body > .row.g-3,
body.actuaciones-detail-page .card-body > .row.g-4,
body.actuaciones-detail-page .card-body > .row.g-3 {
  align-items: end;
}

body.biblioteca-page .biblioteca-preview-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  display: none;
}

body.biblioteca-page .js-medio-row,
body.actuaciones-detail-page .js-medio-row {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,244,236,0.92));
  border-color: var(--tp-border) !important;
  box-shadow: 0 10px 22px rgba(34, 39, 42, 0.05);
}

body.biblioteca-page .js-medio-row.dragging,
body.actuaciones-detail-page .js-medio-row.dragging {
  opacity: 0.55;
}

body.biblioteca-page .js-medio-row.drag-over,
body.actuaciones-detail-page .js-medio-row.drag-over {
  border-color: rgba(14, 75, 79, 0.28) !important;
  background: #f1f7f6 !important;
}

body.biblioteca-page .table-responsive,
body.verlista-page .table-responsive {
  border-radius: 1rem;
}

body.biblioteca-page .badge {
  border-radius: 999px;
}

body.biblioteca-page .card-header .card-title,
body.verlista-page .card-header .card-title,
body.lista-editar-page .card-header .card-title,
body.coordinacion-hilo-page .card-header .card-title {
  line-height: 1.2;
}

body.biblioteca-page .card-header,
body.verlista-page .card-header,
body.lista-editar-page .card-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.biblioteca-page .alert,
body.mis-actuaciones-page .alert,
body.actuaciones-archivo-page .alert {
  border-radius: 1rem;
  border-color: var(--tp-border);
}

body.actuaciones-archivo-page .archivo-hero {
  background:
    radial-gradient(circle at top right, rgba(51, 209, 198, 0.08), transparent 26%),
    radial-gradient(circle at bottom left, rgba(201, 163, 93, 0.12), transparent 26%),
    linear-gradient(135deg, #fcf8f1 0%, #f5efe4 58%, #eef6f5 100%);
  border: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow);
}

body.actuaciones-archivo-page .archivo-kpi {
  border: 1px solid var(--tp-border);
  background: rgba(255, 251, 245, 0.88);
  box-shadow: var(--tp-shadow-soft);
}

body.actuaciones-archivo-page .archivo-grid-card {
  border: 1px solid var(--tp-border);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,247,240,0.94));
  box-shadow: var(--tp-shadow-soft);
}

body.actuaciones-archivo-page .archivo-grid-card .p-4 h3 {
  color: var(--tp-heading);
  line-height: 1.15;
}

body.actuaciones-archivo-page .archivo-grid-card .badge {
  background: rgba(255, 251, 245, 0.92) !important;
  color: var(--tp-primary) !important;
  border: 1px solid rgba(14, 75, 79, 0.1);
}

body.actuaciones-archivo-page .archivo-grid-card .btn-primary {
  color: #fff !important;
}

body.mis-actuaciones-page .modo-alta,
body.mis-actuaciones-page .summary-kpi-card,
body.mis-actuaciones-page .card {
  border-color: var(--tp-border);
}

body.mis-actuaciones-page .summary-kpi-row,
body.mis-actuaciones-page .row.g-6 {
  margin-top: 0.25rem;
}

body.mis-actuaciones-page .summary-kpi-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(249,244,236,0.92));
}

body.mis-actuaciones-page .card-header .btn-group .btn.btn-light {
  background: #f6f1e6;
  border-color: rgba(201, 163, 93, 0.24);
  color: #5d666d;
}

body.mis-actuaciones-page .card-header .btn-group .btn.btn-primary {
  color: #fff !important;
}

body.mis-actuaciones-page .table-responsive {
  border: 1px solid rgba(201, 163, 93, 0.16);
  background: rgba(255,255,255,0.72);
}

body.mis-actuaciones-page .lista-miniatura {
  border-color: var(--tp-border);
  background: #fbf8f2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

body.biblioteca-page .card-body,
body.verlista-page .card-body,
body.lista-editar-page .card-body,
body.coordinacion-hilo-page .card-body {
  padding: 1.15rem;
}

body.verlista-page .barra-rapida .card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body.verlista-page .barra-rapida .btn,
body.lista-editar-page .site-container .btn {
  min-height: 40px;
}

body.verlista-page .site-container > .card .table td,
body.verlista-page .site-container > .card .table th,
body.lista-editar-page .site-container .table td,
body.lista-editar-page .site-container .table th {
  vertical-align: middle;
}

body.lista-editar-page .cancion-item {
  border-radius: 1rem;
  border-color: rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.lista-editar-page .cancion-item:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 110, 253, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.lista-editar-page .cancion-ya-en-lista {
  background: #fafcff;
}

body.lista-editar-page #lista-destino .card-body,
body.lista-editar-page #lista-disponibles .card-body {
  padding: 1rem;
}

body.coordinacion-hilo-page [id^="mensaje-"] {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

body.coordinacion-hilo-page [id^="mensaje-"] .text-muted.small {
  white-space: nowrap;
}

body.coordinacion-hilo-page .col-xl-4 .card {
  position: sticky;
  top: 100px;
}

body.usuarios-page .js-drop-input-usuario,
body.coordinacion-hilos-page #imagenesHiloDrop,
body.coordinacion-hilo-page #imagenesRespuestaDrop {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.usuarios-page .js-drop-input-usuario:hover,
body.coordinacion-hilos-page #imagenesHiloDrop:hover,
body.coordinacion-hilo-page #imagenesRespuestaDrop:hover,
body.coordinacion-hilos-page #imagenesHiloDrop.border-primary,
body.coordinacion-hilo-page #imagenesRespuestaDrop.border-primary {
  background: #f8fbff !important;
  border-color: rgba(13, 110, 253, 0.45) !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.08);
}

body.coordinacion-espacios-page .site-container > .card:first-child {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff 0%, #f6faff 100%);
}

body.coordinacion-espacios-page .site-container > .card:first-child .badge,
body.coordinacion-hilos-page .badge,
body.coordinacion-hilo-page .badge {
  border-radius: 999px;
}

body.coordinacion-espacios-page .row > [class*="col-"] .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.coordinacion-espacios-page .row > [class*="col-"] .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

body.coordinacion-hilos-page .list-group-item {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

body.coordinacion-hilos-page .list-group-item:hover {
  background: #fafcff;
  transform: translateX(2px);
}

body.coordinacion-hilos-page .col-xl-4 .card-body,
body.coordinacion-hilos-page .col-xl-8 .card-body {
  padding: 1.15rem;
}

body.coordinacion-hilos-page .col-xl-4 .card {
  position: sticky;
  top: 100px;
}

body.coordinacion-hilos-page .site-container > .d-flex:first-child .btn {
  min-width: 136px;
}

body.coordinacion-hilos-page .alert-light.border {
  background: #fcfdff;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.coordinacion-hilos-page .col-xl-4 .btn-primary {
  width: 100%;
}

body.coordinacion-hilos-page .list-group {
  border-radius: 0.85rem;
}

body.coordinacion-hilos-page .text-end.text-muted.small {
  min-width: 96px;
}

body.coordinacion-hilos-page .coordinacion-hilo-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  background: #f8f9fa;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

body.coordinacion-hilos-page .coordinacion-hilo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.perfil-page .card,
body.cursos-admin-page .card,
body.coordinacion-espacios-page .card,
body.coordinacion-hilos-page .card,
body.coordinacion-hilo-page .card,
body.usuarios-page .card,
body.pendientes-page .card,
body.acordes-page .card,
body.busqueda-page .card {
  border-color: var(--tp-border);
}

body.perfil-page .premium-page-hero,
body.cursos-admin-page .premium-page-hero,
body.enlaces-public-page .premium-page-hero,
body.cursos-list-page .premium-page-hero,
body.actuaciones-archivo-page .premium-page-hero,
body.coordinacion-espacios-page .premium-page-hero,
body.coordinacion-hilos-page .premium-page-hero,
body.coordinacion-hilo-page .premium-page-hero,
body.usuarios-page .premium-page-hero,
body.pendientes-page .premium-page-hero,
body.acordes-page .premium-page-hero,
body.busqueda-page .premium-page-hero,
body.lista-editar-page .premium-page-hero {
  background:
    radial-gradient(circle at top right, rgba(51, 209, 198, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(201, 163, 93, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,239,228,0.92));
}

body.perfil-page .card:first-of-type .table-responsive,
body.coordinacion-hilos-page .list-group,
body.coordinacion-hilo-page .coordinacion-adjuntos {
  border-radius: 1rem;
}

body.perfil-page .card:first-of-type .table th {
  color: var(--tp-heading);
  width: 34%;
}

body.perfil-page .rounded-circle.bg-light {
  background: linear-gradient(145deg, #f3ecdd, #ffffff) !important;
  color: var(--tp-primary) !important;
  border: 1px solid rgba(201, 163, 93, 0.22);
}

body.cursos-admin-page .card-header,
body.coordinacion-espacios-page .card-header,
body.coordinacion-hilos-page .card-header,
body.coordinacion-hilo-page .card-header,
body.usuarios-page .card-header,
body.pendientes-page .card-header,
body.acordes-page .card-header,
body.busqueda-page .card-header,
body.lista-editar-page .card-header {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,242,233,0.88));
}

body.cursos-admin-page .accordion-item,
body.cursos-admin-page .curso-capitulo-card,
body.cursos-admin-page .curso-foto-item,
body.cursos-admin-page .curso-secuencia-builder,
body.cursos-admin-page .curso-secuencia-preview-card {
  border-color: var(--tp-border);
  box-shadow: 0 10px 22px rgba(34, 39, 42, 0.04);
}

body.cursos-admin-page .accordion-button:not(.collapsed) {
  color: var(--tp-heading);
  background: rgba(201, 163, 93, 0.1);
  box-shadow: inset 0 -1px 0 rgba(201, 163, 93, 0.14);
}

body.cursos-admin-page .curso-secuencia-token,
body.cursos-admin-page .curso-secuencia-slot {
  border-radius: 0.95rem;
}

body.coordinacion-espacios-page .site-container > .card:first-child,
body.coordinacion-hilos-page .premium-page-hero,
body.coordinacion-hilo-page .premium-page-hero,
body.busqueda-page .premium-page-hero {
  border-color: var(--tp-border);
  box-shadow: var(--tp-shadow-soft);
}

body.coordinacion-espacios-page .row > [class*="col-"] .card,
body.coordinacion-hilos-page .list-group-item,
body.coordinacion-hilo-page [id^="mensaje-"] {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,246,239,0.92));
}

body.coordinacion-hilo-page .coordinacion-mensaje + .coordinacion-adjuntos,
body.coordinacion-hilo-page .coordinacion-mensaje + [id^="editar-mensaje-"] {
  margin-top: 1rem;
}

body.coordinacion-hilo-page .col-xl-8 > .card:first-child,
body.coordinacion-hilo-page .col-xl-4 > .card {
  box-shadow: var(--tp-shadow-soft);
}

body.usuarios-page .table-responsive,
body.busqueda-page .table-responsive,
body.pendientes-page .table-responsive,
body.acordes-page .table-responsive {
  border-radius: 1rem;
}

body.usuarios-page .card,
body.busqueda-page .summary-kpi-card,
body.pendientes-page .card,
body.acordes-page .card,
body.lista-editar-page .card {
  box-shadow: var(--tp-shadow-soft);
}

body.usuarios-page .card,
body.busqueda-page .card,
body.lista-editar-page .cancion-item,
body.lista-editar-page .cancion-seleccionada {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.usuarios-page .card:hover,
body.busqueda-page .card:hover,
body.lista-editar-page .cancion-item:hover,
body.lista-editar-page .cancion-seleccionada:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(34, 39, 42, 0.08);
}

body.usuarios-page .js-drop-input-usuario,
body.acordes-page .border.rounded.p-4.text-center.bg-light.js-drop-input,
body.busqueda-page .summary-kpi-card {
  border-color: var(--tp-border) !important;
}

body.pendientes-page .card .border.rounded.p-4.mb-3.bg-white,
body.acordes-page .border.rounded.p-4,
body.busqueda-page .alert-light.border,
body.lista-editar-page #bloquePortadaActual {
  border-color: var(--tp-border) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,246,239,0.92)) !important;
}

body.busqueda-page .summary-kpi-card,
body.busqueda-page .card,
body.pendientes-page .alert,
body.acordes-page .alert,
body.lista-editar-page .alert {
  border-color: var(--tp-border);
}

body.busqueda-page .form-control-lg {
  min-height: 54px;
  border-radius: 1rem;
}

body.usuarios-page .card-header {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

body.usuarios-page .card-body {
  padding: 1.15rem;
}

body.usuarios-page .card[id^="usuario-"] .card-header {
  background:
    radial-gradient(circle at top right, rgba(201, 163, 93, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(249,244,236,0.9));
}

body.usuarios-page .card[id^="usuario-"] img {
  box-shadow: 0 6px 18px rgba(34, 39, 42, 0.08);
}

body.usuarios-page .table-responsive.border.rounded {
  border-color: var(--tp-border) !important;
  background: rgba(255,255,255,0.82);
}

body.lista-editar-page .premium-page-hero {
  margin-bottom: 1.25rem !important;
}

body.lista-editar-page .premium-page-hero__actions .btn {
  min-width: 152px;
}

body.lista-editar-page #canciones-disponibles,
body.lista-editar-page #lista-destino {
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,242,231,0.42));
}

body.lista-editar-page .cancion-item {
  border-color: rgba(201, 163, 93, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,247,240,0.94));
}

body.lista-editar-page .cancion-seleccionada {
  border: 1px solid rgba(14, 75, 79, 0.12);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,247,0.94));
}

body.lista-editar-page .cancion-seleccionada .badge,
body.lista-editar-page .cancion-item .btn,
body.lista-editar-page .cancion-seleccionada .btn {
  border-radius: 999px;
}

body.lista-editar-page .cancion-seleccionada .form-control-sm,
body.lista-editar-page .cancion-seleccionada .form-select-sm {
  min-height: 36px;
}

body.lista-editar-page #lista-destino.vacia::before {
  padding: 1rem 0.25rem 0.25rem;
}

body.lista-editar-page #posterDrop,
body.lista-editar-page #bloquePortadaActual {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

body.busqueda-page .summary-kpi-card .fs-2 {
  color: var(--tp-heading);
}

body.busqueda-page .card-body > .row.g-4 > [class*="col-"] .card,
body.busqueda-page .card-body > .row.g-4 > [class*="col-"] > a.card {
  height: 100%;
}

body.busqueda-page .alert-warning,
body.busqueda-page .alert-light.border {
  box-shadow: var(--tp-shadow-soft);
}

body.actuaciones-detail-page .card,
body.actuaciones-detail-page .sequence-preview,
body.actuaciones-detail-page .card-cancion-pdf {
  border-color: var(--tp-border);
  box-shadow: var(--tp-shadow-soft);
}

body.actuaciones-detail-page .table-responsive {
  border-radius: 1rem;
  border: 1px solid rgba(201, 163, 93, 0.16);
  background: rgba(255,255,255,0.82);
}

body.actuaciones-detail-page .btn-pdf {
  box-shadow: 0 10px 24px rgba(34, 39, 42, 0.06);
}

body.actuaciones-detail-page .galeria-titulo span {
  color: var(--tp-heading);
}

body.actuaciones-detail-page .filtro-busqueda,
body.actuaciones-detail-page .input-group .btn,
body.actuaciones-detail-page #btnMostrarNuevaCancion {
  min-height: 38px;
}

body.actuaciones-detail-page form[action$="modulos/actuaciones/actuaciones.php"] {
  margin-bottom: 0;
}

body.actuaciones-detail-page form[action$="modulos/actuaciones/actuaciones.php"] .input-group {
  align-items: stretch;
}

body.actuaciones-detail-page .filtro-busqueda {
  border-radius: 0.65rem 0 0 0.65rem;
}

body.actuaciones-detail-page .input-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.actuaciones-detail-page #btnMostrarNuevaCancion {
  align-self: center;
}

body.pendientes-page .card-header .btn,
body.acordes-page .card-header .btn,
body.lista-editar-page .premium-page-hero__actions .btn,
body.usuarios-page .premium-page-hero__actions .btn {
  min-height: 42px;
}

body.acordes-page .badge,
body.pendientes-page .badge,
body.usuarios-page .badge,
body.busqueda-page .badge {
  border-radius: 999px;
}

body.coordinacion-hilo-page {
  overflow-x: hidden;
}

body.coordinacion-hilo-page .site-content,
body.coordinacion-hilo-page .site-content .row,
body.coordinacion-hilo-page .site-content [class*="col-"],
body.coordinacion-hilo-page .site-content .card,
body.coordinacion-hilo-page .site-content .card-body {
  min-width: 0;
}

body.coordinacion-hilo-page .coordinacion-mensaje {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

body.coordinacion-hilo-page #mensaje-0,
body.coordinacion-hilo-page [id^="mensaje-"] {
  border-radius: 1rem;
}

body.coordinacion-hilo-page .coordinacion-adjuntos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

body.coordinacion-hilo-page .coordinacion-adjuntos img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  display: block;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.coordinacion-hilo-page .coordinacion-adjunto-thumb {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

body.coordinacion-hilo-page .coordinacion-adjunto-thumb:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  border-radius: 12px;
}

body.coordinacion-hilo-page .coordinacion-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 12px;
}

body.coordinacion-hilo-page .coordinacion-lightbox-nav {
  min-width: 42px;
}

body.coordinacion-hilo-page .col-xl-8 > .card,
body.coordinacion-hilo-page .col-xl-4 > .card {
  height: 100%;
}

@media (max-width: 991.98px) {
  .calendar-groups {
    width: max-content;
    min-width: 455px;
    padding-bottom: 0.25rem;
  }

  .site-page {
    padding-top: var(--site-header-offset-mobile);
  }

  .site-container,
  .app-container.container-fluid {
    max-width: 100%;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .site-content {
    padding-top: 0.7rem !important;
  }

  .calendar-groups__weekdays,
  .calendar-groups__grid {
    gap: 0.35rem;
  }

  .calendar-groups__day {
    min-width: 62px;
    min-height: 102px;
    padding: 0.4rem;
    border-radius: 0.8rem;
  }

  .calendar-groups__weekday {
    font-size: 0.68rem;
  }

  .calendar-groups__daynum {
    min-width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
  }

  .calendar-groups__event {
    padding: 0.3rem 0.35rem;
    border-radius: 0.6rem;
  }

  .calendar-groups__eventtime,
  .calendar-groups__eventplace,
  .calendar-groups__more {
    font-size: 0.64rem;
  }

  .calendar-groups__eventgroup {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-groups__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-groups__toolbar .btn {
    justify-content: center;
  }

  .calendar-groups__title {
    width: 100%;
    text-align: center;
  }

  .calendar-week-list__event {
    flex-direction: column;
    gap: 0.35rem;
  }

  .calendar-week-list__time {
    min-width: 0;
  }

  .calendar-week-list__side {
    width: 100%;
    align-items: flex-start;
  }

  body.calendario-grupos-page .site-content {
    padding-top: 0.7rem !important;
    padding-bottom: 1rem !important;
  }

  body.calendario-grupos-page .calendar-main-card .card-body {
    padding-top: 1.1rem !important;
    padding-bottom: 1.25rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body.calendario-grupos-page .premium-page-hero__actions {
    width: 100%;
    margin-left: 0;
  }

  body.calendario-grupos-page .calendar-view-switch {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.calendario-grupos-page .calendar-view-switch .btn,
  body.calendario-grupos-page .premium-page-hero__actions > .btn {
    width: 100%;
    justify-content: center;
  }

  body.calendario-grupos-page .calendar-form-modal .modal-header {
    padding: 0.85rem 0.85rem 0.2rem;
  }

  body.calendario-grupos-page .calendar-form-modal__titleblock {
    padding: 0.9rem 2.7rem 0.9rem 0.95rem;
    border-radius: 1rem;
  }

  body.calendario-grupos-page .calendar-form-modal .modal-title {
    font-size: 1.28rem;
  }

  body.calendario-grupos-page .calendar-form-modal__subtitle {
    font-size: 0.9rem;
  }

  body.home-page-compact .site-content {
    padding-top: 0.25rem !important;
  }

  .site-brand-title {
    font-size: 1rem;
  }

  body.header-compact .site-brand-title .fw-bold {
    font-size: 1rem !important;
  }

  .site-header__inner {
    min-height: 64px;
    padding-right: 0.75rem;
  }

  .site-header__navinner {
    min-height: auto;
  }

  .site-header__navleft,
  .site-header__navcenter,
  .site-header__navright {
    flex: 0 0 auto;
  }

  .site-header {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 6px 20px rgba(15, 23, 42, 0.04);
  }

  .topbar-inline-search {
    width: 100%;
    min-width: 0;
  }

  .site-header-actions__tools {
    margin-left: 0 !important;
  }

  .site-header-actions__tools--tablet {
    margin-left: auto !important;
  }

  .site-header-actions__tools--tablet .topbar-user-name {
    display: inline;
  }

  .site-brand-link--compact {
    display: none !important;
  }

  body.usuarios-page .site-container > .d-flex:first-child,
  body.enlaces-page .site-container > .d-flex:first-child,
  body.biblioteca-page .site-container > .d-flex:first-child,
  body.coordinacion-hilos-page .site-container > .d-flex:first-child,
  body.coordinacion-hilo-page .site-container > .d-flex:first-child {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.coordinacion-hilo-page .col-xl-4 .card {
    position: static;
  }

  body.coordinacion-hilos-page .col-xl-4 .card {
    position: static;
  }

  body.enlaces-page .accordion-button .text-muted.small:last-child {
    max-width: 100%;
    text-align: left;
    white-space: normal;
  }

  body.enlaces-page .enlace-card-head {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.85rem;
  }

  body.enlaces-page .enlace-card-thumb {
    width: 76px;
    height: 76px;
  }

  body.enlaces-page .enlace-card-url {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    white-space: normal;
  }

  .premium-page-hero {
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.1rem;
  }

  .premium-page-hero__media {
    flex-basis: 148px;
    width: 148px;
    height: 148px;
    border-radius: 1.2rem;
  }

  .premium-page-hero__icon {
    width: 6.5rem;
    height: 6.5rem;
  }

  .premium-page-hero__copy,
  .premium-page-hero__text {
    max-width: 100%;
  }

  .premium-page-hero__actions {
    width: 100%;
  }

  .premium-page-hero__actions .btn,
  .premium-page-hero__actions .btn-group,
  .premium-page-hero__actions form {
    width: 100%;
  }

  .premium-page-hero__actions .btn {
    justify-content: center;
  }

  .card-header,
  body.biblioteca-page .card-header,
  body.verlista-page .card-header,
  body.lista-editar-page .card-header {
    padding: 0.9rem 1rem;
  }

  .card-body,
  body.biblioteca-page .card-body,
  body.verlista-page .card-body,
  body.lista-editar-page .card-body,
  body.coordinacion-hilo-page .card-body {
    padding: 1rem;
  }

  .table-responsive {
    border-radius: 0.9rem;
  }

  .table {
    font-size: 0.93rem;
  }

  body.mis-actuaciones-page .summary-kpi-row > [class*="col-"],
  body.coordinacion-espacios-page .row > [class*="col-"],
  body.coordinacion-hilos-page .row > [class*="col-"] {
    width: 100%;
  }

  body.perfil-page .card-body > .d-flex.align-items-center.gap-4.mb-6 {
    align-items: flex-start !important;
  }

  body.coordinacion-hilo-page .d-flex.justify-content-between.align-items-start.gap-3.mb-3,
  body.coordinacion-hilos-page .d-flex.justify-content-between.align-items-start.gap-3 {
    flex-direction: column;
    align-items: stretch !important;
  }

  body.coordinacion-hilo-page .coordinacion-adjuntos img {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 767.98px) {
  .calendar-groups {
    min-width: 470px;
  }

  .calendar-groups__day {
    min-width: 64px;
  }

  .calendar-groups__event {
    padding: 0.4rem 0.45rem;
  }

  .calendar-groups__eventtime,
  .calendar-groups__eventplace,
  .calendar-groups__more {
    font-size: 0.68rem;
  }

  .calendar-groups__eventgroup {
    font-size: 0.78rem;
  }
}

@media (max-width: 767.98px) {
  .site-container,
  .app-container.container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-content {
    padding-top: 0.5rem !important;
  }

  .premium-page-hero {
    padding: 0.95rem 0.9rem 1rem;
  }

  .premium-page-hero__media {
    flex-basis: 120px;
    width: 120px;
    height: 120px;
    border-radius: 1rem;
  }

  .premium-page-hero__icon {
    width: 5rem;
    height: 5rem;
  }

  .premium-page-hero h1 {
    font-size: clamp(1.45rem, 5.2vw, 1.8rem);
    line-height: 1.15;
  }

  .premium-page-hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .card {
    border-radius: 1rem;
  }

  .card-header {
    padding: 0.85rem 0.9rem;
  }

  .card-body {
    padding: 0.9rem;
  }

  .table {
    font-size: 0.9rem;
  }

  .table td,
  .table th {
    white-space: nowrap;
  }

  body.perfil-page .card:first-of-type .table th {
    width: auto;
    min-width: 124px;
  }

  body.mis-actuaciones-page .lista-miniatura {
    max-width: 100%;
  }

  body.coordinacion-hilo-page .premium-page-hero__actions,
  body.coordinacion-hilos-page .premium-page-hero__actions {
    gap: 0.5rem !important;
  }

  body.coordinacion-hilo-page .premium-page-hero__actions .btn,
  body.coordinacion-hilo-page .premium-page-hero__actions .btn-sm,
  body.coordinacion-hilos-page .premium-page-hero__actions .btn {
    width: 100%;
  }

  body.coordinacion-hilo-page .coordinacion-adjuntos {
    gap: 10px;
  }

  body.coordinacion-hilo-page .coordinacion-adjuntos img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
  }

  body.coordinacion-hilos-page .coordinacion-hilo-thumb {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  body.cursos-admin-page .accordion-button,
  body.cursos-admin-page .curso-secuencia-builder,
  body.cursos-admin-page .curso-secuencia-preview-card {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}
