/* Variables CSS actualizadas - Compatible con Unify */
:root {
    /* Colores del Design System */
    /* blue 0066CC  >>  #009900 */
    /* dark 0066CC  >>  #015f01*/
    /* light 0066CC  >> #61d361 */
    --primary-blue: #009900;
    --primary-dark: #015f01;
    --primary-light: #61d361;
    --secondary-orange: #FF6600;
    --secondary-green: #00AA44;
    --secondary-red: #CC0000;
    /* Bootstrap compatible colors */
    --bs-primary: #009900;
    --bs-primary-rgb: 0, 102, 204;
    /* Layout mejorado */
    --sidebar-width: 280px;
    --header-height: 70px;
    /* Tipografía mejorada */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Sombras mejoradas */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Reset y mejoras base - No conflictúa con Unify */
body {
    font-family: var(--font-primary);
    background-color: #f8f9fa;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Header mejorado con Bootstrap - Mantiene altura consistente */
.wiki-header {
    height: var(--header-height);
    background: #ffffff;
    z-index: 1030;
}

    .wiki-header .navbar {
        padding: 0;
        height: var(--header-height);
    }

    .wiki-header .navbar-brand {
        font-weight: 700;
        transition: all 0.3s ease;
    }

        .wiki-header .navbar-brand:hover {
            transform: translateY(-2px);
        }

    .wiki-header .nav-link {
        font-weight: 500;
        color: #495057;
        transition: all 0.3s ease;
        border-radius: 8px;
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
    }

        .wiki-header .nav-link:hover {
            color: var(--primary-blue);
            background-color: rgba(0, 102, 204, 0.05);
        }

/* Sidebar completamente rediseñado con Bootstrap */
.wiki-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    z-index: 1020;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

    .wiki-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .wiki-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .wiki-sidebar::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 3px;
    }

        .wiki-sidebar::-webkit-scrollbar-thumb:hover {
            background: #adb5bd;
        }

.sidebar-content {
    padding: 1.5rem 1rem;
}

.search-box .input-group-text {
    background-color: #f8f9fa;
    border-right: 0;
}

.search-box .form-control {
    background-color: #f8f9fa;
    border-left: 0;
    transition: all 0.3s ease;
}

    .search-box .form-control:focus {
        background-color: #ffffff;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    }

.search-box .input-group-text {
    border-color: #dee2e6;
}

/* Navegación del sidebar mejorada */
.nav-section h6 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.list-group-item {
    background-color: transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
}

    .list-group-item:hover {
        background-color: rgba(0, 102, 204, 0.05);
        color: var(--primary-blue);
        transform: translateX(3px);
    }

    .list-group-item.active {
        background-color: rgba(0, 102, 204, 0.1);
        border-left: 3px solid var(--primary-blue);
        color: var(--primary-blue);
        font-weight: 600;
    }

/* Main Content ajustado */
.wiki-main {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}

/* Hover effect compatible con Unify framework */
.hover-effect {
    transition: all 0.3s ease;
}

    .hover-effect:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
        transform: translateY(-2px);
    }

/* Vehicle Cards */
.vehicle-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .vehicle-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }

    .vehicle-card .card-img-wrapper {
        overflow: hidden;
        background-color: #f8f9fa;
    }

    .vehicle-card .card-img-top {
        transition: transform 0.3s ease;
    }

    .vehicle-card:hover .card-img-top {
        transform: scale(1.05);
    }

    .vehicle-card .card-body {
        background-color: #ffffff;
    }

    .vehicle-card .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

        .vehicle-card .btn-group .btn:hover {
            transform: scale(1.1);
        }

/* Code block styling */
pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

    pre code {
        font-family: 'Courier New', monospace;
        font-size: 0.875rem;
        color: #212529;
    }

/* Brand Cards - Modern Design */
.brands-catalog-section {
    width: 100%;
}

.brand-card-modern {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-container {
    position: relative;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    z-index: 2;
}

.brand-card-modern:hover .brand-container {
    border-color: var(--primary-blue);
    background: #ffffff;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

/* Logo Container */
.brand-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.brand-logo-wrapper {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 1rem;
}

.brand-card-modern:hover .brand-logo-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.2);
}

.brand-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Brand Info */
.brand-info {
    flex: 1;
    text-align: center;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.brand-card-modern:hover .brand-title {
    color: var(--primary-blue);
}

/* Pricing */
.brand-pricing {
    margin-bottom: 1.25rem;
}

.price-item {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Stats */
.brand-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-weight: 500;
}

    .stat-item i {
        color: var(--primary-blue);
        font-size: 1.125rem;
    }

    .stat-item small {
        font-size: 0.875rem;
    }

/* Action Button */
.brand-action {
    margin-top: 1rem;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-explore:hover {
        background: var(--primary-dark);
        color: #ffffff;
        transform: translateX(5px);
        box-shadow: 0 8px 16px rgba(0, 102, 204, 0.3);
    }

    .btn-explore .arrow-icon {
        transition: transform 0.3s ease;
    }

    .btn-explore:hover .arrow-icon {
        transform: translateX(5px);
    }

/* Hover Effect Background */
.brand-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 16px;
}

.brand-card-modern:hover .brand-hover-effect {
    opacity: 1;
}

/* Responsive adjustments for brand cards */
@media (max-width: 768px) {
    .brand-logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .price-value {
        font-size: 1.125rem;
    }

    .btn-explore {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

    .search-box input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        font-size: 0.875rem;
        background: white;
        transition: all 0.3s ease;
    }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
            transform: translateY(-1px);
        }

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
}

/* Navegación del sidebar mejorada */
.nav-section {
    margin-bottom: 2rem;
}

    .nav-section h3 {
        font-size: 0.75rem;
        font-weight: 700;
        color: #495057;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 0 0.75rem;
    }

    .nav-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-section li {
        margin-bottom: 0.25rem;
    }

    .nav-section a {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        color: #495057;
        text-decoration: none;
        border-radius: 10px;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-section a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 0;
            background: var(--primary-blue);
            border-radius: 0 3px 3px 0;
            transition: height 0.3s ease;
        }

        .nav-section a:hover,
        .nav-section a.active {
            background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
            color: white;
            transform: translateX(5px);
            box-shadow: var(--shadow-md);
        }

            .nav-section a:hover::before,
            .nav-section a.active::before {
                height: 100%;
            }

/* Main content ajustado */
.wiki-main {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}

/* Botones con Bootstrap mejorados */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}
/* Botones - Sin efecto de luz */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    /* Botón Primario - Color Azul #009900 */
    .btn-primary,
    .u-btn-primary,
    .btn.btn-primary,
    button.btn-primary,
    a.btn-primary,
    .btn.u-btn-primary,
    button.u-btn-primary,
    a.u-btn-primary {
        background-color: #009900 !important;
        border-color: #009900 !important;
        color: white !important;
    }

        .btn-primary:hover,
        .u-btn-primary:hover,
        .btn.btn-primary:hover,
        button.btn-primary:hover,
        a.btn-primary:hover,
        .btn.u-btn-primary:hover,
        button.u-btn-primary:hover,
        a.u-btn-primary:hover {
            background-color: #0052A3 !important;
            border-color: #0052A3 !important;
            color: white !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
        }

        .btn-primary:active,
        .u-btn-primary:active,
        .btn-primary:focus,
        .u-btn-primary:focus,
        .btn.btn-primary:active,
        .btn.btn-primary:focus,
        button.btn-primary:active,
        button.btn-primary:focus {
            background-color: #004080 !important;
            border-color: #004080 !important;
            color: white !important;
            box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25) !important;
        }

.btn-secondary {
    background: transparent;
    color: #009900;
    border: 2px solid #009900;
}

    .btn-secondary:hover {
        background: #009900;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
    }

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-outline-primary,
.u-btn-outline-primary {
    border: 2px solid #009900 !important;
    color: #009900 !important;
    background: transparent !important;
}

    .btn-outline-primary:hover,
    .u-btn-outline-primary:hover {
        background: #009900 !important;
        border-color: #009900 !important;
        color: white !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
    }

/* Tamaños de botones */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* Hero section mejorado */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

    .hero-section h1 {
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-section p {
        color: #ffffff;
        opacity: 0.95;
        font-size: 1.125rem;
    }

    .hero-section::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)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

    .hero-section > * {
        position: relative;
        z-index: 1;
    }

/* Hero Stats con texto blanco */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

    .hero-stats .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-stats .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: #ffffff;
        line-height: 1;
    }

    .hero-stats .stat-label {
        font-size: 0.875rem;
        color: #ffffff;
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 500;
    }

/* Cards mejoradas */
.wiki-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

    .wiki-section:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Simulador mejorado */
.credit-simulator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.credit-result {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

    .credit-result::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    }

/* Responsive mejorado */
@media (max-width: 768px) {
    .wiki-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .wiki-sidebar.show {
            transform: translateX(0);
        }

    .wiki-main {
        margin-left: 0;
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .wiki-section {
        padding: 1.5rem;
    }
}

/* Botón toggle para móvil */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

.credit-calculator {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .credit-calculator h4 {
        color: #009900;
        font-weight: 700;
        border-bottom: 2px solid #f8f9fa;
        padding-bottom: 15px;
    }

/* Grupos de formulario */
.g-mb-30 {
    margin-bottom: 30px;
}

.g-mb-40 {
    margin-bottom: 40px;
}

.g-brd-around {
    border: 1px solid #e9ecef;
}

.g-brd-gray-light-v4 {
    border-color: #f1f3f4;
}

.g-pa-30 {
    padding: 30px;
}

.g-py-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.g-color-primary {
    color: #009900 !important;
}

/* Labels mejorados */
.font-weight-semibold {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

/* Input group styling */
.input-group-text {
    background: linear-gradient(135deg, #009900, #004499);
    color: white;
    border: none;
    font-weight: 600;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #009900;
        box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    }

/* Custom Select Dropdown */
.custom-select {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 2.5rem 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

    .custom-select:focus {
        border-color: #009900;
        box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
        outline: 0;
    }

    .custom-select:disabled {
        background-color: #e9ecef;
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Form Row */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

    .form-row > .col,
    .form-row > [class*="col-"] {
        padding-right: 5px;
        padding-left: 5px;
    }

/* Custom Checkbox */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

    .custom-control-input:checked ~ .custom-control-label::before {
        color: #fff;
        border-color: #009900;
        background-color: #009900;
    }

    .custom-control-input:focus ~ .custom-control-label::before {
        box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    }

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
}

    .custom-control-label::before {
        position: absolute;
        top: 0.25rem;
        left: -1.5rem;
        display: block;
        width: 1rem;
        height: 1rem;
        pointer-events: none;
        content: "";
        background-color: #fff;
        border: 1px solid #adb5bd;
        border-radius: 0.25rem;
    }

    .custom-control-label::after {
        position: absolute;
        top: 0.25rem;
        left: -1.5rem;
        display: block;
        width: 1rem;
        height: 1rem;
        content: "";
        background: no-repeat 50% / 50% 50%;
    }

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .custom-select:invalid ~ .invalid-feedback,
.was-validated .custom-control-input:invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-control:invalid,
.was-validated .custom-select:invalid {
    border-color: #dc3545;
}

.was-validated .custom-control-input:invalid ~ .custom-control-label::before {
    border-color: #dc3545;
}

/* Sliders personalizados */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e9ecef;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin: 15px 0;
}

    .slider:hover {
        opacity: 1;
    }

    .slider::-webkit-slider-thumb {
        appearance: none;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: linear-gradient(135deg, #009900, #004499);
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
        transition: all 0.3s ease;
    }

        .slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0, 102, 204, 0.4);
        }

    .slider::-moz-range-thumb {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: linear-gradient(135deg, #009900, #004499);
        cursor: pointer;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
    }

/* Resultado del crédito */
.credit-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #009900;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

    .credit-result::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #009900, #004499, #009900);
    }

    .credit-result h5 {
        color: #6c757d;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .credit-result h2 {
        color: #009900;
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 20px;
        text-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
    }

    .credit-result .row {
        border-top: 1px solid #dee2e6;
        padding-top: 15px;
        margin-top: 15px;
    }

    .credit-result strong {
        color: #009900;
        font-size: 1.1rem;
        font-weight: 700;
    }

/* Iconos */
.fa {
    margin-right: 8px;
}

.text-primary {
    color: #009900 !important;
}

.text-success {
    color: #28a745 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .g-pa-30 {
        padding: 20px;
    }

    .credit-result h2 {
        font-size: 1.8rem;
    }

    .credit-result .col-4 {
        margin-bottom: 15px;
    }
}
/* Color Section - Diseño Simple */
.color-section {
    margin-bottom: 2.5rem;
}

    .color-section h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--gray-800);
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--gray-200);
        padding-bottom: 0.5rem;
    }

/* Color Palette Simple */
.color-palette-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-item-simple {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .color-item-simple:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-blue);
    }

/* Color Circle */
.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.color-item-simple:hover .color-circle {
    transform: scale(1.1);
}

/* Color Details */
.color-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.color-hex {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.color-usage {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Copy Button Simple */
.btn-copy-simple {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

    .btn-copy-simple:hover {
        background: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
        transform: scale(1.1);
    }

    .btn-copy-simple:active {
        transform: scale(0.95);
    }

/* Animación de copiado */
.color-item-simple.copied {
    background: var(--success);
    color: white;
    animation: copyPulse 0.6s ease;
}

    .color-item-simple.copied .color-name,
    .color-item-simple.copied .color-hex,
    .color-item-simple.copied .color-usage {
        color: white;
    }

    .color-item-simple.copied .btn-copy-simple {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }

@keyframes copyPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .color-item-simple {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .color-circle {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .color-details {
        align-items: center;
        text-align: center;
    }

    .btn-copy-simple {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .color-item-simple {
        padding: 0.75rem;
    }

    .color-circle {
        width: 40px;
        height: 40px;
    }

    .color-name {
        font-size: 1rem;
    }

    .color-hex {
        font-size: 0.875rem;
    }

    .color-usage {
        font-size: 0.8rem;
    }
}

/* Ripple Effect - DESHABILITADO para evitar efecto de luz en botones */
/* 
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
*/

/* Card hover animations */
.action-card,
.hover-card {
    position: relative;
    overflow: hidden;
}

/* Responsive Design - Mobile */
@media (max-width: 991px) {
    .wiki-sidebar {
        position: fixed;
        left: -100%;
        width: 100%;
        max-width: 320px;
        transition: left 0.3s ease;
        z-index: 1040;
    }

        .wiki-sidebar.show {
            left: 0;
        }

    .wiki-main {
        margin-left: 0;
        padding: 1rem;
    }

    body {
        padding-top: var(--header-height);
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 60px;
    }

    .wiki-header .navbar-brand {
        font-size: 0.9rem;
    }

        .wiki-header .navbar-brand .fs-5 {
            font-size: 1rem !important;
        }

    .wiki-main {
        padding: 0.75rem;
    }
}

/* ============================================================
   CUSTOM SLIDER STYLES
   ============================================================ */

.slider-container {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
}

.custom-slider {
    position: relative;
    width: 100%;
    height: 6px;
    cursor: pointer;
    margin: 0 0.5rem;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.slider-fill {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, #009900 0%, #0052A3 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #009900;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    z-index: 2;
}

    .slider-thumb:hover {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 3px 10px rgba(0, 102, 204, 0.4);
    }

    .slider-thumb:active {
        cursor: grabbing;
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.5);
    }

    .slider-thumb:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
    }

/* Credit Calculator Styles */
.credit-calculator {
    max-width: 700px;
    margin: 0 auto;
}

    .credit-calculator .form-control {
        border-radius: 0.375rem;
        border: 1px solid #ddd;
        padding: 0.75rem;
        font-size: 1rem;
    }

        .credit-calculator .form-control:focus {
            border-color: #009900;
            box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
        }

    .credit-calculator .input-group-text {
        background: #f8f9fa;
        border: 1px solid #ddd;
        color: #495057;
        font-weight: 600;
    }

    .credit-calculator label {
        font-size: 0.95rem;
        color: #333;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
    }

        .credit-calculator label i {
            font-size: 1.1rem;
            margin-right: 0.5rem;
            min-width: 20px;
        }

    .credit-calculator .form-group {
        padding: 0 0.5rem;
    }

    /* Espaciado para los labels de rango de los sliders */
    .credit-calculator .d-flex.justify-content-between {
        padding: 0 1.25rem;
    }

.credit-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

    .credit-result h2 {
        font-size: 2.5rem;
        margin: 0;
    }

    .credit-result .row strong {
        color: #009900;
        font-size: 1.1rem;
    }

/* Code Examples - Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

    .nav-tabs .nav-link {
        color: #495057;
        border: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .nav-tabs .nav-link:hover {
            color: #009900;
            background-color: rgba(0, 102, 204, 0.05);
            border-bottom-color: #009900;
        }

        .nav-tabs .nav-link.active {
            color: #009900;
            background-color: transparent;
            border-bottom-color: #009900;
        }

.tab-content {
    background: #f8f9fa;
}

    .tab-content pre {
        margin: 0;
        max-height: 500px;
        overflow-y: auto;
    }

    .tab-content code {
        font-size: 0.875rem;
        line-height: 1.6;
        color: #333;
    }

/* Botón de copiar en tabs */
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .copy-code-btn:hover {
        opacity: 1;
    }

.tab-pane {
    position: relative;
}

/* Responsive adjustments for credit simulator */
@media (max-width: 768px) {
    .credit-result h2 {
        font-size: 2rem;
    }

    .credit-result .row .col-4 {
        margin-bottom: 1rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .slider-thumb {
        width: 24px;
        height: 24px;
    }
}


/* ===== Sidebar Search ===== */
.search-box {
    position: relative;
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.search-clear-btn:hover {
    color: #343a40;
    background: rgba(0, 0, 0, 0.06);
}

mark.search-highlight {
    background: rgba(0, 153, 0, 0.15);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 600;
}

#searchNoResults {
    padding: 2rem 1rem;
}

/* === Estilos para la sección de Publicaciones === */
.publications-section {
    padding: 40px 0;
}

.publications-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.publication-card {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    transition: background 0.2s;
}

.publication-card:hover {
    background: #f8f9fa;
}

.publication-card:last-child {
    border-bottom: none;
}

.publication-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-info h6 {
    color: #0066CC;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moderation-tags {
    display: flex;
    flex-direction: column;
}

.moderation-tag {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* === Estilos para tabla de publicaciones nuevos === */
.publications-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.publications-table-wrapper table {
    margin-bottom: 0;
}

.publications-table-wrapper thead {
    background: #0066CC;
    color: white;
}

.publications-table-wrapper thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
    vertical-align: middle;
}

.publications-table-wrapper tbody tr {
    transition: background 0.2s;
}

.publications-table-wrapper tbody tr:hover {
    background: #f8f9fa;
}

.publications-table-wrapper tbody td {
    padding: 15px;
    vertical-align: middle;
}

.product-images {
    display: flex;
    gap: 5px;
}

.product-image-small {
    width: 60px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.export-buttons .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ===== Cuentas: Particulares y Profesionales ===== */
.table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow: hidden;
}

.table-modern thead {
    background: #0066CC;
    color: #fff;
}

.table-modern thead th {
    border: 0;
    padding: 14px 16px;
    font-weight: 600;
}

.table-modern tbody td {
    padding: 14px 16px;
    vertical-align: middle;
}

.table-modern tbody tr {
    border-color: #eef2f7;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066CC;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.agency-logo-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.agency-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
    font-size: 0.9rem;
    color: #374151;
}

.meta-chip i {
    font-size: 1rem;
    opacity: .9;
}

.meta-label {
    font-weight: 600;
    color: #6b7280;
}

.meta-sep {
    margin: 0 6px;
    color: #9ca3af;
}

.meta-value {
    font-weight: 600;
    color: #111827;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #009900;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f0f0f0;
    color: #444;
    border: 1px solid #ddd;
}

