/* Brand — alineado al sitio público (teal / piedra), sin morado Materio */
:root,
[data-bs-theme=light] {
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-primary-bg-subtle: #e0f2f1;
  --bs-primary-border-subtle: #99d5cf;
  --bs-primary-text-emphasis: #115e59;
  --bs-link-color: #0f766e;
  --bs-link-hover-color: #0d9488;
  --bs-focus-ring-color: rgba(15, 118, 110, .28);
  --panel-brand: #0f766e;
  --panel-surface: #fafaf9;
  --panel-ink: #1c1917;
  --panel-muted: #78716c;
}

.panel-brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.app-brand .app-brand-text {
  letter-spacing: 0;
  font-size: 1.05rem;
  color: var(--panel-ink, #1c1917);
}

/* Dark modo piedra + teal (sin morado Materio) */
[data-bs-theme=dark] {
  --bs-primary: #2dd4bf;
  --bs-primary-rgb: 45, 212, 191;
  --bs-primary-bg-subtle: rgba(45, 212, 191, .14);
  --bs-primary-border-subtle: rgba(45, 212, 191, .32);
  --bs-primary-text-emphasis: #99f6e4;
  --bs-link-color: #5eead4;
  --bs-link-hover-color: #99f6e4;
  --bs-focus-ring-color: rgba(45, 212, 191, .35);
  --bs-body-bg: #1c1917;
  --bs-body-bg-rgb: 28, 25, 23;
  --bs-paper-bg: #292524;
  --bs-paper-bg-rgb: 41, 37, 36;
  --bs-base-color: #f5f5f4;
  --bs-base-color-rgb: 245, 245, 244;
  --bs-heading-color: #fafaf9;
  --bs-body-color: #d6d3d1;
  --bs-secondary-color: rgba(214, 211, 209, 0.72);
  --bs-border-color: #44403c;
  --bs-box-shadow: 0 0.25rem 0.625rem 0 rgba(0, 0, 0, 0.38);
  --bs-box-shadow-xs: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.3);
  --bs-box-shadow-sm: 0 0.1875rem 0.375rem 0 rgba(0, 0, 0, 0.32);
  --bs-box-shadow-lg: 0 0.375rem 1rem 0 rgba(0, 0, 0, 0.42);
  --bs-box-shadow-xl: 0 0.5rem 1.75rem 0 rgba(0, 0, 0, 0.48);
  --bs-floating-component-shadow: 0 1px 16px 1px rgba(0, 0, 0, 0.35);
  --bs-navbar-bg: rgba(41, 37, 36, 0.92);
  --bs-navbar-border-color: rgba(68, 64, 60, 0.85);
  --bs-nav-border-color: #292524;
  --panel-brand: #2dd4bf;
  --panel-surface: #1c1917;
  --panel-ink: #fafaf9;
  --panel-muted: #a8a29e;
}

/* Menú lateral más limpio */
.bg-menu-theme {
  background-color: var(--bs-paper-bg, #fff) !important;
}
.menu-vertical .menu-inner > .menu-header {
  margin-top: .65rem;
  padding: .55rem 1.35rem .35rem;
}
.menu-vertical .menu-inner > .menu-header:first-child {
  margin-top: .15rem;
}
.menu-vertical .menu-header .menu-header-text {
  letter-spacing: .06em;
  font-size: .68rem;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--panel-muted, #78716c);
  opacity: 1;
}
.menu-vertical .menu-item .menu-link {
  border-radius: .55rem;
  margin-inline: .65rem;
  width: calc(100% - 1.3rem);
  transition: background .15s ease, color .15s ease;
}
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle),
.menu-vertical .menu-item.active > .menu-link.menu-toggle {
  background: color-mix(in sRGB, var(--bs-primary) 14%, transparent) !important;
  color: var(--bs-primary) !important;
  box-shadow: none;
}
.menu-vertical .menu-item.active > .menu-link .menu-icon {
  color: var(--bs-primary) !important;
}
.menu-vertical .menu-item:not(.active) > .menu-link:hover {
  background: color-mix(in sRGB, var(--bs-primary) 7%, transparent);
}
.layout-navbar.navbar-detached {
  box-shadow: 0 1px 0 color-mix(in sRGB, var(--bs-border-color) 80%, transparent),
    0 .35rem 1rem rgba(28, 25, 23, .04);
}
.card {
  border: 1px solid color-mix(in sRGB, var(--bs-border-color) 88%, transparent);
  box-shadow: 0 1px 0 rgba(28, 25, 23, .03);
}
[data-bs-theme=dark] .card {
  box-shadow: none;
}
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #0d9488;
  --bs-btn-hover-border-color: #0d9488;
  --bs-btn-active-bg: #0f766e;
  --bs-btn-active-border-color: #0f766e;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}
[data-bs-theme=dark] .btn-primary {
  --bs-btn-color: #1c1917;
  --bs-btn-hover-bg: #5eead4;
  --bs-btn-hover-border-color: #5eead4;
  --bs-btn-hover-color: #1c1917;
  --bs-btn-active-bg: #2dd4bf;
  --bs-btn-active-border-color: #2dd4bf;
  --bs-btn-active-color: #1c1917;
}
.btn-label-primary {
  background: var(--bs-primary-bg-subtle) !important;
  color: var(--bs-primary-text-emphasis) !important;
  border-color: transparent !important;
}
.bg-label-primary {
  background-color: var(--bs-primary-bg-subtle) !important;
  color: var(--bs-primary-text-emphasis) !important;
}
.page-item.active .page-link,
.pagination .page-item.active .page-link {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
.form-control:focus,
.form-select:focus,
.form-floating-outline > .form-control:focus,
.form-floating-outline > .form-select:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color) !important;
}
.authentication-wrapper .card {
  border-radius: 1rem;
  border: 1px solid color-mix(in sRGB, var(--bs-border-color) 90%, transparent);
  box-shadow: 0 1rem 2.5rem rgba(28, 25, 23, .08);
}
.authentication-wrapper .app-brand-text {
  text-transform: none;
}

.auth-card {
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.auth-brand-link {
  text-decoration: none;
}
.auth-brand-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
/* Ojo dentro del campo (no rompe bordes Materio) */
.form-floating-password {
  position: relative;
}
.form-floating-password > .form-control {
  padding-right: 2.75rem !important;
}
.password-eye {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color, #89868d);
  cursor: pointer;
  padding: 0;
  border-radius: .35rem;
}
.password-eye:hover,
.password-eye:focus {
  color: var(--bs-primary, #0f766e);
  outline: none;
}
.password-eye svg,
.password-eye [data-lucide] {
  width: 1.05rem !important;
  height: 1.05rem !important;
  pointer-events: none;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0 1.1rem;
  color: var(--bs-secondary-color, #89868d);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bs-border-color, #e6e6e8);
}
.auth-divider span {
  white-space: nowrap;
}
.auth-google-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.auth-google-ico {
  flex-shrink: 0;
}
/* Auth: mismos bordes email/password */
.auth-card .form-icon-field .input-group-merge {
  align-items: stretch;
}
.auth-card .form-icon-field .input-group-merge > .form-floating {
  flex: 1 1 auto;
  min-width: 0;
  width: 1%;
}

[data-bs-theme=dark] .stat-card,
[data-bs-theme=dark] .pagination a,
[data-bs-theme=dark] .tag-chip,
[data-bs-theme=dark] .social-builder-item,
[data-bs-theme=dark] .map-search-results,
[data-bs-theme=dark] .map-result-item {
  background: var(--bs-paper-bg);
  color: var(--bs-body-color);
}

/* Bridge Lucide + ajustes Materio */
.menu-link .menu-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-inline-end: .5rem;
  width: 1.375rem;
  height: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
}

.menu-link .menu-icon svg,
.menu-link .menu-icon [data-lucide],
.nav-link svg,
.icon,
[data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  flex-shrink: 0;
}

.icon-sm {
  width: 1.05rem !important;
  height: 1.05rem !important;
}

.avatar img {
  object-fit: cover;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bs-paper-bg, #fff);
  border-radius: .625rem;
  box-shadow: 0 .25rem 1.125rem rgba(47, 43, 61, .08);
}

.stat-card .label {
  color: var(--bs-secondary-color, #89868d);
  font-size: .8rem;
  margin-bottom: .2rem;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-heading-color, #2f2b3d);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: .5rem;
  display: grid;
  place-items: center;
}

.stat-icon.primary { background: rgba(15, 118, 110, .16); color: #0f766e; }
.stat-icon.success { background: rgba(40, 199, 111, .16); color: #28c76f; }
.stat-icon.warning { background: rgba(255, 159, 67, .16); color: #ff9f43; }
.stat-icon.info { background: rgba(0, 186, 209, .16); color: #00bad1; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
}

.dash-welcome .avatar-lg .avatar-initial {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
}
.dash-stat:hover h5 {
  color: var(--bs-primary, #0f766e);
}
.dash-module-card {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid color-mix(in sRGB, var(--bs-border-color) 90%, transparent);
}
.dash-module-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in sRGB, var(--bs-primary) 35%, var(--bs-border-color));
  box-shadow: var(--bs-box-shadow-lg, 0 .375rem 1rem rgba(46, 38, 61, .14));
}
.dash-module-card h3 {
  color: var(--bs-heading-color, #2f2b3d);
}
.dash-stat-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-box-shadow-lg, 0 .375rem 1rem rgba(46, 38, 61, .14));
}
.dash-row-link:hover td {
  color: var(--bs-primary, #0f766e);
}
.dash-msg-list .avatar-initial {
  font-size: .75rem;
  font-weight: 600;
}
.min-w-0 { min-width: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.15rem;
}

.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-hint { font-size: .75rem; color: var(--bs-secondary-color, #89868d); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .85rem;
}

.media-item {
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .65rem;
  overflow: hidden;
  background: #fafafa;
}

.media-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.media-item .bar {
  padding: .45rem .5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
}

.media-item.is-default {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, .16);
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: #d9d8e0;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider { background: #0f766e; }
.switch input:checked + .slider::before { transform: translateX(18px); }

.pagination ul {
  display: flex;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: .5rem;
  background: #fff;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  color: inherit;
}

.pagination li.active a {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .form-grid,
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Dropzone Materio-like */
.dropzone-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 160px;
  padding: 1.25rem;
  border: 2px dashed var(--bs-border-color, #d1cfd7);
  border-radius: .75rem;
  background: color-mix(in sRGB, var(--bs-primary, #0f766e) 4%, #fff);
  cursor: pointer;
  text-align: center;
  transition: .2s ease;
}

.dropzone-box:hover,
.dropzone-box.is-dragover {
  border-color: var(--bs-primary, #0f766e);
  background: rgba(15, 118, 110, .08);
}

.dropzone-box .dz-icon {
  color: var(--bs-primary, #0f766e);
  margin-bottom: .25rem;
}

.dropzone-box .dz-icon svg {
  width: 2rem;
  height: 2rem;
}

/* GalerÒ­a slider */
.slider-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.slider-gallery-item {
  position: relative;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 .125rem .5rem rgba(47, 43, 61, .06);
  cursor: grab;
}

.slider-gallery-item.is-default {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, .18);
}

.sg-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f3f2f5;
}

.sg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: #0f766e;
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .45rem;
  border-radius: .35rem;
}

.sg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .65rem;
}

.sg-order {
  font-size: .75rem;
  color: var(--bs-secondary-color, #89868d);
  font-weight: 600;
}

.sg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.slider-gallery-item.is-dragging {
  opacity: .55;
}

.sg-drag {
  position: absolute;
  top: .4rem;
  right: .4rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .4rem;
  background: rgba(255, 255, 255, .92);
  color: #6f6b7d;
  box-shadow: 0 .125rem .35rem rgba(47, 43, 61, .12);
  cursor: grab;
}

.dyn-btn-row {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr auto;
  gap: .5rem;
  align-items: center;
  margin-bottom: .65rem;
  padding: .65rem;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .5rem;
  background: #faf9fb;
}

.dyn-btn-row .form-floating,
.dyn-btn-row .input-group {
  margin-bottom: 0;
}

.dyn-btn-row .form-floating > .form-control {
  height: 2.75rem;
  min-height: 2.75rem;
}

.dyn-btn-row .input-group-merge > .form-floating {
  flex: 1 1 auto;
  min-width: 0;
}

.dyn-btn-type .badge {
  white-space: nowrap;
}

.media-item[data-id] {
  position: relative;
  cursor: grab;
}

.media-item .media-drag {
  position: absolute;
  top: .35rem;
  right: .35rem;
  z-index: 2;
  background: rgba(255,255,255,.9);
  border-radius: .35rem;
  padding: .15rem;
  cursor: grab;
}

.media-item.is-dragging {
  opacity: .55;
}

/* Form floating outline: usa clases Materio nativas.
   Solo ajustes menores de layout. */
.card-body .form-floating.form-floating-outline.mb-3:last-child {
  margin-bottom: 0 !important;
}

.form-floating.form-floating-outline > textarea.form-control {
  min-height: 7rem;
  height: auto;
}

.form-grid .form-group .form-floating {
  margin-bottom: 0;
}
.form-check.form-switch {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding-left: 2.85rem;
  margin-bottom: 0;
}

.form-check.form-switch .form-check-input {
  width: 2.75rem;
  height: 1.5rem;
  margin-left: -2.85rem;
  margin-top: 0;
  cursor: pointer;
  border: 0;
  background-color: rgba(47, 43, 61, 0.12);
  background-image: url("data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg filter='url(%23a)'%3e%3ccircle cx='11' cy='11' r='8.5' fill='%23fff'/%3e%3c/g%3e%3cdefs%3e%3cfilter id='a' x='0' y='0' width='22' height='22' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e%3cfeFlood flood-opacity='0' result='BackgroundImageFix'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dy='1'/%3e%3cfeGaussianBlur stdDeviation='1.5'/%3e%3cfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.15 0 0 0 0 0.24 0 0 0 0.16 0'/%3e%3cfeBlend in2='BackgroundImageFix' result='effect1_dropShadow'/%3e%3cfeBlend in='SourceGraphic' in2='effect1_dropShadow' result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e");
  background-position: left center;
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0.25rem rgba(0, 0, 0, 0.12);
  transition: background-position .2s ease, background-color .2s ease;
}

.form-check.form-switch .form-check-input:focus {
  box-shadow: inset 0 0 0.25rem rgba(0, 0, 0, 0.12);
  border-color: transparent;
  outline: 0;
}

.form-check.form-switch .form-check-input:checked {
  background-color: var(--bs-primary, #0f766e);
  border-color: var(--bs-primary, #0f766e);
  box-shadow: none;
  /* checkmark a la izquierda + knob blanco a la derecha */
  background-image:
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5L12 5'/%3e%3c/svg%3e"),
    url("data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg filter='url(%23a)'%3e%3ccircle cx='11' cy='11' r='8.5' fill='%23fff'/%3e%3c/g%3e%3cdefs%3e%3cfilter id='a' x='0' y='0' width='22' height='22' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e%3cfeFlood flood-opacity='0' result='BackgroundImageFix'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dy='1'/%3e%3cfeGaussianBlur stdDeviation='1.5'/%3e%3cfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.15 0 0 0 0 0.24 0 0 0 0.16 0'/%3e%3cfeBlend in2='BackgroundImageFix' result='effect1_dropShadow'/%3e%3cfeBlend in='SourceGraphic' in2='effect1_dropShadow' result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e");
  background-position: left 0.35rem center, right center;
  background-size: 0.85rem 0.85rem, 1.5rem 1.5rem;
}

.form-check.form-switch .form-check-label {
  cursor: pointer;
  color: var(--bs-heading-color, #433c50);
  font-weight: 500;
  padding-top: 0.05rem;
  user-select: none;
}

.form-check.form-switch .form-check-input:not(:checked) ~ .form-check-label {
  color: var(--bs-secondary-color, #89868d);
}

.row-drag {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

.row-drag:active {
  cursor: grabbing;
}

tr[data-id].is-dragging,
tr[data-id].is-chosen {
  background: rgba(15, 118, 110, .08) !important;
}

.sg-drag {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  min-width: 2rem;
  min-height: 2rem;
}

.sortable-fallback {
  opacity: .9;
  box-shadow: 0 .5rem 1rem rgba(47, 43, 61, .18);
}

/* Modal confirmar eliminar ââ‚¬” Materio */
.panel-confirm-modal {
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 1rem 2.5rem rgba(47, 43, 61, .18);
  overflow: hidden;
}

.panel-confirm-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 62, 29, .12);
  color: #ff3e1d;
}

.panel-confirm-icon.is-primary {
  background: rgba(15, 118, 110, .12);
  color: #0f766e;
}

.panel-confirm-icon.is-success {
  background: rgba(113, 221, 55, .14);
  color: #56ca00;
}

.panel-confirm-icon.is-warning {
  background: rgba(255, 171, 0, .14);
  color: #ffab00;
}

.panel-confirm-icon svg,
.panel-confirm-icon i {
  width: 1.85rem;
  height: 1.85rem;
}

#panelConfirmModal .modal-footer .btn {
  min-width: 6.5rem;
}

#panelConfirmModal .modal-body h4 {
  font-weight: 600;
  color: #433c50;
}

.cat-stack .cat-card {
  border: 1px solid var(--bs-border-color, #e6e6e8);
  box-shadow: 0 .125rem .5rem rgba(47, 43, 61, .06);
}

.cat-stack .cat-card.is-dragging,
.cat-stack .cat-card.is-chosen {
  opacity: .85;
  box-shadow: 0 .5rem 1.25rem rgba(15, 118, 110, .18);
}

.cat-drag {
  cursor: grab;
  touch-action: none;
}

.cat-drag:active {
  cursor: grabbing;
}

.dyn-inc-row {
  display: grid;
  grid-template-columns: minmax(8rem, 9rem) 1fr 1.2fr auto;
  gap: .5rem;
  align-items: center;
  margin-bottom: .65rem;
  padding: .65rem;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .5rem;
  background: #faf9fb;
}

.dyn-inc-row .form-floating,
.dyn-inc-row .input-group {
  margin-bottom: 0;
}

.dyn-inc-row .form-floating > .form-control {
  height: 2.75rem;
  min-height: 2.75rem;
}

.dyn-inc-row .input-group-merge > .form-floating {
  flex: 1 1 auto;
  min-width: 0;
}

/* Quill Full Editor */
.full-editor.ql-container {
  min-height: 280px;
  font-size: .9375rem;
  border: 0 !important;
}
.ql-toolbar.ql-snow {
  border: 0 !important;
  border-bottom: 1px solid var(--bs-border-color, #e6e6e8) !important;
  background: #faf9fb;
  border-radius: .5rem .5rem 0 0;
}
.ql-container.ql-snow {
  border-radius: 0 0 .5rem .5rem;
}
.ql-editor {
  min-height: 260px;
}

@media (max-width: 767.98px) {
  .dyn-inc-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  #panelConfirmModal .modal-dialog {
    margin: 1rem;
  }
}

.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2e263d;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
}
.avatar-initials-lg {
  width: 96px;
  height: 96px;
  font-size: 1.5rem;
}

/* Tags chips (Materio-style) */
.tags-field {
  position: relative;
  padding-top: .35rem;
}
.tags-field .tags-input-group {
  align-items: stretch;
}
.tags-field .tags-input-group > .input-group-text {
  color: #8a8494;
  background: transparent;
}
.tags-field .tags-input-group > .tags-box {
  flex: 1 1 auto;
  min-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.tags-field .tags-label {
  position: absolute;
  top: 0;
  left: 2.75rem;
  z-index: 2;
  padding: 0 .35rem;
  font-size: .8125rem;
  line-height: 1;
  color: rgba(46, 38, 61, .7);
  background: var(--bs-paper-bg, #fff);
  transform: translateY(-50%);
  pointer-events: none;
}
.tags-field.is-focused .tags-label,
.tags-field.is-filled .tags-label {
  color: var(--bs-primary, #0f766e);
}
.tags-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-height: 3.25rem;
  height: auto !important;
  padding: .55rem .75rem !important;
  cursor: text;
}
.tags-field.is-focused .tags-box {
  border-color: var(--bs-primary, #0f766e) !important;
  box-shadow: 0 0 0 .15rem rgba(15, 118, 110, .16);
}
.tags-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.tags-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: .28rem .45rem .28rem .65rem;
  border: 0;
  border-radius: .375rem;
  background: var(--bs-primary, #0f766e);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
}
.tags-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tags-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  border-radius: .25rem;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.tags-chip-remove:hover {
  background: rgba(255, 255, 255, .32);
}
.tags-chip-remove i,
.tags-chip-remove svg {
  width: .75rem;
  height: .75rem;
}
.tags-type {
  flex: 1 1 7rem;
  min-width: 7rem;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: .15rem .1rem !important;
  margin: 0;
  font-size: .9375rem;
  color: inherit;
}
.tags-type::placeholder {
  color: rgba(46, 38, 61, .45);
}
.tags-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}
.tags-suggestion {
  border: 1px solid var(--bs-border-color, #e6e6e8);
  background: #f8f7fa;
  color: rgba(46, 38, 61, .8);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: .15s ease;
}
.tags-suggestion:hover,
.tags-suggestion.is-used {
  border-color: rgba(15, 118, 110, .45);
  background: #ede4ff;
  color: #0f766e;
}
.tags-suggestion.is-used {
  opacity: .55;
  pointer-events: none;
}

/* ConfiguraciÒ³n */
.config-social-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.config-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background: #ede4ff;
  color: #0f766e;
  flex-shrink: 0;
}
.config-social-icon svg { width: 1.15rem; height: 1.15rem; }

.social-builder {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.social-builder-row {
  display: grid;
  grid-template-columns: auto minmax(11rem, 14rem) 1fr auto;
  gap: .65rem;
  align-items: center;
  padding: .65rem;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .65rem;
  background: #fff;
}
.social-builder-row.is-dragging { opacity: .55; }
.social-drag { cursor: grab; }

.icon-select {
  position: relative;
}
.icon-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  min-height: 3rem;
  padding: .45rem .7rem;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .5rem;
  background: #fff;
  color: inherit;
  text-align: left;
}
.icon-select.is-open .icon-select-trigger {
  border-color: #0f766e;
  box-shadow: 0 0 0 .15rem rgba(15, 118, 110, .16);
}
.icon-select-current {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.icon-select-ico {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: #0f766e;
  flex-shrink: 0;
}
.icon-select-ico svg { width: 1.15rem; height: 1.15rem; }
.icon-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .35rem);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .55rem;
  box-shadow: 0 .5rem 1.25rem rgba(46, 38, 61, .14);
  max-height: 260px;
  overflow: auto;
  padding: .35rem;
}
.icon-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: .4rem;
  padding: .55rem .6rem;
  color: inherit;
  cursor: pointer;
}
.icon-select-option-left {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.icon-select-check {
  opacity: 0;
  color: #fff;
}
.icon-select-option.is-active,
.icon-select-option:hover {
  background: #0f766e;
  color: #fff;
}
.icon-select-option.is-active .icon-select-ico,
.icon-select-option:hover .icon-select-ico {
  color: #fff;
}
.icon-select-option.is-active .icon-select-check {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .social-builder-row {
    grid-template-columns: auto 1fr auto;
  }
  .social-builder-row .form-floating {
    grid-column: 1 / -1;
  }
}

.config-map-picker { position: relative; }
.config-map-search { position: relative; }
.config-map-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .35rem);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .5rem;
  box-shadow: 0 .5rem 1.25rem rgba(46, 38, 61, .12);
  max-height: 240px;
  overflow: auto;
}
.config-map-result {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .7rem .9rem;
  font-size: .875rem;
  color: inherit;
  cursor: pointer;
}
.config-map-result:hover,
.config-map-result:focus,
.config-map-result.is-active {
  background: #f6f2ff;
  color: #0f766e;
}
.config-map-canvas {
  height: 320px;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid var(--bs-border-color, #e6e6e8);
  background: #f3f2f5;
}

/* Campos con iconos (Materio input-group-merge) */
.form-icon-field .input-group-merge {
  align-items: stretch;
}
.form-icon-field .input-group-merge > .form-floating {
  flex: 1 1 auto;
  min-width: 0;
  width: 1%;
}
.form-icon-field .input-group-text {
  color: #8a8494;
  background: transparent;
}
.form-icon-field .input-group-text svg,
.form-icon-field .input-group-text [data-lucide] {
  width: 1.1rem;
  height: 1.1rem;
}
.form-icon-field .form-floating-textarea .form-control {
  min-height: 6.5rem;
}
.form-icon-field .input-group-merge:has(textarea) > .input-group-text {
  align-items: flex-start;
  padding-top: 1rem;
}
.form-icon-field .form-text {
  margin-top: .4rem;
}

/* Select Materio con subtexto — light/dark */
.rich-select {
  position: relative;
  width: 100%;
}
.rich-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.rich-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 2.875rem;
  padding: .625rem 1rem;
  text-align: left;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius, .375rem);
  background: var(--bs-paper-bg, var(--bs-body-bg, #fff));
  color: var(--bs-body-color);
  cursor: pointer;
  line-height: 1.35;
}
.form-floating.form-floating-outline > .rich-select-trigger {
  height: calc(3.5rem + 2px);
  min-height: calc(3.5rem + 2px);
  padding-top: 1.1rem;
}
.rich-select.is-open > .rich-select-trigger,
.rich-select-trigger:focus {
  outline: 0;
  border-color: var(--bs-primary, #0f766e);
  box-shadow: 0 0 0 .15rem rgba(15, 118, 110, .16);
}
.form-floating.form-floating-outline.rich-select.is-open > .rich-select-trigger ~ label,
.form-floating.form-floating-outline:focus-within > .rich-select-trigger ~ label {
  color: var(--bs-primary, #0f766e);
}
.rich-select-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  min-width: 0;
  flex: 1 1 auto;
}
.rich-select-primary {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--bs-heading-color, var(--bs-body-color));
}
.rich-select-secondary {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 400;
  color: var(--bs-secondary-color, #8a8494);
}
.rich-select-filter .rich-select-secondary {
  display: none !important;
}
.rich-select-trigger .rich-select-caret {
  flex-shrink: 0;
  color: var(--bs-secondary-color, #8a8494);
}
.rich-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .35rem);
  z-index: 1080;
  max-height: 260px;
  overflow: auto;
  padding: .4rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-paper-bg, var(--bs-body-bg, #fff));
  color: var(--bs-body-color);
  box-shadow: 0 .5rem 1.25rem rgba(46, 38, 61, .12);
}
.rich-select-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  width: 100%;
  padding: .7rem .8rem;
  border: 0;
  border-radius: .375rem;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.rich-select-option:hover,
.rich-select-option:focus {
  background: rgba(15, 118, 110, .1);
  color: var(--bs-primary, #0f766e);
  outline: 0;
}
.rich-select-option.is-active {
  background: rgba(15, 118, 110, .14);
  color: var(--bs-primary, #0f766e);
}
.rich-select-option .rich-select-primary {
  font-weight: 500;
  color: inherit;
  white-space: normal;
}
.rich-select-option .rich-select-secondary {
  color: var(--bs-secondary-color, #8a8494);
}
.rich-select-option.is-active .rich-select-secondary,
.rich-select-option:hover .rich-select-secondary {
  color: rgba(15, 118, 110, .75);
}
.form-floating.form-floating-outline.rich-select > label {
  transform: translateY(-0.7rem) scale(0.85);
  transform-origin: left center;
  opacity: 0.85;
}
.form-floating.form-floating-outline.rich-select.is-open > label,
.form-floating.form-floating-outline.rich-select:focus-within > label {
  color: var(--bs-primary, #0f766e);
  opacity: 1;
}
.rich-select-filter {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.rich-select-filter .rich-select-trigger {
  min-height: 2.75rem;
  padding: .55rem .85rem;
}
[data-bs-theme=dark] .rich-select-menu {
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .35);
}
[data-bs-theme=dark] .rich-select-option:hover,
[data-bs-theme=dark] .rich-select-option:focus,
[data-bs-theme=dark] .rich-select-option.is-active {
  background: rgba(15, 118, 110, .18);
}

[data-bs-theme=dark] .bootstrap-select .dropdown-toggle {
  color: var(--bs-heading-color);
  border-color: color-mix(in sRGB, var(--bs-base-color) 22%, var(--bs-paper-bg));
}
[data-bs-theme=dark] .bootstrap-select .dropdown-menu {
  background: var(--bs-paper-bg);
  border-color: var(--bs-border-color);
}
.bootstrap-select {
  width: 100% !important;
}
.bootstrap-select > .dropdown-toggle {
  background-color: transparent;
}

/* Materio Subtext: label flotante sobre el borde */
.form-floating.form-floating-bootstrap-select {
  position: relative;
}
.form-floating.form-floating-bootstrap-select > label {
  z-index: 3;
  height: auto !important;
  width: auto !important;
  max-width: calc(100% - 1.5rem);
  padding: 2px .375rem;
  margin-top: .125rem;
  margin-inline-start: .625rem;
  font-size: .8125rem;
  opacity: 1;
  transform: translateY(-0.8rem) translateX(-2px);
  transform-origin: left center;
  background: transparent;
  color: var(--bs-secondary-color, #8a8494);
  pointer-events: none;
}
.form-floating.form-floating-bootstrap-select > label::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: .5rem;
  width: 100%;
  height: 5px;
  background-color: var(--bs-paper-bg, #fff);
}
.form-floating.form-floating-bootstrap-select > label.form-floating-bootstrap-select-label,
.form-floating.form-floating-bootstrap-select:focus-within > label {
  color: var(--bs-primary, #0f766e);
}
.form-floating.form-floating-bootstrap-select .bootstrap-select > .dropdown-toggle {
  min-height: calc(3.5rem + 2px);
  padding-top: 1.05rem;
  padding-bottom: .7rem;
}
.bootstrap-select .dropdown-menu li small,
.bootstrap-select .filter-option small {
  color: var(--bs-secondary-color, #8a8494);
}
.bootstrap-select .dropdown-menu a[aria-selected=true] small,
.bootstrap-select .dropdown-menu li.active small {
  color: rgba(255, 255, 255, .75) !important;
}
.card-body .bootstrap-select + .form-text,
.form-floating-bootstrap-select + .form-text {
  margin-top: .35rem;
}

/* Theme dropdown (Light / Dark) */
.theme-dropdown {
  min-width: 9.5rem;
  padding: .4rem;
}
.theme-dropdown .dropdown-item {
  border-radius: .375rem;
  gap: .65rem;
  padding: .65rem .75rem;
  color: inherit;
}
.theme-dropdown .dropdown-item svg,
.theme-dropdown .dropdown-item [data-lucide] {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}
.theme-dropdown .dropdown-item:hover,
.theme-dropdown .dropdown-item:focus {
  background: rgba(15, 118, 110, .08);
  color: var(--bs-primary, #0f766e);
}
.theme-dropdown .dropdown-item.active {
  background: rgba(15, 118, 110, .12);
  color: var(--bs-primary, #0f766e);
}

.stars { display: inline-flex; gap: .1rem; vertical-align: middle; }
.star-icon { color: #d1cfd7; width: 1rem; height: 1rem; }
.star-icon.is-on { color: #ffb400; fill: #ffb400; }

/* Dashboard — proyectos recientes (compacto) */
.dash-projects-table td,
.dash-projects-table th {
  padding-top: .55rem;
  padding-bottom: .55rem;
  vertical-align: middle;
}
.dash-project-thumb {
  width: 44px;
  height: 32px;
  object-fit: cover;
  display: block;
  background: #f5f5f4;
}
[data-bs-theme=dark] .dash-project-thumb {
  background: #44403c;
}

.team-photo-preview {
  width: 8rem;
  height: 8rem;
  margin-inline: auto;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.team-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clients-logo-thumb,
.clients-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f7;
  border: 1px solid var(--bs-border-color, #e7e5e4);
  border-radius: .5rem;
}
.clients-logo-thumb {
  width: 72px;
  height: 48px;
  padding: .35rem;
}
.clients-logo-thumb img,
.clients-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.clients-logo-preview {
  min-height: 120px;
  padding: 1rem;
}
[data-bs-theme=dark] .clients-logo-thumb,
[data-bs-theme=dark] .clients-logo-preview {
  background: #3a3652;
}

/* —— Nuestro proceso (panel) —— */
.proceso-stat .card-body {
  padding: 1rem 1.15rem;
}
.proceso-thumbs-card .card-body {
  background: linear-gradient(180deg, color-mix(in sRGB, var(--bs-primary, #0f766e) 3%, #fff) 0%, #fff 55%);
}
.proceso-collage {
  position: relative;
  min-height: 260px;
  padding: .5rem .75rem 1.5rem;
}
.proceso-collage-main,
.proceso-collage-sec {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 .5rem 1.25rem rgba(47, 43, 61, .12);
  background: #f3f2f5;
}
.proceso-collage-main {
  width: 88%;
  margin-left: auto;
  aspect-ratio: 470 / 400;
}
.proceso-collage-sec {
  width: 72%;
  margin-top: -28%;
  aspect-ratio: 420 / 340;
  border: 6px solid #fff;
}
.proceso-collage-main img,
.proceso-collage-sec img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proceso-collage-tag {
  position: absolute;
  left: .65rem;
  bottom: .65rem;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: .28rem .5rem;
  border-radius: .4rem;
  backdrop-filter: blur(4px);
}
.proceso-thumb-slot {
  border: 1px solid var(--bs-border-color, #e7e5e4);
  border-radius: .85rem;
  padding: 1rem;
  background: #fff;
}
.proceso-thumb-preview {
  border-radius: .65rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f3f2f5;
}
.proceso-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dropzone-box--sm {
  min-height: 110px;
  padding: .85rem;
}
.proceso-steps-table thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--bs-secondary-color, #89868d);
  white-space: nowrap;
}
.proceso-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--bs-primary, #0f766e);
  background: color-mix(in sRGB, var(--bs-primary, #0f766e) 12%, #fff);
}
.proceso-step-thumb {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--bs-border-color, #e7e5e4);
}
.proceso-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 10rem;
  padding: .3rem .55rem;
  border-radius: .5rem;
  background: #f5f5f4;
  font-size: .72rem;
  color: var(--bs-secondary-color, #6b7280);
}
.proceso-icon-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-bs-theme=dark] .proceso-thumbs-card .card-body {
  background: transparent;
}
[data-bs-theme=dark] .proceso-thumb-slot,
[data-bs-theme=dark] .proceso-icon-chip {
  background: #3a3652;
  border-color: #524e6a;
}
[data-bs-theme=dark] .proceso-collage-sec {
  border-color: #2f2b43;
}

/* —— Galería panel —— */
.gal-panel-table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--bs-secondary-color, #89868d);
  white-space: nowrap;
}
.gal-panel-thumb {
  position: relative;
  width: 72px;
  height: 48px;
  border-radius: .5rem;
  overflow: hidden;
  background: #f3f2f5;
  box-shadow: 0 0 0 1px var(--bs-border-color, #e7e5e4);
}
.gal-panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-panel-thumb.is-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .28);
}
.gal-panel-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.gal-panel-play svg {
  width: 1.1rem;
  height: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* Panel — Textos del sitio */
.textos-panel-card {
  max-width: 960px;
}
.textos-lang-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.textos-lang-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.textos-lang-option:hover {
  border-color: var(--bs-primary);
}
.textos-lang-option.is-active {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}
.textos-lang-option input {
  margin-top: .2rem;
  flex-shrink: 0;
}
.textos-lang-option-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.textos-lang-option-body small {
  color: var(--bs-secondary-color);
}
.textos-panel-accordion {
  max-width: 960px;
}
.textos-panel-accordion .accordion-button {
  font-weight: 600;
}
.textos-panel-sticky-save {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  max-width: 960px;
  padding: .75rem 0;
}

