/* ==========================================================================
   Base: fuente, tokens, reset, tipografía, botones, formularios y utilidades

   Identidad (kit de marca): logotipo monocromo con contraste de peso fino/negrita, Inter.
   Paleta (wireframes): ink · navy · royal · gold. Todo color nuevo es una variación de estos.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Paleta */
	--ink: #0A0A0C;
	--paper: #FFFFFF;
	--bg: #F7F8FA;
	--surface: #F1F3F7;          /* bg algo más profundo, con matiz navy */
	--navy: #162642;
	--navy-2: #1E3358;
	--royal: #416DB4;
	--royal-deep: #345A98;
	--royal-soft: #E8EEF8;
	--gold: #DABF89;
	--gold-ink: #8A6A2E;
	--gold-soft: #F6F0E3;
	--sale: #B23A48;      /* Rebajas: granate de vino, solo para descuentos */
	--sale-ink: #8E2B37;
	--sale-soft: #FBF1EF;
	--sale-line: #F1D9D4;
	--muted: #565B64;
	--faint: #6B717B;
	--line: #E6E7EA;
	--line-strong: #CCCED4;
	--ok: #2F6B3F;
	--ok-soft: #E9F3EC;
	--err: #B42318;
	--err-soft: #FCEFEE;

	/* Forma */
	--r-xs: 6px;
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-pill: 999px;

	/* Elevación (sombras teñidas de navy) */
	--shadow-xs: 0 1px 2px rgba(10, 10, 12, .05);
	--shadow-sm: 0 1px 2px rgba(22, 38, 66, .06), 0 8px 24px -10px rgba(22, 38, 66, .14);
	--shadow-md: 0 2px 4px rgba(22, 38, 66, .06), 0 22px 44px -16px rgba(22, 38, 66, .22);
	--shadow-lg: 0 40px 90px -28px rgba(22, 38, 66, .4);
	--ring: 0 0 0 3px rgba(65, 109, 180, .32);

	/* Movimiento */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--t: .2s var(--ease);

	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--wrap: 1320px;
	--gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	font-optical-sizing: auto;
	font-feature-settings: "cv11", "ss03";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--gold-soft); color: var(--ink); }

h1, h2, h3, h4, h5 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Cifras tabulares: precios, contadores y puntuaciones alinean bien */
.num, .price, .cnow, .count, .ct { font-variant-numeric: tabular-nums; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Iconos del sprite */
.i {
	width: 1em;
	height: 1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Accesibilidad */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: 12px; top: -64px;
	z-index: 300;
	background: var(--navy);
	color: #fff;
	padding: 12px 18px;
	border-radius: var(--r-sm);
	font-size: 14px;
	transition: top .15s;
}
.skip-link:focus { top: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Eyebrow: etiqueta pequeña en mayúsculas con trazo dorado */
.ey {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold-ink);
	font-weight: 600;
	margin-bottom: 14px;
}
.ey::before { content: ""; width: 24px; height: 1px; background: var(--gold); }

/* Botones */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	padding: 0 28px;
	border-radius: var(--r-sm);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: .005em;
	border: 1px solid transparent;
	white-space: nowrap;
	transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.btn .i { font-size: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.solid { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn.solid:hover { background: var(--ink); box-shadow: var(--shadow-md); }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(218, 191, 137, .9); }
.btn.gold:hover { background: #E6CFA3; }
.btn.ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn.block { width: 100%; }

/* Formularios */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
	font: inherit;
	color: var(--ink);
}
.field {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	background: var(--paper);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	transition: border-color var(--t), box-shadow var(--t);
}
.field:focus { outline: none; border-color: var(--royal); box-shadow: var(--ring); }

/* Casillas y radios propios (la pantalla de filtros las reutiliza) */
.check {
	position: relative;
	display: inline-flex;
	flex: none;
	width: 18px; height: 18px;
	border: 1.5px solid var(--line-strong);
	border-radius: 5px;
	background: var(--paper);
	transition: background var(--t), border-color var(--t);
}
.check::after {
	content: "";
	position: absolute;
	left: 5px; top: 1.5px;
	width: 5px; height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s var(--ease);
}
.is-on > .check, .check.is-on { background: var(--navy); border-color: var(--navy); }
.is-on > .check::after, .check.is-on::after { transform: rotate(45deg) scale(1); }
.check.round { border-radius: 50%; }
.check.round::after { left: 5px; top: 5px; width: 6px; height: 6px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.is-on > .check.round::after { transform: scale(1); }

/* Secciones */
.sec { padding-block: 88px; }
.sec-flush { padding-top: 0; }
.sec-tight { padding-block: 48px 88px; }

.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
}
.sec-head .ey { margin-bottom: 12px; }
.sec-head h2 {
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 300;
	letter-spacing: -.03em;
	line-height: 1.05;
}
.sec-head h2 b { font-weight: 600; }
.sec-head > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--royal);
	white-space: nowrap;
	padding-bottom: 6px;
}
.sec-head > a .i { transition: transform var(--t); }
.sec-head > a:hover .i { transform: translateX(3px); }

/* Cabecera de páginas genéricas */
.page-head { background: var(--bg); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 300; line-height: 1.04; letter-spacing: -.035em; }

/* Contenido editorial */
.entry { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.entry-wide { max-width: none; }
.entry h2, .entry h3 { font-weight: 300; margin: 1.8em 0 .6em; line-height: 1.2; letter-spacing: -.02em; }
.entry h2 { font-size: 32px; }
.entry p, .entry ul, .entry ol { margin: 0 0 1.3em; }
.entry:not(.entry-wide) a:not(.btn):not(.button):not(.gbtn):not(.prod-grid a) { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.entry-meta { font-size: 13px; color: var(--faint); margin: 0 0 24px; }
.entry-hero { width: 100%; border-radius: var(--r-md); margin-bottom: 36px; }
.empty { color: var(--muted); }

/* Paginación estándar de WordPress */
.pagination, .navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
	min-width: 44px; height: 44px;
	display: inline-grid; place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	font-size: 14px; font-weight: 500;
	padding: 0 14px;
	transition: border-color var(--t), background var(--t);
}
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
a.page-numbers:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 900px) {
	:root { --gutter: 24px; }
	.sec { padding-block: 64px; }
}
@media (max-width: 560px) {
	:root { --gutter: 18px; }
	.sec { padding-block: 52px; }
	.sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
}
