/* Donaciones Dashboard - estilos del frontend */
.dd-dashboard {
	--dd-bg: #ffffff;
	--dd-ink: #1f2933;
	--dd-muted: #6b7280;
	--dd-line: #e5e7eb;
	--dd-brand: #7c3aed;
	--dd-green: #16a34a;
	--dd-blue: #2563eb;
	--dd-accent: #ea580c;
	max-width: 960px;
	margin: 0 auto;
	color: var(--dd-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

.dd-dashboard *,
.dd-dashboard *::before,
.dd-dashboard *::after {
	box-sizing: border-box;
}

/* HERO */
.dd-hero {
	text-align: center;
	background: linear-gradient( 135deg, #f5f3ff 0%, #eef2ff 100% );
	border: 1px solid var(--dd-line);
	border-radius: 18px;
	padding: 28px 20px 24px;
	margin-bottom: 20px;
}

.dd-hero__title {
	margin: 0 0 4px;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.dd-hero__year {
	color: var(--dd-brand);
}

.dd-hero__subtitle {
	margin: 0 0 18px;
	color: var(--dd-muted);
	font-size: 0.95rem;
}

.dd-hero__numbers {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.dd-hero__count {
	font-size: 3.4rem;
	font-weight: 800;
	line-height: 1;
	color: var(--dd-brand);
}

.dd-hero__of {
	color: var(--dd-muted);
	font-size: 1.1rem;
}

.dd-hero__goal {
	font-size: 2rem;
	font-weight: 700;
	color: var(--dd-ink);
}

.dd-hero__meta {
	margin-top: 12px;
	color: var(--dd-muted);
	font-size: 0.92rem;
}

/* PROGRESS */
.dd-progress {
	position: relative;
	height: 12px;
	background: #e9e7f5;
	border-radius: 999px;
	overflow: hidden;
}

.dd-progress--hero {
	height: 16px;
}

.dd-progress__bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient( 90deg, #8b5cf6, #7c3aed );
	transition: width 0.9s cubic-bezier( 0.22, 1, 0.36, 1 );
}

.dd-progress__bar--green {
	background: linear-gradient( 90deg, #22c55e, #16a34a );
}

.dd-progress__bar--blue {
	background: linear-gradient( 90deg, #3b82f6, #2563eb );
}

/* GRID */
.dd-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 16px;
	margin-bottom: 20px;
}

@media ( max-width: 720px ) {
	.dd-grid {
		grid-template-columns: 1fr;
	}
	.dd-hero__count {
		font-size: 2.6rem;
	}
}

/* CARDS */
.dd-card {
	background: var(--dd-bg);
	border: 1px solid var(--dd-line);
	border-radius: 16px;
	padding: 20px;
}

.dd-card__title {
	margin: 0 0 4px;
	font-size: 1.12rem;
	font-weight: 700;
}

.dd-card__desc {
	margin: 0 0 16px;
	color: var(--dd-muted);
	font-size: 0.88rem;
}

.dd-card__foot {
	margin: 12px 0 0;
	font-size: 0.88rem;
	color: var(--dd-muted);
}

.dd-stats {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 16px;
}

.dd-stat {
	flex: 1;
	text-align: center;
	padding: 10px 4px;
	background: #f9fafb;
	border-radius: 12px;
}

.dd-stat__value {
	display: block;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.1;
}

.dd-stat__label {
	display: block;
	margin-top: 2px;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dd-muted);
}

.dd-stat--accent .dd-stat__value {
	color: var(--dd-accent);
}

/* TABLE */
.dd-card--table {
	margin-bottom: 16px;
}

.dd-table-wrap {
	overflow-x: auto;
}

.dd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.dd-table th,
.dd-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--dd-line);
}

.dd-table th {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dd-muted);
	background: #f9fafb;
}

.dd-table .dd-num {
	text-align: right;
}

.dd-table tr:last-child td {
	border-bottom: none;
}

.dd-empty td {
	text-align: center;
	color: var(--dd-muted);
	padding: 20px;
}

.dd-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #047857;
	font-size: 0.78rem;
	font-weight: 600;
}

/* FOOTER */
.dd-foot {
	text-align: center;
	color: var(--dd-muted);
	font-size: 0.82rem;
	margin-top: 8px;
}

.dd-live {
	color: var(--dd-green);
	font-weight: 600;
	margin-left: 8px;
	animation: dd-pulse 2s infinite;
}

@keyframes dd-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
