/* ===== ESTILOS CALENDARIO TRIBUTARIO DIAN 2026 ===== */
.cal-hero {
    background: linear-gradient(135deg, #071e33 0%, #102a43 60%, #1a365d 100%);
    padding: 150px 0 70px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.cal-hero::after {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(102, 153, 255, 0.12);
    right: -100px;
    top: -100px;
    pointer-events: none;
}

.cal-main-wrap {
    padding: 50px 0 90px;
    background: #f8fafc;
}
.cal-control-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    padding: 30px;
    margin-bottom: 30px;
}
.cal-controls-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}
.nit-input-box {
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 18px;
    padding: 20px;
}
.nit-input-box h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1e3a8a;
}
.nit-input-box p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.4;
}
.nit-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nit-input-inner {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    height: 48px;
    flex: 1;
    transition: border-color 0.2s ease;
}
.nit-input-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.18);
}
.nit-input-inner span {
    font-weight: 800;
    color: #64748b;
    font-size: 0.85rem;
    margin-right: 8px;
}
.nit-input-inner input {
    border: none;
    outline: none;
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
    letter-spacing: 0.05em;
}
.nit-digits-badge {
    display: flex;
    gap: 8px;
}
.digit-pill {
    background: var(--primary);
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}
.digit-pill span {
    display: block;
    font-size: 0.65rem;
    opacity: 0.85;
    text-transform: uppercase;
}

/* SEARCH & CALENDAR DOWNLOAD */
.cal-actions-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cal-search-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 16px 0 40px;
    font-size: 0.88rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease;
}
.cal-search-input:focus {
    border-color: var(--primary);
}
.cal-search-wrap {
    position: relative;
}
.cal-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.btn-download-ics {
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-download-ics:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

/* CATEGORY TABS */
.cal-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.category-tab-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.category-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.category-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(102, 153, 255, 0.3);
}

/* MONTH SELECTOR BAR */
.cal-month-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 28px;
    scrollbar-width: thin;
}
.month-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}
.month-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.month-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* OBLIGATIONS GRID */
.obligations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.obligation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.obligation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.obligation-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ob-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.ob-tag.tag-renta { background: #eff6ff; color: #1d4ed8; }
.ob-tag.tag-iva { background: #faf5ff; color: #7e22ce; }
.ob-tag.tag-retencion { background: #fff7ed; color: #c2410c; }
.ob-tag.tag-rst { background: #ecfdf5; color: #047857; }
.ob-tag.tag-exogena { background: #fdf2f8; color: #be185d; }
.ob-tag.tag-otros { background: #f1f5f9; color: #475569; }

.ob-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.ob-status.tone-soon { background: #fef3c7; color: #b45309; }
.ob-status.tone-today { background: #fee2e2; color: #b91c1c; font-weight: 800; }
.ob-status.tone-past { background: #f1f5f9; color: #94a3b8; }
.ob-status.tone-future { background: #f8fafc; color: #64748b; }

.ob-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 6px;
}
.ob-period {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 16px;
}
.ob-date-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ob-date-box span {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}
.ob-date-box strong {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 900;
}

.empty-results-box {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 1024px) {
    .obligations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .cal-controls-grid {
        grid-template-columns: 1fr;
    }
    .obligations-grid {
        grid-template-columns: 1fr;
    }
}
