@charset "UTF-8";
.bloque-base-hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}
.bloque-base-hover:hover + * {
  border: 3px solid #8f62fb;
  border-radius: 10px;
}

.texto-wrapper {
  padding: 2%;
}

.sncms-btn-editar {
  background-color: rgba(143, 98, 251, 0.5);
  opacity: 0.8;
  border: none;
}
.sncms-btn-editar:hover {
  background-color: #8f62fb !important;
  opacity: 1;
}

.sncms-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sncms-modal.active {
  display: flex;
  opacity: 1;
}

.sncms-modal-dialog {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  width: 900px;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.sncms-modal.active .sncms-modal-dialog {
  transform: scale(1);
}

.sncms-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.sncms-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sncms-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.sncms-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.sncms-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.sncms-modal-close::before {
  content: "×";
}

.sncms-modal-body {
  padding: 32px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

.sncms-modal-footer {
  padding: 20px 32px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
}

.bloque-wrapper {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.bloque-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 24px;
}

.bloque-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.bloque-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.bloque-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.bloque-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bloque-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}
.bloque-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bloque-add-btn {
  background: #28a745;
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.bloque-add-btn:hover {
  background: #218838;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.bloque-content {
  padding: 0 32px 32px;
}

.bloque-form .form-group {
  margin-bottom: 24px;
}
.bloque-form .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.bloque-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.bloque-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}
.bloque-form .form-control-sm {
  padding: 8px 12px;
  font-size: 0.875rem;
}

.texto-wrapper {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}
.texto-wrapper:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}
.texto-wrapper .texto-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 12px;
  font-size: 1rem;
  display: block;
}
.texto-wrapper textarea.form-control {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  resize: vertical;
  min-height: 120px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.texto-wrapper textarea.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
  outline: none;
  transform: translateY(-1px);
}
.texto-wrapper textarea.form-control:hover {
  border-color: #adb5bd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.texto-wrapper textarea.form-control::placeholder {
  color: #adb5bd;
  font-style: italic;
}
.texto-wrapper textarea.form-control:not(:placeholder-shown) {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-color: #dee2e6;
}
.texto-wrapper textarea.form-control:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}
.texto-wrapper .texto-label {
  position: relative;
  font-weight: 600;
  color: #495057;
  margin-bottom: 12px;
  font-size: 1rem;
  display: block;
  transition: all 0.3s ease;
}
.texto-wrapper .texto-label::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}
.texto-wrapper textarea.form-control:focus + .texto-label::after,
.texto-wrapper textarea.form-control:focus ~ .texto-label::after {
  width: 100%;
}

.textarea-sm {
  min-height: 80px;
  padding: 12px 16px;
  font-size: 0.875rem;
}

.textarea-md {
  min-height: 120px;
  padding: 16px 20px;
  font-size: 0.95rem;
}

.textarea-lg {
  min-height: 160px;
  padding: 20px 24px;
  font-size: 1rem;
}

.textarea-with-counter {
  position: relative;
  width: 100%;
}
.textarea-with-counter textarea.form-control {
  width: 100%;
  box-sizing: border-box;
}
.textarea-with-counter .char-counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: #adb5bd;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1;
}
.textarea-with-counter textarea.form-control:focus ~ .char-counter {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.textarea-with-icon {
  position: relative;
}
.textarea-with-icon .textarea-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #adb5bd;
  font-size: 1.1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}
.textarea-with-icon textarea.form-control {
  padding-left: 48px;
}
.textarea-with-icon textarea.form-control:focus ~ .textarea-icon {
  color: #667eea;
  transform: scale(1.1);
}

.textarea-valid textarea.form-control {
  border-color: #28a745;
}
.textarea-valid textarea.form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1), 0 4px 12px rgba(40, 167, 69, 0.15);
}
.textarea-valid .texto-label {
  color: #28a745;
}

.textarea-invalid textarea.form-control {
  border-color: #dc3545;
}
.textarea-invalid textarea.form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 4px 12px rgba(220, 53, 69, 0.15);
}
.textarea-invalid .texto-label {
  color: #dc3545;
}

.quill-element {
  border: 2px solid #e9ecef !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.quill-element .ql-toolbar {
  border-bottom: 1px solid #e9ecef !important;
  background: #f8f9fa;
}
.quill-element .ql-container {
  border: none !important;
  font-size: 0.95rem;
}
.quill-element .ql-editor {
  min-height: 120px;
  padding: 16px;
}

.imagen-wrapper {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}
.imagen-wrapper:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.imagen-preview {
  background: white;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.imagen-preview:hover {
  border-color: #667eea;
}
.imagen-preview img {
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.imagen-delete-btn {
  background: #dc3545;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.imagen-delete-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.bloque-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #e9ecef;
}

.bloque-delete-btn {
  background: #dc3545;
  border: none;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bloque-delete-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.bloque-save-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.bloque-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

@media (max-width: 768px) {
  .sncms-modal-dialog {
    width: 95%;
    max-height: 95%;
  }
  .sncms-modal-body {
    padding: 20px;
    max-height: calc(95vh - 100px);
  }
  .sncms-modal-header {
    padding: 20px 24px;
  }
  .sncms-modal-footer {
    padding: 16px 24px;
  }
  .bloque-header {
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .bloque-content {
    padding: 0 20px 20px;
  }
  .bloque-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .texto-wrapper,
  .imagen-wrapper {
    padding: 16px;
  }
}

/*# sourceMappingURL=sncms.css.map */
