/* ============================================
   LUUK-PAGES.CSS - Estilos Unificados de Página
   Estilo: Limpio, profesional, minimalista
   ============================================ */

/* ============================================
   BASE DE PÁGINA
   ============================================ */

.luuk-page {
    padding: 24px 32px !important;
    background: #f9fafb;
    min-height: calc(100vh - 60px);
}

@media (max-width: 768px) {
    .luuk-page {
        padding: 16px !important;
    }
}

/* ============================================
   HEADER DE PÁGINA
   ============================================ */

.luuk-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.luuk-header-left,
.luuk-page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.luuk-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.5px;
}

.luuk-help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.luuk-help-link:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.luuk-help-link i {
    font-size: 16px;
}

.luuk-header-right,
.luuk-page-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .luuk-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .luuk-page-title {
        font-size: 24px;
    }

    .luuk-header-right,
    .luuk-page-header-right {
        width: 100%;
    }
}

/* ============================================
   PANEL DE AYUDA COLAPSABLE
   ============================================ */

.luuk-help-panel {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.luuk-help-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.luuk-help-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.luuk-help-panel-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.luuk-help-panel-body {
    padding: 16px;
    background: #fff;
}

.luuk-help-faq {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #6b7280;
}

.luuk-help-faq i {
    font-size: 16px;
    color: var(--color, #29c178);
}

.luuk-help-faq a {
    color: var(--color, #29c178);
    font-weight: 500;
}

.luuk-help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.luuk-help-card {
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.luuk-help-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.luuk-help-card h4 i {
    color: var(--color, #29c178);
}

.luuk-help-card p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================
   CARDS / PANELES
   ============================================ */

.luuk-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.luuk-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.luuk-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.luuk-card-title i {
    color: #6b7280;
    font-size: 18px;
}

.luuk-card-body {
    padding: 20px;
}

.luuk-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ============================================
   SECCIONES
   ============================================ */

.luuk-section {
    margin-bottom: 24px;
}

.luuk-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.luuk-section-description {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* ============================================
   FORM CONTROLS
   ============================================ */

.luuk-form-group {
    margin-bottom: 20px;
}

.luuk-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.luuk-label-hint {
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

.luuk-input,
.luuk-select,
.luuk-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    transition: all 0.15s ease;
}

.luuk-input:hover,
.luuk-select:hover,
.luuk-textarea:hover {
    border-color: #d1d5db;
}

.luuk-input:focus,
.luuk-select:focus,
.luuk-textarea:focus {
    outline: none;
    border-color: var(--color, #29c178);
    box-shadow: 0 0 0 3px rgba(41, 193, 120, 0.1);
}

.luuk-input::placeholder,
.luuk-textarea::placeholder {
    color: #9ca3af;
}

/* Input file */
.luuk-file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.15s ease;
}

.luuk-file-upload:hover {
    border-color: var(--color, #29c178);
    background: rgba(41, 193, 120, 0.02);
}

.luuk-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.luuk-file-upload-icon {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.luuk-file-upload-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.luuk-file-upload-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ============================================
   BOTONES
   ============================================ */

.luuk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.luuk-btn-primary {
    background: var(--color, #29c178);
    color: #fff;
}

.luuk-btn-primary:hover {
    background: var(--color2, #1a8f5a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 193, 120, 0.25);
}

.luuk-btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.luuk-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.luuk-btn-danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.luuk-btn-danger:hover {
    background: #fef2f2;
}

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

/* ============================================
   COLOR PAIRS (rediseño 2026-05-25) — agrupa fondo+texto
   en una sola card por par, con preview en vivo y ratio WCAG.
   ============================================ */

.luuk-color-pairs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.luuk-color-pair {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.luuk-color-pair:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .08);
}

.luuk-color-pair-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.luuk-color-pair-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.luuk-color-pair-sub {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
}

.luuk-color-pair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.luuk-color-pair--single .luuk-color-pair-grid {
    grid-template-columns: minmax(0, 320px);
}

.luuk-color-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    min-width: 0;
}

.luuk-color-ctrl-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
    width: 38px;
}

.luuk-color-chip {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(255, 255, 255, .15);
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0;
}

.luuk-color-chip input[type="color"] {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
}

.luuk-color-hex {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;
    color: #374151;
    text-transform: lowercase;
}

.luuk-color-hex:focus {
    outline: none;
    background: #fff;
    border-color: #d1d5db;
}

/* Preview inline dentro de cada par */
.luuk-color-pair-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fafafa;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 2px;
}

.luuk-color-pair-mock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.luuk-color-pair-mock-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
}

.luuk-color-pair-mock-btn {
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 6px;
    border: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--pair-bg, #24374B);
    color: var(--pair-fg, #ffffff);
    transition: transform .15s ease, box-shadow .15s ease;
}

.luuk-color-pair-mock-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.luuk-color-pair-mock-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--pair-bg, #36459b);
    color: var(--pair-fg, #ffffff);
}

/* Preview header mock (cabecera) */
.luuk-color-pair-preview--header {
    padding: 0;
    overflow: hidden;
    border-style: solid;
    background: transparent;
}

.luuk-color-pair-headermock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    width: 100%;
    background: var(--pair-bg, #36459b);
    color: var(--pair-fg-auto, #ffffff);
    font-size: 12px;
}

.luuk-color-pair-headermock-logo {
    font-weight: 700;
    letter-spacing: .14em;
    font-size: 13px;
}

.luuk-color-pair-headermock-nav {
    opacity: .85;
    font-size: 11px;
}

/* Farbtastic pickers ocultos (necesarios para personalizar.js init) */
.luuk-farbtastic-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    pointer-events: none;
}

@media (max-width: 640px) {
    .luuk-color-pair-grid {
        grid-template-columns: 1fr;
    }
    .luuk-color-pair-preview {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================
   COLOR PICKER MODERNO (legacy — usado por otros archivos)
   ============================================ */

.luuk-color-picker-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.luuk-color-picker-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.luuk-color-picker-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.luuk-color-picker-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luuk-color-picker-input input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
    color: #374151;
}

.luuk-color-picker-input input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.luuk-color-picker-input input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.luuk-color-picker-input input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* ============================================
   PREVIEW SECTION
   ============================================ */

.luuk-preview-section {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.luuk-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.luuk-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.luuk-preview-card {
    border-radius: 8px;
    padding: 16px;
    min-height: 100px;
}

.luuk-preview-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.luuk-preview-card p {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
}

/* ============================================
   SWITCHES / TOGGLES
   ============================================ */

.luuk-switch-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.luuk-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.luuk-switch-label {
    font-size: 14px;
    color: #374151;
}

.luuk-switch-description {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ============================================
   IMAGE PREVIEW
   ============================================ */

.luuk-image-preview {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    background: #fff;
    margin-top: 12px;
}

/* ============================================
   GRID LAYOUT
   ============================================ */

.luuk-grid {
    display: grid;
    gap: 20px;
}

.luuk-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.luuk-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .luuk-grid-2,
    .luuk-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HELP INFO (OCULTAR POR DEFECTO)
   ============================================ */

#ExplicacionPerfiles {
    display: none;
}

.NecesitasAyudaDesc {
    display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .luuk-btn {
        width: 100%;
    }

    .luuk-color-picker-group {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COLOR PREVIEW - combinaciones canonicas
   Mapeo:
     Principal sólido     -> bg var(--color)  / texto var(--colort)
     Secundario sólido    -> bg var(--color2) / texto var(--color2t)
     Principal outline    -> bg #fff / borde+texto var(--color)
     Secundario outline   -> bg #fff / borde+texto var(--color2t)
     Nested principal     -> bg var(--color)  / h4 var(--colort)
     Nested secundario    -> bg var(--color2) / h4 var(--color2t)
     Inner principal      -> bg var(--color)  / span var(--colort)
     Inner secundario     -> bg var(--color2) / span var(--color2t)
   Reglas explícitas con alta especificidad para ganar
   sobre MyCss.css (que mezcla --color2 y --color2t).
   ============================================ */

.color-preview-columns {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.color-preview-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 280px;
    flex: 1;
}

.color-preview-block {
    padding: 16px 20px;
    border-radius: 0;
}

.color-preview-column > .color-preview-block:first-child {
    border-radius: 4px 4px 0 0;
}

.color-preview-column > .color-preview-block:last-child {
    border-radius: 0 0 4px 4px;
}

.color-preview-block h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.color-preview-block p {
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Sólidos */
.luuk-preview-section .color-preview-block.ColorPrincipalEj {
    background: var(--color) !important;
}
.luuk-preview-section .color-preview-block.ColorPrincipalEj h4,
.luuk-preview-section .color-preview-block.ColorPrincipalEj p {
    color: var(--colort) !important;
}

.luuk-preview-section .color-preview-block.ColorSecundarioEj {
    background: var(--color2) !important;
}
.luuk-preview-section .color-preview-block.ColorSecundarioEj h4,
.luuk-preview-section .color-preview-block.ColorSecundarioEj p {
    color: var(--color2t) !important;
}

/* Outline (fondo blanco) */
.luuk-preview-section .color-preview-block.ColorPrincipalBlancoEj {
    background: #fff !important;
    border: 1px solid var(--color);
}
.luuk-preview-section .color-preview-block.ColorPrincipalBlancoEj h4,
.luuk-preview-section .color-preview-block.ColorPrincipalBlancoEj p {
    color: var(--color) !important;
}

.luuk-preview-section .color-preview-block.ColorSecundarioBlancoEj {
    background: #fff !important;
    border: 1px solid var(--color2t);
}
.luuk-preview-section .color-preview-block.ColorSecundarioBlancoEj h4,
.luuk-preview-section .color-preview-block.ColorSecundarioBlancoEj p {
    color: var(--color2t) !important;
}

/* Bloques anidados — exterior */
.color-preview-nested {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.color-preview-nested h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.luuk-preview-section .color-preview-nested.ColorPrincipalEj {
    background: var(--color) !important;
}
.luuk-preview-section .color-preview-nested.ColorPrincipalEj > h4 {
    color: var(--colort) !important;
}

.luuk-preview-section .color-preview-nested.ColorSecundarioEj {
    background: var(--color2) !important;
}
.luuk-preview-section .color-preview-nested.ColorSecundarioEj > h4 {
    color: var(--color2t) !important;
}

/* Bloques anidados — interior */
.color-preview-inner {
    padding: 12px 16px;
    border-radius: 4px;
}

.color-preview-inner span {
    font-size: 13px;
    font-weight: 500;
}

.luuk-preview-section .color-preview-inner.ColorPrincipalEj {
    background: var(--color) !important;
}
.luuk-preview-section .color-preview-inner.ColorPrincipalEj span {
    color: var(--colort) !important;
}

.luuk-preview-section .color-preview-inner.ColorSecundarioEj {
    background: var(--color2) !important;
}
.luuk-preview-section .color-preview-inner.ColorSecundarioEj span {
    color: var(--color2t) !important;
}

@media (max-width: 900px) {
    .color-preview-columns {
        flex-direction: column;
    }

    .color-preview-column {
        min-width: 100%;
    }
}

/* ============================================
   LOGO PREVIEW PROFESIONAL
   ============================================ */

.luuk-logo-preview-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.luuk-logo-preview-img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

.luuk-logo-preview-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.luuk-logo-preview-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.luuk-logo-preview-size {
    font-size: 12px;
    color: #9ca3af;
}

.luuk-logo-preview-change {
    font-size: 12px;
    color: var(--color, #29c178);
    cursor: pointer;
    margin-top: 4px;
}

.luuk-logo-preview-change:hover {
    text-decoration: underline;
}

/* ============================================
   LOGO ACTUAL - DISEÑO PROFESIONAL
   ============================================ */

.luuk-logo-actual {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.luuk-logo-actual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.luuk-logo-actual-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.luuk-logo-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color, #29c178);
    background: #fff;
    border: 1px solid var(--color, #29c178);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.luuk-logo-change-btn:hover {
    background: var(--color, #29c178);
    color: #fff;
}

.luuk-logo-change-btn i {
    font-size: 12px;
}

.luuk-logo-actual-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 80px;
    background: #fff !important;
    background-image: none !important;
}

.luuk-logo-actual-preview img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    background-image: none !important;
}

/* Responsive logo */
@media (max-width: 768px) {
    .luuk-logo-actual {
        margin: 0;
    }

    .luuk-logo-actual-preview {
        padding: 16px;
    }

    .luuk-logo-actual-preview img {
        max-height: 70px;
    }
}

/* ============================================
   EXTRACCIÓN DE COLORES DEL LOGO
   ============================================ */

.luuk-color-extract {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.luuk-color-extract-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.luuk-color-extract-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.luuk-color-extract-btn i {
    font-size: 16px;
    color: #6b7280;
}

.luuk-color-suggestions {
    margin-top: 16px;
}

.luuk-color-suggestions-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}

.luuk-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.luuk-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.luuk-color-swatch-color {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.luuk-color-swatch-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.luuk-color-swatch-hex {
    font-size: 11px;
    font-family: monospace;
    color: #6b7280;
}

.luuk-color-swatch {
    cursor: pointer;
}

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

/* Modal de opciones de color */
.luuk-color-popup .swal2-footer {
    border-top: none;
    padding-top: 0;
}

.luuk-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.luuk-color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    color: #374151;
    min-width: 160px;
}

.luuk-color-option:hover {
    background: #f9fafb;
    border-color: var(--color, #29c178);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.luuk-color-option-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.luuk-color-option-header {
    height: 12px;
    width: 32px;
    border-radius: 3px 3px 0 0;
}

/* Loading state */
.luuk-color-extract-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.luuk-color-extract-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   INFO SECTION (Tipología de Perfiles)
   ============================================ */

.luuk-info-section {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.luuk-info-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.luuk-info-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.luuk-info-section-title i {
    font-size: 16px;
    color: #9ca3af;
}

.luuk-info-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #6b7280;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.luuk-info-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ========================================
   Panel Heading con Ayuda
   ======================================== */
body .page-content .panel > .panel-heading,
body .page-content .panel > header.panel-heading,
.page-content .panel .panel-heading,
.panel > .panel-heading,
.panel > header.panel-heading {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

body .page-content .panel > .panel-heading > .panel-title,
body .page-content .panel > header.panel-heading > .panel-title,
.panel > .panel-heading > .panel-title,
.panel > header.panel-heading > .panel-title,
.panel > .panel-heading > h3.panel-title,
.panel > header.panel-heading > h3.panel-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    flex-shrink: 0;
    float: none !important;
}

body .page-content .panel > .panel-heading > .panel-actions,
body .page-content .panel > header.panel-heading > .panel-actions,
.panel > .panel-heading > .panel-actions,
.panel > header.panel-heading > .panel-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    float: none !important;
}

/* Botón Ayuda en el header */
body .page-content .panel .panel-heading .btn-ayuda-toggle,
body .page-content .panel header.panel-heading .btn-ayuda-toggle,
.panel-heading .btn-ayuda-toggle,
header.panel-heading .btn-ayuda-toggle,
a.btn-ayuda-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    gap: 6px;
    padding: 4px 10px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    margin-left: 8px !important;
    transition: all 0.15s ease;
    flex-shrink: 0;
    float: none !important;
    position: relative !important;
}

body .page-content .panel .panel-heading .btn-ayuda-toggle:hover,
body .page-content .panel header.panel-heading .btn-ayuda-toggle:hover,
.panel-heading .btn-ayuda-toggle:hover,
header.panel-heading .btn-ayuda-toggle:hover,
a.btn-ayuda-toggle:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
    text-decoration: none !important;
}

.btn-ayuda-toggle i {
    font-size: 14px !important;
}

/* Header de sección de ayuda con close button */
.luuk-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.luuk-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.luuk-info-title i {
    font-size: 16px;
    color: var(--color, #29c178);
}

.luuk-info-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luuk-info-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.luuk-info-faq-link:hover {
    color: var(--color, #29c178);
    text-decoration: none;
}

.luuk-info-faq-link i {
    font-size: 14px;
}

.luuk-info-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 4px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
}

.luuk-info-close:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

/* ============================================
   PROFILE CARDS GRID
   ============================================ */

.luuk-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.luuk-profile-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.15s ease;
    position: relative;
}

.luuk-profile-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Indicador lateral de color por tipo */
.luuk-profile-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 8px 0 0 8px;
    background: #e5e7eb;
}

.luuk-profile-admin::before {
    background: var(--color, #29c178);
}

.luuk-profile-supervisor::before {
    background: #3b82f6;
}

.luuk-profile-usuario::before {
    background: #8b5cf6;
}

.luuk-profile-visor::before {
    background: #6b7280;
}

/* Icon container */
.luuk-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.luuk-profile-icon i {
    font-size: 18px;
    color: #6b7280;
}

.luuk-profile-admin .luuk-profile-icon {
    background: rgba(41, 193, 120, 0.1);
}

.luuk-profile-admin .luuk-profile-icon i {
    color: var(--color, #29c178);
}

.luuk-profile-supervisor .luuk-profile-icon {
    background: rgba(59, 130, 246, 0.1);
}

.luuk-profile-supervisor .luuk-profile-icon i {
    color: #3b82f6;
}

.luuk-profile-usuario .luuk-profile-icon {
    background: rgba(139, 92, 246, 0.1);
}

.luuk-profile-usuario .luuk-profile-icon i {
    color: #8b5cf6;
}

.luuk-profile-visor .luuk-profile-icon {
    background: rgba(107, 114, 128, 0.1);
}

.luuk-profile-visor .luuk-profile-icon i {
    color: #6b7280;
}

/* Content */
.luuk-profile-content {
    flex: 1;
    min-width: 0;
}

.luuk-profile-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.luuk-profile-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.luuk-profile-desc strong {
    color: #374151;
    font-weight: 500;
}

/* Badge */
.luuk-profile-card .luuk-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 3px 8px;
}

/* ============================================
   BADGES (para perfiles)
   ============================================ */

.luuk-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
}

.luuk-badge-primary {
    background: rgba(41, 193, 120, 0.1);
    color: var(--color, #29c178);
}

.luuk-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.luuk-badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.luuk-badge-gray {
    background: #f3f4f6;
    color: #6b7280;
}

/* ============================================
   RESPONSIVE PROFILE CARDS
   ============================================ */

@media (max-width: 640px) {
    .luuk-profile-grid {
        grid-template-columns: 1fr;
    }

    .luuk-profile-card {
        padding: 14px;
    }

    .luuk-profile-card .luuk-badge {
        display: none;
    }
}

/* ============================================
   TERMINOLOGÍA PERSONALIZADA
   ============================================ */

.luuk-terminology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.luuk-terminology-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.luuk-terminology-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.luuk-terminology-default {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}

.luuk-terminology-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.luuk-terminology-input:focus {
    outline: none;
    border-color: var(--color, #7c3aed);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.luuk-terminology-input::placeholder {
    color: #d1d5db;
    font-style: italic;
}

.luuk-terminology-pair {
    display: flex;
    gap: 8px;
}

.luuk-terminology-pair .luuk-terminology-item {
    flex: 1;
}

@media (max-width: 600px) {
    .luuk-terminology-grid {
        grid-template-columns: 1fr;
    }
    .luuk-terminology-pair {
        flex-direction: column;
    }
}
