/* ============================================
   Personalización - Rediseño visual
=============================================== */

/* Animaciones globales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Contenedor principal de personalización */
.customization-main-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: fadeInUp 0.5s ease-out;
}

/* Sidebar de componentes */
.component-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26, 113, 185, 0.07);
  padding: 24px 18px 18px 18px;
  margin-bottom: 0;
  min-height: 320px;
}

.component-list h5 {
  font-size: 18px;
  font-weight: 600;
  color: #1A71B9;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.component-list .list-group {
  padding: 0;
  margin: 0;
}

.component-list .list-group-item {
  border: none;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f5f5f5;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  padding: 12px 16px;
  box-shadow: none;
  outline: none;
}

.component-list .list-group-item:last-child {
  margin-bottom: 0;
}

.component-list .list-group-item.active,
.component-list .list-group-item:focus,
.component-list .list-group-item:hover {
  background: #DE208B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.08);
}

/* Área de edición de componente */
.component-editor-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26, 113, 185, 0.07);
  padding: 14px 14px 9px 14px;
  margin-bottom: 0;
  margin-top: 5px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.component-editor-box h4 {
  font-size: 20px;
  font-weight: 700;
  color: #DE208B;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.canvas-container {
  border-radius: 10px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#component-editor-container {
  min-height: 380px;
}

/* Botones principales */
#save-customization-btn,
.customization-pager-btn,
.add-text-btn {
  background: #DE208B;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  margin: 0 6px;
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  text-transform: none;
  letter-spacing: 0.2px;
}

#save-customization-btn:focus,
#save-customization-btn:hover,
.customization-pager-btn:focus,
.customization-pager-btn:hover,
.add-text-btn:focus,
.add-text-btn:hover {
  background: #1A71B9;
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 113, 185, 0.13);
  transform: translateY(-2px) scale(1.04);
}

.customization-pager-btn[disabled] {
  background: #e9e9e9 !important;
  color: #aaa !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.add-text-btn {
  background: #1A71B9;
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
}

.add-text-btn:hover,
.add-text-btn:focus {
  background: #DE208B;
  color: #fff;
}

/* Botón para agregar logo */
.customization-btn-logo {
  background: #DE208B;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.2);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  text-transform: none;
  letter-spacing: 0.2px;
  width: 100%;
}

.customization-btn-logo:focus,
.customization-btn-logo:hover {
  background: #1A71B9;
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 113, 185, 0.3);
  transform: translateY(-2px) scale(1.02);
}

/* Carrusel de diseños */
.design-carousel {
  gap: 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 8px;
  scroll-behavior: smooth;
}

.design-option {
  border-radius: 10px;
  border: 2.5px solid #eee;
  transition: border 0.18s, box-shadow 0.18s, transform 0.13s;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.design-option:hover,
.design-option:focus {
  border: 3px solid #DE208B;
  box-shadow: 0 4px 16px rgba(222, 32, 139, 0.20),
              0 0 0 4px rgba(222, 32, 139, 0.08);
  transform: translateY(-2px);
}

/* Contenedor de opción de diseño */
.design-option-container {
  position: relative;
  display: inline-block;
}

/* Burbuja con nombre del diseño */
.design-name-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(222, 32, 139, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  z-index: 10;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Input de búsqueda de diseños */
#design-search-input {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.input-group-text {
  border-radius: 0 6px 6px 0;
  border-left: none;
  color: #666;
}

/* Vista previa por capas */
#layered-preview-[id] {
  border-radius: 10px;
  background: #f7f7f7;
  border: 1px solid #eaeaea;
  overflow: hidden;
}

#component-editor-container img {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(26, 113, 185, 0.05);
}

/* Texto de preview */
[id^="text-layer-"] {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1A71B9;
  text-shadow: 0 2px 8px rgba(26, 113, 185, 0.08);
  letter-spacing: 0.5px;
}

/* Overlay de color (simulación) */
[id^="color-overlay-"] {
  border-radius: 12px;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

/* Controles de personalización */
.customization-controls {
  margin-top: 12px;
  margin-bottom: 12px;
}

.customization-controls label {
  font-weight: 600;
  color: #1A71B9;
  margin-bottom: 6px;
  display: block;
}

.customization-controls .mb-3 {
  margin-bottom: 18px !important;
}

/* Paginador */
.customization-pager {
  margin-top: 18px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.customization-pager>span {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.customization-pager>div {
  margin-top: 8px;
  font-size: 15px;
  color: #555;
}

/* Alertas */
.alert {
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 18px;
}

.alert-info {
  background: #f3f7fd;
  color: #1A71B9;
  border: 1px solid #b8d6f6;
}

.alert-danger {
  background: #fff0f6;
  color: #DE208B;
  border: 1px solid #f7b8e2;
}

/* Botones principales de personalización */
.customization-btn-primary,
#save-customization-btn {
  background: linear-gradient(90deg, #DE208B 0%, #1A71B9 100%);
  color: #fff !important;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 32px;
  box-shadow: 0 4px 18px -6px #DE208Ba0;
  transition: background 0.3s, transform 0.15s, box-shadow 0.3s;
  outline: none;
  position: relative;
  overflow: hidden;
}

.customization-btn-primary:hover,
#save-customization-btn:hover {
  background: linear-gradient(90deg, #1A71B9 0%, #DE208B 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px -4px #DE208Bc0;
}

.customization-btn-secondary,
.customization-pager-btn {
  background: #fff;
  color: #DE208B !important;
  border: 2px solid #DE208B;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 28px;
  margin: 0 6px;
  transition: background 0.25s, color 0.25s, border 0.25s, transform 0.15s;
  outline: none;
  box-shadow: 0 2px 8px -2px #DE208B30;
}

.customization-btn-secondary:hover,
.customization-pager-btn:hover:not(:disabled) {
  background: #DE208B;
  color: #fff !important;
  border-color: #DE208B;
  transform: translateY(-1px) scale(1.03);
}

.customization-pager-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3f3f3;
  color: #bbb !important;
  border-color: #eee;
}

#save-customization-btn {
  margin-top: 18px;
  margin-bottom: 8px;
  min-width: 220px;
  letter-spacing: 0.5px;
}

.customization-main-row .component-list .list-group-item.active,
.customization-main-row .component-list .list-group-item:focus {
  background: linear-gradient(90deg, #1A71B9 0%, #DE208B 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px -2px #DE208B30;
}

.customization-main-row .component-list .list-group-item {
  border-radius: 18px;
  margin-bottom: 6px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.customization-main-row .component-list .list-group-item:not(.active):hover {
  background: #f0f0f0;
  color: #DE208B;
}

.add-text-btn,
.customization-add-font-btn {
  background: linear-gradient(135deg, #ffffff 0%, #fef5fa 100%);
  color: #DE208B !important;
  border: 2px solid #DE208B;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  margin-bottom: 0;
  margin-top: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 12px rgba(222, 32, 139, 0.15);
  border-radius: 10px;
  white-space: nowrap;
  height: 36px;
  line-height: 1;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-text-btn::before,
.customization-add-font-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(222, 32, 139, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.add-text-btn:hover::before,
.customization-add-font-btn:hover::before {
  width: 300px;
  height: 300px;
}

.add-text-btn:hover,
.customization-add-font-btn:hover {
  background: linear-gradient(135deg, #DE208B 0%, #b81970 100%);
  color: #fff !important;
  border-color: #DE208B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 32, 139, 0.3);
}

.add-text-btn:active,
.customization-add-font-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.2);
}

.customization-add-font-btn {
  display: inline-block;
  margin-left: 0;
  margin-right: 0;
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 0 0 0 #DE208B30;
  }

  70% {
    box-shadow: 0 0 0 10px #DE208B00;
  }

  100% {
    box-shadow: 0 0 0 0 #DE208B30;
  }
}

#save-customization-btn:active,
.customization-btn-primary:active {
  animation: btnPulse 0.5s;
}

.customization-pager {
  margin-top: 18px;
  margin-bottom: 8px;
}

.customization-pager .btn {
  margin: 0 4px;
}

/* Opcional: iconos dentro de los botones */
.customization-btn-primary i,
.customization-btn-secondary i,
#save-customization-btn i,
.add-text-btn i,
.customization-add-font-btn i {
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================
  Nuevo layout compacto para botones y paginador
=============================================== */

/* Fila 1: Botón de finalizar */
.customization-row-finish {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 8px;
}

.customization-btn-finish {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 90px;
}

.customization-btn-finish:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.customization-btn-finish:active {
  transform: translateY(0);
}

.customization-btn-finish i {
  font-size: 14px;
}

/* Fila 2: Paginador */
.customization-row-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 6px 0;
}

.customization-row-pager .customization-pager-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  justify-content: center;
}

.customization-row-pager .customization-pager-btn:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateX(0);
}

.customization-row-pager .customization-pager-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.customization-row-pager .pager-info {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  min-width: 40px;
  text-align: center;
}

/* Fila 3: Info de producto y cantidad */
.customization-row-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: #f8f9fa;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

.customization-row-info .info-product {
  font-weight: 600;
  color: #212529;
}

.customization-row-info .info-quantity {
  color: #6c757d;
  padding-left: 8px;
  border-left: 2px solid #dee2e6;
}

/* Responsive para nuevo layout */
@media (max-width: 768px) {
  .customization-btn-finish {
   padding: 6px 12px;
   font-size: 12px;
   min-width: 70px;
  }
  
  .customization-row-pager {
   gap: 7px;
  }
  
  .customization-row-pager .customization-pager-btn {
   padding: 4px 8px;
   font-size: 11px;
   min-width: 45px;
  }
  
  .customization-row-info {
   flex-direction: column;
   gap: 4px;
   padding: 4px 6px;
   font-size: 11px;
  }
  
  .customization-row-info .info-quantity {
   padding-left: 0;
   border-left: none;
   padding-top: 4px;
   border-top: 1px solid #dee2e6;
  }
}

/* Toolbar horizontal de personalización */
.customization-toolbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(26, 113, 185, 0.08), 
              0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 5px 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  border: 1px solid rgba(222, 32, 139, 0.08);
  position: relative;
  overflow: hidden;
}

.customization-toolbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #1A71B9 0%, #DE208B 100%);
  border-radius: 16px 0 0 16px;
}

.customization-toolbar.toolbar-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.customization-main-row.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  /* <-- Asegura que la fila principal ocupe todo el ancho */
  box-sizing: border-box;
}

.component-editor-box>.customization-toolbar.toolbar-row,
.component-editor-box>.customization-main-row.row {
  width: 100%;
  flex: 1 1 0%;
  box-sizing: border-box;
}

.component-editor-box>div,
.component-editor-box>.customization-main-row.row>div {
  flex: 1 1 0%;
  min-width: 0;
}

/* Ajusta los hijos para que ocupen todo el espacio disponible */
.customization-main-row.row>div,
.customization-toolbar.toolbar-row>.toolbar-group {
  flex: 1 1 0%;
  min-width: 0;
}

.customization-toolbar .toolbar-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  
  min-width: auto;
  flex-shrink: 0;
  padding: 8px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(222, 32, 139, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.customization-toolbar .toolbar-group:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(222, 32, 139, 0.25);
  box-shadow: 0 4px 12px rgba(222, 32, 139, 0.08);
  transform: translateY(-2px);
}

.customization-toolbar .toolbar-group::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(222, 32, 139, 0.2) 50%, 
    transparent 100%);
}

.customization-toolbar .toolbar-group:last-child::after {
  display: none;
}

.customization-toolbar label {
  font-weight: 700;
  color: #1A71B9;
  margin-bottom: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.customization-toolbar label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, #1A71B9 0%, #DE208B 100%);
  border-radius: 2px;
}

/* Select pequeño para fuente */
.customization-toolbar .font-select {
  font-size: 13px !important;
  padding: 2px 8px !important;
  min-width: 90px;
  height: 32px !important;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  background: #f7f7f7;
  color: #222;
}

/* Select mejorado para fuente */
.enhanced-font-select {
  font-size: 13px !important;
  padding: 8px 12px !important;
  min-width: 120px;
  max-width: 140px;
  border-radius: 10px;
  border: 2px solid rgba(222, 32, 139, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #fef5fa 100%);
  color: #333;
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  height: 36px;
  font-weight: 500;
  cursor: pointer;
}

.enhanced-font-select:focus,
.enhanced-font-select:hover {
  border-color: #DE208B;
  box-shadow: 0 4px 16px rgba(222, 32, 139, 0.2);
  background: #ffffff;
  transform: translateY(-1px);
}
/* Carrusel de diseños en la toolbar */
.customization-toolbar .design-carousel {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(222, 32, 139, 0.4) rgba(247, 247, 247, 0.5);
  max-width: 280px;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.customization-toolbar .design-carousel::-webkit-scrollbar {
  height: 8px;
}

.customization-toolbar .design-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #DE208B 0%, #1A71B9 100%);
  border-radius: 10px;
}

.customization-toolbar .design-carousel::-webkit-scrollbar-track {
  background: rgba(247, 247, 247, 0.8);
  border-radius: 10px;
}

/* Diseño en la toolbar: imágenes más grandes sin cortarse */
.customization-toolbar .design-option {
  min-width: 105px !important;
  width: 105px !important;
  height: 105px !important;
  border-radius: 14px !important;
  border: 3px solid rgba(222, 32, 139, 0.15);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  background: #fff;
  display: block;
}

.customization-toolbar .design-option.active,
.customization-toolbar .design-option:focus,
.customization-toolbar .design-option:hover {
  border: 3px solid #DE208B;
  box-shadow: 0 6px 24px rgba(222, 32, 139, 0.30),
              0 0 0 5px rgba(222, 32, 139, 0.12);
  transform: translateY(-3px);
}

/* Asegurar que las imágenes dentro de design-option se muestren correctamente */
.design-option img,
.customization-toolbar .design-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Prevenir que el contenedor se reduzca demasiado */
.design-carousel,
.customization-toolbar .design-carousel {
  min-height: 130px;
}

/* Carrusel de colores de texto: horizontal y scrolleable */
.customization-toolbar .text-color-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 1px;
  max-width: 100%;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 113, 185, 0.3) rgba(247, 247, 247, 0.3);
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.3);
}

.customization-toolbar .text-color-list::-webkit-scrollbar {
  height: 4px;
}

.customization-toolbar .text-color-list::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #1A71B9 0%, #DE208B 100%);
  border-radius: 6px;
}

.customization-toolbar .text-color-list::-webkit-scrollbar-track {
  background: rgba(247, 247, 247, 0.6);
  border-radius: 6px;
}

/* Círculos de color de texto compactos en la toolbar */
.customization-toolbar .text-color-circle {
  width: 18px !important;
  height: 18px !important;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08),
              0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
}

.customization-toolbar .text-color-circle::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.customization-toolbar .text-color-circle.active,
.customization-toolbar .text-color-circle:focus,
.customization-toolbar .text-color-circle:hover {
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(26, 113, 185, 0.18),
              0 0 0 2px rgba(26, 113, 185, 0.12);
  transform: scale(1.1) translateY(-1px);
}

.customization-toolbar .text-color-circle.active::after {
  border-color: #1A71B9;
}

/* Centrar el botón debajo del select en la toolbar-group */
.toolbar-group>div:last-child {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* NUEVO: Estilos compactos para controles de curvar y rotar texto */
.curved-text-slider-container {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 6px !important;
  padding: 6px 8px !important;
  flex-wrap: wrap !important;
  background: rgba(26, 113, 185, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(26, 113, 185, 0.1);
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.curved-text-slider-container label {
  font-size: 10px !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  color: #1A71B9 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.curved-text-slider-container #curved-text-slider {
  width: 70px !important;
  height: 6px !important;
  margin: 0 !important;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(26, 113, 185, 0.2) 0%, rgba(222, 32, 139, 0.2) 100%);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 50px;
  max-width: 100px;
}

.curved-text-slider-container #curved-text-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A71B9 0%, #DE208B 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.3);
  transition: all 0.3s ease;
}

.curved-text-slider-container #curved-text-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(222, 32, 139, 0.4);
}

.curved-text-slider-container #curved-text-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A71B9 0%, #DE208B 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.3);
  transition: all 0.3s ease;
}

.curved-text-slider-container #curved-text-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(222, 32, 139, 0.4);
}

.curved-text-slider-container span {
  font-size: 9px !important;
  color: #666 !important;
  white-space: nowrap;
}

.curved-text-slider-container #curved-text-value {
  font-size: 11px !important;
  font-weight: 700 !important;
  width: 24px !important;
  text-align: center !important;
  color: #DE208B !important;
  background: rgba(222, 32, 139, 0.1);
  padding: 2px;
  border-radius: 6px;
}

.curved-text-slider-container .curved-rotate-btn {
  padding: 4px 10px !important;
  margin-left: 4px !important;
  font-size: 11px !important;
  height: 24px !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #1A71B9 0%, #0d5a94 100%) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26, 113, 185, 0.2);
  min-width: 0;
}

.curved-text-slider-container .curved-rotate-btn i {
  font-size: 10px !important;
  margin-right: 2px;
}

.curved-text-slider-container .curved-rotate-btn:hover {
  background: linear-gradient(135deg, #DE208B 0%, #b81970 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(222, 32, 139, 0.3);
}

@media (max-width: 600px) {
  .curved-text-slider-container {
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 4px 4px !important;
  }
  .curved-text-slider-container #curved-text-slider {
    width: 100% !important;
    min-width: 40px;
    max-width: 80px;
  }
  .curved-text-slider-container .curved-rotate-btn {
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-top: 2px;
  }
}

/* Responsive para toolbar: mantener compacto en pantallas medianas */
@media (max-width: 1200px) {
  .customization-toolbar {
    gap: 16px;
  }
  
  .customization-toolbar .toolbar-group {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .customization-toolbar .design-carousel {
    max-width: 200px;
  }
  
  
  .enhanced-font-select {
    min-width: 100px;
    max-width: 120px;
  }
}

@media (max-width: 991px) {
  .customization-toolbar {
    padding: 14px 16px;
    gap: 12px;
  }

  .customization-toolbar .toolbar-group {
    padding: 8px 10px;
  }
  
  .customization-main-row {
    flex-direction: column;
    gap: 16px;
  }

  .customization-toolbar.toolbar-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .customization-toolbar .design-option {
    width: 48px !important;
    height: 48px !important;
  }
  
  .customization-toolbar .text-color-circle {
    width: 28px !important;
    height: 28px !important;
  }
}
/* Responsive para toolbar: apilar grupos en pantallas pequeñas */

/* ============================================
  Selectores de Color - Personalización
  Basados en product_detail.css
=============================================== */

/* Contenedor principal de selectores de color */
#customization-component-colors {
   padding: 14px;
   background: #ffffff;
   border-radius: 10px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Selector de color por componente */
.component-selector {
   margin-right: 4px;
   padding: 12px;
   background: #fafbfc;
   border-radius: 8px;
   border: 1px solid #e9ecef;
   transition: all 0.3s ease;
}

.component-selector:hover {
   border-color: #DE208B;
   box-shadow: 0 3px 10px rgba(222, 32, 139, 0.07);
}

.component-selector:last-child {
   margin-bottom: 0;
}

.component-selector h5 {
   font-size: 13px;
   font-weight: 600;
   color: #252525;
   display: flex;
   align-items: center;
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

.component-selector h5::before {
   content: '';
   display: inline-block;
   width: 3px;
   height: 14px;
   background: linear-gradient(135deg, #DE208B 0%, #ff6b9d 100%);
   border-radius: 2px;
   margin-right: 4px;
}

/* Leyenda para selección de color */
.color-selection-legend {
   font-size: 11px;
   color: #6c757d;
   font-style: italic;
   display: flex;
   align-items: center;
   gap: 4px;
}

.color-selection-legend i {
   color: #DE208B;
   font-size: 12px;
}

/* Lista de colores por componente - Estilos de product_detail.css */
ul.component-color-list {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   padding: 0;
   list-style: none;
   margin: 0;
}

ul.component-color-list li {
   margin: 0;
   position: relative;
}

ul.component-color-list li a,
.component-color-option {
   display: block;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   border: 2px solid #e9ecef;
   transition: all 0.3s ease;
   position: relative;
   cursor: pointer;
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

ul.component-color-list li a:hover,
.component-color-option:hover {
   transform: scale(1.12);
   border-color: #DE208B;
   box-shadow: 0 3px 10px rgba(222, 32, 139, 0.18);
}

ul.component-color-list li a.active,
.component-color-option.active {
   border-color: #DE208B;
   box-shadow: 0 0 0 2px rgba(222, 32, 139, 0.22);
   transform: scale(1.07);
}

ul.component-color-list li a.active::after,
.component-color-option.active::after {
   content: '✓';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: white;
   font-size: 10px;
   font-weight: bold;
   text-shadow: 0 0 2px rgba(0, 0, 0, 0.7), 0 1px 1px rgba(0, 0, 0, 0.4);
}

ul.component-color-list li a.low-stock::before,
.component-color-option.low-stock::before {
   content: '';
   position: absolute;
   top: -3px;
   right: -3px;
   width: 7px;
   height: 7px;
   background-color: #ffc107;
   border: 2px solid white;
   border-radius: 50%;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
   z-index: 2;
}

ul.component-color-list li a.no-stock,
.component-color-option.no-stock {
   opacity: 0.35;
   cursor: not-allowed;
   position: relative;
}

ul.component-color-list li a.no-stock::after,
.component-color-option.no-stock::after {
   content: '×';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: #fff;
   font-size: 13px;
   font-weight: bold;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Información de stock por componente */
.component-stock-info {
   padding: 7px 10px;
   background: #ffffff;
   border-radius: 6px;
   font-size: 11px;
   color: #495057;
   border-left: 2px solid transparent;
   transition: all 0.3s ease;
}

.component-stock-info.show {
   border-left-color: #28a745;
   background: #f0f9f4;
}

.component-stock-info.low-stock {
   border-left-color: #ffc107;
   background: #fff7e6;
   color: #856404;
}

.component-stock-info.no-stock {
   border-left-color: #dc3545;
   background: #fff0f0;
   color: #721c24;
}

.component-stock-info i {
   margin-right: 4px;
}

/* Selector de color global para diseños */
.global-color-selector {
   padding: 14px;
   background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
   border-radius: 10px;
   border: 2px dashed #dee2e6;
   transition: all 0.3s ease;
   margin-top: 12px;
}

.global-color-selector:hover {
   border-color: #DE208B;
   border-style: solid;
   box-shadow: 0 3px 12px rgba(222, 32, 139, 0.08);
}

.global-color-selector h5 {
   font-size: 13px;
   font-weight: 600;
   color: #252525;
   display: flex;
   align-items: center;
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

.global-color-selector h5::before {
   content: '🎨';
   display: inline-block;
   margin-right: 7px;
   font-size: 15px;
}

/* Leyenda para color global */
.global-color-legend {
   font-size: 11px;
   color: #6c757d;
   margin-bottom: 8px;
   font-style: italic;
   display: flex;
   align-items: center;
   gap: 4px;
}

.global-color-legend i {
   color: #DE208B;
}

/* Lista de colores globales */
ul.global-color-list {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   padding: 0;
   list-style: none;
   margin: 6px 0 8px 0;
}

ul.global-color-list li {
   margin: 0;
   position: relative;
}

.global-color-option {
   display: block;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   border: 2px solid #e9ecef;
   transition: all 0.3s ease;
   position: relative;
   cursor: pointer;
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.global-color-option:hover {
   transform: scale(1.12);
   border-color: #DE208B;
   box-shadow: 0 3px 10px rgba(222, 32, 139, 0.18);
}

.global-color-option.active {
   border-color: #DE208B;
   box-shadow: 0 0 0 2px rgba(222, 32, 139, 0.22);
   transform: scale(1.07);
}

.global-color-option.active::after {
   content: '✓';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: white;
   font-size: 10px;
   font-weight: bold;
   text-shadow: 0 0 2px rgba(0, 0, 0, 0.7), 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* Información del color seleccionado */
.global-color-selected-info {
   padding: 7px 10px;
   background: #ffffff;
   border-radius: 6px;
   font-size: 11px;
   color: #495057;
   border-left: 2px solid #DE208B;
   display: flex;
   align-items: center;
   gap: 6px;
}

.global-color-selected-info strong {
   color: #DE208B;
   font-weight: 600;
}

.global-color-selected-info::before {
   content: '🎨';
   font-size: 13px;
}

/* Contenedor de cantidad de personalización */
#customization-quantity-container {
   padding: 14px;
   background: #ffffff;
   border-radius: 10px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
   border: 1px solid #e9ecef;
}

#customization-quantity-container .product-quantity {
   margin-top: 0;
}

#customization-quantity-container label {
   font-size: 12px;
   font-weight: 600;
   color: #252525;
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

/* Información de mínimo de compra */
.minimum-purchase-info {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
}

.minimum-purchase-info i {
   font-size: 12px;
}

/* Responsive para selectores de color */
@media (max-width: 767px) {
   #customization-component-colors {
      padding: 10px;
   }

   .component-selector {
      padding: 8px;
   }

   .component-selector h5 {
      font-size: 11px;
   }

   ul.component-color-list,
   ul.global-color-list {
      gap: 6px;
   }

   ul.component-color-list li a,
   .component-color-option,
   .global-color-option {
      width: 18px;
      height: 18px;
   }

   .global-color-selector {
      padding: 8px;
   }

   .global-color-selector h5 {
      font-size: 11px;
   }
}

@media (max-width: 600px) {
  .customization-toolbar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
  }

  .customization-toolbar .toolbar-group {
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
    padding: 12px;
  }
  
  .customization-toolbar .toolbar-group::after {
    display: none;
  }
  
  .customization-toolbar .design-carousel,
  .customization-toolbar .text-color-list {
    max-width: 100%;
  }
  
  .enhanced-font-select {
    width: 100%;
    max-width: 100%;
  }
  
  .add-text-btn,
  .customization-add-font-btn {
    width: 100%;
    justify-content: center;
  }
  
  .curved-text-slider-container {
    flex-wrap: wrap;
  }
  
  .curved-text-slider-container #curved-text-slider {
    width: 100% !important;
  }
  
  .customization-main-row {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .component-list,
  .component-editor-box {
    padding: 8px 6px;
  }
}

/* Estilo para las imágenes de los templates en la personalización */
#customization-content .canvas-container img[id^="template-img-"] {
  height: 400px !important;
  width: auto !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* NUEVO: Botón Finalizar Personalización */
.customization-btn-finish {
  background: linear-gradient(90deg, #1A71B9 0%, #DE208B 100%);
  color: #fff !important;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  box-shadow: 0 4px 16px -4px #DE208B80;
  transition: background 0.3s, transform 0.18s, box-shadow 0.3s;
  outline: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  margin-top: 6px;
  letter-spacing: 0.4px;
}

.customization-btn-finish:hover,
.customization-btn-finish:focus {
  background: linear-gradient(90deg, #DE208B 0%, #1A71B9 100%);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px -2px #1A71B9a0;
}

.finish-btn-icon {
  font-size: 2.2rem;
  margin-right: 8px;
  animation: finishBtnPulse 1.2s infinite;
  display: flex;
  align-items: center;
}

.finish-btn-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #DE208B22;
}

@keyframes finishBtnPulse {
  0% { transform: scale(1); color: #fff; }
  50% { transform: scale(1.18); color: #DE208B; }
  100% { transform: scale(1); color: #fff; }
}

/* Responsive para botón finalizar */
@media (max-width: 600px) {
  .customization-btn-finish {
    font-size: 1rem;
    padding: 12px 18px;
    
  }
  .finish-btn-icon {
    font-size: 1.5rem;


  }
  .finish-btn-text {
    font-size: 1rem;
  }
}

/* Mejora de la toolbar en móviles */
@media (max-width: 768px) {
  .customization-toolbar.toolbar-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
    padding: 10px 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .customization-toolbar .toolbar-group {
    flex: 1 1 100%;
    min-width: 0;
    margin-bottom: 8px;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
  }
  .customization-toolbar .design-carousel,
  .customization-toolbar .text-color-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 0;
    max-width: 100%;
  }
  .customization-toolbar .design-option,
  .customization-toolbar .text-color-list li {
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
    margin-right: 8px;
  }
  .customization-toolbar .font-select,
  .enhanced-font-select {
    font-size: 16px;
    padding: 8px;
    min-width: 120px;
    width: 100%;
    box-sizing: border-box;
  }
  .customization-toolbar label {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .add-text-btn,
  .customization-add-font-btn {
    width: 100%;
    min-width: 0;
    font-size: 15px;
    padding: 10px 0;
    margin-top: 8px;
    margin-bottom: 8px;
    justify-content: center;
    box-sizing: border-box;
  }
  .curved-text-slider-container {
    flex-direction: column !important;
    gap: 6px !important;
    padding: 6px 4px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .curved-text-slider-container #curved-text-slider {
    width: 100% !important;
    min-width: 40px;
    max-width: 100%;
  }
  .curved-text-slider-container .curved-rotate-btn {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 4px;
    box-sizing: border-box;
  }
  .customization-main-row,
  .component-list,
  .component-editor-box {
    width: 100%;
    min-width: 0;
    padding: 8px 4px;
    box-sizing: border-box;
  }
  .customization-toolbar .design-option {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
  }
  .customization-toolbar .text-color-circle {
    width: 28px !important;
    height: 28px !important;
  }
  .customization-btn-finish {
    font-size: 1rem;
    padding: 12px 18px;
    width: 100%;
    box-sizing: border-box;
  }
  .finish-btn-icon {
    font-size: 1.5rem;
  }
  .finish-btn-text {
    font-size: 1rem;
  }
  /* Oculta decoraciones laterales en toolbar */
  .customization-toolbar::before {
    display: none;
  }
}

/* ============================================
   NUEVOS: Efectos de Tooltip y Feedback Visual
=============================================== */

/* Tooltip para elementos de la toolbar */
.customization-toolbar [data-tooltip] {
  position: relative;
}

.customization-toolbar [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: linear-gradient(135deg, #1A71B9 0%, #0d5a94 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(26, 113, 185, 0.3);
  z-index: 1000;
}

.customization-toolbar [data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  border: 6px solid transparent;
  border-top-color: #1A71B9;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.customization-toolbar [data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

.customization-toolbar [data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Efecto de brillo en toolbar al cargar */
.customization-toolbar.loading {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #f8f9fa 25%,
    #ffffff 50%,
    #f8f9fa 75%,
    #ffffff 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* Badge de contador para elementos activos */
.toolbar-group.has-selection::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #DE208B 0%, #1A71B9 100%);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(222, 32, 139, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* Mejora de accesibilidad: focus visible */
.customization-toolbar *:focus-visible {
  outline: 3px solid #DE208B;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Estado de carga para toolbar-group */
.toolbar-group.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.toolbar-group.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  z-index: 10;
}

/* Animación de entrada para toolbar-groups */
.toolbar-group {
  animation: fadeInUp 0.4s ease-out backwards;
}

.toolbar-group:nth-child(1) { animation-delay: 0.1s; }
.toolbar-group:nth-child(2) { animation-delay: 0.2s; }
.toolbar-group:nth-child(3) { animation-delay: 0.3s; }
.toolbar-group:nth-child(4) { animation-delay: 0.4s; }
.toolbar-group:nth-child(5) { animation-delay: 0.5s; }

/* Mejora visual para scrollbars en toda la toolbar */
.customization-toolbar *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.customization-toolbar *::-webkit-scrollbar-track {
  background: rgba(247, 247, 247, 0.5);
  border-radius: 10px;
}

.customization-toolbar *::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1A71B9 0%, #DE208B 100%);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.customization-toolbar *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #DE208B 0%, #1A71B9 100%);
  box-shadow: 0 0 6px rgba(222, 32, 139, 0.4);
}

/* ============================================
   Estilos para el Modal de Logo
=============================================== */

/* Contenedor de colores seleccionados */
.selected-colors-container {
  background: #f8f9fa !important;
  border-radius: 8px !important;
  padding: 15px !important;
  border: 1px solid #e9ecef !important;
}

.selected-colors-container h6 {
  color: #495057;
  margin-bottom: 10px;
}

/* Badges de colores */
.color-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.2s ease;
}

.color-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-name {
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  text-align: center;
  line-height: 1;
  max-width: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mejorar inputs en el modal */
#logoModal .form-control,
#logoModal .form-control-file {
  border-radius: 6px;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#logoModal .form-control:focus,
#logoModal .form-control-file:focus {
  border-color: #DE208B;
  box-shadow: 0 0 0 0.2rem rgba(222, 32, 139, 0.25);
}

#logoModal .form-group label {
  margin-bottom: 8px;
  color: #495057;
}

#logoModal .btn-primary {
  background: linear-gradient(135deg, #DE208B 0%, #1A71B9 100%);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

#logoModal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(222, 32, 139, 0.3);
}

#logoModal .btn-secondary {
  border-radius: 6px;
  padding: 10px 20px;
}

#logoModal .modal-header {
  background: linear-gradient(135deg, #DE208B 0%, #1A71B9 100%);
  color: #fff;
  border-bottom: none;
}


#logoModal .modal-body {
  padding: 20px;
}

#logoModal .alert {
  border-radius: 6px;
  border: none;
}

#logoModal .alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

#logoModal .alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}