/* ==========================================================================
   Golden Planes — Frontend styles
   Tarjetas blancas con borde oscuro, vídeos en grid 3 columnas,
   acordeón nativo <details>/<summary>.
   ========================================================================== */

:root {
	--gp-color-border:       #1a1a1a;
	--gp-color-border-soft:  #d9d9d9;
	--gp-color-text:         #1a1a1a;
	--gp-color-muted:        #6b6b6b;
	--gp-color-accent:       #c98a5d;
	--gp-color-bg:           #ffffff;
	--gp-radius:             10px;
}

.gp-myplan {
	color: var(--gp-color-text);
	font-family: inherit;
}

/* ---------- Item destacado en el menú de Mi Cuenta ---------- */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--tu-espacio-de-salud {
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid #d9d9d9;
	list-style: none;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--tu-espacio-de-salud a {
	color: #1a1a1a !important;
	font-weight: 700;
	font-size: 1.15em;
	letter-spacing: 0.2px;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--tu-espacio-de-salud a:hover {
	color: var(--gp-color-accent) !important;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--tu-espacio-de-salud.is-active a {
	color: var(--gp-color-accent) !important;
}

/* ---------- Acordeón (details/summary) ---------- */

.gp-plan-card {
	background: var(--gp-color-bg);
	border: 1px solid var(--gp-color-border);
	border-radius: var(--gp-radius);
	margin-bottom: 16px;
	overflow: hidden;
}

.gp-plan-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 1.05em;
	color: var(--gp-color-text);
	user-select: none;
	transition: background-color 0.15s ease;
}

/* Quitar la flecha nativa del summary en todos los navegadores */
.gp-plan-summary::-webkit-details-marker { display: none; }
.gp-plan-summary::marker { content: ''; }

.gp-plan-summary:hover {
	background-color: #fafafa;
}

.gp-plan-summary-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.gp-plan-summary-chevron {
	font-size: 1.4em;
	line-height: 1;
	color: var(--gp-color-muted);
	transition: transform 0.2s ease;
}

.gp-plan-card[open] .gp-plan-summary-chevron {
	transform: rotate(180deg);
}

.gp-plan-card[open] .gp-plan-summary {
	border-bottom: 1px solid var(--gp-color-border-soft);
}

.gp-plan-body {
	padding: 22px 24px 26px;
}

/* ---------- Badges de estado ---------- */

.gp-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.7em;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}
.gp-badge--pausado    { background: #fff3d6; color: #8a6a1f; }
.gp-badge--finalizado { background: #ecebe9; color: #6a6258; }

/* ---------- Meta ---------- */

.gp-plan-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 0.9em;
	color: var(--gp-color-muted);
	margin-bottom: 22px;
}

/* ---------- Secciones ---------- */

.gp-section {
	margin-bottom: 28px;
}
.gp-section:last-child { margin-bottom: 0; }

.gp-section h3 {
	font-size: 1.1em;
	color: var(--gp-color-text);
	margin: 0 0 14px;
	font-weight: 600;
}

.gp-resumen {
	background: #fafafa;
	padding: 14px 18px;
	border-radius: 8px;
	border-left: 3px solid var(--gp-color-accent);
}

/* ---------- Cuestionario ---------- */

.gp-cuestionario-enviado {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #e8f5e9;
	border-left: 4px solid #2e7d32;
	color: #1b5e20;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 0.95em;
}
.gp-cuestionario-enviado .gp-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: #2e7d32;
	color: #fff;
	border-radius: 50%;
	font-size: 0.9em;
	font-weight: 700;
	flex-shrink: 0;
}

/* ---------- Vídeos: grid de 3 columnas ---------- */

.gp-videos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gp-video-item {
	display: flex;
	flex-direction: column;
}

.gp-video-item h4 {
	margin: 0 0 10px;
	font-size: 0.98em;
	font-weight: 600;
}

/* Wrapper 16:9 limpio (sin colchón extra arriba) */
.gp-video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	margin: 0;
}

.gp-video-embed iframe,
.gp-video-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.gp-video-desc {
	margin-top: 10px;
	color: var(--gp-color-muted);
	font-size: 0.88em;
	line-height: 1.5;
}

/* En móvil/tablet, reducir columnas */
@media (max-width: 900px) {
	.gp-videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.gp-videos-grid { grid-template-columns: 1fr; }
}

/* ---------- PDFs ---------- */

.gp-pdf-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
}
.gp-pdf-list li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--gp-color-border-soft);
	border-radius: 8px;
	color: var(--gp-color-text);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.gp-pdf-list li a:hover {
	border-color: var(--gp-color-border);
	transform: translateY(-1px);
}
.gp-pdf-icon { font-size: 1.2em; }

/* ---------- Notas ---------- */

.gp-notas {
	background: #fafafa;
	padding: 14px 18px;
	border-radius: 8px;
	border: 1px dashed var(--gp-color-border-soft);
}

@media (max-width: 600px) {
	.gp-plan-summary { padding: 14px 16px; font-size: 1em; }
	.gp-plan-body    { padding: 16px 18px 20px; }
}
