/*
Theme Name: Vitrina
Theme URI: https://mitiendauy.com/vitrina
Author: MiTiendaUY
Author URI: https://mitiendauy.com
Description: Plantilla de tienda online para WordPress + WooCommerce, pensada para Uruguay y Latinoamérica. Cobrá con Mercado Pago, cambiá banners, títulos, colores y secciones desde el Personalizador, sin tocar código. Incluye asistente de instalación y contenido de ejemplo.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitrina
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
WC requires at least: 7.0
WC tested up to: 9.9
*/

/* ==========================================================================
   1. Variables (los colores reales se inyectan desde el Personalizador)
   ========================================================================== */
:root {
	--vit-primario: #2d6cdf;
	--vit-primario-oscuro: #1f52ad;
	--vit-secundario: #0f172a;
	--vit-texto: #1f2933;
	--vit-texto-suave: #6b7280;
	--vit-borde: #e5e7eb;
	--vit-fondo: #ffffff;
	--vit-fondo-suave: #f6f7f9;
	--vit-oferta: #d92d20;
	--vit-ok: #12805c;
	--vit-radio: 14px;
	--vit-radio-sm: 8px;
	--vit-sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
	--vit-ancho: 1200px;
	--vit-fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--vit-fuente-titulos: var(--vit-fuente);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--vit-fuente);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vit-texto);
	background: var(--vit-fondo);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vit-primario); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--vit-fuente-titulos);
	color: var(--vit-secundario);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.02em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.vit-contenedor {
	width: 100%;
	max-width: var(--vit-ancho);
	margin: 0 auto;
	padding: 0 20px;
}

.vit-seccion { padding: 56px 0; }
.vit-seccion--suave { background: var(--vit-fondo-suave); }

.vit-seccion__cabecera { text-align: center; margin-bottom: 32px; }
.vit-seccion__cabecera p { color: var(--vit-texto-suave); max-width: 640px; margin: 0 auto; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	background: #fff; color: var(--vit-secundario); clip: auto; clip-path: none;
	display: block; height: auto; left: 8px; top: 8px; padding: 12px 20px;
	width: auto; z-index: 100000; border-radius: var(--vit-radio-sm);
	box-shadow: var(--vit-sombra);
}

/* ==========================================================================
   3. Botones
   ========================================================================== */
.vit-boton,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--vit-primario);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px 26px;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	text-decoration: none;
}
.vit-boton:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--vit-primario-oscuro);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -10px var(--vit-primario);
}
.vit-boton--fantasma {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .85);
}
.vit-boton--fantasma:hover { background: rgba(255, 255, 255, .15); box-shadow: none; }
.vit-boton--linea {
	background: transparent;
	color: var(--vit-primario);
	border: 2px solid var(--vit-primario);
}
.vit-boton--linea:hover { background: var(--vit-primario); color: #fff; }
.vit-boton--grande { padding: 16px 34px; font-size: 1.05rem; }

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--vit-primario);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit.alt:hover { background: var(--vit-primario-oscuro); }

/* ==========================================================================
   4. Barra de anuncios
   ========================================================================== */
.vit-anuncio {
	background: var(--vit-secundario);
	color: #fff;
	text-align: center;
	font-size: .85rem;
	padding: 9px 20px;
	letter-spacing: .01em;
}
.vit-anuncio a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   5. Cabecera
   ========================================================================== */
.vit-cabecera {
	background: var(--vit-fondo);
	border-bottom: 1px solid var(--vit-borde);
	position: sticky;
	top: 0;
	z-index: 200;
}
.vit-cabecera__fila {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 74px;
}
.vit-marca { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.vit-marca img { max-height: 52px; width: auto; }
.vit-marca__nombre {
	font-size: 1.25rem; font-weight: 800; color: var(--vit-secundario);
	letter-spacing: -.03em; margin: 0; line-height: 1.1;
}
.vit-marca__nombre a { color: inherit; text-decoration: none; }
.vit-marca__lema { font-size: .78rem; color: var(--vit-texto-suave); margin: 0; }

.vit-nav { margin-left: auto; }
.vit-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.vit-nav li { position: relative; }
.vit-nav a {
	display: block; padding: 10px 14px; color: var(--vit-texto);
	font-weight: 500; font-size: .95rem; border-radius: var(--vit-radio-sm);
}
.vit-nav a:hover { background: var(--vit-fondo-suave); color: var(--vit-primario); text-decoration: none; }
.vit-nav .current-menu-item > a { color: var(--vit-primario); font-weight: 600; }
.vit-nav ul ul {
	display: none; position: absolute; top: 100%; left: 0; background: #fff;
	border: 1px solid var(--vit-borde); border-radius: var(--vit-radio-sm);
	box-shadow: var(--vit-sombra); min-width: 210px; padding: 6px; flex-direction: column;
	align-items: stretch; z-index: 50;
}
.vit-nav li:hover > ul, .vit-nav li:focus-within > ul { display: flex; }

.vit-acciones { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.vit-icono-boton {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; color: var(--vit-secundario);
	background: transparent; border: 0; cursor: pointer;
}
.vit-icono-boton:hover { background: var(--vit-fondo-suave); color: var(--vit-primario); text-decoration: none; }
.vit-icono-boton svg { width: 22px; height: 22px; }
.vit-contador {
	position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px;
	padding: 0 5px; border-radius: 999px; background: var(--vit-primario); color: #fff;
	font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.vit-hamburguesa { display: none; }

/* Buscador desplegable */
.vit-buscador { display: none; padding: 0 0 18px; }
.vit-buscador.esta-abierto { display: block; }
.vit-buscador form { display: flex; gap: 8px; }
.vit-buscador input[type="search"] { flex: 1; }

/* Menú móvil */
.vit-menu-movil {
	display: none; position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 42, .5);
}
.vit-menu-movil.esta-abierto { display: block; }
.vit-menu-movil__panel {
	background: #fff; width: min(340px, 86%); height: 100%; padding: 20px;
	overflow-y: auto; box-shadow: var(--vit-sombra);
}
.vit-menu-movil ul { list-style: none; margin: 16px 0 0; padding: 0; }
.vit-menu-movil li { border-bottom: 1px solid var(--vit-borde); }
.vit-menu-movil a { display: block; padding: 13px 4px; color: var(--vit-texto); font-weight: 500; }
.vit-menu-movil ul ul { margin: 0 0 8px 14px; }
.vit-menu-movil ul ul li { border: 0; }
.vit-menu-movil__cerrar { float: right; font-size: 1.6rem; line-height: 1; border: 0; background: none; cursor: pointer; color: var(--vit-texto-suave); }

/* ==========================================================================
   6. Hero / banner principal
   ========================================================================== */
.vit-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 460px;
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}
.vit-hero--alto { min-height: 620px; }
.vit-hero--bajo { min-height: 340px; }
.vit-hero__lamina::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,var(--vit-hero-velo,.5)) 0%, rgba(0,0,0,calc(var(--vit-hero-velo,.5) * .55)) 100%);
}

/* --- Carrusel del banner ------------------------------------------------ */
.vit-hero__pista { position: relative; width: 100%; min-height: inherit; display: flex; }
.vit-hero__lamina {
	position: relative;
	flex: 0 0 100%;
	min-height: inherit;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
}
/* Con un solo banner no hay nada que apilar. */
.vit-hero--carrusel .vit-hero__pista { display: block; }
.vit-hero--carrusel .vit-hero__lamina { position: absolute; inset: 0; }
.vit-hero--carrusel .vit-hero__lamina.esta-activa { position: relative; }

/* Fundido: la activa se ve, el resto espera detrás. */
.vit-hero--fundido .vit-hero__lamina {
	opacity: 0; visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}
.vit-hero--fundido .vit-hero__lamina.esta-activa { opacity: 1; visibility: visible; }

/* Deslizar: entran desde un costado según hacia dónde va. */
.vit-hero--deslizar .vit-hero__lamina {
	opacity: 0; visibility: hidden; transform: translateX(28px);
	transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.vit-hero--deslizar .vit-hero__lamina.viene-de-atras { transform: translateX(-28px); }
.vit-hero--deslizar .vit-hero__lamina.esta-activa {
	opacity: 1; visibility: visible; transform: none;
}

.vit-hero__flecha {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 3; display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4);
	color: #fff; backdrop-filter: blur(4px);
	transition: background .15s ease, transform .15s ease;
}
.vit-hero__flecha:hover { background: rgba(255, 255, 255, .32); }
.vit-hero__flecha:active { transform: translateY(-50%) scale(.94); }
.vit-hero__flecha svg { width: 22px; height: 22px; }
.vit-hero__flecha--antes { left: 18px; }
.vit-hero__flecha--despues { right: 18px; }

.vit-hero__puntos {
	position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px;
	display: flex; justify-content: center; gap: 9px;
}
.vit-hero__punto {
	width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .7);
	transition: width .2s ease, background .2s ease;
}
.vit-hero__punto.esta-activa { background: #fff; width: 30px; border-radius: 999px; }

/* Quien pidió menos movimiento no recibe animaciones. */
@media (prefers-reduced-motion: reduce) {
	.vit-hero--carrusel .vit-hero__lamina { transition: none; }
}
.vit-hero__contenido { position: relative; max-width: 620px; padding: 70px 0; }
.vit-hero--centro .vit-hero__contenido { margin: 0 auto; text-align: center; }
.vit-hero--derecha .vit-hero__contenido { margin-left: auto; text-align: right; }
.vit-hero__etiqueta {
	display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px;
	font-size: .8rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .02em;
}
.vit-hero__titulo {
	color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 14px;
	text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.vit-hero__texto { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .95; margin-bottom: 26px; }
.vit-hero__botones { display: flex; gap: 12px; flex-wrap: wrap; }
.vit-hero--centro .vit-hero__botones { justify-content: center; }
.vit-hero--derecha .vit-hero__botones { justify-content: flex-end; }

/* ==========================================================================
   7. Barra de beneficios
   ========================================================================== */
.vit-beneficios { border-bottom: 1px solid var(--vit-borde); background: var(--vit-fondo); }
.vit-beneficios__grilla {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px; padding: 26px 0;
}
.vit-beneficio { display: flex; gap: 14px; align-items: flex-start; padding: 6px 10px; }
.vit-beneficio__icono {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
	background: color-mix(in srgb, var(--vit-primario) 12%, transparent);
	color: var(--vit-primario); display: flex; align-items: center; justify-content: center;
	font-size: 1.25rem;
}
.vit-beneficio__icono svg { width: 22px; height: 22px; }
.vit-beneficio h3 { font-size: .95rem; margin: 0 0 2px; }
.vit-beneficio p { font-size: .85rem; color: var(--vit-texto-suave); margin: 0; }

/* ==========================================================================
   8. Categorías destacadas
   ========================================================================== */
.vit-categorias {
	display: grid; gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.vit-categoria {
	position: relative; display: block; border-radius: var(--vit-radio); overflow: hidden;
	min-height: 220px; background: var(--vit-fondo-suave); box-shadow: var(--vit-sombra);
}
.vit-categoria img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s ease; }
.vit-categoria:hover img { transform: scale(1.06); }
.vit-categoria__capa {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 220px; padding: 20px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
	color: #fff;
}
.vit-categoria__capa strong { font-size: 1.15rem; font-weight: 700; }
.vit-categoria__capa span { font-size: .82rem; opacity: .85; }
.vit-categoria:hover { text-decoration: none; }

/* ==========================================================================
   9. Grilla de productos (WooCommerce)
   ========================================================================== */
.woocommerce ul.products,
.vit-productos ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	width: 100% !important; margin: 0 !important; float: none !important;
	background: var(--vit-fondo); border: 1px solid var(--vit-borde);
	border-radius: var(--vit-radio); overflow: hidden; padding: 0 0 16px;
	display: flex; flex-direction: column; position: relative;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.woocommerce ul.products li.product:hover {
	box-shadow: var(--vit-sombra); transform: translateY(-3px); border-color: transparent;
}
/* La foto entra completa dentro de un cuadrado, no se recorta.
   Un catálogo real mezcla fotos verticales, horizontales y cuadradas: con
   recorte al centro, las verticales se amplían y quedan cortadas. Así todas
   ocupan el mismo lugar y se ven enteras, como en los marketplaces. */
.woocommerce ul.products li.product a img {
	margin: 0 0 12px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--vit-fondo);
	padding: 10px;
	width: 100%;
}

/* Misma regla en la ficha del producto, para que no cambie de criterio. */
.woocommerce div.product div.images img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--vit-fondo);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: .98rem !important; font-weight: 600; padding: 0 16px !important;
	margin: 0 0 6px !important; color: var(--vit-texto); line-height: 1.35;
}
.woocommerce ul.products li.product .price {
	padding: 0 16px; font-size: 1.1rem !important; color: var(--vit-secundario) !important;
	font-weight: 700; margin: 0 0 12px !important; display: block;
}
.woocommerce ul.products li.product .price del { color: var(--vit-texto-suave) !important; font-weight: 400; font-size: .85rem; opacity: .8; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--vit-oferta) !important; }
/* WooCommerce le pone display:block a este botón, y ahí el texto se va a la
   izquierda. Se vuelve a declarar como caja centrada. */
.woocommerce ul.products li.product .button {
	margin: auto 16px 0 !important;
	width: calc(100% - 32px);
	font-size: .88rem;
	padding: 11px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
	position: absolute; top: 12px; left: 12px; right: auto; background: var(--vit-oferta);
	color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .74rem; font-weight: 700;
	min-height: 0; min-width: 0; line-height: 1.3; margin: 0; z-index: 3;
}
.vit-etiqueta-envio {
	display: inline-block; align-self: flex-start; margin: 0 16px 10px; font-size: .76rem; font-weight: 700;
	color: var(--vit-ok); background: color-mix(in srgb, var(--vit-ok) 10%, transparent);
	padding: 3px 9px; border-radius: 6px;
}
.vit-cuotas { padding: 0 16px; margin: -6px 0 10px; font-size: .8rem; color: var(--vit-ok); font-weight: 600; }

.woocommerce .star-rating { margin: 0 16px 8px; font-size: .8em; color: #f59e0b; }

/* ==========================================================================
   10. WooCommerce: páginas internas
   ========================================================================== */
.vit-principal { padding: 34px 0 64px; }
.vit-encabezado-pagina { padding: 34px 0 10px; }
.vit-encabezado-pagina h1 { margin-bottom: 6px; }
.woocommerce-breadcrumb {
	font-size: .84rem !important; color: var(--vit-texto-suave) !important; margin: 0 0 18px !important;
}
.woocommerce-breadcrumb a { color: var(--vit-texto-suave); }

.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 22px; }
.woocommerce .woocommerce-ordering select,
select, input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], textarea {
	border: 1px solid var(--vit-borde); border-radius: var(--vit-radio-sm);
	padding: 11px 13px; font-size: .95rem; font-family: inherit; color: var(--vit-texto);
	background: #fff; width: 100%; max-width: 100%;
}
select:focus, input:focus, textarea:focus {
	outline: 2px solid color-mix(in srgb, var(--vit-primario) 40%, transparent);
	outline-offset: 1px; border-color: var(--vit-primario);
}

.woocommerce div.product .product_title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--vit-secundario); font-size: 1.9rem; font-weight: 800;
}
.woocommerce div.product p.price ins { color: var(--vit-oferta); text-decoration: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-radius: var(--vit-radio-sm) var(--vit-radio-sm) 0 0; background: var(--vit-fondo-suave);
	border-color: var(--vit-borde);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product form.cart div.quantity { margin-right: 10px; }
.woocommerce .quantity .qty { width: 76px; text-align: center; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top: 0 !important; border-left: 4px solid var(--vit-primario) !important;
	background: var(--vit-fondo-suave) !important; border-radius: var(--vit-radio-sm);
	padding: 15px 18px 15px 20px !important;
}
.woocommerce-message::before, .woocommerce-info::before { display: none; }
.woocommerce-error { border-left-color: var(--vit-oferta) !important; }

.woocommerce table.shop_table {
	border-radius: var(--vit-radio); border-color: var(--vit-borde); overflow: hidden;
}
.woocommerce-checkout #payment { background: var(--vit-fondo-suave); border-radius: var(--vit-radio); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--vit-borde); }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: var(--vit-radio-sm); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment ul.payment_methods li img { max-height: 30px; width: auto; display: inline-block; }

/* Confianza en el checkout */
.vit-confianza-pago {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 14px 0 0; padding: 14px 16px; background: #fff;
	border: 1px dashed var(--vit-borde); border-radius: var(--vit-radio-sm);
	font-size: .85rem; color: var(--vit-texto-suave);
}
.vit-confianza-pago svg { width: 18px; height: 18px; color: var(--vit-ok); flex: 0 0 auto; }

/* ==========================================================================
   11. Franja de llamado a la acción
   ========================================================================== */
.vit-cta {
	background: var(--vit-primario);
	color: #fff;
	border-radius: var(--vit-radio);
	padding: 44px 40px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 26px; flex-wrap: wrap;
}
.vit-cta h2 { color: #fff; margin: 0 0 6px; }
.vit-cta p { margin: 0; opacity: .92; }
.vit-cta .vit-boton { background: #fff; color: var(--vit-primario); }
.vit-cta .vit-boton:hover { background: rgba(255,255,255,.9); color: var(--vit-primario-oscuro); box-shadow: none; }

/* Banners secundarios */
.vit-banners { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.vit-banner {
	position: relative; min-height: 250px; border-radius: var(--vit-radio); overflow: hidden;
	display: flex; align-items: flex-end; color: #fff; background: var(--vit-secundario);
	box-shadow: var(--vit-sombra);
}
.vit-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vit-banner:hover img { transform: scale(1.05); }
.vit-banner:hover { text-decoration: none; }
.vit-banner__texto {
	position: relative; padding: 24px; width: 100%;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
}
.vit-banner__texto strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.vit-banner__texto span { font-size: .88rem; opacity: .9; }

/* ==========================================================================
   12. Pie de página
   ========================================================================== */
.vit-pie { background: var(--vit-secundario); color: rgba(255,255,255,.72); margin-top: 40px; }
.vit-pie a { color: rgba(255,255,255,.72); }
.vit-pie a:hover { color: #fff; }
.vit-pie__grilla {
	display: grid; gap: 34px; padding: 54px 0 34px;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
@media (max-width: 900px) {
	.vit-pie__grilla { grid-template-columns: 1fr 1fr; }
}
.vit-pie h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.vit-pie ul { list-style: none; margin: 0; padding: 0; }
.vit-pie li { margin-bottom: 9px; font-size: .92rem; }
.vit-pie__marca img { max-height: 48px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.vit-pie__marca strong { color: #fff; font-size: 1.2rem; display: block; margin-bottom: 10px; }
.vit-pie__texto { font-size: .92rem; max-width: 340px; }
.vit-redes { display: flex; gap: 10px; margin-top: 18px; }
.vit-redes a {
	width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
	display: flex; align-items: center; justify-content: center;
}
.vit-redes a:hover { background: var(--vit-primario); }
.vit-redes svg { width: 19px; height: 19px; }
.vit-pie__barra {
	border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
	display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
	font-size: .85rem;
}
.vit-medios-pago { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vit-medios-pago span {
	background: #fff; color: #1f2933; border-radius: 6px; padding: 5px 10px;
	font-size: .74rem; font-weight: 700; letter-spacing: .01em;
}

/* ==========================================================================
   13. WhatsApp flotante
   ========================================================================== */
.vit-whatsapp {
	position: fixed; right: 20px; bottom: 20px; z-index: 500;
	width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .8);
	transition: transform .2s ease;
}
.vit-whatsapp:hover { transform: scale(1.07); color: #fff; }
.vit-whatsapp svg { width: 30px; height: 30px; }

/* ==========================================================================
   14. Contenido / páginas / blog
   ========================================================================== */
.vit-contenido { max-width: 780px; }
.vit-contenido.tiene-barra { max-width: none; }
/* Las categorías van a la izquierda, como en los catálogos grandes. En el HTML
   salen después del listado, así que las reubicamos con la grilla. */
.vit-diseno-barra { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.vit-diseno-barra > .vit-barra-lateral { grid-area: 1 / 1; }
.vit-diseno-barra > .vit-columna-principal { grid-area: 1 / 2; }
.vit-barra-lateral .widget {
	background: var(--vit-fondo-suave); border-radius: var(--vit-radio); padding: 20px; margin-bottom: 20px;
}
.vit-barra-lateral .widget-title { font-size: 1rem; margin-bottom: 12px; }
.vit-barra-lateral ul { list-style: none; margin: 0; padding: 0; }
.vit-barra-lateral li { padding: 6px 0; border-bottom: 1px solid var(--vit-borde); font-size: .92rem; }
.vit-barra-lateral li:last-child { border: 0; }

/* Categorías al costado del catálogo */
.vit-widget-categorias { padding: 0 !important; background: transparent !important; }
.vit-widget-categorias .widget-title {
	font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
	color: var(--vit-texto-suave); margin-bottom: 10px;
}
.vit-cats { list-style: none; margin: 0; padding: 0; }
.vit-cats li { border: 0; padding: 0; }
.vit-cats a {
	display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
	padding: 8px 12px; border-radius: var(--vit-radio-sm);
	color: var(--vit-texto); font-size: .92rem; line-height: 1.35;
}
.vit-cats a:hover { background: var(--vit-fondo-suave); color: var(--vit-primario); text-decoration: none; }
.vit-cats a span {
	color: var(--vit-texto-suave); font-size: .78rem;
	font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.vit-cats > li.esta-activa > a,
.vit-cats li.esta-activa > a {
	background: color-mix(in srgb, var(--vit-primario) 10%, transparent);
	color: var(--vit-primario); font-weight: 600;
}
.vit-cats li.esta-activa > a span { color: var(--vit-primario); }
.vit-cats li.esta-abierta > a { font-weight: 600; }
.vit-cats ul {
	list-style: none; margin: 2px 0 6px; padding: 0 0 0 12px;
	border-left: 2px solid var(--vit-borde);
}
.vit-cats ul a { font-size: .88rem; padding: 6px 10px; color: var(--vit-texto-suave); }
.vit-cats ul a:hover { color: var(--vit-primario); }

/* Con la columna al lado, la grilla entra más cómoda con tarjetas algo menores. */
.vit-diseno-barra .woocommerce ul.products,
.vit-diseno-barra ul.products {
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.vit-tarjeta-entrada {
	border: 1px solid var(--vit-borde); border-radius: var(--vit-radio); overflow: hidden;
	margin-bottom: 26px; background: #fff;
}
.vit-tarjeta-entrada img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vit-tarjeta-entrada__cuerpo { padding: 20px 22px 24px; }
.vit-meta { font-size: .82rem; color: var(--vit-texto-suave); margin-bottom: 8px; }

.vit-paginacion { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.vit-paginacion .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
	padding: 0 12px; border-radius: var(--vit-radio-sm); border: 1px solid var(--vit-borde);
	color: var(--vit-texto); text-decoration: none;
}
.vit-paginacion .page-numbers.current { background: var(--vit-primario); color: #fff; border-color: var(--vit-primario); }

.vit-404 { text-align: center; padding: 80px 0; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 992px) {
	.vit-diseno-barra { grid-template-columns: 1fr; gap: 28px; }
	/* En el celular vuelven al orden natural: primero los productos. */
	.vit-diseno-barra > .vit-barra-lateral,
	.vit-diseno-barra > .vit-columna-principal { grid-area: auto; }
	.vit-nav { display: none; }
	.vit-hamburguesa { display: inline-flex; }
	.vit-acciones { margin-left: auto; }
	.vit-cta { padding: 34px 26px; }
}
@media (max-width: 600px) {
	.vit-seccion { padding: 40px 0; }
	.vit-hero { min-height: 400px; }
	.vit-hero--alto { min-height: 480px; }
	.woocommerce ul.products, .vit-productos ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .88rem !important; padding: 0 12px !important; }
	.woocommerce ul.products li.product .price { padding: 0 12px; font-size: 1rem !important; }
	.woocommerce ul.products li.product .button { margin: auto 12px 0 !important; width: calc(100% - 24px); }
	.vit-pie__grilla { grid-template-columns: 1fr; gap: 26px; padding: 38px 0 26px; }
	.vit-pie__barra { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   16. Bloques de Gutenberg
   ========================================================================== */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-block-image figcaption { font-size: .84rem; color: var(--vit-texto-suave); }
blockquote {
	border-left: 4px solid var(--vit-primario); margin: 1.5em 0; padding: 4px 0 4px 20px;
	color: var(--vit-texto-suave); font-style: italic;
}
table { border-collapse: collapse; width: 100%; }
table th, table td { border: 1px solid var(--vit-borde); padding: 10px 12px; text-align: left; }
