/* ==========================================================================
   Bus Vitivinícola 2026: catálogo [bvt_catalogo] y buscador [bvt_buscador]

   Se carga solo en las páginas que usan esos shortcodes.
   Usa los colores y tipografías del sitio (variables de bvt-global.css, que
   a su vez salen de los Ajustes del sitio de Elementor). Las cards copian las
   medidas de las cards de la home (.bvt-card) para que se vean de la misma familia.
   ========================================================================== */

.bvt-cat,
.bvt-buscador {
	--c-violeta: var(--bvt-violeta, #532c75);
	--c-violeta-osc: var(--bvt-violeta-osc, #3e1f5a);
	--c-violeta-claro: var(--bvt-violeta-claro, #f3eef8);
	--c-amarillo: var(--bvt-amarillo, #fbcb03);
	--c-blanco: var(--bvt-blanco, #fdfcff);
	--c-texto: var(--bvt-texto, #1e1723);
	--c-suave: var(--bvt-suave, #625a68);
	--c-borde: var(--bvt-borde, #e4dfe7);
	--c-fondo: var(--bvt-fondo, #f7f5f9);
	--c-ease: var(--bvt-ease, cubic-bezier(.22, 1, .36, 1));
	font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bvt-cat {
	width: 100%;
	color: var(--c-texto);
	font-size: 14px;
	line-height: 1.4;
	scroll-margin-top: calc(var(--bvt-alto-header, 76px) + 16px);
}
.bvt-cat *, .bvt-cat *::before, .bvt-cat *::after { box-sizing: border-box; }
/* El tema pinta los links de azul y los subraya al pasar el mouse */
.bvt-cat a, .bvt-cat a:hover, .bvt-cat a:focus { text-decoration: none; }

/* ---------- Filtros ----------
   Una sola barra con los campos separados por una línea fina, como el buscador de la
   home (.bvt-buscador): etiqueta chica arriba, valor abajo, sin cajas dentro de cajas.
   Con 4 campos o más y poco ancho pasa a grilla; en el celular va en una columna. */
.bvt-cat__form { margin: 0 0 22px; }
.bvt-cat__filtros {
	display: flex;
	align-items: stretch;
	padding: 6px;
	border: 1px solid var(--c-borde);
	border-radius: 999px;
	background: var(--c-blanco);
	box-shadow: 0 1px 2px rgba(40, 10, 60, .04), 0 12px 24px -20px rgba(40, 10, 60, .4);
}
.bvt-cat__campo {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	min-width: 0;
	padding: 7px 18px;
	border-radius: 999px;
	transition: background-color .2s var(--c-ease);
}
.bvt-cat__campo--q { flex-grow: 1.35; padding-left: 52px; }
/* Lupa del campo de texto */
.bvt-cat__campo--q::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 50%;
	width: 18px;
	height: 18px;
	background: var(--c-suave);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: translateY(-50%);
	pointer-events: none;
}
/* Línea entre campos; se apaga al lado del campo que está en uso para que no corte el fondo */
.bvt-cat__campo + .bvt-cat__campo::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 1px;
	background: var(--c-borde);
	transition: opacity .2s;
}
.bvt-cat__campo:hover { background: var(--c-fondo); }
.bvt-cat__campo:focus-within { background: var(--c-fondo); box-shadow: inset 0 0 0 2px var(--c-violeta); }
.bvt-cat__campo:hover::before,
.bvt-cat__campo:focus-within::before,
.bvt-cat__campo:hover + .bvt-cat__campo::before,
.bvt-cat__campo:focus-within + .bvt-cat__campo::before { opacity: 0; }

.bvt-cat .bvt-cat__campo label {
	margin: 0;
	padding: 0;
	color: var(--c-violeta);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.3;
	text-transform: none;
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bvt-cat .bvt-cat__campo input,
.bvt-cat .bvt-cat__campo select {
	width: 100%;
	height: 24px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0; /* el foco se marca en todo el campo (focus-within) */
	background-color: transparent;
	box-shadow: none;
	color: var(--c-texto);
	font: inherit;
	font-size: 15px;
	line-height: 24px;
	-webkit-appearance: none;
	appearance: none;
}
.bvt-cat .bvt-cat__campo input::-webkit-search-cancel-button { display: none; }
.bvt-cat .bvt-cat__campo input::placeholder { color: var(--c-suave); opacity: 1; }
.bvt-cat .bvt-cat__campo select {
	padding-right: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23532C75' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right center;
	background-repeat: no-repeat;
	background-size: 14px;
	cursor: pointer;
	text-overflow: ellipsis;
}
/* Con un valor elegido, el campo se lee más fuerte: se ve de un vistazo qué está filtrando */
.bvt-cat .bvt-cat__campo.es-activo input,
.bvt-cat .bvt-cat__campo.es-activo select { font-weight: 600; }

.bvt-cat__acciones { display: flex; flex: 0 0 auto; align-items: center; padding-left: 8px; }
.bvt-cat .bvt-cat__buscar,
.bvt-cat .bvt-cat__abrir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--c-violeta);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .2s var(--c-ease);
}
.bvt-cat .bvt-cat__buscar:hover,
.bvt-cat .bvt-cat__abrir:hover { background: var(--c-violeta-osc); color: #fff; }
.bvt-cat .bvt-cat__buscar:active,
.bvt-cat .bvt-cat__abrir:active { transform: scale(.98); }
.bvt-cat .bvt-cat__buscar svg { flex: none; }
.bvt-cat .bvt-cat__buscar:focus-visible,
.bvt-cat .bvt-cat__abrir:focus-visible,
.bvt-cat a:focus-visible { outline: 2px solid var(--c-violeta); outline-offset: 2px; }
.bvt-cat .bvt-cat__limpiar { margin-left: 10px; color: var(--c-violeta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bvt-cat .bvt-cat__limpiar:hover { color: var(--c-violeta-osc); text-decoration: underline; }

/* Muchos campos y poco ancho: grilla de 4 (el de texto ocupa 2), cada campo con su borde y sin caja alrededor */
@media (min-width: 768px) and (max-width: 1180px) {
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__campo { padding: 8px 16px; border: 1.5px solid var(--c-borde); border-radius: 14px; background: var(--c-blanco); }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__campo:hover, .bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__campo:focus-within { background: var(--c-fondo); }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__campo--q { grid-column: span 2; }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__campo--q { padding-left: 44px; }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__campo--q::after { left: 16px; }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__campo::before { display: none; }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__acciones { padding: 0; }
	.bvt-cat__filtros:has(.bvt-cat__campo:nth-child(4)) .bvt-cat__buscar { width: 100%; height: 100%; min-height: 52px; }
}

/* Botón "Filtrar": solo en el celular y solo si el script cargó. Va con borde y no relleno:
   la acción principal es "Buscar"; este solo muestra u oculta los campos. */
.bvt-cat .bvt-cat__abrir { display: none; border: 1.5px solid var(--c-violeta); background: var(--c-blanco); color: var(--c-violeta); }
.bvt-cat .bvt-cat__abrir:hover { background: var(--c-violeta-claro); color: var(--c-violeta); }
.bvt-cat__cuenta {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--c-amarillo);
	color: var(--c-texto);
	font-size: 12px;
}

/* ---------- Barra: total y orden ---------- */
.bvt-cat__barra {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 20px;
	margin: 0 0 16px;
}
.bvt-cat .bvt-cat__total, .bvt-cat .bvt-cat__orden { margin: 0; color: var(--c-suave); font-size: 14px; }
.bvt-cat__total strong { color: var(--c-texto); font-weight: 600; }
.bvt-cat__orden { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bvt-cat .bvt-cat__orden a { color: var(--c-violeta); text-decoration: underline; text-underline-offset: 3px; }
.bvt-cat .bvt-cat__orden a:hover { color: var(--c-violeta-osc); text-decoration: underline; }
.bvt-cat__orden strong { color: var(--c-texto); font-weight: 600; }

/* ---------- Grilla de cards ---------- */
.bvt-cat .bvt-cat__grilla {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bvt-cat .bvt-exp { display: flex; margin: 0; padding: 0; list-style: none; }
.bvt-cat .bvt-exp::before { content: none; }
.bvt-cat .bvt-exp__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-borde);
	border-radius: 16px;
	background: var(--c-blanco);
	color: var(--c-texto);
	transition: transform .35s var(--c-ease), box-shadow .35s var(--c-ease), border-color .3s;
}
.bvt-cat .bvt-exp__link:hover {
	border-color: oklch(82% .05 310);
	color: var(--c-texto);
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -18px rgba(60, 20, 90, .45);
}
.bvt-exp--destacada .bvt-exp__link { border-color: var(--c-amarillo); }
.bvt-exp__foto { display: block; aspect-ratio: 1; overflow: hidden; background: var(--c-violeta-claro); }
.bvt-cat .bvt-exp__foto img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bvt-exp__cuerpo { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 15px 16px; }
.bvt-exp__tipo {
	color: var(--c-violeta);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.18;
	text-transform: uppercase;
}
.bvt-cat .bvt-exp__tit {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0;
	padding: 0;
	color: var(--c-texto);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}
.bvt-exp__meta, .bvt-exp__fechas { color: var(--c-suave); font-size: 13.5px; line-height: 1.25; }
.bvt-exp__fechas { color: var(--c-texto); display: flex; align-items: center; gap: 7px; }
.bvt-exp__fechas .bvt-ico { flex: none; color: var(--c-violeta, #532c75); }
.bvt-exp__pie {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 2px 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--c-borde);
}
/* Deja 4px de aire entre el texto y la línea aunque la card sea baja */
.bvt-exp__cuerpo > .bvt-exp__fechas { margin-bottom: 4px; }
.bvt-exp__desde, .bvt-exp__unidad { grid-column: 1; color: var(--c-suave); font-size: 12px; line-height: 1.17; }
.bvt-exp__precio { grid-column: 1; color: var(--c-texto); font-size: 17px; font-weight: 600; line-height: 1.18; }
.bvt-exp__precio--consultar { color: var(--c-suave); font-size: 15px; }
.bvt-exp__cta {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: end;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--c-violeta-claro);
	color: var(--c-violeta);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .35s var(--c-ease), color .35s var(--c-ease);
}
.bvt-exp__link:hover .bvt-exp__cta { background: var(--c-violeta); color: #fff; }

/* ---------- Vista flyer (como el listado viejo de paquetes) ---------- */
.bvt-cat__flyers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; }
.bvt-flyer { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bvt-flyer img { display: block; width: 100%; height: auto; border-radius: 12px; }
.bvt-cat .bvt-flyer__btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 3px;
	background: var(--c-violeta);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	transition: background .2s;
}
.bvt-cat .bvt-flyer__btn:hover, .bvt-cat .bvt-flyer__btn:focus-visible { background: var(--c-violeta-osc); color: #fff; }

/* ---------- Sin resultados ---------- */
.bvt-cat .bvt-cat__vacio {
	margin: 0;
	padding: 28px 20px;
	border: 1px dashed var(--c-borde);
	border-radius: 16px;
	background: var(--c-fondo);
	color: var(--c-texto);
	font-size: 15px;
	text-align: center;
}
.bvt-cat .bvt-cat__vacio a { color: var(--c-violeta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bvt-cat__vacio .bvt-cat__limpiar { margin-left: 6px; }

/* ---------- Paginación ---------- */
.bvt-cat__paginas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; }
.bvt-cat .bvt-cat__paginas a,
.bvt-cat__paginas strong {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--c-borde);
	border-radius: 999px;
	background: var(--c-blanco);
	color: var(--c-violeta);
	font-size: 14px;
	font-weight: 600;
}
.bvt-cat .bvt-cat__paginas a:hover { border-color: var(--c-violeta); color: var(--c-violeta-osc); }
.bvt-cat__paginas strong { border-color: var(--c-violeta); background: var(--c-violeta); color: #fff; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 1100px) {
	.bvt-cat .bvt-cat__grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.bvt-cat .bvt-cat__grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.bvt-exp__cuerpo { padding: 12px 12px 14px; }
	.bvt-cat .bvt-exp__tit { font-size: 14px; }
	.bvt-exp__meta, .bvt-exp__fechas { font-size: 12.5px; }
	.bvt-exp__pie { grid-template-columns: 1fr; }
	.bvt-exp__precio { font-size: 16px; }
	.bvt-exp__cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
	.bvt-cat__flyers { grid-template-columns: 1fr; gap: 32px; }

	/* Filtros en una columna, cada campo con su borde (como el buscador de la home en el celular) */
	.bvt-cat .bvt-cat__filtros { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
	.bvt-cat .bvt-cat__filtros .bvt-cat__campo { grid-column: auto; padding: 8px 16px; border: 1.5px solid var(--c-borde); border-radius: 14px; background: var(--c-blanco); }
	.bvt-cat .bvt-cat__filtros .bvt-cat__campo--q { padding-left: 44px; }
	.bvt-cat .bvt-cat__filtros .bvt-cat__campo--q::after { left: 16px; }
	.bvt-cat .bvt-cat__filtros .bvt-cat__campo::before { display: none; }
	.bvt-cat .bvt-cat__filtros .bvt-cat__acciones { padding: 0; }
	.bvt-cat .bvt-cat__filtros .bvt-cat__buscar { width: 100%; height: 52px; }
	.bvt-cat .bvt-cat__limpiar { margin-left: 8px; }

	/* Con script: los filtros se guardan detrás del botón "Filtrar" */
	.bvt-cat--js .bvt-cat__abrir:not([hidden]) { display: inline-flex; width: 100%; }
	.bvt-cat--js .bvt-cat__filtros { display: none; margin-top: 10px; }
	.bvt-cat--js.bvt-cat--abierto .bvt-cat__filtros { display: grid; }
}
@media (max-width: 359px) {
	.bvt-cat .bvt-cat__grilla { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.bvt-cat *, .bvt-buscador * { transition: none !important; }
}

/* ==========================================================================
   [bvt_buscador]: píldora "Una idea / Cuándo / Buscar"
   (dónde va y cuánto pisa la foto del hero lo decide el CSS de la home)
   ========================================================================== */
.bvt-buscador {
	display: grid;
	grid-template-columns: 1.5fr 1fr auto;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px;
	border-radius: 999px;
	background: var(--c-blanco);
}
.bvt-buscador *, .bvt-buscador *::before { box-sizing: border-box; }
.bvt-buscador__campo {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 8px 26px;
	border-radius: 999px;
	text-align: left;
}
.bvt-buscador__campo + .bvt-buscador__campo::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 1px;
	background: var(--c-borde);
}
.bvt-buscador__campo:focus-within { background: var(--c-fondo); box-shadow: inset 0 0 0 2px var(--c-violeta); }
.bvt-buscador .bvt-buscador__campo label {
	margin: 0;
	padding: 0;
	color: var(--c-violeta);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: normal;
	text-transform: none;
}
.bvt-buscador .bvt-buscador__campo input,
.bvt-buscador .bvt-buscador__campo select {
	width: 100%;
	height: 26px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--c-texto);
	font: inherit;
	font-size: 16px;
	line-height: 26px;
}
/* el tema pone borde con !important a form input:focus; acá el foco lo marca el campo entero */
.bvt-buscador .bvt-buscador__campo input:focus,
.bvt-buscador .bvt-buscador__campo select:focus,
.bvt-cat .bvt-cat__campo input:focus,
.bvt-cat .bvt-cat__campo select:focus {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}
.bvt-buscador .bvt-buscador__campo input { color: #5c5c5c; }
.bvt-buscador .bvt-buscador__campo input::placeholder { color: var(--c-suave); opacity: 1; }
.bvt-buscador .bvt-buscador__campo select {
	padding-right: 22px;
	appearance: none;
	-webkit-appearance: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23532C75' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 14px no-repeat;
	cursor: pointer;
}
.bvt-buscador .bvt-buscador__boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 58px;
	min-height: 58px;
	margin: 0;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--c-violeta);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color .3s;
}
.bvt-buscador .bvt-buscador__boton:hover { background: var(--c-violeta-osc); color: #fff; }
.bvt-buscador .bvt-buscador__boton:focus-visible { outline: 2px solid var(--c-violeta); outline-offset: 2px; }
.bvt-buscador__boton svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
	.bvt-buscador { grid-template-columns: 1fr; gap: 8px; padding: 14px; border-radius: 22px; }
	.bvt-buscador__campo { padding: 8px 16px; border: 1.5px solid var(--c-borde); border-radius: 14px; }
	.bvt-buscador__campo + .bvt-buscador__campo::before { display: none; }
	.bvt-buscador .bvt-buscador__boton { width: 100%; height: 52px; min-height: 52px; }
}
