/* TABS PRODUCTOS */

.tabs-container {
    background: #ffffff;
    width: 100%;
    max-width: 560px;
    height: fit-content;
}

/* ── Nav ── */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1.5px solid #e0e0e0;
    margin-bottom: 0;
}

.tab-btn {
    position: relative;
    padding: .5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    outline: none;
    bottom: -1.5px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 2px;
    background: transparent;
    border-radius: 2px 2px 0 0;
    transition: background 0.25s, transform 0.25s;
    transform: scaleX(0.6);
    transform-origin: center;
}

.tab-btn:hover {
    color: #111;
}

.tab-btn.active {
    color: #111;
}

.tab-btn.active::after {
    background: #111;
    transform: scaleX(1);
}

/* ── Panels ── */
.tabs-content {
    padding: 1.5rem 1rem;
}

.tab-panel {
    display: none;
    animation: fadeSlideIn 0.22s ease forwards;
}

.tab-panel.active {
    display: block;
}

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

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

/* ── Typography ── */
.panel-heading {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin-bottom: 8px;
}

.panel-body {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── Cards ── */
.cards-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    padding: 14px 16px;
    flex: 1;
    min-width: 140px;
}

.info-card.full {
    flex: 1 1 100%;
    justify-content: space-between;
    align-items: center;
}

.info-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
}

.icon-blue {
    background: #E6F1FB;
    color: #185FA5;
}

.icon-teal {
    background: #E1F5EE;
    color: #0F6E56;
}

.icon-amber {
    background: #FAEEDA;
    color: #854F0B;
}

.info-card-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.info-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

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

/* ── Badges ── */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 99px;
    margin-left: 6px;
}

.badge-success {
    background: #EAF3DE;
    color: #3B6D11;
}

.badge-info {
    background: #E6F1FB;
    color: #185FA5;
}

.badge-warning {
    background: #FAEEDA;
    color: #854F0B;
}

/* ── Toggle switch ── */
.toggle-label {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

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

.toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 22px;
    background: #ccc;
    transition: background 0.2s;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}

.toggle-label input:checked+.toggle-track {
    background: #185FA5;
}

.toggle-label input:checked+.toggle-track .toggle-thumb {
    left: 21px;
}

.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}