/* Admin Interface Profesional - Smart WhatsApp Button */

.mcnb-settings {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    background: #f6f7f9;
    margin-bottom: 20px;
    padding: 0;
    min-height: 100vh;
}

/* Header con Pestañas */
.mcnb-settings h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 0 0 0;
    padding: 2rem;
    font-size: 1.8rem;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mcnb-settings .nav-tab-wrapper { 
    margin: 0;
    border: none;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e1e5e9;
    padding: 0 2rem;
}

.mcnb-settings .nav-tab {
    background: transparent;
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 16px 24px;
    margin: 0;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    font-size: 15px;
}

.mcnb-settings .nav-tab:hover {
    background: #f8f9fa;
    color: #495057;
}

.mcnb-settings .nav-tab-active {
    background: transparent;
    color: #667eea;
    font-weight: 600;
    border-bottom: 3px solid #667eea;
}

.mcnb-settings .nav-tab-active:hover {
    background: transparent;
    color: #667eea;
}

/* Contenido Principal */
.mcnb-settings > div[style*="flex"] {
    padding: 2rem;
    gap: 2rem;
}

/* Formulario Mejorado */
.mcnb-settings .form-table { 
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    margin-top: 0;
}

.mcnb-settings .form-table th { 
    width: 300px; 
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    color: #2c3e50;
    font-weight: 600;
    padding: 24px;
    border-bottom: 1px solid #e1e5e9;
    font-size: 15px;
    vertical-align: top;
}

.mcnb-settings .form-table td {
    padding: 24px;
    border-bottom: 1px solid #f1f3f4;
    background: white;
}

.mcnb-settings .form-table tr:last-child th,
.mcnb-settings .form-table tr:last-child td {
    border-bottom: none;
}

.mcnb-settings .form-table tr:hover td {
    background: #fafbfc;
}

/* Inputs Mejorados */
.mcnb-settings input[type="text"],
.mcnb-settings input[type="number"],
.mcnb-settings input[type="url"],
.mcnb-settings input[type="time"],
.mcnb-settings input[type="email"],
.mcnb-settings textarea {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.2s ease;
    background: white;
    color: #2c3e50;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    margin-bottom: 8px;
}

.mcnb-settings input[type="text"]:focus,
.mcnb-settings input[type="number"]:focus,
.mcnb-settings input[type="url"]:focus,
.mcnb-settings input[type="time"]:focus,
.mcnb-settings input[type="email"]:focus,
.mcnb-settings textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.mcnb-settings input[type="text"]:hover,
.mcnb-settings input[type="number"]:hover,
.mcnb-settings input[type="url"]:hover,
.mcnb-settings input[type="time"]:hover,
.mcnb-settings input[type="email"]:hover,
.mcnb-settings textarea:hover {
    border-color: #c3c4c7;
}

/* Selects Mejorados */
.mcnb-settings select {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 50px;
    min-width: 200px;
    margin-bottom: 8px;
}

.mcnb-settings select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-1px);
}

.mcnb-settings select:hover {
    border-color: #c3c4c7;
}

/* Checkboxes Mejorados */
.mcnb-settings input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    position: relative;
    appearance: none;
}

.mcnb-settings input[type="checkbox"]:checked {
    background: #667eea;
    border-color: #667eea;
}

.mcnb-settings input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mcnb-settings input[type="checkbox"]:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mcnb-settings input[type="checkbox"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Labels Mejorados */
.mcnb-settings label {
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mcnb-settings label:hover {
    color: #2c3e50;
}

/* Botones Mejorados */
.mcnb-settings .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    text-transform: none;
    letter-spacing: 0.3px;
}

.mcnb-settings .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.mcnb-settings .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.mcnb-settings .button-secondary {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    background: white;
    color: #495057;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mcnb-settings .button-secondary:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar Mejorado */
.mcnb-sidebar { 
    position: sticky; 
    top: 72px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    padding: 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.mcnb-sidebar h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.mcnb-sidebar h3 {
    color: #495057;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.mcnb-sidebar p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mcnb-sidebar .button {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Color Pickers Mejorados */
.wp-picker-container {
    margin-top: 12px;
}

.wp-picker-container .wp-color-result {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    height: 40px;
    transition: all 0.2s ease;
}

.wp-picker-container .wp-color-result:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wp-picker-container .wp-color-result:after {
    border-radius: 6px;
    line-height: 38px;
    font-weight: 500;
}

/* Icon Preview Mejorado */
#mcnb_icon_preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

#mcnb_icon_display {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
}

#mcnb_icon_display:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Validation Messages Mejorados */
.mcnb-validation-msg {
    display: block;
    margin-top: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
    animation: mcnb-shake 0.3s ease-in-out;
}

@keyframes mcnb-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Animaciones para vista previa del botón */
@keyframes mcnb-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes mcnb-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes mcnb-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes mcnb-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Clases de animación para el preview */
#mcnb-main-preview.anim-pulse {
    animation: mcnb-pulse 2s infinite;
}

#mcnb-main-preview.anim-shake {
    animation: mcnb-shake 0.5s infinite;
}

#mcnb-main-preview.anim-bounce {
    animation: mcnb-bounce 1s infinite;
}

#mcnb-main-preview.anim-glow {
    animation: mcnb-glow 2s infinite;
}

#mcnb-main-preview.anim-fade {
    animation: mcnb-fade 2s infinite;
}

/* Efectos hover para el preview */
#mcnb-main-preview.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

#mcnb-main-preview.hover-grow:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

#mcnb-main-preview.hover-glow:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px currentColor;
    transition: all 0.2s ease;
}

#mcnb-main-preview.hover-rotate:hover {
    transform: rotate(5deg);
    transition: transform 0.2s ease;
}

.mcnb-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: mcnb-shake 0.3s ease-in-out;
}

/* Grupos de Campos Mejorados */
.mcnb-field-group {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mcnb-field-group h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 12px;
}

/* Layout de Campos */
.mcnb-field-row {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.mcnb-field-row:last-child {
    margin-bottom: 0;
}

.mcnb-field-row + .mcnb-field-row {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f3f4;
}

.mcnb-field-col {
    flex: 1;
    min-width: 0;
}

.mcnb-field-col-full {
    flex: 1 1 100%;
}

.mcnb-field-col-half {
    flex: 1 1 50%;
}

.mcnb-field-col-third {
    flex: 1 1 33.333%;
}

/* Labels de Campo */
.mcnb-field-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
}

.mcnb-field-hint {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.5;
}

/* Opciones de Tamaño */
.mcnb-size-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.mcnb-size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-width: 80px;
}

.mcnb-size-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.mcnb-size-option input[type="radio"] {
    margin: 0;
}

.mcnb-size-option input[type="radio"]:checked + .mcnb-size-preview {
    background: #667eea !important;
    transform: scale(1.1);
}

.mcnb-size-preview {
    background: #e1e5e9;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcnb-size-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.mcnb-size-option input[type="radio"]:checked ~ .mcnb-size-label {
    color: #667eea;
    font-weight: 600;
}

.mcnb-size-option.selected {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* Estados de Focus */
.mcnb-field-group.mcnb-field-focused {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Mejoras de Accesibilidad */
.mcnb-settings input:focus,
.mcnb-settings select:focus,
.mcnb-settings textarea:focus {
    z-index: 10;
    position: relative;
}

/* Spacing entre elementos */
.mcnb-field-group + .mcnb-field-group {
    margin-top: 24px;
}

.mcnb-field-row + .mcnb-field-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f4;
}

/* Indicadores visuales */
.mcnb-field-required::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

.mcnb-field-optional {
    opacity: 0.8;
}

/* Hints y ayuda */
.mcnb-field-hint {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

.mcnb-field-hint::before {
    content: "💡";
    margin-right: 6px;
}

/* Configuración Responsive */
#mcnb_responsive_config {
    margin-top: 24px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #f1f3f4;
    max-height: none;
    overflow: visible;
}

.mcnb-responsive-device {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mcnb-responsive-device:last-child {
    margin-bottom: 0;
}

.mcnb-device-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcnb-device-header h5 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.mcnb-device-header span {
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
}

.mcnb-device-config {
    padding: 20px;
}

.mcnb-device-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.mcnb-device-col {
    display: flex;
    flex-direction: column;
}

.mcnb-device-col .mcnb-field-label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.mcnb-device-col .mcnb-select,
.mcnb-device-col .mcnb-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.mcnb-device-col .mcnb-select:focus,
.mcnb-device-col .mcnb-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.mcnb-device-col .mcnb-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.mcnb-device-icon {
    font-size: 20px;
    filter: grayscale(0.3);
}

.mcnb-device-config {
    padding: 28px;
    background: #fafbfc;
}

.mcnb-device-config .mcnb-field-row {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f4;
    gap: 32px;
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
}

.mcnb-device-config .mcnb-field-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mcnb-device-config .mcnb-field-col {
    margin-bottom: 20px;
    padding: 0 16px;
    min-width: 140px;
    flex: 1;
}

.mcnb-device-config .mcnb-field-col:first-child {
    padding-left: 8px;
}

.mcnb-device-config .mcnb-field-col:last-child {
    padding-right: 8px;
}

.mcnb-device-config .mcnb-field-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.mcnb-device-config .small-text {
    width: 100%;
    max-width: 80px;
    text-align: center;
}

.mcnb-device-config .mcnb-select {
    width: 100%;
    font-size: 14px;
}

.mcnb-toggle-small {
    width: 36px;
    height: 18px;
}

.mcnb-toggle-small .mcnb-toggle-slider {
    border-radius: 18px;
}

.mcnb-toggle-small .mcnb-toggle-slider:before {
    left: 3px;
    bottom: 3px;
}

.mcnb-toggle-small input:checked + .mcnb-toggle-slider:before {
    transform: translateX(18px);
}


/* Campos Desplegables Individuales */
.mcnb-field-collapsible {
    margin: 12px 0;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ocultar la columna de títulos y hacer que el contenido ocupe todo el ancho */
.form-table th[scope="row"]:empty {
    display: none;
}

/* Estilos para filas que contienen campos desplegables */
.form-table tr {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.form-table tr th,
.form-table tr td {
    display: block;
    width: 100%;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.form-table tr th[scope="row"]:empty {
    display: none;
}

.mcnb-field-header {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    user-select: none;
    border: none;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.mcnb-field-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.mcnb-field-header.expanded {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.mcnb-field-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcnb-field-toggle {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    outline: none;
    cursor: pointer;
}

.mcnb-field-header.expanded .mcnb-field-toggle {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.mcnb-field-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.mcnb-field-content {
    background: #ffffff;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.mcnb-field-content.expanded {
    max-height: 2000px;
    opacity: 1;
}

.mcnb-field-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* El contenido de los campos ya no usa tabla, solo divs */
.mcnb-field-content .form-table {
    display: none;
}

/* Estilos para campos desplegables */
.mcnb-field-collapsible .mcnb-field-header {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.mcnb-field-collapsible .mcnb-field-header .mcnb-field-toggle {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Estado inicial: expandido por defecto */
.mcnb-field-collapsible .mcnb-field-content {
    max-height: 2000px;
    opacity: 1;
}

/* Estado colapsado */
.mcnb-field-collapsible .mcnb-field-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}

/* Estado expandido */
.mcnb-field-collapsible .mcnb-field-content.expanded {
    max-height: 2000px;
    opacity: 1;
    padding: 20px;
}

/* Estilos para el contenido directo de los campos */
.mcnb-field-content > * {
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.mcnb-field-content > *:last-child {
    margin-bottom: 0;
}

/* Todos los campos usan el mismo estilo unificado */

/* Branding Profesional */
.mcnb-professional-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    margin: 10px 20px 0 2px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mcnb-professional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.mcnb-brand-container {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.mcnb-logo {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mcnb-brand-info {
    flex: 1;
}

.mcnb-brand-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.mcnb-brand-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.mcnb-brand-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.mcnb-version {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mcnb-status-badge {
    background: rgba(37, 211, 102, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mcnb-status-badge.mcnb-status-active {
    background: rgba(37, 211, 102, 0.9);
}

.mcnb-status-badge.mcnb-status-inactive {
    background: rgba(255, 107, 107, 0.9);
}

/* Responsive para branding */
@media (max-width: 768px) {
    .mcnb-professional-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
    
    .mcnb-brand-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .mcnb-brand-title {
        font-size: 20px;
    }
    
    .mcnb-brand-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Responsive para campos */
@media (max-width: 768px) {
    .mcnb-field-header {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .mcnb-field-content {
        padding: 16px;
    }
}

/* Múltiples Agentes */
.mcnb-agents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f4;
}

.mcnb-agents-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

#mcnb-add-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.mcnb-agent-item {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.mcnb-agent-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e5e9;
}

.mcnb-agent-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcnb-agent-icon {
    font-size: 18px;
}

.mcnb-agent-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.mcnb-remove-agent {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mcnb-remove-agent:hover {
    background: #f8d7da;
    color: #721c24;
}

.mcnb-agent-fields {
    padding: 24px;
}

.mcnb-agent-field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.mcnb-agent-field-row:last-child {
    margin-bottom: 0;
}

.mcnb-agent-field-col {
    flex: 1;
}

.mcnb-agent-field-col-full {
    flex: 1 1 100%;
}

.mcnb-agent-schedule {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.mcnb-schedule-days {
    display: grid;
    gap: 12px;
}

.mcnb-schedule-day {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    flex-wrap: wrap;
}

.mcnb-schedule-day label {
    min-width: 100px;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.mcnb-schedule-day input[type="checkbox"] {
    margin: 0;
}

.mcnb-schedule-day input[type="time"] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    width: 80px;
}

.mcnb-schedule-day input[type="time"]:disabled {
    background: #f8f9fa;
    color: #6c757d;
}

.mcnb-schedule-day:has(input[type="checkbox"]:not(:checked)) input[type="time"] {
    opacity: 0.5;
    pointer-events: none;
}

.mcnb-day-disabled {
    opacity: 0.6;
    background: #f8f9fa !important;
}

.mcnb-day-disabled label {
    color: #6c757d !important;
}

/* Inputs con Unidades */
.mcnb-input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 4px 12px;
    transition: all 0.2s ease;
}

.mcnb-input-with-unit:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mcnb-input-with-unit input {
    border: none;
    padding: 8px 4px;
    font-size: 15px;
    background: transparent;
    color: #2c3e50;
    width: 100px;
    text-align: center;
    box-shadow: none;
    margin: 0;
}

.mcnb-input-with-unit input:focus {
    outline: none;
    box-shadow: none;
    border: none;
    transform: none;
}

.mcnb-input-unit {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

/* Explicación de Disparadores */
.mcnb-triggers-explanation {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.mcnb-triggers-explanation h4 {
    margin: 0 0 12px 0;
    color: #1565c0;
    font-size: 16px;
}

.mcnb-triggers-explanation p {
    margin: 0 0 12px 0;
    color: #1976d2;
    line-height: 1.5;
}

.mcnb-triggers-explanation ul {
    margin: 0;
    padding-left: 20px;
    color: #1976d2;
}

.mcnb-triggers-explanation li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.mcnb-triggers-explanation em {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 500;
    color: #0d47a1;
}

.mcnb-no-agents {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e1e5e9;
}

.mcnb-no-agents p {
    margin: 0;
    font-style: italic;
}

/* Sección de Licencia */
.mcnb-license-section {
    max-width: 800px;
}

.mcnb-license-status {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.mcnb-license-active,
.mcnb-license-inactive {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mcnb-license-icon {
    flex-shrink: 0;
}

.mcnb-license-info {
    flex: 1;
}

.mcnb-features-comparison {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.mcnb-features-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    margin-top: 16px;
}

.mcnb-features-grid::before {
    content: "Característica";
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 0;
    border-bottom: 2px solid #e1e5e9;
}

.mcnb-features-grid::after {
    content: "Gratuita";
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 0;
    border-bottom: 2px solid #e1e5e9;
    text-align: center;
    grid-column: 2;
    grid-row: 1;
}

.mcnb-features-grid .mcnb-feature-row:first-child::after {
    content: "Pro";
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 0;
    border-bottom: 2px solid #e1e5e9;
    text-align: center;
    grid-column: 3;
    grid-row: 1;
}

.mcnb-feature-row {
    display: contents;
}

.mcnb-feature-name {
    padding: 12px 0;
    color: #495057;
    border-bottom: 1px solid #f1f3f4;
}

.mcnb-feature-free,
.mcnb-feature-pro {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid #f1f3f4;
}

/* Toggle Labels Mejorados */
.mcnb-toggle-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 16px 0;
    margin-bottom: 8px;
}

.mcnb-toggle-label:last-child {
    margin-bottom: 0;
}

/* Inputs Estandarizados */
.mcnb-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: #374151;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.mcnb-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.mcnb-input:hover {
    border-color: #cbd5e0;
}

.mcnb-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Textarea Estandarizado */
.mcnb-textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}

.mcnb-textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.mcnb-textarea:hover {
    border-color: #cbd5e0;
}

.mcnb-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Select Personalizado */
.mcnb-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: #374151;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.mcnb-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.mcnb-select:hover {
    border-color: #cbd5e0;
}

/* Selector de Íconos */
.mcnb-icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.mcnb-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    position: relative;
}

.mcnb-icon-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.mcnb-icon-option input[type="radio"] {
    margin: 0;
    position: absolute;
    opacity: 0;
}

.mcnb-icon-option input[type="radio"]:checked + .mcnb-icon-preview {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mcnb-icon-option input[type="radio"]:checked ~ .mcnb-icon-label {
    color: #667eea;
    font-weight: 600;
}

.mcnb-icon-option.selected {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.mcnb-icon-option.selected .mcnb-icon-preview {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mcnb-icon-option.selected .mcnb-icon-label {
    color: #667eea;
    font-weight: 600;
}

.mcnb-icon-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
}

.mcnb-icon-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
}

/* Efectos de Borde Condicionales */
.mcnb-border-options {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 2px solid #f1f3f4;
}

.mcnb-label-options {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 2px solid #f1f3f4;
}

/* Separadores entre secciones principales */
#mcnb_basic_size {
    padding: 20px;
    background: #fafbfc;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid #f1f3f4;
}

#mcnb_responsive_config {
    padding: 20px;
    background: #fafbfc;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid #f1f3f4;
}

/* Small Text Inputs */
.mcnb-settings .small-text {
    max-width: 100px;
    text-align: center;
    font-weight: 500;
}

.mcnb-settings .regular-text {
    max-width: 350px;
}

.mcnb-settings .large-text {
    min-height: 100px;
    max-width: 500px;
    resize: vertical;
}

/* Descriptions Mejoradas */
.mcnb-settings .description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* Success Messages */
.mcnb-success-msg {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcnb-success-msg::before {
    content: "✓";
    font-weight: bold;
    color: #059669;
}

/* Warning Messages */
.mcnb-warning-msg {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcnb-warning-msg::before {
    content: "⚠";
    font-weight: bold;
    color: #f59e0b;
}

/* Toggle Switches */
.mcnb-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 12px;
}

.mcnb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mcnb-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e1e5e9;
    transition: 0.3s;
    border-radius: 24px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mcnb-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mcnb-toggle input:checked + .mcnb-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mcnb-toggle input:checked + .mcnb-toggle-slider:before {
    transform: translateX(26px);
}

.mcnb-toggle:hover .mcnb-toggle-slider {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsive Completo */
@media (max-width: 1400px) {
    .mcnb-settings .form-table th {
        width: 260px;
    }
    
    .mcnb-field-row {
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .mcnb-settings > div[style*="flex"] {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .mcnb-sidebar {
        position: static;
        margin-top: 0;
        order: -1;
    }
    
    .mcnb-field-row {
        gap: 16px;
    }
    
    .mcnb-size-options {
        gap: 14px;
    }
    
    .mcnb-device-config .mcnb-field-row {
        gap: 24px;
    }
    
    .mcnb-device-config .mcnb-field-col {
        padding: 0 8px;
        min-width: 120px;
    }
}

@media (max-width: 900px) {
    .mcnb-field-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .mcnb-field-col,
    .mcnb-field-col-half,
    .mcnb-field-col-third {
        flex: 1 1 100%;
    }
    
    .mcnb-size-options {
        justify-content: center;
    }
    
    .mcnb-device-config .mcnb-field-row {
        gap: 16px;
        flex-direction: column;
    }
    
    .mcnb-device-config .mcnb-field-col {
        padding: 0;
        margin-bottom: 24px;
        width: 100%;
        min-width: auto;
    }
    
    .mcnb-responsive-device {
        margin-bottom: 16px;
    }
    
    .mcnb-device-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mcnb-device-config {
        padding: 16px;
    }
    
    .mcnb-device-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .mcnb-settings h1 {
        padding: 1.5rem 1rem;
        font-size: 1.5rem;
    }
    
    .mcnb-settings .nav-tab-wrapper {
        padding: 0 1rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .mcnb-settings .nav-tab {
        padding: 12px 16px;
        font-size: 14px;
        display: inline-block;
        min-width: 100px;
    }
    
    .mcnb-settings .form-table th {
        width: auto;
        display: block;
        padding: 20px 16px 8px;
        background: #f8f9fa;
        border-bottom: none;
        font-size: 16px;
    }
    
    .mcnb-settings .form-table td {
        display: block;
        padding: 8px 16px 20px;
        border-top: none;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .mcnb-settings > div[style*="flex"] {
        padding: 1rem;
    }
    
    .mcnb-settings input[type="text"],
    .mcnb-settings input[type="number"],
    .mcnb-settings input[type="url"],
    .mcnb-settings input[type="time"],
    .mcnb-settings input[type="email"],
    .mcnb-settings textarea,
    .mcnb-settings select {
        max-width: 100%;
        width: 100%;
    }
    
    .mcnb-field-group {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .mcnb-field-row {
        gap: 12px;
    }
    
    .mcnb-size-options {
        gap: 8px;
    }
    
    .mcnb-size-option {
        padding: 12px;
        min-width: 60px;
    }
    
    .mcnb-select {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .mcnb-icon-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .mcnb-icon-option {
        padding: 12px 8px;
    }
    
    .mcnb-icon-preview {
        width: 40px;
        height: 40px;
    }
    
    .mcnb-icon-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .mcnb-settings h1 {
        padding: 1rem;
        font-size: 1.3rem;
    }
    
    .mcnb-settings .nav-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mcnb-field-group {
        padding: 12px;
    }
    
    .mcnb-size-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mcnb-size-option {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .mcnb-size-preview {
        flex-shrink: 0;
    }
    
    .mcnb-toggle-label {
        padding: 16px 0;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .mcnb-icon-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .mcnb-icon-option {
        padding: 10px 6px;
    }
    
    .mcnb-icon-preview {
        width: 35px;
        height: 35px;
    }
}

/* Animaciones */
.mcnb-fade-in {
    animation: mcnb-fadeIn 0.3s ease-in;
}

@keyframes mcnb-fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes mcnb-slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modales Personalizados */
.mcnb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.mcnb-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: mcnb-modalIn 0.3s ease;
}

@keyframes mcnb-modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mcnb-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.mcnb-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.mcnb-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mcnb-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.mcnb-modal-body {
    padding: 24px;
}

.mcnb-modal-body p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
    font-size: 15px;
}

.mcnb-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.mcnb-modal-footer .button {
    margin: 0;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
}

/* Notificaciones */
.mcnb-notification {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mcnb-notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.mcnb-notification-message {
    flex: 1;
    color: #374151;
}

.mcnb-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mcnb-notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* Animación de eliminación */
.mcnb-removing {
    opacity: 0.5;
    transform: scale(0.95);
    pointer-events: none;
}

/* Estados de Carga */
.mcnb-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.mcnb-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: mcnb-spin 1s linear infinite;
}

@keyframes mcnb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips */
.mcnb-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #6c757d;
}

.mcnb-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.mcnb-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ===== A/B TESTING STYLES ===== */
.mcnb-ab-config {
	margin-top: 15px;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.mcnb-ab-header {
	margin-bottom: 25px;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	color: #ffffff;
}

.mcnb-ab-header-content h4 {
	margin: 0 0 8px 0;
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
}

.mcnb-ab-header-description {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	opacity: 0.9;
}

.mcnb-ab-variants-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

.mcnb-ab-variant {
	padding: 20px;
	background: #ffffff;
	border-radius: 12px;
	border: 2px solid #e9ecef;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.mcnb-ab-variant:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.mcnb-ab-variant-control {
	border-color: #28a745;
}

.mcnb-ab-variant-test {
	border-color: #007bff;
}

.mcnb-ab-variant-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.mcnb-ab-variant-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	flex-shrink: 0;
}

.mcnb-ab-icon-control {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.mcnb-ab-icon-test {
	background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

.mcnb-ab-variant-info h5 {
	margin: 0 0 4px 0;
	color: #343a40;
	font-size: 16px;
	font-weight: 600;
}

.mcnb-ab-badge {
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mcnb-ab-badge-control {
	background: rgba(40, 167, 69, 0.1);
	color: #28a745;
}

.mcnb-ab-badge-test {
	background: rgba(0, 123, 255, 0.1);
	color: #007bff;
}

.mcnb-ab-variant-content {
	margin-top: 15px;
}

.mcnb-ab-description {
	margin: 0 0 15px 0;
	color: #6c757d;
	font-size: 13px;
	line-height: 1.5;
}

.mcnb-ab-current-config {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.mcnb-ab-config-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mcnb-ab-config-label {
	color: #495057;
	font-size: 12px;
	font-weight: 600;
}

.mcnb-ab-config-value {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #495057;
	background: #ffffff;
	border: 1px solid #dee2e6;
}

.mcnb-ab-config-value[style*="background-color"] {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #dee2e6;
}

.mcnb-ab-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.mcnb-ab-field-full {
	grid-column: 1 / -1;
}

.mcnb-ab-field {
	margin-bottom: 0;
}

.mcnb-ab-label {
	display: block;
	margin-bottom: 6px;
	color: #495057;
	font-weight: 600;
	font-size: 13px;
}

.mcnb-ab-input-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mcnb-ab-color-input {
	width: 70px !important;
	height: 36px;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	padding: 6px;
	font-size: 12px;
	transition: all 0.3s ease;
}

.mcnb-ab-color-input:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
	outline: none;
}

.mcnb-ab-color-preview {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	border: 2px solid #dee2e6;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.mcnb-ab-color-preview::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.3) 70%, transparent 70%);
}

.mcnb-ab-select {
	width: 100%;
	height: 36px;
	padding: 6px 10px;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	background: #ffffff;
	font-size: 13px;
	color: #495057;
	transition: all 0.3s ease;
}

.mcnb-ab-select:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
	outline: none;
}

.mcnb-ab-text-input {
	width: 100%;
	height: 36px;
	padding: 6px 10px;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	font-size: 13px;
	color: #495057;
	transition: all 0.3s ease;
}

.mcnb-ab-text-input:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
	outline: none;
}

.mcnb-ab-text-input::placeholder {
	color: #adb5bd;
	font-style: italic;
}

.mcnb-ab-distribution {
	margin-top: 0;
	padding: 25px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px;
	border: 1px solid #dee2e6;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mcnb-ab-distribution-header h5 {
	margin: 0 0 8px 0;
	color: #343a40;
	font-size: 18px;
	font-weight: 600;
}

.mcnb-ab-distribution-description {
	margin: 0 0 20px 0;
	color: #6c757d;
	font-size: 14px;
}

.mcnb-ab-distribution-content {
	background: #ffffff;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.mcnb-ab-percentage-controls {
	display: flex;
	gap: 40px;
	margin-bottom: 25px;
	justify-content: center;
}

.mcnb-ab-percentage-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.mcnb-ab-percentage-label-group {
	text-align: center;
}

.mcnb-ab-percentage-label {
	color: #495057;
	font-weight: 600;
	font-size: 14px;
	display: block;
}

.mcnb-ab-percentage-subtitle {
	color: #6c757d;
	font-size: 12px;
	font-weight: 500;
}

.mcnb-ab-percentage-input {
	width: 80px;
	height: 45px;
	padding: 8px;
	border: 2px solid #dee2e6;
	border-radius: 8px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: #495057;
	transition: all 0.3s ease;
}

.mcnb-ab-percentage-input:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
	outline: none;
}

.mcnb-ab-percentage-symbol {
	color: #6c757d;
	font-weight: 600;
	font-size: 18px;
}

.mcnb-ab-distribution-visual {
	margin-bottom: 15px;
}

.mcnb-ab-distribution-bar {
	height: 24px;
	background: #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	margin-bottom: 12px;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.mcnb-ab-bar-variant-a {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	transition: width 0.3s ease;
	position: relative;
}

.mcnb-ab-bar-variant-a::after {
	content: 'A';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
}

.mcnb-ab-bar-variant-b {
	background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
	transition: width 0.3s ease;
	position: relative;
}

.mcnb-ab-bar-variant-b::after {
	content: 'B';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
}

.mcnb-ab-distribution-labels {
	display: flex;
	justify-content: space-between;
	padding: 0 5px;
}

.mcnb-ab-distribution-label-a,
.mcnb-ab-distribution-label-b {
	font-size: 12px;
	font-weight: 600;
	color: #6c757d;
}

.mcnb-ab-distribution-label-a {
	color: #28a745;
}

.mcnb-ab-distribution-label-b {
	color: #007bff;
}

.mcnb-ab-distribution-note {
	margin: 0;
	color: #6c757d;
	font-size: 12px;
	font-style: italic;
	text-align: center;
}

/* Responsive para A/B Testing */
@media (max-width: 1200px) {
	.mcnb-ab-variants-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.mcnb-ab-fields-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

@media (max-width: 768px) {
	.mcnb-ab-percentage-controls {
		flex-direction: column;
		gap: 20px;
	}
	
	.mcnb-ab-variant-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.mcnb-ab-input-group {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.mcnb-ab-distribution {
		padding: 20px 15px;
	}
	
	.mcnb-ab-distribution-content {
		padding: 15px;
	}
}

/* Aviso de Características Pro Mejorado */
.mcnb-pro-feature-blocked {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 16px;
	padding: 40px;
	margin: 30px 0;
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
	position: relative;
	overflow: hidden;
}

.mcnb-pro-feature-blocked::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
	pointer-events: none;
}

.mcnb-pro-feature-icon {
	flex-shrink: 0;
	margin-bottom: 20px;
}

.mcnb-pro-feature-icon .dashicons {
	color: #ffffff;
	font-size: 64px;
	width: 64px;
	height: 64px;
	opacity: 0.95;
	display: block;
}

.mcnb-pro-feature-content {
	position: relative;
	z-index: 1;
}

.mcnb-pro-feature-content h3 {
	margin: 0 0 12px 0;
	color: #ffffff;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.mcnb-pro-feature-content > p {
	margin: 0 0 24px 0;
	color: rgba(255, 255, 255, 0.95);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
}

.mcnb-feature-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;
}

.mcnb-feature-benefits li {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	color: rgba(255, 255, 255, 0.95);
	font-size: 15px;
	line-height: 1.5;
}

.mcnb-feature-benefits li .dashicons {
	color: #ffffff;
	font-size: 20px;
	width: 20px;
	height: 20px;
	margin-right: 12px;
	flex-shrink: 0;
}

.mcnb-cta-section {
	text-align: center;
}

.mcnb-button-pro {
	background: #ffffff !important;
	color: #667eea !important;
	border: none !important;
	padding: 14px 32px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	margin-bottom: 12px !important;
}

.mcnb-button-pro .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #667eea;
}

.mcnb-button-pro:hover {
	background: rgba(255, 255, 255, 0.98) !important;
	transform: translateY(-3px) !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.mcnb-cta-note {
	margin: 12px 0 0 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	font-style: italic;
}
