/* Estilos base para componentes MGPanel disponibles globalmente */
:root {
  --systemMg-primary: #0056b3;
  --systemMg-primary-hover: #0069d9;
  --systemMg-primary-active: #0062cc;
  --systemMg-secondary: #6c757d;
  --systemMg-success: #28a745;
  --systemMg-danger: #dc3545;
  --systemMg-warning: #ffc107;
  --systemMg-info: #17a2b8;
  --systemMg-light: #fafafa;
  --systemMg-dark: #2d3436;
  --systemMg-white: #ffffff;
  --systemMg-background: #ffffff;
  --systemMg-color-gray-300: #e0e0e0;
  --systemMg-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --systemMg-border-radius: 4px;
  --systemMg-input-padding: 8px 12px;
  --systemMg-input-height: 42px;
  --systemMg-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --systemMg-btn-border-radius: 8px;
  --systemMg-btn-transition: all 0.2s ease-in-out;
}

body {
  font-family: var(--systemMg-font);
}

/* Clases de tamaño de grid */
.mg-grid-12 { 
  grid-column: span 12;
}

.mg-grid-6 { 
  grid-column: span 6;
}

.mg-grid-4 { 
  grid-column: span 4;
}

.mg-grid-3 { 
  grid-column: span 3;
}

/* Botones */
.mg-btn-primary {
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 180px;
  display: inline-block; 
  background-color: var(--systemMg-primary); 
  color: white; 
  border-radius: var(--systemMg-border-radius); 
  text-decoration: none;  
  transition: var(--systemMg-btn-transition);
  border: none;
  cursor: pointer;
  font-family: var(--systemMg-font);
}
.mg-btn-primary i {
  margin-right: 8px;
}
.mg-btn-primary:hover { 
  transform: translateY(-2px); 
  color: white;
  text-decoration: none;
  background-color: var(--systemMg-primary-hover);
}
.mg-btn-primary:active {
  background-color: var(--systemMg-primary-active);
  transform: translateY(0);
}

/* Formularios */
.mg-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  width: 100%;
}

.mg-form-grid .mg-form-field {
  width: 100%;
  min-width: 0; 
}

.mg-form-container {
  padding: 2rem 0;
  background-color: var(--systemMg-light);
}

.mg-form {
  background-color: var(--systemMg-white);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mg-form-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  text-align: center;
  color: var(--systemMg-dark);
  line-height: 1.3;
}

.mg-field-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem 0;
  color: var(--systemMg-dark);
  border-bottom: 2px solid var(--systemMg-primary);
  padding-bottom: 0.5rem;
}

.mg-field-title:first-child {
  margin-top: 0;
}

.mg-field-subtitle {
  margin: 0.5rem 0 1.5rem 0;
  color: var(--systemMg-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.mg-field-header {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem 0;
  color: var(--systemMg-dark);
  border-left: 4px solid var(--systemMg-primary);
  padding-left: 1rem;
}

.mg-field-header:first-child {
  margin-top: 0;
}

.mg-field-subheader {
  margin: 0.5rem 0 1rem 0;
  color: var(--systemMg-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 1rem;
}

.mg-field-text {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--systemMg-info);
  margin: 1rem 0;
}

.mg-field-text strong {
  color: var(--systemMg-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.mg-field-text p {
  margin: 0;
  color: var(--systemMg-secondary);
  line-height: 1.6;
}

.mg-field-description {
  margin: 0.25rem 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--systemMg-secondary);
  line-height: 1.4;
}

.mg-required {
  color: var(--systemMg-danger);
  font-weight: 700;
  margin-left: 4px;
}

.mg-form-control, .mg-form-select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--systemMg-dark);
  background-color: var(--systemMg-white);
  background-clip: padding-box;
  border: 2px solid var(--systemMg-color-gray-300);
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  font-family: var(--systemMg-font);
}
.mg-form-control:focus, .mg-form-select:focus {
  color: var(--systemMg-dark);
  background-color: var(--systemMg-white);
  border-color: var(--systemMg-primary);
  outline: 0;
}
.mg-form-control::placeholder, .mg-form-select::placeholder {
  color: var(--systemMg-color-gray-300);
  opacity: 1;
}
.mg-textarea {
  min-height: 120px;
  resize: vertical;
}
.mg-select, .mg-form-select {
  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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 12px;
  appearance: none;
}
.mg-form-control:disabled {
  background-color: var(--systemMg-color-gray-300);
  opacity: 1;
}

.mg-form-label, .mg-field-label {
  font-size: 14px;
  width: 100%;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
  color: var(--systemMg-dark);
}

/* Radio buttons */
.mg-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mg-radio-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mg-radio-option:hover {
  background-color: #e9ecef;
  border-color: var(--systemMg-primary);
}

.mg-radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 12px 0 0;
  accent-color: var(--systemMg-primary);
  cursor: pointer;
}

.mg-radio-option label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  font-weight: 500;
  color: var(--systemMg-dark);
}

.mg-radio-option:has(input:checked) {
  background-color: rgba(0, 123, 255, 0.1);
  border-color: var(--systemMg-primary);
}

/* Checkboxes */
.mg-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mg-checkbox-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mg-checkbox-option:hover {
  background-color: #e9ecef;
  border-color: var(--systemMg-primary);
}

.mg-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 12px 0 0;
  accent-color: var(--systemMg-primary);
  cursor: pointer;
}

.mg-checkbox-option label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  font-weight: 500;
  color: var(--systemMg-dark);
}

.mg-checkbox-option:has(input:checked) {
  background-color: rgba(0, 123, 255, 0.1);
  border-color: var(--systemMg-primary);
}

/* Acciones del formulario */
.mg-form-actions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--systemMg-color-gray-300);
  margin-top: 2rem;
}

/* Estados de validación */
.mg-input.mg-invalid,
.mg-textarea.mg-invalid,
.mg-select.mg-invalid {
  border-color: var(--systemMg-danger);
}

.mg-input.mg-invalid:focus,
.mg-textarea.mg-invalid:focus,
.mg-select.mg-invalid:focus {
  border-color: var(--systemMg-danger);
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}











/* PANEL DE PERSONALIZACIÓN ESTILO CANVA */
.mgpanel-customizer {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  pointer-events: none;
}

.mgpanel-customizer * {
  pointer-events: all;
}

/* Botón flotante principal */
.mgpanel-customizer-trigger {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.mgpanel-customizer-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.mgpanel-customizer-trigger.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
  transform: scale(1.05);
}

.mgpanel-customizer-icon {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.mgpanel-customizer-trigger.active .mgpanel-customizer-icon {
  transform: rotate(45deg);
}

/* Panel lateral estilo Canva */
.mgpanel-customizer-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  width: 280px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.mgpanel-customizer.open .mgpanel-customizer-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
}

/* Header del panel */
.mgpanel-customizer-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(249, 250, 251, 0.8);
}

.mgpanel-customizer-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mgpanel-customizer-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 0 0;
  font-weight: 400;
}

/* Contenido del panel */
.mgpanel-customizer-content {
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

/* Sección del panel */
.mgpanel-customizer-section {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mgpanel-customizer-section:last-child {
  border-bottom: none;
}

.mgpanel-customizer-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mgpanel-customizer-section-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Opciones de idioma */
.mgpanel-lang-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mgpanel-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
}

.mgpanel-lang-option:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.1);
  text-decoration: none;
  color: #6366f1;
}

.mgpanel-lang-option.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  font-weight: 600;
}

.mgpanel-lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.mgpanel-lang-flag[data-lang="es"] {
  background-image: url('https://dev.mgpanel.co/media/flags/ES.png');
}

.mgpanel-lang-flag[data-lang="us"] {
  background-image: url('https://dev.mgpanel.co/media/flags/US.png');
}

.mgpanel-lang-flag[data-lang="it"] {
  background-image: url('https://dev.mgpanel.co/media/flags/IT.png');
}

/* Posiciones del panel */
.mgpanel-customizer.position-left {
  left: 20px;
  right: auto;
}

.mgpanel-customizer.position-left .mgpanel-customizer-panel {
  left: calc(100% + 12px);
  right: auto;
  transform: translateY(-50%) translateX(-20px) scale(0.95);
}

.mgpanel-customizer.position-left.open .mgpanel-customizer-panel {
  transform: translateY(-50%) translateX(0) scale(1);
}

.mgpanel-customizer.position-top {
  top: 20px;
  transform: none;
}

.mgpanel-customizer.position-top .mgpanel-customizer-panel {
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-20px) scale(0.95);
  left: 50%;
  right: auto;
}

.mgpanel-customizer.position-top.open .mgpanel-customizer-panel {
  transform: translateX(-50%) translateY(0) scale(1);
}

.mgpanel-customizer.position-bottom {
  bottom: 20px;
  top: auto;
  transform: none;
}

.mgpanel-customizer.position-bottom .mgpanel-customizer-panel {
  bottom: calc(100% + 12px);
  top: auto;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  left: 50%;
  right: auto;
}

.mgpanel-customizer.position-bottom.open .mgpanel-customizer-panel {
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .mgpanel-customizer {
    right: 16px;
  }
  
  .mgpanel-customizer.position-left {
    left: 16px;
  }
  
  .mgpanel-customizer.position-top {
    top: 16px;
  }
  
  .mgpanel-customizer.position-bottom {
    bottom: 16px;
  }
  
  .mgpanel-customizer-trigger {
    width: 44px;
    height: 44px;
  }
  
  .mgpanel-customizer-icon {
    width: 18px;
    height: 18px;
  }
  
  .mgpanel-customizer-panel {
    width: 260px;
    max-height: 70vh;
  }
  
  .mgpanel-customizer-content {
    max-height: 300px;
  }
}

/* Animaciones */
.mgpanel-customizer {
  animation: mgpanel-fade-in 0.4s ease-out;
}

@keyframes mgpanel-fade-in {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Estados de carga */
.mgpanel-customizer.loading .mgpanel-customizer-trigger {
  opacity: 0.7;
  pointer-events: none;
}

.mgpanel-customizer.loading .mgpanel-customizer-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: mgpanel-spin 1s linear infinite;
}

@keyframes mgpanel-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar personalizado para el panel */
.mgpanel-customizer-content::-webkit-scrollbar {
  width: 4px;
}

.mgpanel-customizer-content::-webkit-scrollbar-track {
  background: transparent;
}

.mgpanel-customizer-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.mgpanel-customizer-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Estilos base para shortcodes */
.mg-shortcode-blog {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Blog shortcode */
.mg-shortcode-blog h3 {
  margin: 0 0 16px 0;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
}

.mg-shortcode-blog p {
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 14px;
}

.blog-posts {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.blog-post {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  font-size: 14px;
  transition: all 0.15s ease;
}

.blog-post:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Variantes de estilo */
.mg-shortcode-form.style-modern {
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
}

.mg-shortcode-form.style-modern input,
.mg-shortcode-form.style-modern textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #374151;
}

.mg-shortcode-form.style-modern input:focus,
.mg-shortcode-form.style-modern textarea:focus {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.mg-shortcode-form.style-modern button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.mg-shortcode-form.style-modern button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Estilo minimalista */
.mg-shortcode-form.style-minimal {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.mg-shortcode-form.style-minimal input,
.mg-shortcode-form.style-minimal textarea {
  border: none;
  border-bottom: 2px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.mg-shortcode-form.style-minimal input:focus,
.mg-shortcode-form.style-minimal textarea:focus {
  border-bottom-color: #6366f1;
  box-shadow: none;
}

/* Estilos adicionales para campos de formulario */
.mg-shortcode-form .mg-form-field {
  margin-bottom: 20px;
}

.mg-shortcode-form .mg-field-description {
  margin: 4px 0 8px 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.mg-shortcode-form .mg-required {
  color: #ef4444;
  margin-left: 2px;
}

.mg-shortcode-form .mg-select {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
  background: #ffffff;
  width: 100%;
  cursor: pointer;
}

.mg-shortcode-form .mg-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.mg-shortcode-form .mg-radio-group,
.mg-shortcode-form .mg-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.mg-shortcode-form .mg-radio-option,
.mg-shortcode-form .mg-checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mg-shortcode-form .mg-radio-option input,
.mg-shortcode-form .mg-checkbox-option input {
  margin: 0;
  width: auto;
}

.mg-shortcode-form .mg-radio-option label,
.mg-shortcode-form .mg-checkbox-option label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.mg-shortcode-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.mg-shortcode-form legend {
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  padding: 0;
}

.mg-shortcode-form .mg-field-title {
  margin: 0 0 16px 0;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
}

.mg-shortcode-form .mg-field-subtitle {
  margin: 8px 0 16px 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
}

.mg-shortcode-form .mg-field-header {
  margin: 0 0 12px 0;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.mg-shortcode-form .mg-field-subheader {
  margin: 4px 0 12px 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.mg-shortcode-form .mg-field-text {
  padding: 12px 0;
}

.mg-shortcode-form .mg-field-text strong {
  color: #111827;
  font-size: 16px;
}

.mg-shortcode-form .mg-field-text p {
  margin: 8px 0 0 0;
  color: #6b7280;
  line-height: 1.5;
}

/* ---------------------------------- */
/* Estilos para shortcodes de blog */
/* ---------------------------------- */
.mg-shortcode-blog {
  margin: 2rem 0;
}

.mg-shortcode-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.mg-shortcode-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.mg-shortcode-blog-card {
  background-color: var(--systemMg-white);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.mg-shortcode-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mg-shortcode-blog-empty {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  color: var(--systemMg-secondary);
  font-size: 1.1rem;
  margin: 2rem 0;
}

/* Títulos de shortcode más compactos */
.mg-shortcode-blog .mg-blog-title-container {
  padding: 2rem 0 1.5rem 0;
  margin-bottom: 1.5rem;
}

.mg-shortcode-blog .mg-blog-title {
  font-size: 2rem;
}

/* Cards más compactos para shortcodes */
.mg-shortcode-blog .mg-card-image {
  height: 180px;
}

.mg-shortcode-blog .mg-card-body {
  padding: 1.5rem;
}

.mg-shortcode-blog .mg-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.mg-shortcode-blog .mg-card-meta {
  margin-bottom: 0.75rem;
}

.mg-shortcode-blog .mg-card-excerpt {
  margin-bottom: 1rem;
}

/* Variantes de estilo */
.mg-shortcode-blog.style-list .mg-shortcode-blog-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.mg-shortcode-blog.style-list .mg-shortcode-blog-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.mg-shortcode-blog.style-list .mg-card-image {
  width: 200px;
  flex-shrink: 0;
}

.mg-shortcode-blog.style-list .mg-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mg-shortcode-blog.style-compact .mg-shortcode-blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.mg-shortcode-blog.style-compact .mg-card-image {
  height: 140px;
}

.mg-shortcode-blog.style-compact .mg-card-body {
  padding: 1rem;
}

.mg-shortcode-blog.style-compact .mg-card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Estados de error */
.mg-shortcode-form .mg-input.mg-error,
.mg-shortcode-form .mg-textarea.mg-error,
.mg-shortcode-form .mg-select.mg-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.mg-alert {
  position: relative;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  border-left-width: 4px;
  border-left-style: solid;
  background-color: #f8f9fa;
  line-height: 1.5;
}

.mg-alert i {
  margin-right: 12px;
  font-size: 20px;
  margin-top: 2px;
}

.mg-alert p {
  margin: 0;
  flex: 1;
  font-size: 0.95em;
}

.mg-alert-warning {
  border-left-color: var(--systemMg-warning);
  background-color: rgba(255, 193, 7, 0.1);
}

.mg-alert-warning i {
  color: var(--systemMg-warning);
}

.mg-alert-danger {
  border-left-color: var(--systemMg-danger);
  background-color: rgba(220, 53, 69, 0.1);
}

.mg-alert-danger i {
  color: var(--systemMg-danger);
}

.mg-alert-success {
  border-left-color: var(--systemMg-success);
  background-color: rgba(40, 167, 69, 0.1);
}

.mg-alert-success i {
  color: var(--systemMg-success);
}

.mg-alert-info {
  border-left-color: var(--systemMg-info);
  background-color: rgba(23, 162, 184, 0.1);
}

.mg-alert-info i {
  color: var(--systemMg-info);
}

.mg-alert-warning-custom {
  flex-direction: column;
}

.mg-alert-warning-custom .mg-alert-title {
  margin: 0 0 10px;
}

.mg-alert-warning-custom .mg-alert-message {
  margin: 0;
}

.mg-input.mg-invalid,
.mg-textarea.mg-invalid,
.mg-select.mg-invalid {
  border-color: var(--systemMg-danger);
}

.mg-input.mg-invalid:focus,
.mg-textarea.mg-invalid:focus,
.mg-select.mg-invalid:focus {
  border-color: var(--systemMg-danger);
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .mg-shortcode-form,
  .mg-shortcode-blog {
    padding: 16px;
    margin: 16px 0;
  }
  
  .mg-shortcode-form form {
    gap: 12px;
  }
  
  .mg-shortcode-form .mg-radio-group,
  .mg-shortcode-form .mg-checkbox-group {
    gap: 12px;
  }

  /* Shortcodes de blog responsive */
  .mg-shortcode-blog .mg-blog-title-container {
    padding: 1.5rem 0 1rem 0;
    margin-bottom: 1rem;
  }
  
  .mg-shortcode-blog .mg-blog-title {
    font-size: 1.6rem;
  }
  
  .mg-shortcode-blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .mg-shortcode-blog .mg-card-image {
    height: 160px;
  }
  
  .mg-shortcode-blog .mg-card-body {
    padding: 1.25rem;
  }
  
  .mg-shortcode-blog .mg-card-title {
    font-size: 1.1rem;
  }
  
  /* Estilo lista responsive */
  .mg-shortcode-blog.style-list .mg-shortcode-blog-card {
    flex-direction: column;
  }
  
  .mg-shortcode-blog.style-list .mg-card-image {
    width: 100%;
    height: 160px;
  }
  
  /* Estilo compacto responsive */
  .mg-shortcode-blog.style-compact .mg-shortcode-blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mg-shortcode-blog.style-compact .mg-card-image {
    height: 120px;
  }
  
  .mg-shortcode-blog.style-compact .mg-card-body {
    padding: 0.875rem;
  }
  
}

/* RESPONSIVE */
@media ( min-width: 1600px ) {

  

}

@media screen and (max-width: 1366px) {



}

@media screen and (max-width: 1290px) {



}

@media screen and (max-width: 1220px) {



}

@media screen and (max-width: 990px) {

  .mg-grid-6,
  .mg-grid-4,
  .mg-grid-3 {
    grid-column: span 1; 
  }

  .mg-form-grid {
    grid-template-columns: 1fr; 
    gap: 0.75rem;
  }

}

@media screen and (max-width: 768px) {



}

@media screen and (max-width: 585px) {



}

@media (max-width: 585px) and (orientation: landscape) {



}

@media screen and (max-width: 390px) {



}

@media screen and (max-width: 340px) {



}

@media screen and (min-width:0\0) { 
/* Tus estilos CSS para IE9, IE10, IE11  */


}

@supports (-ms-ime-align:auto) { 
/* Tus estilos CSS para EDGE */


}

@-moz-document url-prefix() { 
/* Tus estilos CSS para Mozilla */


}
/* FIN CSS */