/* Catálogo Tina Salinas — estilo carta de atelier. Paleta y tipografía según marca/guia-de-marca.md */
.tsc {
	--tsc-morado: #7a5092;
	--tsc-ciruela: #4e3360;
	--tsc-lila: #efe8f3;
	--tsc-carbon: #1a1a1a;
	--tsc-grafito: #5f5f5f;
	--tsc-perla: #f2f2f2;
	--tsc-blanco: #fff;
	--tsc-linea: #e3dce8;
	--tsc-display: "Raleway", "Helvetica Neue", Arial, sans-serif;
	--tsc-texto: "Open Sans", "Segoe UI", Arial, sans-serif;
	color: var(--tsc-grafito);
	font-family: var(--tsc-texto);
	font-size: 15px;
	line-height: 1.7;
	width: 100%;
}
.tsc *, .tsc *::before, .tsc *::after { box-sizing: border-box; }
.tsc img { max-width: 100%; display: block; }
.tsc h1, .tsc h2, .tsc h3 { font-family: var(--tsc-display); color: var(--tsc-carbon); font-weight: 500; text-wrap: balance; margin: 0; }
.tsc a { color: inherit; }
.tsc a:focus-visible, .tsc button:focus-visible { outline: 2px solid var(--tsc-morado); outline-offset: 3px; }
.tsc-wrap { max-width: 1120px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.tsc-eyebrow { font-family: var(--tsc-display); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 500; margin: 0 0 12px; }

/* Botones */
.tsc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--tsc-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
	text-decoration: none; padding: 12px 22px; border: 1px solid var(--tsc-morado);
	background: var(--tsc-morado); color: #fff !important; transition: background .2s, border-color .2s, color .2s;
}
.tsc-btn:hover { background: var(--tsc-ciruela); border-color: var(--tsc-ciruela); }
.tsc-btn-linea { background: transparent; color: var(--tsc-morado) !important; }
.tsc-btn-linea:hover { background: var(--tsc-lila); color: var(--tsc-ciruela) !important; }
.tsc-btn-blanco { background: #fff; border-color: #fff; color: var(--tsc-ciruela) !important; }
.tsc-btn-blanco:hover { background: var(--tsc-lila); border-color: var(--tsc-lila); }
.tsc-icono { width: 16px; height: 16px; flex: none; }
.tsc-acciones { display: flex; gap: 12px; flex-wrap: wrap; }

/* Portada collage */
.tsc-portada { position: relative; background: var(--tsc-ciruela); min-height: 300px; }
.tsc-collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 210px); grid-auto-flow: dense; gap: 6px; overflow: hidden; }
.tsc-collage img { width: 100%; height: 100%; object-fit: cover; }
.tsc-collage-6 img:nth-child(1), .tsc-collage-6 img:nth-child(4) { grid-row: span 2; }
.tsc-collage-1, .tsc-collage-2, .tsc-collage-3 { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); grid-template-rows: 420px; }
.tsc-collage-2 { --n: 2; }
.tsc-collage-1 { --n: 1; }
.tsc-velo { position: absolute; inset: 0; background: rgba(43, 26, 54, .62); display: grid; place-items: center; text-align: center; padding-inline: 16px; }
.tsc-velo .tsc-eyebrow { color: var(--tsc-lila); }
.tsc-velo h1 { color: #fff; font-size: clamp(28px, 4.6vw, 46px); letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; margin-bottom: 12px; }
.tsc-lead { color: #f1eaf5; margin: 0 auto; max-width: 48ch; }

/* Índice de colecciones */
.tsc-indice { display: flex; gap: 10px 28px; flex-wrap: wrap; justify-content: center; padding: 16px; border-bottom: 1px solid var(--tsc-linea); background: var(--tsc-blanco); font-family: var(--tsc-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.tsc-indice a { text-decoration: none; color: var(--tsc-carbon); }
.tsc-indice a:hover { color: var(--tsc-morado); }

/* Style Coaching */
.tsc-coaching { background: var(--tsc-blanco); }
.tsc-coaching .tsc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 64px; }
.tsc-coaching .tsc-sin-fotos { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.tsc-coaching .tsc-eyebrow { color: var(--tsc-morado); }
.tsc-coaching h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.tsc-coaching p { margin: 0 0 26px; max-width: 52ch; }
.tsc-coaching-fotos { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.tsc-coaching-fotos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.tsc-coaching-fotos img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.tsc-fotos-1 { grid-template-columns: minmax(0, 1fr); }
.tsc-fotos-1 img:first-child { grid-row: auto; }

/* Colecciones */
.tsc-coleccion { background: var(--tsc-blanco); }
.tsc-coleccion.tsc-alt { background: var(--tsc-perla); }
.tsc-coleccion > .tsc-wrap { padding-block: 64px; }
.tsc-cabeza { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.tsc-cabeza h1, .tsc-cabeza h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px; }
.tsc-cabeza h1::after, .tsc-cabeza h2::after { content: ""; display: block; width: 40px; height: 1px; background: var(--tsc-morado); margin: 16px auto 0; }
.tsc-cabeza p { margin: 0; }

.tsc-carta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.tsc-pieza { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.tsc-foto { aspect-ratio: 3 / 4; background: var(--tsc-lila); position: relative; overflow: hidden; display: grid; place-items: center; }
.tsc-foto .tsc-foto-img { width: 100%; height: 100%; object-fit: cover; }
.tsc-foto .tsc-foto-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.tsc-pieza:hover .tsc-foto-alt, .tsc-pieza:focus-within .tsc-foto-alt { opacity: 1; }
.tsc-mas-fotos { position: absolute; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .9); color: var(--tsc-carbon); font-family: var(--tsc-display); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; }
@media (hover: hover) { .tsc-mas-fotos { display: none; } }
.tsc-foto .tsc-marca { width: 40%; opacity: .16; }
.tsc-foto small { position: absolute; bottom: 8px; left: 10px; font-size: 11px; }
.tsc-etiqueta { display: block; font-family: var(--tsc-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tsc-morado); font-weight: 600; margin: 4px 0 6px; }
.tsc-pieza h3 { font-size: 17px; letter-spacing: .04em; line-height: 1.35; margin-bottom: 8px; }
.tsc-pieza h3 a { text-decoration: none; }
.tsc-pieza h3 a:hover { color: var(--tsc-morado); }
.tsc-desc { margin: 0 0 12px; font-size: 14px; line-height: 1.65; }
.tsc-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--tsc-linea); padding-top: 10px; }
.tsc-precio { font-family: var(--tsc-display); font-size: 16px; color: var(--tsc-carbon); font-weight: 500; font-variant-numeric: tabular-nums; }
.tsc-sufijo { font-size: .75em; font-weight: 400; color: var(--tsc-grafito); }

/* Ficha de un servicio de Style Coaching: detalle completo junto a la foto */
.tsc-servicio-detalle { margin: 4px 0 28px; padding-top: 20px; border-top: 1px solid var(--tsc-linea); color: var(--tsc-grafito); line-height: 1.75; }
.tsc-servicio-detalle h3 { font-family: "Raleway", sans-serif; font-weight: 700; font-size: 18px; color: var(--tsc-carbon); margin: 22px 0 10px; }
.tsc-servicio-detalle p { margin: 0 0 12px; }
.tsc-servicio-detalle ul, .tsc-servicio-detalle ol { margin: 0 0 12px; padding-left: 1.25em; }
.tsc-servicio-detalle li { margin-bottom: 8px; }
.tsc-servicio-detalle strong { color: var(--tsc-carbon); }
.tsc-servicio-detalle .tsc-caso-real { margin: 8px 0 16px; }
.tsc-servicio-detalle .tsc-caso-real img { width: 100%; max-width: 380px; height: auto; display: block; box-shadow: 0 6px 24px rgba(26, 26, 26, .12); }

/* Página de Style Coaching: "Quién te acompaña", una sola vez debajo de los servicios */
.tsc-acompana { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 56px; padding: 40px; background: var(--tsc-blanco); border: 1px solid var(--tsc-linea); }
.tsc-acompana.tsc-sin-foto { grid-template-columns: minmax(0, 1fr); }
.tsc-acompana img { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: center top; }
.tsc-acompana .tsc-eyebrow { color: var(--tsc-morado); }
.tsc-acompana h2 { margin: 0 0 12px; }
.tsc-acompana p { margin: 0 0 16px; color: var(--tsc-grafito); line-height: 1.75; max-width: 62ch; }
.tsc-acompana blockquote { margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--tsc-morado); font-family: "Raleway", sans-serif; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--tsc-ciruela); }
@media (max-width: 700px) { .tsc-acompana { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; } .tsc-acompana img { max-width: 260px; } }

/* En los servicios, la línea de SKU y categoría va al final (Astra la pone justo después del resumen). */
.single-product .product_cat-style-coaching .summary { display: flex; flex-direction: column; }
.single-product .product_cat-style-coaching .summary > * { order: 0; }
.single-product .product_cat-style-coaching .summary .product_meta { order: 10; margin-top: 8px; }
.single-product .tsc-boton-arriba { margin: 4px 0 8px; }

/* Style Coaching: invitación a la sesión de valoración, arriba de los servicios */
.tsc-valoracion { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--tsc-lila); padding: 32px 40px; margin: 0 0 40px; }
.tsc-valoracion .tsc-eyebrow { color: var(--tsc-morado); }
.tsc-valoracion h2 { font-size: 22px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; }
.tsc-valoracion p:last-child { margin: 0; max-width: 56ch; }
.tsc-valoracion .tsc-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.tsc-valoracion .tsc-icono { width: 16px; height: 16px; }
@media (max-width: 700px) { .tsc-valoracion { flex-direction: column; align-items: flex-start; padding: 24px; } }
.tsc-pedir { display: inline-flex; align-items: center; gap: 6px; font-family: var(--tsc-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tsc-morado) !important; text-decoration: none; font-weight: 600; }
.tsc-pedir:hover { color: var(--tsc-ciruela) !important; text-decoration: underline; text-underline-offset: 4px; }
.tsc-pieza.is-agotado .tsc-foto { filter: grayscale(.7); opacity: .75; }
.tsc-pieza.is-agotado .tsc-etiqueta { color: var(--tsc-grafito); }
.tsc-pieza.is-agotado .tsc-precio { color: var(--tsc-grafito); text-decoration: line-through; }
.tsc-solo-disponibles .is-agotado { display: none; }
.tsc-ver-todo { text-align: center; margin: 40px 0 0; }
.tsc-vacio { text-align: center; }

/* Vista de colección */
.tsc-migas { font-size: 12px; letter-spacing: .06em; padding-block: 0 28px; }
.tsc-migas a { text-decoration: none; }
.tsc-migas a:hover { color: var(--tsc-morado); }
.tsc-pagina-coleccion .tsc-coleccion > .tsc-wrap { padding-block: 32px 64px; }
.tsc-filtros { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: -16px 0 36px; }
.tsc-filtros button { font-family: var(--tsc-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; border: 1px solid var(--tsc-linea); background: var(--tsc-blanco); color: var(--tsc-carbon); border-radius: 999px; cursor: pointer; }
.tsc-filtros button[aria-pressed="true"] { background: var(--tsc-carbon); border-color: var(--tsc-carbon); color: #fff; }

/* Cierre: Arma tu look */
.tsc-look { background: var(--tsc-morado); color: #fff; }
.tsc-look .tsc-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 36px; align-items: center; padding-block: 48px; }
.tsc-look img { width: 170px; height: auto; }
.tsc-look img.tsc-look-foto { width: 190px; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: center top; }
.tsc-look h2 { color: #fff; font-size: 24px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.tsc-look p { margin: 0; color: #f1eaf5; max-width: 52ch; }
.tsc-look small { display: block; margin-top: 8px; color: #e9dff0; font-size: 13px; text-align: center; user-select: all; }

/* Ficha de producto y listados de WooCommerce */
.single-product .tsc-btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Raleway", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 14px 26px; border: 1px solid #7a5092; background: #7a5092; color: #fff; }
.single-product .tsc-btn:hover { background: #4e3360; border-color: #4e3360; }
.single-product .tsc-btn-linea { background: transparent; color: #7a5092; }
.single-product .tsc-icono { width: 16px; height: 16px; }

/* Ficha en computador: la foto cabe en la pantalla y las miniaturas van en columna a su izquierda.
   El ancho sale del alto de la ventana (fotos 3:4): 80px de miniaturas + 16px de espacio + foto. */
@media (min-width: 922px) {
	.single-product div.product div.images.woocommerce-product-gallery { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; align-items: start; width: max(400px, min(50%, calc(96px + (100vh - 220px) * .75))) !important; }
	.single-product div.product .woocommerce-product-gallery .flex-viewport,
	.single-product div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; margin: 0 !important; padding: 0; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { opacity: .55; transition: opacity .2s; cursor: pointer; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover { opacity: 1; }
	/* Piezas con una sola foto: sin columna de miniaturas, la foto va pegada al borde. */
	.single-product div.product div.images.woocommerce-product-gallery:not(:has(.flex-control-thumbs)) { grid-template-columns: minmax(0, 1fr); width: max(304px, min(50%, calc((100vh - 220px) * .75))) !important; }
	.single-product div.product div.images.woocommerce-product-gallery:not(:has(.flex-control-thumbs)) > * { grid-column: 1; }
	.single-product div.product .summary.entry-summary { float: none !important; width: auto !important; max-width: 620px; overflow: hidden; padding-left: 56px; }
}

@media (max-width: 900px) {
	.tsc-carta { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tsc-coaching .tsc-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tsc-look .tsc-wrap { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 640px) {
	.tsc-collage { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 150px); }
	.tsc-collage-6 img:nth-child(1), .tsc-collage-6 img:nth-child(4) { grid-row: auto; }
	.tsc-collage-1, .tsc-collage-2, .tsc-collage-3 { grid-template-rows: 300px; }
	.tsc-pieza { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
	.tsc-pieza h3 { font-size: 15px; }
	.tsc-desc { font-size: 13px; }
	.tsc-coleccion > .tsc-wrap, .tsc-coaching .tsc-wrap { padding-block: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.tsc * { transition: none !important; }
}

/* Encabezados y distribución como el resto de tinasalinas.com:
   secciones a todo el ancho, títulos en Raleway negrita sin mayúsculas,
   frase superior en Open Sans y velo oscuro sobre las fotos. */
.tsc-catalogo > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.tsc-catalogo .tsc-portada { background: #1a1a1a; }
.tsc-catalogo .tsc-collage { gap: 0; grid-template-rows: repeat(2, 280px); }
.tsc-catalogo .tsc-velo { background: rgba(26, 26, 26, .55); padding: 96px 16px 32px; }
/* Portada con una sola imagen (por ejemplo, un collage ya armado): a todo el ancho y alto. */
.tsc-catalogo .tsc-collage.tsc-collage-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 560px; }
.tsc-catalogo .tsc-collage-1 img { object-fit: cover; object-position: center; }
.tsc-catalogo .tsc-portada:has(.tsc-collage-1) .tsc-velo { background: rgba(26, 26, 26, .45); }
.tsc-catalogo .tsc-velo h1, .tsc-catalogo .tsc-velo .tsc-eyebrow, .tsc-catalogo .tsc-lead { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
/* Portada de 5 fotos en mosaico con separaciones blancas: alta, dos apiladas, alta, alta. */
.tsc-catalogo .tsc-portada:has(.tsc-collage-5) { background: #fff; }
.tsc-catalogo .tsc-collage.tsc-collage-5 { grid-template-columns: 1fr 1.3fr 1fr 1fr; grid-template-rows: repeat(2, 270px); gap: 12px; padding: 12px; background: #fff; }
.tsc-collage-5 img:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.tsc-collage-5 img:nth-child(2) { grid-column: 2; grid-row: 1; }
.tsc-collage-5 img:nth-child(3) { grid-column: 2; grid-row: 2; }
.tsc-collage-5 img:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.tsc-collage-5 img:nth-child(5) { grid-column: 4; grid-row: 1 / 3; }
.tsc-catalogo .tsc-portada:has(.tsc-collage-5) .tsc-velo { background: rgba(26, 26, 26, .42); }
.tsc-catalogo .tsc-velo .tsc-eyebrow { color: #fff; font-family: "Open Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; margin-bottom: 16px; }
.tsc-catalogo .tsc-velo h1 { font-family: "Raleway", sans-serif; font-weight: 700; font-size: clamp(32px, 4vw, 48px); letter-spacing: normal; text-transform: none; line-height: 1.3; margin-bottom: 16px; }
.tsc-catalogo .tsc-lead { color: #fff; font-family: "Open Sans", sans-serif; font-size: 16px; line-height: 1.85; max-width: 52ch; }
.tsc h2, .tsc-pagina-coleccion .tsc-cabeza h1 { font-family: "Raleway", sans-serif; font-weight: 700; letter-spacing: normal !important; text-transform: none !important; font-size: clamp(28px, 3vw, 36px) !important; line-height: 1.3; }
.tsc-valoracion h2 { font-size: clamp(22px, 2.4vw, 28px) !important; }
@media (max-width: 640px) {
	.tsc-catalogo .tsc-collage { grid-template-rows: repeat(2, 200px); }
	.tsc-catalogo .tsc-collage.tsc-collage-1 { grid-template-rows: 420px; }
	.tsc-catalogo .tsc-collage.tsc-collage-5 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 200px); gap: 8px; padding: 8px; }
	.tsc-collage-5 img:nth-child(4), .tsc-collage-5 img:nth-child(5) { display: none; }
	.tsc-catalogo .tsc-velo { padding-top: 88px; }
}
