/* Base: reset, tipografía y utilidades */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-fg);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	line-height: 1.5;
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, video, svg, picture { display: block; max-width: 100%; height: auto; }
img { background: var(--c-soft); }
.logo img, .icon { background: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--c-fg); outline-offset: 2px; }
/* Contenedores que reciben el foco por código (p. ej. la tabla de la cesta al quitar un producto): sin recuadro. */
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--c-fg); color: var(--c-bg); }
dialog { color: inherit; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 999; background: var(--c-fg); color: var(--c-bg); padding: 10px 14px; font-size: var(--fs-sm); }
.skip-link:focus { top: 8px; }
.muted { color: var(--c-muted); }

.kicker, .eyebrow {
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
}

/* Enlaces con subrayado que se dibuja */
.link-underline {
	position: relative;
	display: inline-flex; align-items: center; gap: 6px;
	font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking);
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size var(--t) var(--ease);
	padding-bottom: 2px;
}
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Botones */
.btn, .button, button.button, a.button, input.button, .wc-block-components-button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 28px;
	background: var(--c-fg); color: var(--c-bg);
	border: 1px solid var(--c-fg); border-radius: 0;
	font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking);
	line-height: 1; text-align: center; cursor: pointer;
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.btn:hover, .button:hover, #place_order:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn--ghost { background: transparent; color: var(--c-fg); }
.btn--ghost:hover { background: var(--c-fg); color: var(--c-bg); }
.btn--light { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn--block { width: 100%; }
.button:disabled, .button.disabled, .btn[disabled] { opacity: .35; cursor: not-allowed; }
.button.loading, .btn.loading { opacity: .6; pointer-events: none; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px;
	position: relative;
	transition: opacity var(--t-fast);
}
.icon-btn:hover { opacity: .6; }

/* Formularios */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], select, textarea, .select2-container .select2-selection--single {
	width: 100%; min-height: 48px; padding: 12px 14px;
	background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 0;
	font-size: var(--fs-base);
	transition: border-color var(--t-fast);
	-webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-fg); }
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
label { font-size: var(--fs-sm); }

/* Textos largos (páginas legales, about, FAQ) */
.prose { max-width: 760px; font-size: var(--fs-md); line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 2.2em; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

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