/*
 * Membresía Vinartes — Frontend Styles
 * Version: 1.1.0
 *
 * Paleta Vinartes:
 *   Fondo principal  : #E9E3DD
 *   Azul primario    : #021F67
 *   Negro tipografía : #070707
 *   Vino acento      : #722F37
 *   Blanco           : #FFFFFF
 */

:root {
	--mv-bg:         #E9E3DD;   /* fondo principal Vinartes          */
	--mv-blue:       #021F67;   /* azul Vinartes — textos y precios  */
	--mv-black:      #070707;   /* negro tipografía                  */
	--mv-wine:       #722F37;   /* acento vino                       */
	--mv-wine-dark:  #5a2229;
	--mv-wine-light: #9B4451;
	--mv-white:      #FFFFFF;
	--mv-border:     #cfc8c0;   /* borde sobre fondo #E9E3DD         */
	--mv-border-card:#d8d0c8;
	--mv-success:    #28a745;
	--mv-warning:    #e6a817;
	--mv-danger:     #c0392b;
	--mv-radius:     12px;
	--mv-shadow:     0 2px 16px rgba(2,31,103,.10);
	--mv-shadow-hover: 0 6px 28px rgba(2,31,103,.18);
}

/* ─── PRECIO SUSCRIPCIÓN ─────────────────────────────────────────── */
.mv-price {
	font-weight: 800;
	color: var(--mv-blue);
	font-size: 1.1em;
}
.mv-trial    { color: var(--mv-wine);  font-style: italic; font-weight: 600; }
.mv-signup-fee { color: var(--mv-blue); opacity: .75; font-size: .9em; }

/* ─── CONTENIDO RESTRINGIDO ──────────────────────────────────────── */
.mv-restricted-notice {
	background: var(--mv-bg);
	border-left: 4px solid var(--mv-blue);
	border-radius: var(--mv-radius);
	padding: 22px 28px;
	margin: 28px 0;
}
.mv-restricted-notice p { margin: 0; color: var(--mv-black); font-size: 15px; line-height: 1.6; }
.mv-restricted-notice a { color: var(--mv-blue); font-weight: 700; text-decoration: underline; }

/* ─── BADGE DE ESTADO ────────────────────────────────────────────── */
.mv-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
}
.mv-badge-active         { background: #d4edda; color: #155724; }
.mv-badge-active_overdue { background: #fff3cd; color: #856404; }
.mv-badge-paused         { background: #d1ecf1; color: #0c5460; }
.mv-badge-on_hold        { background: #f8d7da; color: #721c24; }
.mv-badge-cancelled      { background: #e2e3e5; color: #383d41; }
.mv-badge-inactive       { background: #e2e3e5; color: #383d41; }

/* ─── LISTA DE SUSCRIPCIONES ─────────────────────────────────────── */
.mv-subscriptions-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mv-subscription-card {
	background: var(--mv-white);
	border: 1px solid var(--mv-border-card);
	border-radius: var(--mv-radius);
	box-shadow: var(--mv-shadow);
	overflow: hidden;
	transition: box-shadow .25s, transform .25s;
}
.mv-subscription-card:hover {
	box-shadow: var(--mv-shadow-hover);
	transform: translateY(-2px);
}

/* Banner/cabecera de la card con fondo Vinartes */
.mv-sub-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--mv-bg);
	padding: 18px 24px;
	border-bottom: 1px solid var(--mv-border);
}
.mv-sub-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--mv-blue);
	letter-spacing: -.2px;
}

/* Badge de estado dentro de la card */
.mv-status-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
}
.mv-status-active         .mv-status-badge { background: #d4edda; color: #155724; }
.mv-status-active_overdue .mv-status-badge { background: #fff3cd; color: #856404; }
.mv-status-paused         .mv-status-badge { background: #d1ecf1; color: #0c5460; }
.mv-status-on_hold        .mv-status-badge { background: #f8d7da; color: #721c24; }
.mv-status-cancelled      .mv-status-badge { background: #e2e3e5; color: #383d41; }

/* Detalles de la suscripción */
.mv-sub-details {
	padding: 20px 24px;
	background: var(--mv-white);
}
.mv-sub-details p {
	margin: 8px 0;
	font-size: 14px;
	color: var(--mv-black);
	line-height: 1.5;
}
.mv-sub-details strong {
	color: var(--mv-blue);
	font-weight: 700;
}
/* Precio dentro de detalles */
.mv-sub-details .mv-detail-price {
	font-size: 20px;
	font-weight: 800;
	color: var(--mv-blue);
}

/* Fila de acciones con fondo Vinartes suave */
.mv-sub-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 16px 24px;
	background: var(--mv-bg);
	border-top: 1px solid var(--mv-border);
}

/* ─── BOTONES ────────────────────────────────────────────────────── */
.mv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: all .2s;
	line-height: 1.4;
	letter-spacing: .2px;
}

/* Primario — azul Vinartes */
.mv-btn-primary {
	background: var(--mv-blue);
	color: var(--mv-white);
}
.mv-btn-primary:hover {
	background: #011550;
	color: var(--mv-white);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(2,31,103,.35);
}

/* Secundario — fondo Vinartes */
.mv-btn-secondary {
	background: var(--mv-bg);
	color: var(--mv-blue);
	border: 1.5px solid var(--mv-border);
}
.mv-btn-secondary:hover {
	background: #ddd6cf;
	color: var(--mv-blue);
}

/* Peligro — vino */
.mv-btn-danger {
	background: var(--mv-wine);
	color: var(--mv-white);
}
.mv-btn-danger:hover {
	background: var(--mv-wine-dark);
	color: var(--mv-white);
}

.mv-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ─── MODAL DE RETENCIÓN ─────────────────────────────────────────── */
.mv-modal {
	position: fixed;
	inset: 0;
	background: rgba(7,7,7,.65);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.mv-modal-content {
	background: var(--mv-white);
	border-radius: 16px;
	padding: 40px;
	max-width: 500px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(2,31,103,.22);
}
.mv-modal-content h2 {
	margin-top: 0;
	color: var(--mv-blue);
	font-size: 22px;
}

.mv-reasons-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0;
}
.mv-reason-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px;
	border: 2px solid var(--mv-border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	font-size: 15px;
	color: var(--mv-black);
	background: var(--mv-white);
}
.mv-reason-option:hover,
.mv-reason-option:has(input:checked) {
	border-color: var(--mv-blue);
	background: var(--mv-bg);
	color: var(--mv-blue);
}
.mv-reason-option input { accent-color: var(--mv-blue); }

#mv-retention-step-2,
#mv-retention-result { text-align: center; }
#mv-offer-text {
	font-size: 18px;
	font-weight: 700;
	color: var(--mv-blue);
	margin: 24px 0;
	line-height: 1.5;
}

/* ─── NO SUSCRIPTO ───────────────────────────────────────────────── */
.mv-no-subs {
	background: var(--mv-bg);
	border: 1px solid var(--mv-border-card);
	border-radius: var(--mv-radius);
	padding: 32px 28px;
	text-align: center;
}
.mv-no-subs p {
	margin: 0;
	font-size: 16px;
	color: var(--mv-black);
}
.mv-no-subs a {
	color: var(--mv-blue);
	font-weight: 700;
	text-decoration: underline;
}
.mv-no-subs a:hover { color: var(--mv-wine); }

/* ─── PRECIOS SUELTOS (wc_price dentro del plugin) ───────────────── */
.mv-subscriptions-list .woocommerce-Price-amount,
.mv-subscriptions-list .amount,
.mv-sub-details .amount {
	color: var(--mv-blue) !important;
	font-weight: 800 !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 620px) {
	.mv-sub-header      { flex-direction: column; align-items: flex-start; }
	.mv-modal-content   { padding: 28px 20px; }
	.mv-btn             { padding: 10px 14px; font-size: 13px; }
	.mv-sub-actions     { gap: 8px; }
}
