/* Septiembre Rojo - MPN España — estilos del shortcode público.
   Todo va prefijado con .mpn-sr- para no chocar con el tema o Elementor. */

.mpn-sr-wrap {
	max-width: 420px;
	margin: 0 auto;
	font-family: inherit;
}

.mpn-sr-card {
	background: #ffffff;
	border: 1px solid #ecdfdd;
	border-radius: 20px;
	padding: 2.2rem 1.5rem 1.9rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
	box-sizing: border-box;
}

.mpn-sr-dropgrid {
	width: 190px;
	height: 245px;
	display: grid;
	grid-template-columns: repeat(14, 1fr);
	grid-auto-rows: 1fr;
	gap: 3px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'%3E%3Cpath d='M50 2 C 74 40 92 68 92 90 A42 42 0 1 1 8 90 C8 68 26 40 50 2 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'%3E%3Cpath d='M50 2 C 74 40 92 68 92 90 A42 42 0 1 1 8 90 C8 68 26 40 50 2 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.mpn-sr-piece {
	border-radius: 1.5px;
	background: #e4d6d5;
	transition: background .35s ease;
}
.mpn-sr-piece.filled { background: #c11f34; }
.mpn-sr-piece.newest { animation: mpnSrPop .5s ease; }
@keyframes mpnSrPop {
	0% { transform: scale(0); }
	60% { transform: scale(1.35); }
	100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.mpn-sr-piece.newest { animation: none; }
}

.mpn-sr-count { text-align: center; }
.mpn-sr-big { font-size: 2rem; font-weight: 600; color: #251418; }
.mpn-sr-goal { color: #5d474b; font-size: 1.05rem; }
.mpn-sr-label { font-size: .78rem; color: #5d474b; text-transform: uppercase; letter-spacing: .07em; margin-top: .15rem; }

.mpn-sr-track {
	width: 100%;
	max-width: 300px;
	height: 8px;
	border-radius: 99px;
	background: #e4d6d5;
	overflow: hidden;
}
.mpn-sr-track > i { display: block; height: 100%; background: #c11f34; border-radius: 99px; transition: width .5s ease; }

.mpn-sr-cta { text-align: center; }

.mpn-sr-btn-primary {
	background: #c11f34;
	color: #fff5f5;
	border: none;
	padding: .9rem 1.9rem;
	border-radius: 99px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(193,31,52,.55);
}
.mpn-sr-btn-primary:hover { filter: brightness(1.05); }
.mpn-sr-btn-primary:disabled { background: #c9b6b6; box-shadow: none; cursor: default; }

.mpn-sr-voted {
	display: none;
	background: #fbe4e3;
	border: 1px solid #dc3b4b;
	color: #8f1329;
	border-radius: 14px;
	padding: 1rem 1.2rem;
	font-size: .92rem;
	max-width: 340px;
	margin: 0 auto;
}

.mpn-sr-share { display: flex; flex-direction: column; align-items: center; margin-top: .3rem; text-align: center; }
.mpn-sr-btn-ghost {
	background: #ffffff;
	border: 1px solid #ecdfdd;
	color: #251418;
	padding: .55rem 1rem;
	border-radius: 99px;
	font-size: .85rem;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
.mpn-sr-btn-ghost:hover { border-color: #dc3b4b; color: #c11f34; }

.mpn-sr-cardimg {
	display: block;
	width: 100%;
	max-width: 220px;
	border-radius: 16px;
	box-shadow: 0 18px 32px -16px rgba(143,19,41,.5);
}


.mpn-sr-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(37,20,24,.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.2rem;
	z-index: 999999;
}
.mpn-sr-modal-backdrop.open { display: flex; }
.mpn-sr-modal {
	background: #ffffff;
	border-radius: 18px;
	padding: 1.8rem;
	max-width: 400px;
	width: 100%;
	border: 1px solid #ecdfdd;
	box-sizing: border-box;
}
.mpn-sr-modal h2 { font-size: 1.2rem; margin: 0 0 .3rem; color: #251418; }
.mpn-sr-sub { color: #5d474b; font-size: .86rem; margin: 0 0 1.1rem; }

.mpn-sr-option {
	display: flex;
	align-items: center;
	gap: .65rem;
	border: 1px solid #ecdfdd;
	border-radius: 11px;
	padding: .7rem .85rem;
	margin-bottom: .55rem;
	cursor: pointer;
	font-size: .92rem;
	color: #251418;
}
.mpn-sr-option:hover { border-color: #dc3b4b; }
.mpn-sr-option.checked { border-color: #c11f34; background: #fbe4e3; }
.mpn-sr-option input { accent-color: #c11f34; width: 16px; height: 16px; flex: none; }

.mpn-sr-modal-actions { display: flex; gap: .6rem; margin-top: 1.2rem; }
.mpn-sr-modal-actions .mpn-sr-btn-primary { flex: 1; }
.mpn-sr-btn-cancel {
	background: none;
	border: 1px solid #ecdfdd;
	color: #5d474b;
	padding: .9rem 1.1rem;
	border-radius: 99px;
	cursor: pointer;
	font-size: .9rem;
}
