/* Golda Lab — identidad sobre Blocksy, con la base del rediseño v3 (docs/diseno/2026-10-30-rediseno-v3-inicio/).
 * Colores del v3: papel #FAF6FC, tinta #37053A (--gl-noche), texto #3B2E40 (--gl-tinta), morado #6A1881, lila de
 * superficies #E4D6EC, lila claro #F3EBF7, lima #D4EC5C (acento único) y ciruela #1E0222 (Nosotras, pie, menú).
 * Regla del v3: cada sección lleva un solo fondo y el lima va con moderación, sobre oscuro o de fondo con letra tinta;
 * sin degradados, brillos ni vidrio. Títulos en Instrument Serif; Patrick Hand solo para lo escrito a mano.
 * El gesto de las cajas: la trama de janukiot en semicírculo (--gl-trama), en el lila y el lima suaves de las cartas
 * (#9A7CC9 y #C9E35A): el flúor de impresión (#A83CFC, #98FA05) queda en las fotos de las cajas (Karen, 31-oct-2026).
 * Cada página lleva un símbolo (clase gl-simbolo-* en <body>, goldalab-estilos.php).
 * Portada, Nosotras y movimiento: paginas.css. */

:root {
	--gl-noche: #37053a;
	--gl-golda: #6a1881;
	--gl-lila: #a83cfc;
	--gl-lima: #d4ec5c;
	--gl-tinta: #3b2e40;
	--gl-lavanda: #f3ebf7;
	--gl-papel: #faf6fc;
	--gl-lila-superficie: #e4d6ec;
	--gl-ciruela: #1e0222;
	--gl-linea: rgba(55, 5, 58, 0.14);
	--gl-linea-oscura: rgba(255, 255, 255, 0.14);
	--gl-titulos: "Instrument Serif", Georgia, serif;
	--gl-mano: "Patrick Hand", "Montserrat", sans-serif;
	--gl-mono: ui-monospace, Menlo, monospace;
	--gl-curva: cubic-bezier(0.7, 0, 0.2, 1);
	/* Un solo lenguaje de movimiento: ease-out para lo que entra, ease-in-out para lo que se mueve en pantalla y la
	 * curva de cajón para avisos y paneles. */
	--gl-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--gl-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--gl-ease-cajon: cubic-bezier(0.32, 0.72, 0, 1);
	--gl-ancho: 1440px;
	--gl-margen: clamp(20px, 4vw, 56px);
	--gl-espacio-seccion: clamp(80px, 9vw, 140px);
	/* Portada v4 (docs/diseno/2026-10-31-portada-v4/): la portada oficial desde el 31-oct-2026 (Karen). */
	--gl-oro: #e6c27c;
	--gl-oro-claro: #f2dcaa;
	--gl-ambar: #ffcf6b;
	--gl-r-s: 12px;
	--gl-r-m: 20px;
	--gl-r-l: 32px;
	--gl-sombra: 0 1px 2px rgba(30, 2, 34, 0.05), 0 16px 40px -18px rgba(30, 2, 34, 0.22);
	--gl-sombra-alta: 0 2px 4px rgba(30, 2, 34, 0.06), 0 28px 60px -22px rgba(30, 2, 34, 0.32);
	--gl-seccion: clamp(104px, 13vw, 184px);
	--gl-ancho-v4: 1320px;
	--gl-margen-v4: clamp(20px, 5vw, 72px);
	/* La luz de la página: papel por defecto; en los capítulos de noche (body.gl-noche, capitulos en portada.js) todo
	 * pasa a ciruela. Lo usan la portada, el encabezado, el pie y los flotantes. */
	--gl-fondo: var(--gl-papel);
	--gl-texto: var(--gl-noche);
	--gl-texto-cuerpo: var(--gl-tinta);
	--gl-texto-suave: rgba(59, 46, 64, 0.72);
	--gl-acento: var(--gl-golda);
	--gl-tarjeta: #fff;
	--gl-linea-t: rgba(55, 5, 58, 0.12);
	--gl-trama-janukia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='46' viewBox='0 0 96 46'%3E%3Cg fill='none' stroke-width='4'%3E%3Cpath stroke='%23C9E35A' d='M4 6a20 20 0 0 0 40 0M11 6a13 13 0 0 0 26 0M18 6a6 6 0 0 0 12 0M24 2v38M16 40h16'/%3E%3Cpath stroke='%239A7CC9' d='M52 6a20 20 0 0 0 40 0M59 6a13 13 0 0 0 26 0M66 6a6 6 0 0 0 12 0M72 2v38M64 40h16'/%3E%3C/g%3E%3C/svg%3E");
	--gl-trama-estrella: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='46' viewBox='0 0 96 46'%3E%3Cg fill='none' stroke-width='4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath stroke='%23C9E35A' d='M24 4L40 32H8ZM24 41L8 13H40Z'/%3E%3Cpath stroke='%239A7CC9' transform='translate(48 0)' d='M24 4L40 32H8ZM24 41L8 13H40Z'/%3E%3C/g%3E%3C/svg%3E");
	--gl-trama-jai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='46' viewBox='0 0 96 46'%3E%3Cg fill='none' stroke-width='4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath stroke='%23C9E35A' d='M8 11h7c0 8-2 12-6 14M20 40V11h21v29'/%3E%3Cpath stroke='%239A7CC9' transform='translate(48 0)' d='M8 11h7c0 8-2 12-6 14M20 40V11h21v29'/%3E%3C/g%3E%3C/svg%3E");
	--gl-trama-granada: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='46' viewBox='0 0 96 46'%3E%3Cg fill='none' stroke-width='4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath stroke='%23C9E35A' d='M24 41a13 13 0 1 0 0-26a13 13 0 1 0 0 26M15 16l-2-11 6 5 5-7 5 7 6-5-2 11'/%3E%3Cpath stroke='%239A7CC9' transform='translate(48 0)' d='M24 41a13 13 0 1 0 0-26a13 13 0 1 0 0 26M15 16l-2-11 6 5 5-7 5 7 6-5-2 11'/%3E%3C/g%3E%3C/svg%3E");
	--gl-trama: var(--gl-trama-janukia);
}

/* El símbolo de la página (la trama de las franjas y del pie). */
.gl-simbolo-estrella {
	--gl-trama: var(--gl-trama-estrella);
}
.gl-simbolo-jai {
	--gl-trama: var(--gl-trama-jai);
}
.gl-simbolo-granada {
	--gl-trama: var(--gl-trama-granada);
}

/* ─── La trama avanza en todas partes ─────────────────────────────────────
 * Lenta y continua; quieta fuera de la pantalla (gl-quieto, movimiento.js), con «Pausar movimiento» (gl-pausa) y con
 * «reducir movimiento». La animación gl-cinta está en paginas.css. */
.hero-section[data-type="type-2"]::after,
.gl-fecha-portada::after,
.gl-trama {
	animation: gl-cinta 9s linear infinite;
}
.gl-pausa .hero-section[data-type="type-2"]::after,
.gl-pausa .gl-fecha-portada::after,
.hero-section.gl-quieto::after,
.gl-fecha-portada.gl-quieto::after {
	animation-play-state: paused;
}

/* ─── Fondo: papel con luces suaves y lo que el navegador dibuja, con la paleta ─── */
body {
	background-color: var(--gl-papel);
	caret-color: var(--gl-golda);
	accent-color: var(--gl-golda);
	scrollbar-color: rgba(55, 5, 58, 0.35) var(--gl-papel);
}
/* Capítulos de noche (portada v4): toda la página cambia de luz al entrar a uno (portada.js pone o saca gl-noche en
 * <body>); el fondo y los colores de la portada, el encabezado, el pie y los flotantes cambian juntos en 0,9 s.
 * La portada empieza de noche (body_class) y sin JavaScript se queda así: todo se lee igual. */
body.gl-capitulos {
	background-color: var(--gl-fondo);
	transition: background-color 0.9s var(--gl-ease-out);
}
body.gl-noche {
	--gl-fondo: var(--gl-ciruela);
	--gl-texto: #fff;
	--gl-texto-cuerpo: rgba(255, 255, 255, 0.86);
	--gl-texto-suave: rgba(255, 255, 255, 0.62);
	--gl-acento: var(--gl-lima);
	--gl-tarjeta: rgba(255, 255, 255, 0.06);
	--gl-linea-t: rgba(255, 255, 255, 0.14);
	scrollbar-color: rgba(255, 255, 255, 0.3) var(--gl-ciruela);
}
/* Tres luces (lila, morado y una tibia) que se mueven muy lento detrás de todo: el papel deja de ser plano sin que se
 * note el movimiento. En Shabat, tiempo.css las cambia por las cálidas, de vela. */
body::before {
	content: "";
	position: fixed;
	inset: -20%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(32% 28% at 16% 20%, rgba(154, 124, 201, 0.16), transparent 70%),
		radial-gradient(30% 30% at 86% 34%, rgba(106, 24, 129, 0.07), transparent 70%),
		radial-gradient(40% 34% at 58% 88%, rgba(255, 196, 110, 0.1), transparent 70%);
}
/* Se mueven solo con mouse: en el celular quedan quietas (ahorra batería; auditoría del 31-oct). */
@media (hover: hover) and (pointer: fine) {
	body::before {
		animation: gl-luces 56s ease-in-out infinite alternate;
	}
}
@keyframes gl-luces {
	from {
		transform: translate3d(-5%, -4%, 0) rotate(-3deg);
	}
	to {
		transform: translate3d(5%, 4%, 0) rotate(4deg);
	}
}
.gl-pausa body::before {
	animation-play-state: paused;
}

/* Una luz que sigue al mouse en las secciones oscuras (movimiento.js pone .gl-luz y gl-con-luz): debajo del texto y
 * con inercia; sale al dejar la sección. */
.gl-con-luces {
	position: relative; /* el pie de Blocksy es «static»: sin esto la luz se dibujaba arriba de la página */
	isolation: isolate;
	overflow: clip;
}
.gl-luz {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 720px;
	height: 720px;
	margin: -360px 0 0 -360px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(176, 140, 230, 0.2), rgba(176, 140, 230, 0.06) 55%, transparent);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease, transform 0.9s var(--gl-ease-out);
}
.gl-con-luz > .gl-luz {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	body::before {
		animation: none;
	}
	/* Blocksy desliza el scroll a las anclas; con «reducir movimiento», salta. */
	:root {
		scroll-behavior: auto;
	}
}
::selection {
	background: var(--gl-lima);
	color: var(--gl-noche);
}
@media (prefers-reduced-motion: reduce) {
	.hero-section[data-type="type-2"]::after,
	.gl-fecha-portada::after,
	.gl-trama {
		animation: none;
	}
}

/* ─── Títulos en Instrument Serif (v3) ─────────────────────────────────── */
.woocommerce-loop-product__title,
.page-title,
.entry-title,
.woocommerce-products-header__title {
	font-family: var(--gl-titulos);
	font-weight: 400;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.woocommerce-loop-product__title {
	font-size: 26px;
	line-height: 1.05;
}

/* La foto de la GOLDa Box con su versión sin letras para el celular (goldalab_box_foto_celular()): el <picture> no cuenta
 * para el diseño, manda la <img> de adentro. */
picture:has(> source[srcset*="golda-box-05-sin-letras"]) {
	display: contents;
}

/* El nombre en texto del título con letras de la GOLDa Box (goldalab_box_letras(): ficha y portada), solo para lectores. */
.gl-gb-titulo-texto {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ─── «GOLD» en dorado: la caja de oro (goldalab_box_dorado(); el mismo dorado de la foto de la caja) ─── */
/* Sobre fondos claros, el tramo oscuro del degradado para que se lea; sobre morado o noche, el brillante. */
.gl-oro {
	color: #b07a10; /* si el navegador no recorta el fondo al texto */
	background: linear-gradient(180deg, #e0ad2c 0%, #b07a10 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.gl-p-box-titulo .gl-oro {
	color: #f0c440;
	background-image: linear-gradient(180deg, #fff1b0 0%, #f0c440 45%, #d6a020 70%, #a87008 100%);
}

/* ─── Botones ──────────────────────────────────────────────────────────── */
.button,
button.button,
.ct-button,
.wp-element-button,
#place_order {
	border-radius: 999px;
	font-weight: 600;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.single_add_to_cart_button,
#place_order,
.checkout-button {
	background-color: var(--gl-golda);
	color: #fff;
}
.single_add_to_cart_button:hover,
#place_order:hover,
.checkout-button:hover {
	background-color: var(--gl-noche);
	color: #fff;
}

/* ─── Grilla de productos ──────────────────────────────────────────────── */
[data-products] .product figure,
[data-products] .ct-media-container {
	background: var(--gl-lavanda);
	border-radius: 6px;
	overflow: hidden;
}
[data-products] .product .price {
	margin-top: 4px;
}

/* ─── Precio doble (mu-plugin goldalab-precio-doble.php) ──────────────── */
.gl-precio-clp {
	color: var(--gl-noche);
	font-weight: 700;
}
.gl-precio-usd {
	color: var(--gl-golda);
	opacity: 1;
	font-weight: 500;
}

/* ─── Citas de la marca (páginas) ──────────────────────────────────────── */
/* Sobre noche, como las cajas, con una comilla grande en lima. */
.entry-content .wp-block-quote {
	position: relative;
	border: 0;
	background: var(--gl-noche);
	border-radius: 28px;
	padding: 1.5em 1.5em 1.4em 3.2em;
	font-family: var(--gl-titulos);
	font-size: 26px;
	line-height: 1.3;
	color: #fff;
}
.entry-content .wp-block-quote::before {
	content: "«";
	position: absolute;
	left: 0.45em;
	top: 0.2em;
	font-size: 2.6em;
	line-height: 1;
	color: var(--gl-lima);
}
.entry-content .wp-block-quote p {
	color: #fff;
}

/* ─── Pie (v3): ciruela; el contenido es [gl_pie], estilos en pie.css ─── */
#footer {
	background-color: var(--gl-ciruela);
	color: rgba(255, 255, 255, 0.78);
}
#footer [data-row] {
	background-color: transparent;
	border: 0;
}
#footer a {
	color: rgba(255, 255, 255, 0.78);
}
#footer a:hover {
	color: #fff;
}

/* ─── Foco visible ─────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 3px solid var(--gl-lila);
	outline-offset: 2px;
}
#footer a:focus-visible {
	outline-color: var(--gl-lima);
}

/* ─── Sin mayúsculas sostenidas (Blocksy las pone en menú y etiquetas) ─── */
[data-products] .entry-meta {
	--theme-text-transform: none;
	text-transform: none;
	letter-spacing: 0;
}
[data-products] .entry-meta {
	font-size: 13px;
	font-weight: 500;
	color: #7d6a85;
}

/* ─── Título de Blocksy sobre noche, con la trama al pie (hoy, la 404; se rediseña en la fase 6) ── */
/* Blocksy pone fondo y espacio con [data-prefix] en un estilo que carga después: aquí con un poco más de peso. */
body[data-prefix] .hero-section[data-type="type-2"] {
	--min-height: 0px;
	--container-padding: 48px 0 92px;
	position: relative;
	background-color: var(--gl-noche);
	background-image: radial-gradient(50% 90% at 78% 70%, rgba(168, 60, 252, 0.3), transparent 70%);
}
.hero-section[data-type="type-2"]::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 46px;
	background: var(--gl-trama) repeat-x center / 96px 46px;
}
.hero-section[data-type="type-2"] .page-title {
	font-size: clamp(44px, 6vw, 72px);
	line-height: 1;
	color: #fff;
}
.hero-section .page-description,
.term-description {
	max-width: 60ch;
	margin-inline: auto;
	color: var(--gl-tinta);
}
.hero-section[data-type="type-2"] .page-description,
.hero-section[data-type="type-2"] .page-description p {
	color: rgba(255, 255, 255, 0.86);
	font-size: 18px;
}

/* ─── Celular ──────────────────────────────────────────────────────────── */
@media (max-width: 689px) {
	[data-products] .button {
		font-size: 14px;
		padding: 10px 14px;
		min-height: 0;
		width: 100%;
		justify-content: center;
	}
	.woocommerce-loop-product__title {
		font-size: 21px;
	}
	[data-products] .entry-meta {
		display: none;
	}
	body[data-prefix] .hero-section[data-type="type-2"] {
		--container-padding: 32px 0 76px;
	}
}

/* ─── Páginas de contenido: título grande y líneas legibles ───────────── */
[data-prefix="single_page"] .entry-header .page-title {
	font-size: clamp(44px, 6vw, 64px);
	line-height: 1.05;
	color: var(--gl-noche);
}
/* Solo páginas de texto: carrito, checkout y cuenta necesitan todo el ancho. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account)[data-prefix="single_page"] .entry-header,
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account)[data-prefix="single_page"] .entry-content {
	max-width: 720px;
	margin-inline: auto;
}
[data-prefix="single_page"] .entry-content > p:first-child {
	font-size: 19px;
	line-height: 1.6;
	color: var(--gl-noche);
}

[data-prefix="single_page"] .entry-content h2 {
	font-size: 32px;
	margin-top: 1.5em;
	margin-bottom: 0.3em;
}

/* ═══ Ajustes de la revisión de experiencia de compra (28-oct-2026) ═══════ */

/* Notas de moneda (carrito y pago) */
.gl-nota-moneda {
	margin: 0.6em 0 1em;
	padding: 0.7em 1em;
	border-radius: 14px;
	background: var(--gl-lavanda);
	color: var(--gl-noche);
	font-size: 14px;
	line-height: 1.5;
}
.gl-fila-moneda td {
	padding-top: 0;
	border: 0;
}
.gl-precio-usd {
	font-size: 14px;
}
.shipping-calculator-button {
	color: var(--gl-golda);
	text-decoration: underline;
	font-weight: 600;
}

/* Checkout con jerarquía */
.woocommerce-checkout h3 {
	font-size: 30px;
	line-height: 1.1;
	margin-bottom: 0.6em;
}
#ship-to-different-address,
#ship-to-different-address label {
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
}

/* Botones de las grillas en una sola línea */
[data-products] .button {
	white-space: nowrap;
}

.gl-fila-moneda .gl-nota-moneda {
	text-align: left;
	font-weight: 500;
}

/* ─── Detalles del navegador con la paleta ─────────────────────────────── */
::selection {
	background: var(--gl-lima);
	color: var(--gl-noche);
}
html {
	scrollbar-color: var(--gl-golda) var(--gl-lavanda);
	accent-color: var(--gl-golda);
}
.entry-content a {
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
}

/* ─── El cursor lima (movimiento.js): sobre fotos, cartas y juegos dice qué pasa al hacer clic ─── */
.gl-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin: -48px 0 0 -48px;
	border-radius: 50%;
	background: var(--gl-lima);
	color: var(--gl-noche);
	font: 600 13px/1.1 "Montserrat", sans-serif;
	letter-spacing: 0.02em;
	text-align: center;
	pointer-events: none;
	transform: translate(-200px, -200px) scale(0);
	transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gl-cursor span {
	max-width: 76px;
}

/* ─── «Volver arriba» (movimiento.js), centrado sobre el botón de Golda: tinta con flecha blanca y un anillo lima que
 * muestra cuánto de la página se lleva. Aparece al volver a subir; mientras se lee, no está. ───────────────── */
.gl-subir {
	position: fixed;
	right: 20px;
	bottom: 80px;
	z-index: 89;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gl-noche);
	box-shadow: 0 14px 30px -12px rgba(55, 5, 58, 0.55);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.9);
	transition: opacity 0.25s ease, transform 0.35s var(--gl-ease-out), visibility 0s linear 0.35s;
}
.gl-subir.gl-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.gl-subir:active {
	transform: scale(0.94);
}
.gl-subir:focus-visible {
	outline: 3px solid var(--gl-golda); /* no lima: se confundiría con el anillo de avance */
	outline-offset: 3px;
}
.gl-subir svg {
	width: 44px;
	height: 44px;
	overflow: visible;
}
.gl-subir circle {
	fill: none;
	stroke-width: 2.5;
}
.gl-subir-pista {
	stroke: rgba(255, 255, 255, 0.16);
}
.gl-subir-avance {
	stroke: var(--gl-lima);
	stroke-dasharray: 1;
	stroke-dashoffset: calc(1 - var(--avance, 0));
	transform: rotate(-90deg);
	transform-origin: 24px 24px;
}
.gl-subir-flecha {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
	.gl-subir.gl-visible:hover {
		transform: translateY(-3px);
	}
}
/* Con la barra de compra fija del celular (la ficha), Golda se esconde (producto.css) y «Volver arriba» toma su lugar,
 * sobre la barra. */
@media (max-width: 899px) {
	body.gl-f-con-barra .gl-subir {
		right: 16px;
		bottom: calc(16px + 84px + env(safe-area-inset-bottom));
	}
}
@media (prefers-reduced-motion: reduce) {
	.gl-subir {
		transform: none;
		transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	}
	.gl-subir.gl-visible:hover,
	.gl-subir:active {
		transform: none;
	}
}
