/* 
 * TuColmenaMarket - Premium Global UI Core
 * modern aesthetics: glassmorphism, soft shadows, and smooth transitions.
 */

:root {
    --premium-primary: #7366ff;
    --premium-secondary: #f73164;
    --premium-success: #51bb25;
    --premium-warning: #f8d62b;
    --premium-danger: #dc3545;
    --premium-bg-light: #f8f9fa;
    --premium-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --premium-focus-shadow: 0 0 0 4px rgba(115, 102, 255, 0.15);
    --premium-radius: 16px;
    --premium-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CARDS MODERNIZADAS */
.card {
    border: none !important;
    border-radius: var(--premium-radius) !important;
    box-shadow: var(--premium-card-shadow) !important;
    transition: var(--premium-transition);
    overflow: hidden;
    margin-bottom: 30px;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 20px 25px !important;
}

.card-header h5 {
    font-weight: 700 !important;
    color: #2c323f;
    letter-spacing: -0.5px;
}

/* INPUTS Y SELECTS PREMIUM */
.form-control, .form-select {
    border-radius: 10px !important;
    padding: 12px 15px !important;
    border: 1px solid #e6edef !important;
    background-color: #fbfcfd !important;
    transition: var(--premium-transition) !important;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    border-color: var(--premium-primary) !important;
    box-shadow: var(--premium-focus-shadow) !important;
    outline: none;
}

label {
    font-weight: 600 !important;
    color: #444;
    margin-bottom: 8px !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BOTONES CON ESTILO */
.btn {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: var(--premium-transition) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-image: linear-gradient(135deg, #7366ff 0%, #a066ff 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(115, 102, 255, 0.3) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 102, 255, 0.4) !important;
}

.btn-success {
    background-image: linear-gradient(135deg, #51bb25 0%, #72d64a 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(81, 187, 37, 0.3) !important;
}

/* REDISEÑO DEL STEP WIZARD */
.stepwizard-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.stepwizard-row:before {
    top: 20px;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 100%;
    height: 3px;
    background-color: #f0f3f5;
    z-index: 0;
}

.stepwizard-step {
    display: table-cell;
    text-align: center;
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 15px;
}

.stepwizard-step p {
    margin-top: 10px;
    font-weight: 700;
    color: #abb5be;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.stepwizard-step .btn-primary {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stepwizard-step .btn-light {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background-color: #f0f3f5 !important;
    border: none !important;
    color: #abb5be !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ALERTS MODERNAS */
.alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* TABLAS REFINADAS */
.table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.table thead th {
    border: none !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #888;
    padding: 15px !important;
}

.table tbody tr {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
    border-radius: 10px;
    transition: var(--premium-transition);
}

.table tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

.table td {
    border: none !important;
    padding: 15px !important;
    vertical-align: middle !important;
}

/* ANIMACIONES */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.setup-content {
    animation: fadeInSlide 0.4s ease-out forwards;
}

/* TARJETAS KPI (Dashboard de Consultas / Estadisticas) */
.card-light-primary,
.card-light-warning,
.card-light-success,
.card-light-secondary {
    position: relative;
    margin-bottom: 0 !important;
    border-radius: 14px !important;
    border: 1px solid transparent !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.card-light-primary::before,
.card-light-warning::before,
.card-light-success::before,
.card-light-secondary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
}

.card-light-primary {
    background: linear-gradient(135deg, #eef1ff 0%, #fafbff 100%) !important;
    border-color: #dde2ff !important;
    box-shadow: 0 10px 24px rgba(115, 102, 255, .16) !important;
}
.card-light-primary::before { background: #7366ff; }

.card-light-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #fffdf6 100%) !important;
    border-color: #fbe8ae !important;
    box-shadow: 0 10px 24px rgba(216, 177, 0, .16) !important;
}
.card-light-warning::before { background: #f4b400; }

.card-light-success {
    background: linear-gradient(135deg, #eaf8ee 0%, #f8fdf9 100%) !important;
    border-color: #cdebd6 !important;
    box-shadow: 0 10px 24px rgba(46, 158, 79, .14) !important;
}
.card-light-success::before { background: #2e9e4f; }

.card-light-secondary {
    background: linear-gradient(135deg, #f1f4f8 0%, #fafbfd 100%) !important;
    border-color: #e1e7ef !important;
    box-shadow: 0 10px 24px rgba(44, 50, 63, .12) !important;
}
.card-light-secondary::before { background: #7a8795; }

.card-light-primary:hover,
.card-light-warning:hover,
.card-light-success:hover,
.card-light-secondary:hover {
    transform: translateY(-3px);
}
.card-light-primary:hover { box-shadow: 0 14px 30px rgba(115, 102, 255, .22) !important; }
.card-light-warning:hover { box-shadow: 0 14px 30px rgba(216, 177, 0, .22) !important; }
.card-light-success:hover { box-shadow: 0 14px 30px rgba(46, 158, 79, .2) !important; }
.card-light-secondary:hover { box-shadow: 0 14px 30px rgba(44, 50, 63, .18) !important; }

.card-light-primary .card-body,
.card-light-warning .card-body,
.card-light-success .card-body,
.card-light-secondary .card-body {
    padding: 18px 20px !important;
}

.card-light-primary .card-body > small:first-child,
.card-light-warning .card-body > small:first-child,
.card-light-success .card-body > small:first-child,
.card-light-secondary .card-body > small:first-child {
    display: block;
    color: #5b6472 !important;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.card-light-primary h3,
.card-light-warning h3,
.card-light-success h3,
.card-light-secondary h3 {
    margin: 6px 0 4px;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.card-light-primary h3 { color: #4f46e5; }
.card-light-warning h3 { color: #8a6200; }
.card-light-success h3 { color: #237a3d; }
.card-light-secondary h3 { color: #3b4654; }

.card-light-primary .card-body > small:last-child,
.card-light-warning .card-body > small:last-child,
.card-light-success .card-body > small:last-child,
.card-light-secondary .card-body > small:last-child {
    display: block;
    color: #5f6a77 !important;
    font-size: .78rem;
}

/* KPI enlazadas */
.kpi-link {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.kpi-link:hover,
.kpi-link:focus {
    color: inherit;
    text-decoration: none;
}
.kpi-link .card {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.kpi-link .card::after {
    content: "\2192";
    position: absolute;
    right: 18px;
    bottom: 13px;
    color: #5f6a77;
    font-size: 1rem;
    font-weight: 700;
    opacity: .45;
    transition: transform .2s ease, opacity .2s ease;
}
.kpi-link:hover .card::after {
    opacity: 1;
    transform: translateX(3px);
}
.kpi-link:focus-visible {
    outline: none;
}
.kpi-link:focus-visible .card {
    outline: 3px solid #7366ff;
    outline-offset: 3px;
}
#ultimas-consultas {
    scroll-margin-top: 90px;
}