/* ==========================================================================
   Suturas Veterinarias — sistema de diseño
   Portado del proyecto Stitch "Tienda Suturas Veterinarias SMI".
   Registro: portal técnico de compra. El dato manda sobre la imagen.
   Ver DESIGN.md.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
	/* Superficies */
	--bg:          #ffffff;
	--page:        #f8f9ff;   /* fondo de aplicación, azulado */
	--surface:     #eff4ff;   /* cabeceras de tarjeta, bandas */
	--surface-2:   #f8fafc;   /* fila cebra impar */
	--tint:        #d3e4fe;   /* relleno de botón secundario */
	--tint-2:      #dce9ff;   /* distintivo */
	--tint-border: #a5cbff;
	--grid-line:   #e5eeff;   /* rejilla técnica del hero */
	--line:        #c1c7d2;

	/* Tinta */
	--ink:       #0b1c30;
	--ink-deep:  #003e6f;   /* titulares */
	--muted:     #414750;
	--muted-2:   #5b626d;   /* oscurecido desde el #727781 de Stitch: daba 4,08:1 sobre --surface */

	/* Acción */
	--primary:      #1d4ed8;
	--primary-hover:#003e6f;

	/* Código de color del hilo por material.
	   Cada material va en dos tonos: el REAL (filete superior, punto de la tabla)
	   y una variante -ink oscurecida para etiquetas rellenas con texto blanco.
	   El código que traía Stitch (Monofast coral, PDO azul, Nylon verde) era
	   inventado y contradecía la ficha del fabricante; además ponía blanco sobre
	   el tono real y no llegaba a AA (verde 2,56:1, coral 3,66:1). Estos son los
	   colores con los que SMI comercializa cada hilo. */
	--mat-violeta:  #8B5CF6;  --mat-violeta-ink:  #6D28D9;  /* 7,10:1 — 910, PGA, PDO */
	--mat-azul:     #0EA5E9;  --mat-azul-ink:     #0369A1;  /* 5,93:1 — Daclon Nylon */
	--mat-incoloro: #94A3B8;  --mat-incoloro-ink: #475569;  /* 7,60:1 — Monofast, Rapid */
	--mat-verde:    #16A34A;  --mat-verde-ink:    #15803D;  /* 5,02:1 — Poliester verde */
	--mat-marron:   #A16207;  --mat-marron-ink:   #854D0E;  /* 6,91:1 — Catgut cromado */

	/* Estado */
	--ok:       #047857;
	--ok-bg:    #ecfdf5;
	--warn:     #b45309;
	--warn-bg:  #fffbeb;

	/* Tipografía */
	--font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--fs-h1:   clamp(1.6rem, 1.15rem + 1.9vw, 2.35rem);
	--fs-h2:   clamp(1.25rem, 1.05rem + 0.85vw, 1.6rem);
	--fs-h3:   1.0625rem;
	--fs-body: 0.9375rem;
	--fs-data: 0.8125rem;
	--fs-label:0.6875rem;

	/* Ritmo */
	--gutter:  clamp(1rem, 3.2vw, 3rem);
	--section: clamp(2.5rem, 4.5vw, 3.5rem);
	--maxw:    1280px;
	--radius:  4px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	--z-header: 200;
	--z-modal:  400;

	/* Puente con Blocksy */
	--theme-palette-color-1: var(--primary);
	--theme-palette-color-2: var(--primary-hover);
	--theme-palette-color-3: var(--ink);
	--theme-palette-color-4: var(--muted);
	--theme-palette-color-5: var(--line);
	--theme-palette-color-6: var(--surface);
	--theme-palette-color-7: var(--page);
	--theme-palette-color-8: var(--bg);   /* fondo de la fila de cabecera */
	--theme-font-family: var(--font);
	--theme-text-color: var(--muted);
	--theme-headings-color: var(--ink-deep);
	--theme-border-color: var(--line);
	--theme-link-initial-color: var(--primary);
	--theme-link-hover-color: var(--primary-hover);
	--theme-normal-container-max-width: var(--maxw);
	--theme-content-spacing: 1.25rem;
	--theme-button-text-initial-color: #fff;
	--theme-button-background-initial-color: var(--primary);
	--theme-button-background-hover-color: var(--primary-hover);
	--theme-button-border-radius: var(--radius);
}

/* ------------------------------------------------------- 2. Base tipográfica */

body {
	background: var(--page);
	color: var(--muted);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .entry-title {
	font-family: var(--font);
	color: var(--ink-deep);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); color: var(--ink); }

p { text-wrap: pretty; }

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); }

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: var(--radius);
}

/* Todo dato técnico en monoespaciada y alineado en columna */
.sv-mono, .sv-spec td, .sv-table td, .sv-ref,
.woocommerce-Price-amount, .sku, .sv-card__spec {
	font-family: var(--mono);
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum';
}

/* Etiqueta corta en versalitas: se usa con moderación, no sobre cada sección */
.sv-label {
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-2);
}

/* --------------------------------------------------------------- 3. Layout */

.sv-wrap {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.sv-section { padding-block: var(--section); }

.suturas-front .ct-container,
.suturas-front .entry-content { max-width: none; padding: 0; }
.suturas-front .entry-header,
.suturas-front .page-title { display: none; }

/* ----------------------------------------------------------- 4. Cabecera */

header.ct-header {
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: var(--z-header);
}

.site-title, .site-title a {
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--ink-deep);
	text-decoration: none;
}

header.ct-header [data-id="menu"] .menu > li > a,
header.ct-header nav .menu > li > a {
	font-weight: 600;
	font-size: var(--fs-data);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink);
}
header.ct-header [data-id="menu"] .menu > li > a:hover,
header.ct-header nav .menu > li > a:hover,
header.ct-header .current-menu-item > a { color: var(--primary); }

/* ------------------------------------------------------------- 5. Botones */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.7rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: var(--fs-data);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
/* Los SVG en línea no traen tamaño propio: sin esto ocupan el alto natural
   del contenedor y revientan botones y distintivos. */
.btn svg   { flex: none; width: 16px; height: 16px; }
.sv-badge svg { flex: none; width: 14px; height: 14px; }

.btn--primary   { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }

.btn--secondary { background: var(--tint); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { background: var(--tint-border); color: var(--ink-deep); }

.btn--quiet     { background: transparent; color: var(--primary); padding-inline: 0.5rem; }
.btn--quiet:hover { color: var(--primary-hover); text-decoration: underline; }

.btn--outline   { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--tint); color: var(--ink-deep); border-color: var(--ink-deep); }

/* ---------------------------------------------------------------- 6. Hero */

.sv-hero {
	background-color: var(--page);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 32px 32px;
	border-bottom: 1px solid var(--line);
	padding-block: clamp(2rem, 4vw, 3.25rem);
}

.sv-hero__grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
	.sv-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.sv-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	width: fit-content;
	background: var(--tint-2);
	color: var(--ink-deep);
	border: 1px solid var(--tint-border);
	border-radius: var(--radius);
	padding: 0.25rem 0.6rem;
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sv-hero__title { margin: 0.9rem 0 0.75rem; color: var(--ink-deep); }
.sv-hero__lede  { margin: 0 0 1.35rem; max-width: 58ch; color: var(--muted); }
.sv-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }

.sv-hero__figure {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	aspect-ratio: 16 / 11;
	box-shadow: 0 1px 3px rgb(11 28 48 / 0.06);
}
.sv-hero__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-hero__caption {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	background: rgb(255 255 255 / 0.92);
	backdrop-filter: blur(2px);
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 0.15rem 0.45rem;
	font-family: var(--mono);
	font-size: 0.625rem;
	color: var(--ink);
}

/* --------------------------------------- 6b. Banda de categorías (puertas)

   Las tres entradas al catálogo, en azul de marca. Es lo primero que ve el
   veterinario después del hero.                                             */

.sv-puertas { background: var(--primary); }
.sv-puertas__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
	.sv-puertas__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sv-puerta + .sv-puerta { border-top: 0; border-left: 1px solid rgb(255 255 255 / 0.22); }
}

.sv-puerta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 1.15rem 1rem;
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 600;
	transition: background-color 200ms var(--ease);
}
.sv-puerta + .sv-puerta { border-top: 1px solid rgb(255 255 255 / 0.22); }
.sv-puerta:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.sv-puerta svg { flex: none; width: 30px; height: 30px; stroke-width: 1.4; }

/* ------------------------------------------- 6c. Selector por especificación

   El buscador que hace usable un catálogo de más de dos mil referencias:
   material, calibre y aguja son los tres ejes por los que se pide una sutura.
   Usa la navegación por capas nativa de WooCommerce, sin plugin.            */

.sv-finder { background: var(--bg); padding-block: var(--section); border-bottom: 1px solid var(--line); }
.sv-finder h2 { text-align: center; margin: 0 0 0.35rem; }
.sv-finder__sub {
	text-align: center;
	margin: 0 auto 1.75rem;
	max-width: 60ch;
	font-size: var(--fs-data);
	color: var(--muted);
}

.sv-finder__form {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
	max-width: 1060px;
	margin-inline: auto;
}
@media (min-width: 820px) {
	.sv-finder__form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}

.sv-finder__campo { margin: 0; }
.sv-finder__campo label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--fs-data);
	font-weight: 600;
	color: var(--ink);
}
.sv-finder__campo select {
	width: 100%;
	min-height: 46px;
	padding: 0.55rem 2.25rem 0.55rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background-color: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	appearance: none;
	/* Flecha propia: la nativa cambia de forma en cada sistema */
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b626d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.7rem center;
	background-size: 16px;
}
.sv-finder__campo select:hover { border-color: var(--tint-border); }
.sv-finder__campo--accion .btn { width: 100%; min-height: 46px; }
@media (min-width: 820px) {
	.sv-finder__campo--accion .btn { min-width: 150px; }
}

/* ------------------------------------------------------- 7. Banda de datos */

.sv-facts {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	padding-block: 0.85rem;
}
.sv-facts__grid {
	display: grid;
	gap: 0.6rem 1.5rem;
	grid-template-columns: minmax(0, 1fr);
	font-size: var(--fs-data);
	font-weight: 600;
	color: var(--ink);
}
@media (min-width: 640px) { .sv-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px){ .sv-facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sv-facts__item { display: flex; align-items: center; gap: 0.5rem; }
.sv-facts__item svg { flex: none; width: 16px; height: 16px; color: var(--primary); }

/* ------------------------------------------- 8. Tarjetas de línea de material */

.sv-heading {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: flex-end;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	padding-bottom: 0.75rem;
	margin-bottom: 1.5rem;
}
.sv-heading h2 { margin: 0; }
.sv-heading p  { margin: 0.15rem 0 0; font-size: var(--fs-data); color: var(--muted); }

.sv-lines {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sv-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--mat, var(--primary));
	border-radius: var(--radius);
	box-shadow: 0 1px 3px rgb(11 28 48 / 0.05);
	transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.sv-card:hover {
	border-color: var(--primary);
	border-top-color: var(--mat, var(--primary));
	box-shadow: 0 4px 12px rgb(11 28 48 / 0.09);
}

.sv-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.9rem 1rem;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.sv-card__head h3 { margin: 0; font-size: 1rem; color: var(--ink); }
.sv-card__kind { display: block; margin-top: 0.15rem; }

/* Etiqueta de color de hilo: tono oscurecido para que el texto blanco pase AA */
.sv-thread {
	flex: none;
	background: var(--mat-ink, var(--primary));
	color: #fff;
	border-radius: 3px;
	padding: 0.15rem 0.45rem;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.sv-card__body { padding: 1rem; flex-grow: 1; }
/* La etiqueta se queda en una línea y el valor recibe algo más de ancho: con
   'auto 1fr' un valor como "Ligaduras y tejido blando" partía en tres líneas. */
.sv-card__spec {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1.35fr);
	gap: 0.55rem 0.75rem;
	font-size: var(--fs-data);
	align-items: baseline;
}
.sv-card__spec dt { color: var(--muted-2); text-wrap: nowrap; }
.sv-card__spec dd {
	margin: 0;
	text-align: right;
	color: var(--ink);
	font-weight: 600;
	text-wrap: pretty;
}

.sv-card__foot {
	margin-top: auto;
	padding: 0.9rem 1rem;
	border-top: 1px solid var(--line);
	background: var(--page);
}
.sv-card__foot .btn { width: 100%; }

/* ------------------------------------------- 8a. Las 10 imprescindibles

   La lista de la compra: qué hay que tener siempre en el almacén. Es tabla y
   no rejilla de fichas porque el veterinario la lee comparando filas.        */

.sv-core { overflow-x: auto; }

.sv-core__tabla {
	width: 100%;
	min-width: 780px;
	border-collapse: collapse;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.sv-core__tabla thead th {
	text-align: left;
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted-2);
	background: var(--surface);
	padding: 0.65rem 0.85rem;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.sv-core__tabla tbody tr { border-bottom: 1px solid var(--line); }
.sv-core__tabla tbody tr:nth-child(odd) { background: var(--surface-2); }
.sv-core__tabla tbody tr:hover { background: var(--tint-2); }
.sv-core__tabla tbody tr:last-child { border-bottom: 0; }

.sv-core__tabla td,
.sv-core__tabla tbody th {
	padding: 0.7rem 0.85rem;
	vertical-align: middle;
	font-size: var(--fs-data);
	color: var(--muted);
	text-align: left;
	font-weight: 400;
}

.sv-core__num {
	width: 2.5rem;
	font-family: var(--mono);
	color: var(--muted-2);
	text-align: right;
}

.sv-core__tabla tbody th a { text-decoration: none; display: block; }
.sv-core__sku {
	display: block;
	font-family: var(--mono);
	font-size: 0.6875rem;
	color: var(--muted-2);
	margin-bottom: 0.1rem;
}
.sv-core__nombre {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.3;
}
.sv-core__tabla tbody th a:hover .sv-core__nombre { color: var(--primary); }

/* Punto con el color REAL del hilo. El borde hace visible el incoloro. */
.sv-core__punto {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--mat, var(--muted-2));
	border: 1px solid rgb(11 28 48 / 0.18);
}

.sv-core__cal   { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
.sv-core__aguja { font-family: var(--mono); font-size: 0.6875rem; color: var(--muted-2); }
.sv-core__uso   { max-width: 26ch; }

.sv-core__precio {
	font-family: var(--mono);
	font-weight: 600;
	color: var(--ink-deep);
	white-space: nowrap;
	text-align: right;
}
.sv-core__precio .woocommerce-Price-amount { font-size: 0.9375rem; }
.sv-core__precio small { display: block; font-family: var(--font); font-size: 0.625rem; color: var(--muted-2); }

.sv-core__cta { text-align: right; }
.sv-core__cta .btn { min-height: 34px; padding: 0.35rem 0.9rem; font-size: 0.6875rem; }

.sv-core__pie { margin: 1rem 0 0; font-size: var(--fs-data); color: var(--muted-2); }
.sv-core__leyenda { white-space: nowrap; }
.sv-core__leyenda::before {
	content: '';
	display: inline-block;
	width: 9px; height: 9px;
	border-radius: 50%;
	margin-right: 0.3rem;
	vertical-align: baseline;
	border: 1px solid rgb(11 28 48 / 0.18);
}
.sv-core__leyenda[data-hilo="violeta"]::before  { background: var(--mat-violeta); }
.sv-core__leyenda[data-hilo="azul"]::before     { background: var(--mat-azul); }
.sv-core__leyenda[data-hilo="incoloro"]::before { background: var(--mat-incoloro); }

/* Movil: la tabla se apila en fichas etiquetadas, sin scroll lateral */
@media (max-width: 860px) {
	.sv-core { overflow-x: visible; }
	.sv-core__tabla { min-width: 0; border: 0; }
	.sv-core__tabla thead { display: none; }
	.sv-core__tabla tbody, .sv-core__tabla tr, .sv-core__tabla td, .sv-core__tabla tbody th { display: block; width: auto; }
	.sv-core__tabla tbody tr {
		background: #fff !important;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		padding: 0.85rem 1rem;
		margin-bottom: 0.75rem;
		position: relative;
	}
	.sv-core__tabla td, .sv-core__tabla tbody th { padding: 0.2rem 0; }
	.sv-core__num { position: absolute; top: 0.85rem; right: 1rem; width: auto; }
	.sv-core__tabla td[data-label]::before {
		content: attr(data-label) ': ';
		font-family: var(--font);
		font-size: var(--fs-label);
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var(--muted-2);
	}
	.sv-core__uso { max-width: none; }
	.sv-core__precio, .sv-core__cta { text-align: left; }
	.sv-core__precio { margin-top: 0.4rem; }
	.sv-core__cta .btn { width: 100%; margin-top: 0.5rem; }
}

/* ------------------------------------ 8b. Esquema de selección por cirugía

   Es la sección que hace el trabajo comercial: el veterinario que no tiene
   decidido el material entra por el procedimiento, no por el polímero.       */

.sv-section--alt { background: var(--page); border-top: 1px solid var(--line); }

.sv-proc {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.sv-proc__card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem 1.1rem 0.35rem;
}
.sv-proc__card h3 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--ink-deep); }
.sv-proc__nota {
	margin: 0 0 0.85rem;
	font-size: var(--fs-data);
	color: var(--muted-2);
	max-width: 46ch;
}

.sv-proc__tabla { width: 100%; border-collapse: collapse; }
.sv-proc__tabla th {
	text-align: left;
	font-weight: 500;
	font-size: var(--fs-data);
	color: var(--muted);
	padding: 0.6rem 0.75rem 0.6rem 0;
	border-top: 1px solid var(--line);
	vertical-align: top;
	width: 46%;
}
.sv-proc__tabla td {
	padding: 0.6rem 0 0.6rem 0.75rem;
	border-top: 1px solid var(--line);
	text-align: right;
	vertical-align: top;
}

/* Enlace de referencia: nombre legible arriba, referencia SMI en mono debajo.
   El veterinario reconoce el material; el almacén pide por la referencia. */
.sv-reflink {
	display: inline-block;
	text-decoration: none;
	font-size: var(--fs-data);
	font-weight: 600;
	color: var(--ink);
	line-height: 1.35;
}
.sv-reflink:hover { color: var(--primary); }
.sv-reflink:hover .sv-reflink__sku { background: var(--tint); border-color: var(--tint-border); }
.sv-reflink__sku {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--mono);
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--muted-2);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 0.05rem 0.3rem;
	transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

/* Aviso legal de la sección: no es letra pequeña decorativa, delimita
   responsabilidad clínica. Va legible, no en gris de 10 px. */
.sv-disclaimer {
	margin: 1.5rem 0 0;
	padding: 0.85rem 1rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: var(--fs-data);
	color: var(--muted);
	max-width: 92ch;
}
.sv-disclaimer strong { color: var(--ink); }

@media (max-width: 520px) {
	.sv-proc__tabla th, .sv-proc__tabla td { display: block; width: auto; }
	.sv-proc__tabla th { border-top: 1px solid var(--line); padding-bottom: 0.15rem; }
	.sv-proc__tabla td { border-top: 0; padding: 0 0 0.6rem; text-align: left; }
	.sv-reflink__sku { display: inline-block; margin-left: 0.4rem; }
}


/* ------------------------------------------------- 8d. Las dos zonas

   Clinica (pequenos animales) y campo (grandes). El ambito es transversal:
   la misma familia sirve a las dos cambiando calibre y aguja.              */

.sv-zonas {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) { .sv-zonas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sv-zona {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.5rem 1.6rem 1.35rem;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--zona, var(--primary));
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.sv-zona--clinica { --zona: var(--mat-violeta); }
.sv-zona--campo   { --zona: var(--mat-marron); }
.sv-zona:hover {
	border-color: var(--primary);
	border-top-color: var(--zona);
	box-shadow: 0 6px 18px rgb(11 28 48 / 0.10);
	transform: translateY(-2px);
}
.sv-zona h3 { margin: 0.1rem 0 0.35rem; font-size: 1.35rem; color: var(--ink-deep); }
.sv-zona p  { margin: 0 0 0.9rem; font-size: var(--fs-data); color: var(--muted); max-width: 46ch; }
.sv-zona__pie { margin-top: auto; font-size: var(--fs-data); font-weight: 700; color: var(--primary); }
.sv-zona:hover .sv-zona__pie { color: var(--primary-hover); }

/* Cabecera de las paginas de zona */
.sv-zonahead {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(2rem, 4vw, 3.25rem);
}
.sv-zonahead__eyebrow { display: block; margin-bottom: 0.4rem; }
.sv-zonahead h1 { margin: 0 0 0.6rem; }
.sv-zonahead__lede {
	margin: 0 0 1.35rem;
	max-width: 62ch;
	font-size: 1.0625rem;
	color: var(--muted);
}
@media (prefers-reduced-motion: reduce) { .sv-zona:hover { transform: none; } }

/* ------------------------------------------- 9. Páginas de texto y legales */

body:not(.suturas-front) .site-main { background: var(--bg); }

body:not(.suturas-front) .hero-section.is-width-constrained {
	margin-inline: var(--gutter);
	max-width: calc(100% - var(--gutter) * 2);
}
body:not(.suturas-front) .entry-content {
	max-width: 72ch;
	margin-inline: var(--gutter);
}
body:not(.suturas-front) .entry-content > .alignwide,
body:not(.suturas-front) .entry-content > .alignfull,
body:not(.suturas-front) .entry-content > figure { max-width: none; }

body:not(.suturas-front) .entry-content h2 { margin-block: 2.25rem 0.7rem; }
body:not(.suturas-front) .entry-content h3 { margin-block: 1.6rem 0.5rem; }
body:not(.suturas-front) .entry-content ul { padding-left: 1.15rem; }
body:not(.suturas-front) .entry-content li { margin-block: 0.35rem; }
body:not(.suturas-front) .entry-content li::marker { color: var(--primary); }

/* -------------------------------------------------------- 10. WooCommerce */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.85rem;
	transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.woocommerce ul.products li.product:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgb(11 28 48 / 0.09);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.01em;
	padding-top: 0.5rem;
}
.woocommerce ul.products li.product .price {
	font-family: var(--mono);
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink-deep);
}

/* Referencia técnica: es lo que el veterinario busca, va visible en la ficha */
.sv-ref {
	display: inline-block;
	/* La tarjeta de Blocksy es un flex en columna: sin esto el chip se estira */
	align-self: flex-start;
	width: fit-content;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 0.1rem 0.4rem;
	font-size: var(--fs-data);
	color: var(--ink);
}

/* Especificación de aguja en la tarjeta de catálogo */
.sv-needle {
	font-family: var(--mono);
	font-size: 0.6875rem;
	line-height: 1.45;
	color: var(--muted-2);
	margin: 0.35rem 0 0.15rem;
}

/* Estado de stock con etiqueta de texto, nunca sólo color */
.sv-stock { font-size: var(--fs-data); font-weight: 700; }
.sv-stock--in  { color: var(--ok); }
.sv-stock--out { color: var(--warn); }

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--primary);
	color: #fff;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: var(--fs-data);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	min-height: 44px;
	transition: background-color 200ms var(--ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--primary-hover); color: #fff; }

.woocommerce .quantity input.qty {
	min-height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--mono);
}

/* Ficha técnica del producto: tabla con filas cebra, como el catálogo Stitch */
.sv-spec, .woocommerce table.shop_attributes {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-block: 1rem 1.5rem;
}
.sv-spec th, .woocommerce table.shop_attributes th {
	width: 38%;
	text-align: left;
	font-size: var(--fs-data);
	font-weight: 600;
	color: var(--muted-2);
	padding: 0.6rem 0.85rem;
	border-bottom: 1px solid var(--line);
	font-style: normal;
}
.sv-spec td, .woocommerce table.shop_attributes td {
	padding: 0.6rem 0.85rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: var(--fs-data);
	font-style: normal;
}
.sv-spec tr:nth-child(odd) th,
.sv-spec tr:nth-child(odd) td,
.woocommerce table.shop_attributes tr:nth-child(odd) th,
.woocommerce table.shop_attributes tr:nth-child(odd) td { background: var(--surface-2); }
.sv-spec tr:last-child th, .sv-spec tr:last-child td { border-bottom: 0; }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info { border-top-color: var(--primary); background: var(--surface); }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before { color: var(--primary); }

.woocommerce-Price-taxLabel,
.woocommerce .product .price small.woocommerce-price-suffix {
	font-family: var(--font);
	font-size: 0.6875rem;
	font-weight: 400;
	color: var(--muted-2);
}

/* ------------------------------------------------------------------ 11. Pie */

footer.ct-footer { display: none; }

.suturas-legal { background: var(--ink); color: #c8d3e0; }
.suturas-legal__inner {
	max-width: var(--maxw);
	margin-inline: auto;
	padding: clamp(1.75rem, 3.5vw, 2.5rem) var(--gutter);
}
.suturas-legal__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}
.suturas-legal__list a {
	color: #fff;
	font-size: var(--fs-data);
	font-weight: 600;
	text-decoration: none;
}
.suturas-legal__list a:hover { color: var(--tint-border); text-decoration: underline; }
.suturas-legal__note { font-size: 0.75rem; margin: 0; color: #9fb0c4; }

/* --------------------------------------------------------- 12. Movimiento */

@keyframes sv-rise { from { opacity: 0; transform: translateY(0.9rem); } }

.sv-hero__grid > *  { animation: sv-rise 620ms var(--ease) backwards; }
.sv-hero__figure    { animation-delay: 110ms; }

@media (prefers-reduced-motion: reduce) {
	.sv-hero__grid > * { animation: none; }
	* { transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------- 13. Responsive */

@media (max-width: 640px) {
	.sv-hero__actions .btn { width: 100%; }
	.sv-card__spec { grid-template-columns: 1fr auto; }
}
