/*
Theme Name:   Wolf (Blocksy child)
Description:  Tema hijo de Blocksy para Armería Wolf.
Template:     blocksy
Version:      0.5.3
Text Domain:  wolf-child
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--wolf-accent: #0675e9;
	--wolf-accent-dark: #0458b5;
	--wolf-black: #111111;
	--wolf-ink: #1c1c1c;
	--wolf-muted: #5f5b57;
	--wolf-line: #e2e0dc;
	--wolf-sand: #f4f3f1;
	--wolf-white: #ffffff;
	--wolf-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
	--wolf-radius: 6px;
}

/* ==========================================================================
   Tipografía
   ========================================================================== */
h1, h2, h3, h4,
.wolf-display,
.woocommerce-loop-product__title,
.product_title {
	font-family: var(--wolf-display);
	font-weight: 700;
	letter-spacing: .01em;
	text-transform: uppercase;
	line-height: 1.05;
}

.wolf-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	font-family: var(--wolf-display);
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wolf-accent);
}

/* ==========================================================================
   Barra superior
   ========================================================================== */
.wolf-topbar {
	background: var(--wolf-black);
	color: #d9d6d2;
	font-size: .82rem;
}
.wolf-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 22px;
	max-width: 1290px;
	margin: 0 auto;
	padding: 8px 16px;
	text-align: center;
}
.wolf-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.wolf-topbar a:hover { color: #6fb2ff; }

/* ==========================================================================
   Botones
   ========================================================================== */
.wp-block-button__link,
.woocommerce .button,
.woocommerce button.button,
.single_add_to_cart_button {
	border-radius: var(--wolf-radius);
	font-weight: 700;
	letter-spacing: .02em;
}
.single_add_to_cart_button {
	min-height: 52px;
	padding-inline: 32px;
	font-size: 1.05rem;
	text-transform: uppercase;
}
.is-style-wolf-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}
.is-style-wolf-outline .wp-block-button__link:hover { background: #fff; color: var(--wolf-black); }

/* ==========================================================================
   Hero
   ========================================================================== */
.wolf-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: min(78vh, 640px);
	padding: clamp(56px, 9vw, 110px) 16px;
	background:
		radial-gradient(ellipse at 85% 20%, rgba(6, 117, 233, .32), transparent 55%),
		linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 60%, #071a30 100%);
}
.wolf-hero > * { width: 100%; }
.wolf-hero h1 {
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	max-width: 14ch;
	margin-bottom: 14px;
}
.wolf-hero p { max-width: 46ch; font-size: 1.1rem; color: #e8e5e1; }

/* ==========================================================================
   Accesos por calibre
   ========================================================================== */
.wolf-calibres {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
}
.wolf-calibres a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 12px;
	background: var(--wolf-white);
	border: 1px solid var(--wolf-line);
	border-radius: var(--wolf-radius);
	color: var(--wolf-ink);
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wolf-calibres a strong {
	font-family: var(--wolf-display);
	font-size: 1.9rem;
	line-height: 1;
}
.wolf-calibres a span { margin-top: 4px; font-size: .8rem; color: var(--wolf-muted); }
.wolf-calibres a:hover {
	border-color: var(--wolf-accent);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

/* ==========================================================================
   Pasos "Cómo comprar"
   ========================================================================== */
.wolf-steps {
	counter-reset: wolf-step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wolf-steps li {
	counter-increment: wolf-step;
	position: relative;
	padding: 22px 20px 20px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--wolf-radius);
}
.wolf-steps li::before {
	content: counter(wolf-step, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	font-family: var(--wolf-display);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wolf-accent);
}
.wolf-steps strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.05rem; }
.wolf-steps span { color: #bdb8b2; font-size: .93rem; }

/* ==========================================================================
   Confianza
   ========================================================================== */
.wolf-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}
.wolf-trust > div { padding: 20px; border-top: 3px solid var(--wolf-accent); background: var(--wolf-white); }
.wolf-trust strong { display: block; font-family: var(--wolf-display); font-size: 1.35rem; text-transform: uppercase; }
.wolf-trust span { color: var(--wolf-muted); font-size: .93rem; }

/* ==========================================================================
   Tarjetas de producto
   ========================================================================== */
ul.products li.product {
	background: var(--wolf-white);
	border: 1px solid var(--wolf-line);
	border-radius: var(--wolf-radius);
	padding: 14px;
	transition: box-shadow .15s ease, border-color .15s ease;
}
ul.products li.product:hover { border-color: #cfcac4; box-shadow: 0 10px 24px rgba(0, 0, 0, .07); }
ul.products li.product .woocommerce-loop-product__title { font-size: 1.15rem; }
ul.products li.product .price { color: var(--wolf-black); font-weight: 700; font-size: 1.15rem; }
ul.products li.product .wolf-loop-btn { width: 100%; }

.stock.out-of-stock { color: var(--wolf-accent); font-weight: 700; }
.stock.in-stock { color: #1f6b3a; font-weight: 600; }

/* ==========================================================================
   Ficha de producto
   ========================================================================== */
.single-product .product_title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.single-product .summary .price { font-size: 1.8rem; font-weight: 700; color: var(--wolf-black); }
.single-product .wolf-price-note { margin: -6px 0 14px; color: var(--wolf-muted); font-size: .88rem; }
.woocommerce-product-attributes th { width: 40%; font-weight: 600; }
.woocommerce-product-attributes tr:nth-child(odd) { background: var(--wolf-sand); }

/* ==========================================================================
   Secciones
   ========================================================================== */
.wolf-section { padding: clamp(48px, 7vw, 88px) 16px; }
.wolf-section > h2:first-child,
.wolf-section > .wolf-eyebrow + h2 { margin-bottom: 24px; }
.wolf-section-dark { background: var(--wolf-black); color: #e8e5e1; }
.wolf-section-dark h2, .wolf-section-dark h3 { color: #fff; }
.wolf-section-sand { background: var(--wolf-sand); }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 689px) {
	.wolf-topbar__inner { font-size: .76rem; gap: 4px 14px; }
	.wolf-topbar .wolf-hide-sm { display: none; }
	.wolf-calibres { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.wolf-calibres a { min-height: 78px; }
	.wolf-calibres a strong { font-size: 1.45rem; }
	.wolf-calibres a span { display: none; }
}

/* ==========================================================================
   v0.3 · Correcciones de diseño
   ========================================================================== */

/* Eyebrows: en bloque, alineados con el contenido de su sección */
.wolf-eyebrow { display: block; letter-spacing: .12em; }

/* Títulos en secciones oscuras: también el h1 */
.wolf-section-dark h1,
.wolf-hero h1 { color: #fff; }

/* --------------------------------------------------------------------------
   Botones: Barlow Condensed, 16px arriba/abajo y 32px a los lados
   -------------------------------------------------------------------------- */
:root {
	--theme-button-padding: 16px 32px;
	--theme-button-min-height: 0;
	--theme-button-font-family: var(--wolf-display);
	--theme-button-font-weight: 600;
	--theme-button-font-size: 1.05rem;
	--theme-button-line-height: 1.2;
	--theme-button-letter-spacing: .03em;
}
.wp-block-button__link,
.wp-element-button,
.button,
button.button,
.single_add_to_cart_button,
.ct-button,
input[type="submit"],
.wolf-btn,
.wolf-btn--ghost,
.wolf-wa-btn,
.wolf-loop-btn,
.wolf-footer__cta-btn {
	padding: 16px 32px !important;
	min-height: 0 !important;
	font-family: var(--wolf-display) !important;
	font-weight: 600 !important;
	font-size: 1.05rem !important;
	line-height: 1.2 !important;
	letter-spacing: .03em;
}
.wolf-btn--light { color: #fff !important; border-color: #fff !important; }
.wolf-btn--light:hover { background: #fff !important; color: var(--wolf-black) !important; }

/* --------------------------------------------------------------------------
   Hero con palabra rotativa
   -------------------------------------------------------------------------- */
.wolf-hero2 {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(82vh, 680px);
	padding: clamp(64px, 9vw, 120px) 0;
	color: #e8e5e1;
	background:
		radial-gradient(ellipse at 85% 20%, rgba(6, 117, 233, .32), transparent 55%),
		linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 60%, #071a30 100%);
}
.wolf-hero2__bg { position: absolute; inset: 0; z-index: -2; }
.wolf-hero2__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.08);
	transition: opacity 1.2s ease, transform 7s ease-out;
}
.wolf-hero2__slide.is-active { opacity: 1; transform: scale(1); }
/* Oscurecido para leer el texto sobre las fotos (más oscuro a la izquierda) */
.wolf-hero2.has-images::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(8, 8, 8, .88) 0%, rgba(8, 8, 8, .6) 50%, rgba(8, 8, 8, .25) 100%);
}
.wolf-hero2__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	text-align: left;
}
.wolf-hero2 .wolf-eyebrow { color: #6fb2ff; margin: 0 0 14px; }
.wolf-hero2__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(2.6rem, 7vw, 5.4rem);
	line-height: .95;
	letter-spacing: -.01em;
}
.wolf-hero2__rest { display: block; }
.wolf-hero2__text { max-width: 46ch; margin: 0 0 28px; font-size: 1.1rem; color: #e8e5e1; }
.wolf-hero2__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Palabra rotativa: entra desde arriba y sale hacia abajo */
.wolf-rotator {
	position: relative;
	display: inline-block;
	height: 1.08em;
	overflow: hidden;
	vertical-align: bottom;
	transition: width .45s cubic-bezier(.2, .7, .2, 1);
	/* Rojo más claro sobre fondo oscuro para que contraste */
}
.wolf-rotator__word {
	position: absolute;
	top: 0;
	left: 0;
	white-space: nowrap;
	transform: translateY(-110%);
	opacity: 0;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
}
.wolf-rotator__word.is-active { position: relative; transform: none; opacity: 1; }
.wolf-rotator__word.is-leaving { transform: translateY(110%); opacity: 0; }

/* --------------------------------------------------------------------------
   Por qué comprar en Wolf: íconos
   -------------------------------------------------------------------------- */
.wolf-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: rgba(6, 117, 233, .08);
	color: var(--wolf-accent);
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.wolf-trust > div:hover .wolf-trust__icon { background: var(--wolf-accent); color: #fff; transform: translateY(-2px); }
.wolf-trust span.wolf-trust__icon { color: var(--wolf-accent); }
.wolf-trust > div:hover span.wolf-trust__icon { color: #fff; }

/* --------------------------------------------------------------------------
   Fotos de producto completas (sin recortar) sobre fondo blanco
   -------------------------------------------------------------------------- */
ul.products li.product .ct-media-container,
ul.products li.product a.woocommerce-LoopProduct-link > img,
.woocommerce-product-gallery .ct-media-container,
.woocommerce-product-gallery__image {
	background: #fff;
}
ul.products li.product .ct-media-container img,
ul.products li.product a.woocommerce-LoopProduct-link > img,
.woocommerce-product-gallery img,
.woocommerce-product-gallery__image img {
	object-fit: contain !important;
	padding: 6%;
	background: #fff;
}

@media (max-width: 689px) {
	.wolf-hero2 { min-height: 0; }
	.wolf-hero2__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
	.wolf-hero2__actions > * { flex: 1 1 100%; text-align: center; }
}

/* ==========================================================================
   v0.3.1
   ========================================================================== */

/* Botones: Barlow en mayúsculas y con menos interletrado */
.wp-block-button__link,
.wp-element-button,
.button,
button.button,
.single_add_to_cart_button,
.ct-button,
input[type="submit"],
.wolf-btn,
.wolf-btn--ghost,
.wolf-wa-btn,
.wolf-loop-btn,
.wolf-footer__cta-btn {
	text-transform: uppercase;
	letter-spacing: .01em !important;
}

/* Hero a todo el ancho de la pantalla */
.wolf-hero2 {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
html { overflow-x: clip; }

/* Títulos con degradé: rojo que oscurece hacia abajo, blanco que pasa a gris */
.wolf-rotator__word {
	background: linear-gradient(180deg, #6db5ff 0%, #0675e9 55%, #03407f 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	padding-bottom: .04em;
}
.wolf-hero2__rest {
	background: linear-gradient(180deg, #ffffff 0%, #f1efec 50%, #a9a5a0 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* --------------------------------------------------------------------------
   Mosaico de categorías
   -------------------------------------------------------------------------- */
.wolf-cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.wolf-cats__item {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--wolf-radius);
	background: radial-gradient(ellipse at 70% 30%, #2b2b2b 0%, #121212 70%);
	text-decoration: none;
	isolation: isolate;
}
.wolf-cats__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.wolf-cats__item.is-photo .wolf-cats__img { object-fit: cover; }
/* Sin foto propia: el producto recortado flota sobre el fondo oscuro */
.wolf-cats__item.is-product .wolf-cats__img {
	object-fit: contain;
	padding: 10% 12% 22%;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55));
	mix-blend-mode: normal;
}
.wolf-cats__item::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .15) 45%, transparent 70%);
}
.wolf-cats__label {
	position: absolute;
	left: 22px;
	bottom: 18px;
	z-index: 2;
	font-family: var(--wolf-display);
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}
.wolf-cats__label::after {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-top: 10px;
	background: var(--wolf-accent);
	transition: width .3s ease;
}
.wolf-cats__label small {
	display: block;
	margin-top: 6px;
	font-family: Inter, sans-serif;
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: none;
	color: #cfcac4;
}
.wolf-cats__item:hover .wolf-cats__img { transform: scale(1.06); }
.wolf-cats__item:hover .wolf-cats__label::after { width: 72px; }

@media (max-width: 899px) {
	.wolf-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 499px) {
	.wolf-cats { grid-template-columns: 1fr; }
	.wolf-cats__item { aspect-ratio: 16 / 8; }
}

/* ==========================================================================
   v0.4 · Identidad nueva: azul #0675E9 + negro
   ========================================================================== */
:root {
	--wolf-black: #070707;
	/* Paleta de Blocksy (por si en Personalizar quedó el rojo anterior) */
	--theme-palette-color-1: #0675e9 !important;
	--theme-palette-color-2: #0458b5 !important;
	--theme-palette-color-4: #070707 !important;
}
::selection { background: #0675e9; color: #fff; }
