/* TurboClub · Nefta Nervo · estilos de Mi Cuenta
   El color de marca llega en --tc-acento desde los ajustes. */

.woocommerce-account { --tc-acento: #c60713; --tc-borde: #e3e3e3; --tc-suave: #f6f6f6; }

/* ---------- Menú en bloques ---------- */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation-link--dashboard::before,
.woocommerce-MyAccount-navigation-link--mi-negocio::before,
.woocommerce-MyAccount-navigation-link--orders::before {
	display: block;
	margin: 18px 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #777;
}
.woocommerce-MyAccount-navigation-link--customer-logout::before {
	display: block;
	margin: 14px 0 8px;
	border-top: 1px solid var(--tc-borde);
}
.woocommerce-MyAccount-navigation-link.tc-con-novedades > a::after {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-left: 8px;
	border-radius: 50%;
	background: var(--tc-acento);
	vertical-align: middle;
}

/* ---------- Tarjetas ---------- */
.tc-tarjeta {
	margin: 0 0 18px;
	padding: 18px 20px;
	border: 1px solid var(--tc-borde);
	border-radius: 10px;
	background: #fff;
}
.tc-etiqueta { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #555; }
.tc-intro, .tc-nota { color: #555; }
.tc-nota { font-size: 13px; }
.tc-ok { color: #1e8e3e; font-weight: 600; }

/* ---------- Portada de Inicio: tarjeta con fondo propio ----------
   Arriba la foto del negocio (rectángulo dentro de la tarjeta).
   Debajo: círculo con la foto del cliente · nombre, ciudad y negocio · círculo con el logo.
   Colores y fondo: Ajustes → Aspecto (variables --tc-p-*). */
.tc-portada {
	--tc-p-circulo: 120px;
	margin: 0 0 22px;
	padding: 10px 10px 16px;
	border: 1px solid rgba(0,0,0,.35);
	border-radius: 4px;
	background-color: var(--tc-p-color, #b9bcbf);
	box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
/* Chapa metálica (dibujada con CSS, sin imágenes). */
.tc-portada--metal {
	background-image:
		radial-gradient(ellipse 5px 2px at 25% 30%, rgba(255,255,255,.55) 45%, rgba(0,0,0,.18) 60%, transparent 70%),
		radial-gradient(ellipse 2px 5px at 75% 75%, rgba(255,255,255,.55) 45%, rgba(0,0,0,.18) 60%, transparent 70%),
		linear-gradient(160deg, rgba(255,255,255,.35), rgba(0,0,0,.12));
	background-size: 18px 18px, 18px 18px, 100% 100%;
}
.tc-portada--color { background-image: none; }
.tc-portada--imagen { background-image: var(--tc-p-imagen, none); background-repeat: repeat; background-size: auto; }

.tc-portada .tc-portada-banner {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 5 / 2;
	border: 1px solid var(--tc-p-borde, #2b2b2b);
	background: #222;
}
.tc-portada .tc-portada-banner img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
}
.tc-portada .tc-portada-banner--vacio { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b2b2b, var(--tc-acento)); }
.tc-portada .tc-portada-banner--vacio a { color: #fff; font-weight: 700; text-decoration: underline; }

.tc-portada .tc-portada-pie {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: var(--tc-p-circulo) minmax(0, 1fr) var(--tc-p-circulo);
	align-items: center;
	gap: 14px;
	margin-top: calc(var(--tc-p-circulo) * -0.18);
	padding: 0 12px;
}
.tc-portada .tc-circulo {
	width: var(--tc-p-circulo);
	height: var(--tc-p-circulo);
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #111;
	border: 2px solid var(--tc-p-borde, #2b2b2b);
	box-shadow: 0 4px 10px rgba(0,0,0,.5);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tc-portada .tc-circulo img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 50%; object-fit: cover; }
.tc-portada .tc-circulo a { padding: 8px; font-size: 13px; font-weight: 700; text-align: center; color: #fff; }
.tc-portada .tc-portada-texto {
	text-align: center;
	padding-top: calc(var(--tc-p-circulo) * 0.18);
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}
.tc-portada .tc-portada-nombre { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--tc-p-texto, #111); }
.tc-portada .tc-portada-negocio { margin: 6px 0 0; font-size: 17px; letter-spacing: .06em; color: var(--tc-p-texto2, #3a3a3a); }

.tc-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--tc-acento); }

.tc-barra { height: 12px; margin: 0 0 14px; border-radius: 6px; background: var(--tc-suave); overflow: hidden; }
.tc-barra span { display: block; height: 100%; border-radius: 6px; background: var(--tc-acento); transition: width .4s; }
.tc-faltan { margin: 0; padding-left: 18px; }
.tc-faltan a { color: var(--tc-acento); }

.tc-aviso { border-color: var(--tc-acento); }
.tc-aviso p { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.tc-ventajas ul { margin: 0; padding-left: 18px; }

/* ---------- Mi Negocio ---------- */
.tc-casillas, .tc-imagenes, .tc-campo-foto { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--tc-borde); border-radius: 8px; }
.tc-casillas legend, .tc-campo-foto legend { padding: 0 6px; font-weight: 700; }
.tc-casillas label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 18px 4px 0; }
.tc-imagenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tc-miniatura img { max-width: 100%; height: auto; margin-bottom: 8px; border-radius: 6px; }
.tc-campo-foto .tc-avatar { margin-bottom: 10px; }

/* ---------- Nivel y puntos (fase 2) ---------- */
.tc-nivel { border-top: 4px solid var(--tc-nivel, var(--tc-acento)); }
.tc-nivel-cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tc-insignia { display: inline-block; margin: 0; padding: 5px 14px; border-radius: 20px; background: var(--tc-nivel, var(--tc-acento)); color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tc-puntos { font-size: 20px; font-weight: 800; }
.tc-hitos { position: relative; height: 54px; margin: 6px 12px 10px; }
.tc-hitos-barra { position: absolute; top: 8px; left: 0; right: 0; height: 10px; border-radius: 5px; background: var(--tc-suave); overflow: hidden; }
.tc-hitos-barra span { display: block; height: 100%; background: var(--tc-nivel, var(--tc-acento)); transition: width .4s; }
.tc-hito { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.tc-hito i { display: block; width: 26px; height: 26px; margin: 0 auto; border-radius: 50%; background: #fff; border: 3px solid var(--tc-hito); }
.tc-hito--hecho i { background: var(--tc-hito); }
.tc-hito em { display: block; margin-top: 3px; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; color: #555; }
.tc-siguiente { margin: 0 0 12px; }
.tc-ventajas-lista { margin: 0 0 12px; padding-left: 18px; }
.tc-ahorro { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--tc-nivel, var(--tc-acento)); }
.tc-nivel-enlace { margin: 0; }
.tc-nivel-enlace a { color: var(--tc-acento); font-weight: 600; }

.tc-niveles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0 0 18px; }
.tc-nivel-ficha { padding: 14px; border: 1px solid var(--tc-borde); border-top: 4px solid var(--tc-nivel); border-radius: 10px; background: #fff; opacity: .7; }
.tc-nivel-ficha p { margin: 0 0 6px; }
.tc-nivel-ficha ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.tc-nivel-ficha--hecho { opacity: 1; }
.tc-nivel-ficha--actual { box-shadow: 0 0 0 2px var(--tc-nivel); }
.tc-tu-nivel { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--tc-nivel); }
.tc-llave { font-size: 14px; color: #444; }
.tc-como { margin: 0 0 18px; padding-left: 18px; }
.tc-historial td:last-child, .tc-historial th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Mis Recursos ---------- */
.tc-titulo { margin: 24px 0 12px; }
.tc-guias { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 8px; }
.tc-guia { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--tc-borde); border-radius: 10px; background: #fff; }
.tc-guia img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--tc-suave); }
.tc-guia-titulo { margin: 0; font-weight: 600; line-height: 1.3; }
.tc-guia .button { margin-top: auto; text-align: center; }
.tc-guia-aviso { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--tc-acento); }
.tc-guia-aviso--disponible { color: #1e8e3e; }
.tc-guia--actualizada { border-color: var(--tc-acento); box-shadow: 0 0 0 2px var(--tc-acento) inset; }
.tc-enlaces { margin: 0 0 8px; padding-left: 18px; }
.tc-enlaces a { color: var(--tc-acento); }

@media (max-width: 600px) {
	.tc-portada { --tc-p-circulo: 72px !important; padding: 6px 6px 12px; }
	.tc-portada .tc-portada-pie { gap: 8px; padding: 0 4px; }
	.tc-portada .tc-portada-nombre { font-size: 15px; }
	.tc-portada .tc-portada-negocio { font-size: 12px; letter-spacing: .03em; }
	.tc-guias { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- Piezas sueltas: avatar y ficha mini ---------- */
.tc-avatar-enlace { display: inline-block; line-height: 0; vertical-align: middle; }
.tc-avatar-suelto { display: inline-block; width: var(--tc-av, 40px); height: var(--tc-av, 40px); border-radius: 50%; overflow: hidden; border: 2px solid var(--tc-p-borde, #2b2b2b); box-shadow: 0 2px 6px rgba(0,0,0,.35); line-height: 0; }
.tc-avatar-suelto img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; border-radius: 50%; }
.tc-mini { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid rgba(0,0,0,.25); border-left: 4px solid var(--tc-nivel, #888); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tc-mini-foto { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; line-height: 0; border: 2px solid var(--tc-p-borde, #2b2b2b); }
.tc-mini-foto img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; }
.tc-mini-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 140px; }
.tc-mini-texto span { color: #555; font-size: 14px; }
.tc-mini-logo img { width: 44px !important; height: 44px !important; object-fit: contain; }
.tc-mini-enlace { font-size: 13px; font-weight: 700; color: var(--tc-acento, #c60713); }
.tc-insignia--mini { align-self: flex-start; padding: 2px 10px; font-size: 11px; background: var(--tc-nivel, #888); color: #fff; }

/* ---------- Efectos de las insignias de nivel ---------- */
.tc-efecto--brillo { position: relative; overflow: hidden; }
.tc-efecto--brillo::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); animation: tc-brillo 3s ease-in-out infinite; }
@keyframes tc-brillo { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.tc-efecto--pulso { animation: tc-pulso 2.2s ease-in-out infinite; }
@keyframes tc-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,.25); } 50% { box-shadow: 0 0 0 6px rgba(0,0,0,0); } }
.tc-efecto--metal { background-image: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 50%, rgba(0,0,0,.18)); text-shadow: 0 1px 1px rgba(0,0,0,.35); }
@media (prefers-reduced-motion: reduce) { .tc-efecto--brillo::after, .tc-efecto--pulso { animation: none; } }

/* ---------- Celebración, membresía y mantenimiento ---------- */
.tc-celebrar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid var(--tc-nivel, var(--tc-acento)); background: linear-gradient(135deg, #fff, #fff7e6); }
.tc-celebrar-texto { margin: 0; font-size: 18px; font-weight: 800; }
.tc-membresia { margin: 0 0 12px; font-weight: 700; }
.tc-mantener { border-color: #b26a00; }

/* ---------- Logros y quiz ---------- */
.tc-logros { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tc-logro { padding: 12px; border: 1px solid var(--tc-borde); border-radius: 10px; background: #fff; text-align: center; opacity: .6; }
.tc-logro--hecho { opacity: 1; border-color: var(--tc-acento); }
.tc-logro p { margin: 4px 0 0; }
.tc-logro-nombre { font-weight: 700; }
.tc-logro-estado { font-size: 12px; text-transform: uppercase; color: #666; }
.tc-logro-icono { display: inline-block; font-size: 22px; line-height: 1; color: #c9c9c9; }
.tc-logro-icono--hecho { color: #d4a017; }
.tc-logros-iconos { margin: 0 0 8px; letter-spacing: 4px; }
.tc-quiz-racha { margin: 0 0 8px; font-weight: 700; }
.tc-quiz-op { display: block; margin: 6px 0; cursor: pointer; }
.tc-mal { color: #b3261e; font-weight: 600; }

/* ---------- Carrito y guías de pago ---------- */
.tc-aviso-carrito { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--tc-acento, #c60713); background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tc-aviso-carrito p { margin: 0; }
.tc-aviso-carrito .tc-nota { margin-top: 4px; }
.tc-guia-precio { margin: 0; font-weight: 700; }

/* ---------- Mapa de miembros ---------- */
.tc-mapa-grupo { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tc-mapa-miembro { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--tc-borde, #e3e3e3); border-radius: 10px; background: #fff; }
.tc-mapa-logo img { width: 64px; height: 64px; object-fit: contain; }
.tc-mapa-verificado { font-size: 12px; font-weight: 700; color: #1e8e3e; }

/* =====================================================================
   1.3.0 · Menú en burbujas, tarjetas del color del nivel, imágenes,
   Biblioteca y Bonos. Variables: --tc-nivel, --tc-nivel-claro,
   --tc-nivel-osc, --tc-nivel-txt (color del nivel) y --tc-fuente.
   ===================================================================== */

/* ---------- Contenido a todo el ancho (sin menú lateral) ---------- */
.tc-burbujas .woocommerce-MyAccount-content { float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
.tc-burbujas .woocommerce::after { content: ""; display: table; clear: both; }

/* ---------- Menú en burbujas ---------- */
.tc-nav { margin: 0 0 26px; }
.tc-nav ul { list-style: none; margin: 0; padding: 0; }
.tc-nav-grupos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tc-nav-grupo a {
	display: flex; align-items: center; gap: 9px;
	padding: 7px 18px 7px 7px; border-radius: 999px;
	background: linear-gradient(180deg, #2a2a2a, #111);
	border: 1px solid #000; color: #fff !important; text-decoration: none !important;
	font-weight: 700; font-size: 15px; letter-spacing: .02em;
	box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.14);
	transition: transform .15s, box-shadow .15s, background .15s;
}
.tc-nav-grupo a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.14); }
.tc-nav-emoji { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 18px; line-height: 1; }
.tc-nav-texto { font-family: var(--tc-fuente, inherit); }
.tc-nav-grupo.is-active a {
	background: linear-gradient(180deg, #ef1d2a, var(--tc-acento) 55%, #8f0510);
	border-color: #6d040c;
	box-shadow: 0 0 0 3px rgba(198,7,19,.22), 0 8px 18px rgba(198,7,19,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.tc-nav-grupo.is-active .tc-nav-emoji { background: rgba(0,0,0,.25); }
.tc-nav-grupo--salir a { background: #fff; color: #333 !important; border-color: #cfcfcf; box-shadow: none; }
.tc-nav-grupo--salir .tc-nav-emoji { background: #f1f1f1; }
.tc-nav-grupo.tc-con-novedades a { position: relative; }
.tc-nav-grupo.tc-con-novedades a::after { content: ""; position: absolute; top: 2px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #ffcf33; border: 2px solid #111; }
.tc-nav-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px !important; }
.tc-nav-sub a { display: inline-block; padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid #d3d3d3; color: #222 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.tc-nav-sub a:hover { border-color: #111; }
.tc-nav-sub .is-active a { background: var(--tc-nivel, #111); background-image: linear-gradient(135deg, var(--tc-nivel-claro, #333), var(--tc-nivel, #111) 55%, var(--tc-nivel-osc, #000)); color: var(--tc-nivel-txt, #fff) !important; border-color: rgba(0,0,0,.35); box-shadow: 0 3px 8px rgba(0,0,0,.2); }

@media (max-width: 700px) {
	.tc-nav-grupos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.tc-nav-grupo a { flex-direction: column; gap: 4px; padding: 8px 4px 9px; border-radius: 16px; font-size: 12px; text-align: center; }
	.tc-nav-emoji { width: 30px; height: 30px; font-size: 17px; }
	.tc-nav-sub { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.tc-nav-sub a { white-space: nowrap; font-size: 13px; }
}

/* ---------- Tarjetas del color del nivel (chapa metálica + franja roja) ---------- */
.tc-tarjetas-nivel .woocommerce-MyAccount-content .tc-tarjeta {
	position: relative; overflow: hidden;
	padding: 20px 22px 20px 26px;
	border: 1px solid rgba(0,0,0,.4); border-radius: 14px;
	color: var(--tc-nivel-txt);
	background:
		repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 4px),
		linear-gradient(135deg, var(--tc-nivel-claro) 0%, var(--tc-nivel) 48%, var(--tc-nivel-osc) 100%);
	box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.tc-tarjetas-nivel .woocommerce-MyAccount-content .tc-tarjeta::before {
	content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 5px;
	border-radius: 0 5px 5px 0; background: var(--tc-acento); box-shadow: 0 0 10px rgba(198,7,19,.6);
}
.tc-tarjetas-nivel .tc-tarjeta p, .tc-tarjetas-nivel .tc-tarjeta li, .tc-tarjetas-nivel .tc-tarjeta strong { color: inherit; }
.tc-tarjetas-nivel .tc-tarjeta a:not(.button) { color: inherit !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tc-tarjetas-nivel .tc-tarjeta .tc-etiqueta { color: inherit; opacity: .92; font-family: var(--tc-fuente, inherit); font-size: 13px; letter-spacing: .1em; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.tc-tarjetas-nivel .tc-tarjeta .tc-barra, .tc-tarjetas-nivel .tc-tarjeta .tc-hitos-barra { background: rgba(0,0,0,.32); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.tc-tarjetas-nivel .tc-tarjeta .tc-barra span, .tc-tarjetas-nivel .tc-tarjeta .tc-hitos-barra span { background: linear-gradient(90deg, #ff3b46, var(--tc-acento)); box-shadow: 0 0 12px rgba(255,45,57,.75); }
.tc-tarjetas-nivel .tc-tarjeta.tc-nivel { border-top: 1px solid rgba(0,0,0,.4); }
.tc-tarjetas-nivel .tc-tarjeta .tc-insignia { background: #111; color: #fff; border: 2px solid var(--tc-nivel-claro); font-family: var(--tc-fuente, inherit); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.tc-tarjetas-nivel .tc-tarjeta .tc-puntos { font-family: var(--tc-fuente, inherit); font-size: 26px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tc-tarjetas-nivel .tc-tarjeta .tc-hito i { background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.tc-tarjetas-nivel .tc-tarjeta .tc-hito--hecho i { background: var(--tc-hito); border-color: #fff; }
.tc-tarjetas-nivel .tc-tarjeta .tc-hito em { color: inherit; }
.tc-tarjetas-nivel .tc-tarjeta .tc-ok { color: inherit; }
.tc-tarjetas-nivel .tc-tarjeta .tc-logro-icono { color: rgba(0,0,0,.35); }
.tc-tarjetas-nivel .tc-tarjeta .tc-logro-icono--hecho { color: #ffd23f; text-shadow: 0 0 6px rgba(255,210,63,.8); }
.tc-tarjetas-nivel .tc-tarjeta .button { box-shadow: 0 3px 8px rgba(0,0,0,.3); }
/* Las fichas de la página de niveles toman SU color, no el del cliente. */
.tc-tarjetas-nivel .tc-nivel-ficha { border-radius: 12px; border: 1px solid rgba(0,0,0,.35); color: #fff; background: linear-gradient(135deg, var(--tc-nivel), #222 160%); text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.tc-tarjetas-nivel .tc-nivel-ficha .tc-tu-nivel, .tc-tarjetas-nivel .tc-nivel-ficha .tc-llave { color: #fff; }
.tc-tarjetas-nivel .tc-nivel-ficha--actual { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--tc-acento); }

/* Títulos de la cuenta con la fuente de marca. */
.woocommerce-account .tc-titulo, .woocommerce-account .tc-portada-nombre { font-family: var(--tc-fuente, inherit); }

/* ---------- Portada: proporción pactada de la foto del negocio ---------- */
.tc-portada .tc-portada-banner { aspect-ratio: var(--tc-p-ratio, 5 / 2); }

/* ---------- Campos de imagen con vista previa ---------- */
.tc-imagenes { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.tc-campo-foto.tc-imagenes { grid-template-columns: 1fr; max-width: 360px; }
.tc-img-campo { display: flex; flex-direction: column; gap: 8px; }
.tc-img-campo--circulo { align-items: center; text-align: center; }
.tc-img-titulo { margin: 0; font-weight: 700; }
.tc-img-prev { position: relative; display: grid; place-items: center; cursor: pointer; background: #ececec center / cover no-repeat; border: 2px dashed #b9b9b9; transition: border-color .15s; }
.tc-img-prev:hover { border-color: var(--tc-acento); }
.tc-img-prev[style*="background-image"] { border-style: solid; border-color: #222; }
.tc-img-prev--banner { width: 100%; aspect-ratio: var(--tc-ratio, 5 / 2); border-radius: 10px; }
.tc-img-prev--circulo { width: 170px; height: 170px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.tc-img-vacia { color: #777; font-weight: 700; font-size: 14px; }
.tc-img-medidas { margin: 0; font-size: 13px; color: #555; }
.tc-img-actual { margin: 0; font-size: 13px; color: #1e8e3e; font-weight: 600; }
.tc-img-boton input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
body.woocommerce-account .tc-img-campo .tc-img-boton label.button { display: inline-block !important; width: auto !important; margin: 4px 0 0 !important; padding: 10px 20px !important; border: 0 !important; border-radius: 6px !important; background: var(--tc-acento, #c60713) !important; color: #fff !important; font-weight: 700 !important; font-size: 14px !important; line-height: 1.2 !important; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.tc-img-boton .button:hover { filter: brightness(1.1); }
.tc-img-aviso { margin: 0; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.tc-img-aviso--ok { background: #e7f6ec; color: #1e6b34; }
.tc-img-aviso--ojo { background: #fff4d6; color: #7a5300; }
.tc-img-aviso--mal { background: #fde7e8; color: #9e0510; }
.tc-quitar { margin-top: 6px; text-align: center; }
@media (max-width: 700px) { .tc-imagenes { grid-template-columns: 1fr; } }

/* ---------- Biblioteca ---------- */
.tc-biblio-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: #111; color: #fff; }
.tc-biblio-filtros label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: #fff; }
.tc-biblio-filtros select { min-width: 160px; padding: 6px 10px; border-radius: 8px; }
.tc-biblio-cat { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 3px solid #111; }
.tc-biblio-cat span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--tc-acento); color: #fff; font-size: 13px; font-family: inherit; }
.tc-guias { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px; }
.tc-guia { padding: 10px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.tc-guia:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.15); }
.tc-guia-portada { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 8px; background: linear-gradient(135deg, #2a2a2a, #111); display: grid; place-items: center; }
.tc-guia-portada img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.tc-guia-sin { font-size: 46px; }
.tc-guia-sello { position: absolute; left: 8px; top: 8px; width: fit-content; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: #111; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.tc-guia-sello:empty { display: none; }
.tc-guia-sello--actualizada { background: var(--tc-acento); }
.tc-guia-sello--disponible { background: #1e8e3e; }
.tc-guia .button { width: 100%; }
.tc-enlaces-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tc-enlace { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #111; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.tc-enlace span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tc-acento); font-size: 12px; }

/* ---------- Estado vacío ---------- */
.tc-vacio { text-align: center; }
.tc-vacio-emoji { margin: 0 0 6px !important; font-size: 44px; line-height: 1; }

/* ---------- Bonos: tickets ---------- */
.tc-bonos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 0 0 18px; }
.tc-bono { position: relative; display: grid; grid-template-columns: 120px 1fr; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); border: 1px solid rgba(0,0,0,.15); }
.tc-bono-valor { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 16px 8px; color: #fff; text-align: center; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px), linear-gradient(160deg, #ef1d2a, var(--tc-acento) 55%, #7d040e); border-right: 3px dashed rgba(255,255,255,.8); }
.tc-bono-cifra { font-family: var(--tc-fuente, inherit); font-size: 30px; font-weight: 800; line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,.35); }
.tc-bono-dto { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.tc-bono-cuerpo { padding: 14px 16px; }
.tc-bono-nombre { margin: 0 0 6px; font-weight: 700; }
.tc-bono-codigo { margin: 0 0 8px; }
.tc-bono-codigo code { display: inline-block; padding: 5px 12px; border: 2px dashed #111; border-radius: 8px; background: #f6f6f6; font-size: 17px; font-weight: 800; letter-spacing: .12em; color: #111; }
.tc-bono-datos { margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; color: #444; }
.tc-bono-datos li { margin: 2px 0; }
.tc-bono-botones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tc-bono-copiar { padding: 8px 14px; border-radius: 6px; border: 1px solid #111; background: #fff; color: #111; font-weight: 700; cursor: pointer; }
.tc-bono-estado { margin: 0; font-weight: 800; text-transform: uppercase; color: #777; }
.tc-bono--usado, .tc-bono--caducado { filter: grayscale(1); opacity: .65; }
.tc-bonos-pasados summary { cursor: pointer; font-weight: 700; margin: 6px 0 14px; }
@media (max-width: 420px) { .tc-bono { grid-template-columns: 96px 1fr; } .tc-bono-cifra { font-size: 24px; } }
