/*
 * Membresía Vinartes — Tarjetas de Planes v1.5.0
 * Paleta: #E9E3DD · #021F67 · #070707 · #722F37
 */

/* ─── WRAPPER ────────────────────────────────────────────────────── */
.mv-planes-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── ENCABEZADO ─────────────────────────────────────────────────── */
.mv-planes-header {
	text-align: center;
	background: #E9E3DD;
	border-radius: 20px;
	padding: 48px 32px 36px;
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
}
.mv-planes-header::before {
	content: '🍷';
	position: absolute;
	font-size: 180px;
	opacity: .04;
	top: -20px;
	right: -20px;
	pointer-events: none;
}
.mv-planes-logo { margin-bottom: 20px; }
.mv-logo-img {
	height: 72px;
	width: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	filter: drop-shadow(0 2px 8px rgba(2,31,103,.15));
}
.mv-logo-fallback { font-size: 28px; font-weight: 800; color: #021F67; }
.mv-planes-titulo  { font-size: 34px; font-weight: 800; color: #021F67; margin: 0 0 12px; letter-spacing: -.5px; }
.mv-planes-subtitulo { font-size: 17px; color: #070707; opacity: .7; margin: 0 auto; max-width: 480px; }
.mv-planes-already-member {
	margin-top: 20px;
	display: inline-block;
	background: #fff;
	border: 1.5px solid #021F67;
	border-radius: 50px;
	padding: 10px 20px;
	font-size: 14px;
	color: #021F67;
	font-weight: 600;
}
.mv-planes-already-member a { color: #021F67; font-weight: 700; margin-left: 8px; text-decoration: underline; }

/* ─── GRILLA ─────────────────────────────────────────────────────── */
.mv-planes-grid {
	display: grid;
	gap: 28px;
	margin-bottom: 40px;
	align-items: stretch;   /* todas las celdas al mismo alto */
}
.mv-planes-count-1 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 40px; }
.mv-planes-count-2 { grid-template-columns: 1fr 1fr; }
.mv-planes-count-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── TARJETA ────────────────────────────────────────────────────── */
.mv-plan-card {
	background: #fff;
	border: 2px solid #E9E3DD;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	transition: transform .25s, box-shadow .25s;
	display: flex;
	flex-direction: column;
	height: 100%;          /* ocupa toda la altura de la celda del grid */
}
.mv-plan-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 50px rgba(2,31,103,.14);
}
.mv-plan-card.mv-plan-featured {
	border-color: var(--plan-color, #021F67);
	box-shadow: 0 8px 32px rgba(2,31,103,.13);
	transform: scale(1.02);
}
.mv-plan-card.mv-plan-featured:hover { transform: scale(1.02) translateY(-4px); }
.mv-plan-card.mv-plan-current { border-color: #28a745; box-shadow: 0 4px 20px rgba(40,167,69,.18); }

/* ─── BADGE ──────────────────────────────────────────────────────── */
.mv-plan-badge {
	position: absolute;
	top: 16px;
	right: -1px;
	background: var(--plan-color, #021F67);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	padding: 5px 14px 5px 10px;
	border-radius: 4px 0 0 4px;
	text-transform: uppercase;
	letter-spacing: .6px;
	z-index: 10;
}
.mv-plan-badge-current { background: #28a745; }

/* ─── GALERÍA / IMAGEN ───────────────────────────────────────────── */
.mv-plan-gallery {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #E9E3DD;
}
.mv-plan-gallery-track { width: 100%; height: 100%; }
.mv-plan-gallery-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .45s ease;
}
.mv-plan-gallery-slide.active { opacity: 1; }
.mv-plan-gallery-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Flechas de navegación */
.mv-gallery-prev,
.mv-gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(2,31,103,.65);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
	padding: 0;
}
.mv-gallery-prev { left: 10px; }
.mv-gallery-next { right: 10px; }
.mv-gallery-prev:hover,
.mv-gallery-next:hover { background: rgba(2,31,103,.9); }

/* Dots */
.mv-gallery-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 5;
}
.mv-gallery-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
	cursor: pointer;
	transition: background .2s, transform .2s;
	display: block;
}
.mv-gallery-dot.active {
	background: #fff;
	transform: scale(1.25);
}

/* Cabecera de color (cuando no hay imagen) */
.mv-plan-card-header {
	background: var(--plan-color, #021F67);
	padding: 28px;
	text-align: center;
}
.mv-plan-logo {
	height: 44px;
	width: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	filter: brightness(0) invert(1);
	opacity: .9;
}

/* ─── CUERPO DEL PLAN ────────────────────────────────────────────── */
.mv-plan-body {
	padding: 22px 24px 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.mv-plan-name-row { margin-bottom: 10px; }
.mv-plan-name {
	font-size: 20px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -.2px;
}

/* Bloque de precio */
.mv-plan-price-block {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	margin-bottom: 12px;
}
.mv-plan-currency { font-size: 20px; font-weight: 700; color: #021F67; line-height: 1.5; }
.mv-plan-amount   { font-size: 48px; font-weight: 900; color: #021F67; line-height: 1; letter-spacing: -2px; }
.mv-plan-period   { font-size: 14px; color: #888; line-height: 1.9; }

/* Pill de descuento */
.mv-plan-discount-pill {
	display: inline-block;
	border: 1.5px solid;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 50px;
	margin-bottom: 18px;
	letter-spacing: .2px;
}

/* ─── BENEFICIOS ─────────────────────────────────────────────────── */
.mv-plan-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;              /* empuja el botón hacia abajo */
	border-top: 1px solid #E9E3DD;
	padding-top: 16px;
}
.mv-plan-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	color: #070707;
	padding: 8px 0;
	border-bottom: 1px solid #f5f2ef;
	line-height: 1.5;
}
.mv-plan-benefits li:last-child { border-bottom: none; }
.mv-benefit-check {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	margin-top: 1px;
}

/* ─── BOTÓN CTA — siempre al fondo ──────────────────────────────── */
.mv-plan-cta {
	padding: 20px 0 24px;
	margin-top: auto;     /* lo empuja al fondo de la tarjeta */
}
.mv-btn-plan {
	display: block;
	width: 100%;
	text-align: center;
	padding: 15px 24px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none;
	transition: all .2s;
	color: #fff;
	border: none;
	letter-spacing: .2px;
}
.mv-btn-plan-add:hover {
	filter: brightness(1.12);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(2,31,103,.28);
	color: #fff;
	text-decoration: none;
}
.mv-btn-plan-current {
	background: transparent !important;
	border: 2px solid #28a745;
	color: #28a745 !important;
}
.mv-btn-plan-current:hover {
	background: #28a745 !important;
	color: #fff !important;
}
.mv-btn-plan-disabled {
	background: #e0e0e0 !important;
	color: #999 !important;
	cursor: not-allowed;
	box-shadow: none !important;
	transform: none !important;
}

/* ─── PIE ────────────────────────────────────────────────────────── */
.mv-planes-footer {
	text-align: center;
	padding: 24px 16px;
	border-top: 1px solid #E9E3DD;
	color: #888;
	font-size: 13px;
	line-height: 1.9;
}
.mv-planes-footer a { color: #021F67; font-weight: 700; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 720px) {
	.mv-planes-count-2,
	.mv-planes-count-3 { grid-template-columns: 1fr; }
	.mv-plan-card.mv-plan-featured { transform: none; order: -1; }
	.mv-planes-titulo { font-size: 26px; }
	.mv-plan-amount   { font-size: 40px; }
	.mv-plan-body     { padding: 18px 18px 0; }
}
