/* ==========================================================================
   OH Hidráulica - Estilos del Panel de Administración (admin.css)
   ========================================================================== */

.admin-body {
    background-color: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.admin-header {
    background: #0a2540;
    color: #ffffff;
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.admin-brand-logo .brand-icon {
    color: #38bdf8;
    font-size: 1.5rem;
}

.admin-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn-admin-primary,
.btn-admin-secondary,
.btn-save-product,
.btn-code-copy,
.btn-reset,
.btn-mini-add,
.btn-copy-small,
.btn-danger-outline {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.btn-admin-primary {
    background: linear-gradient(135deg, #1E60A8, #0284c7);
    color: #ffffff;
    padding: 10px 18px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.btn-admin-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 18px;
    font-size: 0.9rem;
}

.btn-admin-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

/* Layout */
.admin-main {
    flex: 1;
    padding: 30px 0 60px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Stats Bar */
.admin-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
}

.stat-icon.bg-blue {
    background: linear-gradient(135deg, #1E60A8, #0ea5e9);
}

.stat-icon.bg-teal {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.stat-icon.bg-purple {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.stat-icon.bg-emerald {
    background: linear-gradient(135deg, #059669, #10b981);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    line-height: 1.1;
}

.stat-lbl {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    position: relative;
}

.admin-tab:hover {
    color: #1E60A8;
    background: rgba(30, 96, 168, 0.05);
}

.admin-tab.active {
    color: #1E60A8;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #1E60A8;
    border-radius: 3px 3px 0 0;
}

/* Tab Contents */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Editor Grid */
.admin-grid-editor {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Form Styles */
.editor-form-col {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.section-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #1E60A8;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.flex-2 {
    flex: 2;
    min-width: 280px;
}

.form-group.flex-1 {
    flex: 1;
    min-width: 180px;
}

.form-group label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.92rem;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1E60A8;
    box-shadow: 0 0 0 3px rgba(30, 96, 168, 0.15);
}

.field-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* Checkboxes */
.checkbox-row {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 28px;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

.custom-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1E60A8;
}

/* Color & Icon Picker */
.color-picker-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-box input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 44px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
}

.quick-colors {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s;
}

.swatch:hover {
    transform: scale(1.15);
}

.icon-selector-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 6px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
}

.icon-selector-input i {
    font-size: 1.3rem;
    color: #1E60A8;
    width: 24px;
    text-align: center;
}

.icon-selector-input input {
    border: none !important;
    background: transparent !important;
    padding: 4px 0 !important;
    box-shadow: none !important;
}

.quick-icons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #1E60A8;
    color: #ffffff;
    border-color: #1E60A8;
}

/* Specs Builder */
.specs-builder-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
}

.specs-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.specs-builder-header label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-mini-add {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-mini-add:hover {
    background: #0284c7;
    color: #ffffff;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-row-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.spec-row-item input {
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.spec-row-item input:first-child {
    flex: 1.2;
}

.spec-row-item input:nth-child(2) {
    flex: 2;
}

.btn-remove-spec {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-spec:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Form Actions */
.form-actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-save-product {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    padding: 13px 24px;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-save-product:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-code-copy {
    background: #0f172a;
    color: #ffffff;
    padding: 13px 20px;
    font-size: 0.95rem;
}

.btn-code-copy:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-reset {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 13px 18px;
    font-size: 0.95rem;
}

.btn-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sticky Preview Column */
.sticky-preview-box {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h4 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-pill {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-pill i {
    font-size: 0.55rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.preview-card-wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

/* Code Output Box */
.preview-code-box {
    background: #0f172a;
    border-radius: 14px;
    padding: 16px;
    color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
}

.code-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}

.code-box-header code {
    color: #38bdf8;
}

.btn-copy-small {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-copy-small:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

.preview-code-box pre {
    max-height: 160px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Tips Box */
.preview-tips-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 16px 20px;
}

.preview-tips-box h5 {
    color: #1e40af;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-tips-box ol {
    margin-left: 18px;
    font-size: 0.82rem;
    color: #1e3a8a;
    line-height: 1.6;
}

/* ==========================================
   TAB 2: INVENTORY TABLE
   ========================================== */
.inventory-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.inventory-search-box {
    position: relative;
    flex: 1.5;
    min-width: 260px;
}

.inventory-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.inventory-search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
}

.inventory-search-box input:focus {
    border-color: #1E60A8;
}

.inventory-filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inventory-filter-group select {
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    background: #ffffff;
    color: #334155;
    outline: none;
}

.btn-danger-outline {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 10px 16px;
    font-size: 0.86rem;
}

.btn-danger-outline:hover {
    background: #e11d48;
    color: #ffffff;
}

.table-responsive {
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.inventory-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
}

.inventory-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.inventory-table tr:hover td {
    background: #f8fafc;
}

.origin-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.origin-badge.base {
    background: #e0f2fe;
    color: #0369a1;
}

.origin-badge.custom {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.table-visual {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    overflow: hidden;
}

.table-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.table-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.table-btn:hover {
    background: #1E60A8;
    color: #ffffff;
    border-color: #1E60A8;
}

.table-btn.delete:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* ==========================================
   TAB 3: FULL CODE EXPORT
   ========================================== */
.code-export-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.code-export-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.export-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-desc {
    font-size: 0.88rem;
    color: #64748b;
    max-width: 680px;
}

.export-actions {
    display: flex;
    gap: 12px;
}

.code-display-wrapper {
    background: #0f172a;
    border-radius: 14px;
    padding: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.code-display-wrapper pre {
    max-height: 520px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .admin-grid-editor {
        grid-template-columns: 1fr;
    }

    .sticky-preview-box {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .admin-header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100% !important;
    }

    .form-actions-bar {
        flex-direction: column;
    }

    .form-actions-bar button {
        width: 100%;
    }
}

/* ==========================================================================
   Hero Banners & Side Ads Management Extensions in Admin
   ========================================================================== */
.stat-icon.bg-orange {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.editor-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-gradient-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn-grad-preset {
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-grad-preset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-grad-preset.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #1E60A8;
}

.hero-preview-mockup-frame {
    background: linear-gradient(135deg, #0a2540 0%, #1e4b8a 50%, #1E60A8 100%);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-banners-list-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.banners-list-header h5 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-banners-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
}

.banner-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s;
}

.banner-item-card:hover {
    border-color: #1E60A8;
    background: #ffffff;
}

.banner-item-card.inactive {
    opacity: 0.55;
    background: #f1f5f9;
}

.banner-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.banner-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.banner-item-texts {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.banner-item-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-item-subtitle {
    font-size: 0.76rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Pestañas Laterales */
.side-ad-tab-selector {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.side-selector-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.side-selector-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2px;
}

.side-selector-hint {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
}

.side-master-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-master-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.side-master-status.on {
    color: #15803d;
}

.side-master-status.off {
    color: #b91c1c;
}

.side-master-status i {
    font-size: 0.65rem;
}

.btn-toggle-lateral-master {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-toggle-lateral-master.active {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.btn-toggle-lateral-master.active:hover {
    background: #fecaca;
    color: #991b1b;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.15);
}

.btn-toggle-lateral-master.inactive {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.btn-toggle-lateral-master.inactive:hover {
    background: #bbf7d0;
    color: #166534;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.15);
}

.side-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.side-tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.side-tab-btn:hover {
    border-color: #1E60A8;
    color: #1E60A8;
}

.side-tab-btn.active {
    background: #1E60A8;
    color: #ffffff;
    border-color: #1E60A8;
    box-shadow: 0 4px 12px rgba(30, 96, 168, 0.25);
}

.side-state-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    transition: all 0.2s;
}

.side-state-badge.on {
    background: #dcfce7;
    color: #15803d;
}

.side-state-badge.off {
    background: #fee2e2;
    color: #b91c1c;
}

.side-tab-btn.active .side-state-badge.on {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.side-tab-btn.active .side-state-badge.off {
    background: rgba(239, 68, 68, 0.35);
    color: #ffcccc;
}

/* Card de Control de Encendido por Lateral */
.side-toggle-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.side-toggle-card.active-state {
    background: #f0fdf4;
    border-color: #86efac;
}

.side-toggle-card.inactive-state {
    background: #fef2f2;
    border-color: #fecaca;
}

.side-toggle-info strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.side-toggle-info p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 26px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .slider-round {
    background-color: #16a34a;
}

.switch-toggle input:focus + .slider-round {
    box-shadow: 0 0 1px #16a34a;
}

.switch-toggle input:checked + .slider-round:before {
    transform: translateX(22px);
}

.side-tab-active-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.side-tab-active-pill.on {
    background: #dcfce7;
    color: #15803d;
}

.side-tab-active-pill.off {
    background: #fee2e2;
    color: #b91c1c;
}

.side-mockup-off-banner {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.side-ad-preview-mockup {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Selector de Código Dual */
.code-selector-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-code-tab {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-code-tab:hover {
    border-color: #1E60A8;
    color: #1E60A8;
}

.btn-code-tab.active {
    background: #1E60A8;
    color: #ffffff;
    border-color: #1E60A8;
    box-shadow: 0 4px 12px rgba(30, 96, 168, 0.25);
}

.code-tab-panel {
    display: none;
}

.code-tab-panel.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

/* ==========================================================================
   Gestión de Administradores Autorizados
   ========================================================================== */
.admins-grid-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1080px) {
    .admins-grid-layout {
        grid-template-columns: 1fr;
    }
}

.admin-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-badge-inactive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-role-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
}

.btn-admin-restrict {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-admin-restrict:hover {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.btn-admin-allow {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-admin-allow:hover {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
    transform: translateY(-1px);
}

.btn-admin-delete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-admin-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #ef4444;
    transform: translateY(-1px);
}

/* ==========================================
   SUBPESTAÑAS EN "CARGAR NUEVO PRODUCTO" Y GESTOR DE QUÍMICOS
   ========================================== */
.subtabs-nuevo-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.subtab-nuevo-btn {
    flex: 1;
    min-width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #475569;
    font-family: 'Outfit', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.subtab-nuevo-btn:hover {
    background: #f1f5f9;
    color: #1E60A8;
    border-color: #cbd5e1;
}

.subtab-nuevo-btn.active {
    background: linear-gradient(135deg, #0b2265 0%, #1E60A8 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(30, 96, 168, 0.25);
}

.subtab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(30, 96, 168, 0.12);
    color: #1E60A8;
}

.subtab-nuevo-btn.active .subtab-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.quimicos-bulk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .quimicos-bulk-grid {
        grid-template-columns: 1fr;
    }
}

.quimicos-bulk-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.bulk-step-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1E60A8;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bulk-step-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.quim-quick-chips-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.quim-quick-chip {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.quim-quick-chip:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

/* Previsualización de la Tabla de Químicos en el Panel Admin */
.quimico-admin-live-preview {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    max-height: 520px;
    overflow-y: auto;
}

.quimico-admin-live-preview .product-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quimico-admin-live-preview .product-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.quimico-admin-live-preview .brand-logo-small {
    width: clamp(32px, calc(var(--quimicos-tabla-logo-w, 110px) * 0.48), 82px);
    height: auto;
    max-height: 82px;
    object-fit: contain;
    transition: width 0.2s ease;
}

.quimico-admin-live-preview .brand-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.quimico-admin-live-preview .brand-title span {
    color: #0284c7;
}

.quimico-admin-live-preview .product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.quimico-admin-live-preview .product-table thead th {
    background: #3b6e8c;
    color: #ffffff;
    padding: 8px 10px;
    text-align: left;
    font-weight: 700;
}

.quimico-admin-live-preview .line-header {
    background: #0055ff;
    color: #ffffff;
    font-weight: 800;
    padding: 7px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quimico-admin-live-preview .subline-header {
    background: #e6f0ff;
    color: #0055ff;
    font-weight: 800;
    padding: 5px 10px;
    text-transform: uppercase;
    font-size: 0.73rem;
}

.quimico-admin-live-preview .subline-label {
    border-left: 3px solid #0055ff;
    padding-left: 6px;
}

.quimico-admin-live-preview .variant-row td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.quimico-admin-live-preview .variant-row.highlight-active-row td {
    background: #fef9c3;
    font-weight: 700;
}

.quimico-admin-live-preview .product-code {
    font-weight: 700;
    color: #0f172a;
}

.quimico-admin-live-preview .product-price {
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================
   GESTIÓN DE ÍCONO ÚNICO E IMÁGENES EN CATÁLOGO COMPLETO
   ========================================== */
.origin-badge.quimicos {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.quimicos-imagenes-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.quimicos-imagenes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.quimicos-imagenes-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0a2540;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quimicos-imagenes-title i {
    color: #0284c7;
}

.quimicos-imagenes-desc {
    margin: 3px 0 0 0;
    font-size: 0.82rem;
    color: #475569;
}

.quimicos-imagenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.quimico-brand-img-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.quimico-brand-img-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.1);
}

.quimico-brand-img-card.is-global {
    border: 2px solid #0284c7;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.quimico-brand-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quimico-img-thumb-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 4px;
}

.quimico-img-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quimico-brand-card-meta {
    min-width: 0;
    flex: 1;
}

.quimico-brand-card-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quimico-brand-card-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.quimico-brand-card-actions {
    display: flex;
    gap: 6px;
}

.btn-quim-img-edit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.77rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-quim-img-edit:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-quim-img-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.77rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quim-img-clear:hover {
    background: #dc2626;
    color: #ffffff;
}

.table-visual-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-table-quick-img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.2s ease;
}

.btn-table-quick-img:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Modal Editor de Imagen Catálogo */
.admin-img-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-img-modal-overlay.active {
    display: flex;
}

.admin-img-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 24px 48px rgba(10, 37, 64, 0.28);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.admin-img-modal-header {
    background: linear-gradient(135deg, #0a2540 0%, #1E60A8 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-img-modal-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-img-modal-close {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-img-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.admin-img-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-img-preview-stage {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.admin-img-preview-box {
    width: 86px;
    height: 86px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-img-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================
   Guías de Medidas Exactas y Controles de Ajuste
   ========================================== */
.dimension-guide-box {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.dimension-guide-box.blue {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0284c7;
}

.dimension-guide-box.green {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
}

.dimension-guide-box.purple {
    background: #fdf4ff;
    border: 1px solid #f0abfc;
    border-left: 4px solid #c026d3;
}

.dimension-guide-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.dimension-guide-pill.blue {
    background: #e0f2fe;
    color: #0369a1;
}

.dimension-guide-pill.green {
    background: #dcfce7;
    color: #15803d;
}

.dimension-guide-pill.purple {
    background: #fae8ff;
    color: #86198f;
}

/* ==========================================
   CONTROL DE TAMAÑO DE IMÁGENES EN CATÁLOGO
   ========================================== */
.catalogo-tamano-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #cbd5e1;
    border-left: 4px solid #1E60A8;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.catalogo-tamano-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.catalogo-tamano-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0a2540;
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalogo-tamano-title i {
    color: #1E60A8;
}

.catalogo-tamano-desc {
    margin: 3px 0 0 0;
    font-size: 0.82rem;
    color: #475569;
}

.tamano-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.size-presets-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.size-preset-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.size-preset-btn:hover {
    border-color: #1E60A8;
    color: #1E60A8;
    background: #f0f7ff;
}

.size-preset-btn.active {
    background: #1E60A8;
    border-color: #1E60A8;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(30, 96, 168, 0.25);
}

.tamano-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 240px;
}

.tamano-slider-wrap input[type="range"] {
    flex: 1;
    accent-color: #1E60A8;
    cursor: pointer;
}

.tamano-value-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.tamano-derived-info {
    font-size: 0.77rem;
    color: #64748b;
    font-weight: 600;
}

.quimicos-tamano-subpanel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #7dd3fc;
}

.quimicos-tamano-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.quimicos-tamano-card {
    background: #ffffff;
    border: 1px solid #e0f2fe;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quimicos-tamano-card label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0c4a6e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
