/* Reto 21 Días - Stylesheet para WordPress Frontend */
.reto21-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #0f172a;
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.5rem;
	background: #f8fafc;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.reto21-header-card {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #ffffff;
	border-radius: 12px;
	padding: 1.75rem 2rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.reto21-title-flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.reto21-title-flex h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: #ffffff;
}

.reto21-badge {
	background: rgba(255,255,255,0.15);
	color: #38bdf8;
	padding: 0.35rem 0.85rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.reto21-progress-container {
	background: rgba(255,255,255,0.1);
	border-radius: 10px;
	height: 12px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.reto21-progress-bar {
	background: linear-gradient(90deg, #38bdf8, #818cf8);
	height: 100%;
	width: 0%;
	transition: width 0.4s ease;
}

.reto21-progress-text {
	font-size: 0.85rem;
	color: #94a3b8;
	display: flex;
	justify-content: space-between;
}

.reto21-days-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 0.6rem;
	margin-bottom: 1.5rem;
}

.reto21-day-btn {
	background: #ffffff;
	border: 2px solid #cbd5e1;
	border-radius: 10px;
	padding: 0.6rem 0.3rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.reto21-day-btn:hover {
	border-color: #3b82f6;
	transform: translateY(-2px);
}

.reto21-day-btn.active {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.reto21-day-btn.completed {
	background: #f0fdf4;
	border-color: #22c55e;
	color: #15803d;
}

.reto21-day-num {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #64748b;
}

.reto21-day-btn.completed .reto21-day-num {
	color: #166534;
}

.reto21-day-icon {
	font-size: 1.1rem;
	margin-top: 2px;
}

.reto21-main-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.75rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.reto21-section-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f1f5f9;
}

.reto21-audio-player-box {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.reto21-audio-title {
	font-weight: 700;
	font-size: 0.95rem;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 8px;
}

.reto21-audio-player-box audio {
	width: 100%;
	height: 36px;
}

.reto21-habits-box {
	margin-bottom: 1.25rem;
}

.reto21-habit-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.5rem;
	cursor: pointer;
	transition: background 0.15s;
}

.reto21-habit-item:hover {
	background: #f1f5f9;
}

.reto21-habit-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.reto21-textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0.75rem;
	font-size: 0.9rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
	font-family: inherit;
}

.reto21-btn-primary {
	background-color: #2563eb;
	color: #ffffff;
	border: none;
	padding: 0.85rem 1.75rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.reto21-btn-primary:hover {
	background-color: #1d4ed8;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.reto21-btn-secondary {
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #cbd5e1;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

.reto21-btn-secondary:hover {
	background: #e2e8f0;
}

.reto21-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

@media (max-width: 768px) {
	.reto21-grid-2 { grid-template-columns: 1fr; }
}

.reto21-toast {
	background: #10b981;
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	font-weight: 700;
	margin-top: 1rem;
	display: none;
}
