/* ── Wrap ── */
.nc-tg-wrap {
    font-family: inherit;
}

/* ── Tabs — Zonas (botones superiores) ── */
.nc-tg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.nc-tg-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #1a1a1a;
    background: transparent;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.nc-tg-tab:hover {
    background: #1a1a1a;
    color: #fff;
}

.nc-tg-tab.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ── Subtabs — Técnicas (enlaces secundarios) ── */
.nc-tg-subtabs-wrap {
    margin-bottom: 32px;
}

.nc-tg-subtabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.nc-tg-subtab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
    transition: color 0.2s, border-color 0.2s;
}

.nc-tg-subtab:hover {
    color: #D4AF37;
}

.nc-tg-subtab.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

/* ── Grid de casos ── */
.nc-tg-grid {
    display: grid;
    grid-template-columns: repeat(var(--nc-tg-cols, 3), 1fr);
    gap: 16px;
}

/* ── Tarjeta ── */
.nc-tg-card {
    overflow: hidden;
    border-radius: 12px;
}

.nc-tg-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

.nc-tg-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--nc-tg-px, 50%) var(--nc-tg-py, 50%);
    display: block;
    transition: transform 0.35s ease;
}

.nc-tg-card:hover .nc-tg-img-wrap img {
    transform: scale(1.05);
}

.nc-tg-img-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    pointer-events: none;
    line-height: 1.6;
}

.nc-tg-card-info {
    padding: 10px 2px 4px;
}

.nc-tg-card-title {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nc-tg-card-tech {
    font-size: 0.78rem;
    color: #888;
}

/* ── Paginación ── */
.nc-tg-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.nc-tg-dot {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
}

.nc-tg-dot-shape {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #cccccc;
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
}

.nc-tg-dot.active .nc-tg-dot-shape {
    background: #D4AF37;
    border-color: #D4AF37;
}

/* ── Lightbox ── */
.nc-tg-lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.nc-tg-lb-overlay.active {
    display: flex;
}

.nc-tg-lb-img-wrap {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-tg-lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    user-select: none;
}

.nc-tg-lb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 30px;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.15s;
}

.nc-tg-lb-close:hover {
    color: #fff;
}

.nc-tg-lb-prev,
.nc-tg-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.nc-tg-lb-prev {
    left: 12px;
}

.nc-tg-lb-next {
    right: 12px;
}

.nc-tg-lb-prev:hover,
.nc-tg-lb-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.nc-tg-lb-counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    pointer-events: none;
}
