/**
 * Vidriería Fernando — estilos del tema.
 * Colores, tipografías y tamaños vienen de theme.json (variables --wp--preset--*).
 *
 *  1. Base
 *  2. Marquesina y cabecera
 *  3. Botones y piezas reutilizables
 *  4. Secciones
 *  5. Inicio
 *  6. Proyectos, blog y lateral
 *  7. Contacto y formularios
 *  8. Filtros por categoría
 *  9. WooCommerce (catálogo)
 * 10. Botón flotante de WhatsApp
 * 11. Pie
 * 12. Animaciones y movimiento reducido
 */

/* En body (no :root) para que tomen los colores de la página de ajustes. */
body {
	--vf-azul: var(--wp--preset--color--azul);
	--vf-celeste: var(--wp--preset--color--celeste);
	--vf-marino: var(--wp--preset--color--marino);
	--vf-acero: var(--wp--preset--color--acero);
	--vf-hielo: var(--wp--preset--color--hielo);
	--vf-cristal: var(--wp--preset--color--cristal);
	--vf-borde: var(--wp--preset--color--borde);
	--vf-titulos: var(--wp--preset--font-family--titulos);
	--vf-sombra: 0 2px 12px rgba(13, 13, 13, 0.1);
	--vf-vidrio: linear-gradient(135deg, #BDEBFA, #EAF9FE 50%, #8BDCF6);
}

/* ---------- 1. Base ---------- */

.wp-site-blocks > * + *,
.vf-landing > .wp-block-post-content > * + * {
	margin-block-start: 0;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 3px solid var(--vf-celeste);
	outline-offset: 2px;
}

/* ---------- 2. Marquesina y cabecera ---------- */

.vf-marquesina {
	background: var(--vf-celeste);
	color: var(--vf-marino);
	font-size: 14px;
	font-weight: 700;
	overflow: hidden;
	white-space: nowrap;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.vf-marquesina__pista {
	display: flex;
	width: max-content;
	animation: vf-marq 32s linear infinite;
}

.vf-marquesina__pista > div {
	display: flex;
	flex: none;
	gap: 56px;
	padding: 9px 56px 9px 0;
}

/*
 * El fondo con desenfoque va en ::before: si backdrop-filter estuviera en la
 * cabecera, el menú móvil (position: fixed) quedaría encerrado dentro de ella.
 */
.vf-header {
	position: sticky;
	top: 0;
	z-index: 40;
	box-shadow: 0 6px 24px rgba(5, 17, 242, 0.28);
	color: #fff;
	padding-block: 14px;
	/* "backwards" y no "both": un transform que se queda aplicado también encierra el menú móvil. */
	animation: vf-hdr-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.admin-bar .vf-header {
	top: 32px;
}

.vf-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--vf-azul) 94%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.vf-header::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: linear-gradient(90deg, var(--vf-celeste), #fff, var(--vf-celeste));
	background-size: 200% 100%;
	animation: vf-flow 5s linear infinite;
}

.vf-header__fila {
	gap: 16px 32px;
}

.vf-logo img {
	transition: transform 0.3s ease;
}

.vf-logo a:hover img {
	transform: scale(1.05);
}

.vf-nav {
	color: #fff;
	gap: 8px 28px;
}

.vf-nav .wp-block-navigation-item__content {
	position: relative;
	padding: 6px 0;
}

.vf-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--vf-celeste);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.vf-nav .wp-block-navigation-item__content:hover {
	text-decoration: none;
}

.vf-nav .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

.vf-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--vf-celeste);
}

/* Enlaces extra (WhatsApp y llamar): solo dentro del menú móvil. */
.vf-nav .vf-nav__extra {
	display: none;
}

/*
 * Botón hamburguesa. WordPress lo muestra solo bajo 600px; aquí se usa
 * en celular y tablet (hasta 1024px) y en PC se ve el menú normal.
 */
.vf-nav .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.vf-nav .wp-block-navigation__responsive-container-open:hover {
	background: rgba(255, 255, 255, 0.26);
}

@media (max-width: 1024px) {
	.vf-nav .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.vf-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	/* Logo a la izquierda, botón Cotiza y hamburguesa a la derecha. */
	.vf-header__fila .vf-nav {
		order: 3;
		flex: none;
	}

	.vf-header__fila .vf-logo {
		margin-right: auto;
	}
}

@media (min-width: 1025px) {
	.vf-nav .wp-block-navigation__responsive-container-open {
		display: none !important;
	}
}

/* Menú móvil: panel blanco que entra desde la derecha */
.vf-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: stretch;
	left: auto;
	right: 0;
	width: min(88vw, 380px);
	padding: 0 !important;
	background: #fff !important;
	color: var(--vf-marino) !important;
	border-radius: 24px 0 0 24px;
	box-shadow: 0 0 0 100vmax rgba(5, 11, 102, 0.6);
	animation: vf-menu-lateral 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Franja superior con el logo */
.vf-nav .wp-block-navigation__responsive-container.is-menu-open::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 88px;
	border-radius: 24px 0 0 0;
	background:
		var(--vf-logo-claro, url("../img/logo-blanco.png")) no-repeat 24px center / auto 44px,
		linear-gradient(120deg, var(--vf-azul), var(--vf-marino));
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	max-width: none;
	height: 100%;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 22px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--vf-marino);
	box-shadow: 0 4px 14px rgba(5, 11, 102, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 26px;
	height: 26px;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
	background: var(--vf-celeste);
	transform: rotate(90deg);
}

/*
 * Con la barra de administración visible, el panel empieza debajo de ella
 * (WordPress solo baja el contenido y dejaba la franja y la X tapadas).
 */
.admin-bar .vf-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: 46px;
}

.admin-bar .vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	margin-top: 0 !important;
}

@media (min-width: 783px) {
	.admin-bar .vf-nav .wp-block-navigation__responsive-container.is-menu-open {
		top: 32px;
	}
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 104px 24px calc(32px + env(safe-area-inset-bottom)) !important;
	align-items: stretch !important;
}

/* border-box: el relleno de los botones no debe sumar al 100% de ancho. */
.vf-nav .wp-block-navigation__responsive-container.is-menu-open,
.vf-nav .wp-block-navigation__responsive-container.is-menu-open * {
	box-sizing: border-box;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--vf-borde);
	animation: vf-menu-item 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.05s; }
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.1s; }
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.15s; }
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.2s; }
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 0.25s; }
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(7) { animation-delay: 0.3s; }
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(n+8) { animation-delay: 0.35s; }

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 4px !important;
	font-family: var(--vf-titulos);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--vf-marino);
	transition: color 0.2s ease, padding 0.2s ease;
}

/* Flecha a la derecha (reemplaza el subrayado de escritorio) */
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	position: static;
	width: 9px;
	height: 9px;
	background: none;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.35;
	transition: opacity 0.2s ease;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--vf-azul);
	padding-left: 12px !important;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after {
	transform: rotate(45deg);
	opacity: 1;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--vf-azul);
	box-shadow: inset 4px 0 0 var(--vf-celeste);
	padding-left: 16px !important;
}

/* Botones de WhatsApp y llamar al final del menú */
.vf-nav .wp-block-navigation__responsive-container.is-menu-open .vf-nav__extra {
	display: block;
	border-bottom: 0;
	margin-top: 12px;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.vf-nav__extra) + .vf-nav__extra {
	margin-top: 28px;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .vf-nav__extra .wp-block-navigation-item__content {
	justify-content: center;
	padding: 15px 20px !important;
	border-radius: 999px;
	font-family: inherit;
	font-size: 16px;
	text-transform: none;
	background: var(--vf-azul);
	color: #fff;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .vf-nav__llamar .wp-block-navigation-item__content {
	background: var(--vf-hielo);
	color: var(--vf-marino);
	box-shadow: inset 0 0 0 1.5px var(--vf-borde);
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .vf-nav__extra .wp-block-navigation-item__content::after {
	display: none;
}

.vf-nav .wp-block-navigation__responsive-container.is-menu-open .vf-nav__extra .wp-block-navigation-item__content:hover {
	padding-left: 20px !important;
	background: var(--vf-marino);
	color: #fff;
}

/* Con el menú abierto el botón flotante de WhatsApp no estorba. */
.has-modal-open .vf-wa {
	display: none;
}

@keyframes vf-menu-lateral {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

@keyframes vf-menu-item {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Modo catálogo: nunca iconos de carrito ni de cuenta en la cabecera. */
.vf-header .wp-block-woocommerce-mini-cart,
.vf-header .wp-block-woocommerce-customer-account,
.vf-header .wc-block-mini-cart {
	display: none !important;
}

.vf-header__cta .wp-block-button__link {
	padding: 12px 22px;
	font-size: 15px;
}

@media (max-width: 782px) {
	.admin-bar .vf-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .vf-header {
		top: 0;
	}

	.vf-logo img {
		height: 42px !important;
	}

	.vf-header__cta .wp-block-button__link {
		padding: 10px 14px;
		font-size: 13px;
	}

	.vf-header__fila {
		gap: 12px;
	}
}

/* En celulares muy angostos el botón ya está dentro del menú. */
@media (max-width: 380px) {
	.vf-header__cta {
		display: none;
	}
}

/* ---------- 3. Botones y piezas reutilizables ---------- */

.wp-element-button,
.wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.wp-block-button.is-style-celeste .wp-block-button__link {
	background: var(--vf-celeste);
	color: var(--vf-marino);
}

.wp-block-button.is-style-celeste .wp-block-button__link:hover {
	box-shadow: 0 8px 20px rgba(5, 199, 242, 0.55);
}

.wp-block-button.is-style-marino .wp-block-button__link {
	background: var(--vf-marino);
	color: #fff;
}

.wp-block-button.is-style-pildora .wp-block-button__link {
	border-radius: 999px;
	text-transform: none;
	font-weight: 600;
}

.wp-block-button.vf-btn-blanco .wp-block-button__link {
	background: #fff;
	color: var(--vf-marino);
}

.wp-block-button.vf-btn-grande .wp-block-button__link {
	padding: 16px 30px;
	font-size: 18px;
}

/* Brillo que cruza el botón "Cotiza aquí" de la cabecera. */
.vf-brillo .wp-block-button__link {
	position: relative;
	overflow: hidden;
}

.vf-brillo .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: rgba(255, 255, 255, 0.6);
	transform: skewX(-20deg);
	animation: vf-shine 3.4s ease-in-out infinite;
}

.wp-block-group.is-style-tarjeta {
	background: #fff;
	border: 1px solid var(--vf-borde);
	border-radius: 16px;
	padding: 24px 28px;
}

.vf-insignia {
	align-self: flex-start;
	display: inline-block;
	width: fit-content;
	background: var(--vf-celeste);
	color: var(--vf-marino);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 7px 14px;
	border-radius: 4px;
}

.vf-telefono {
	font-family: var(--vf-titulos);
	font-weight: 800;
	font-size: clamp(26px, 3vw, 34px);
	letter-spacing: 0.02em;
	line-height: 1.1;
	margin: 0;
}

.vf-num {
	font-family: var(--vf-titulos);
	font-weight: 800;
	font-size: 56px;
	line-height: 1;
	color: var(--vf-celeste);
	margin: 0;
}

.vf-num--azul {
	color: var(--vf-azul);
	font-size: 40px;
	font-weight: 700;
}

.vf-etiqueta,
.vf-etiqueta a,
.vf-dato__etiqueta {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vf-azul);
	text-decoration: none;
}

.vf-meta {
	font-size: 14px;
	color: var(--vf-acero);
	gap: 8px;
}

.vf-meta p,
.vf-meta .wp-block-post-date {
	margin: 0;
}

.vf-enlace-mas {
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
}

.vf-foto img,
.vf-foto .wp-block-post-featured-image img {
	border-radius: 12px;
	width: 100%;
	object-fit: cover;
	background: var(--vf-vidrio);
}

.vf-foto--alta img {
	height: 440px;
}

/* ---------- 4. Secciones ---------- */

.vf-seccion {
	padding-block: var(--wp--preset--spacing--60);
}

.vf-seccion--pegada {
	padding-block-start: var(--wp--preset--spacing--30);
}

.vf-fondo-marino {
	background: var(--vf-marino);
	color: #fff;
}

.vf-fondo-azul {
	background: var(--vf-azul);
	color: #fff;
}

.vf-fondo-blanco {
	background: #fff;
	border-block: 1px solid var(--vf-borde);
}

.vf-fondo-marino a:where(:not(.wp-element-button)),
.vf-fondo-azul a:where(:not(.wp-element-button)) {
	color: #fff;
}

.vf-banda-celeste {
	background: var(--vf-celeste);
	color: var(--vf-marino);
}

.vf-cabecera-pagina {
	padding-block: clamp(40px, 6vw, 64px);
}

.vf-cabecera-pagina > .alignwide > * + * {
	margin-block-start: 16px;
}

.vf-cabecera-pagina h1 {
	max-width: 900px;
	text-wrap: balance;
}

.vf-cabecera-pagina p:not(.vf-insignia) {
	max-width: 680px;
}

.vf-cabecera-pagina--clara h1 {
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.05;
}

.vf-encabezado {
	gap: 16px;
	margin-block-end: 28px;
}

.vf-encabezado h2,
.vf-encabezado p {
	margin: 0;
}

.vf-titulo-banda {
	background: var(--vf-azul);
	color: #fff;
	text-align: center;
	padding: 22px 24px;
	border-radius: 6px;
	margin-block-end: 36px;
}

.vf-titulo-banda h2,
.vf-titulo-banda p {
	margin: 0;
}

.vf-titulo-banda p {
	margin-block-start: 6px;
	font-size: 18px;
}

/* ---------- 5. Inicio ---------- */

.vf-hero {
	position: relative;
	overflow: hidden;
	background: var(--vf-azul);
	color: #fff;
	padding-block: 56px 64px;
	isolation: isolate;
}

/* Franja celeste diagonal y cuadrados girando del diseño. */
.vf-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 58%;
	background: var(--vf-celeste);
	opacity: 0.2;
	clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
	z-index: -1;
}

.vf-hero::after {
	content: "";
	position: absolute;
	right: -150px;
	top: -170px;
	width: 420px;
	height: 420px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	animation: vf-spin 40s linear infinite;
	z-index: -1;
}

.vf-hero__columnas {
	gap: 32px;
}

.vf-hero__columnas .wp-block-column > * + * {
	margin-block-start: 22px;
}

.vf-hero__titulo {
	font-size: var(--wp--preset--font-size--hero);
	line-height: 0.96;
	text-wrap: balance;
}

.vf-hero__titulo mark {
	color: var(--vf-celeste);
}

.vf-hero__acciones {
	gap: 14px 22px;
}

/* Insignia del hero: píldora de vidrio con punto que late. */
.vf-hero .vf-insignia {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	padding: 8px 16px 8px 12px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.vf-hero .vf-insignia::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--vf-celeste);
	flex: none;
	animation: vf-ring 2s ease-out infinite;
}

/* Teléfono del hero: enlace para llamar con icono. */
.vf-hero__llamar a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
}

.vf-hero__llamar a::before {
	content: "";
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305C7F2' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / 20px;
	transition: background-color 0.2s ease;
}

.vf-hero__llamar a:hover::before {
	background-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 781px) {
	.vf-hero {
		padding-block: 40px 48px;
		text-align: left;
	}

	.vf-hero::before {
		width: 100%;
		clip-path: polygon(0 62%, 100% 48%, 100% 100%, 0 100%);
	}

	.vf-hero::after {
		width: 260px;
		height: 260px;
		right: -130px;
		top: -130px;
	}

	.vf-hero__titulo {
		font-size: clamp(36px, 10.5vw, 48px);
		line-height: 1;
	}

	.vf-hero .has-grande-font-size {
		font-size: 17px !important;
	}

	.vf-hero__acciones,
	.vf-hero__acciones .wp-block-buttons,
	.vf-hero__acciones .wp-block-button {
		width: 100%;
	}

	.vf-hero__acciones .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.vf-hero__llamar {
		font-size: 26px;
	}

	.vf-rombos {
		width: min(380px, 92%);
		margin-block-start: 8px;
	}
}

.vf-rombos {
	position: relative;
	width: min(540px, 100%);
	aspect-ratio: 540 / 470;
	margin-inline: auto;
}

.vf-rombos > * {
	margin: 0 !important;
}

.vf-rombo {
	position: absolute;
	background: #fff;
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	padding: 6px;
	animation: vf-floaty 6s ease-in-out infinite;
}

.vf-rombo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	background: var(--vf-vidrio);
}

.vf-rombo--1 { left: 0; top: 21%; width: 53.7%; aspect-ratio: 1; }
.vf-rombo--2 { left: 46.3%; top: 0; width: 46.3%; aspect-ratio: 1; animation-delay: -2s; }
.vf-rombo--3 { left: 46.3%; top: 48%; width: 46.3%; aspect-ratio: 1; animation-delay: -4s; }

.vf-rombo-sello {
	position: absolute;
	left: 31.5%;
	top: 68%;
	width: 24%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: var(--vf-celeste);
	color: var(--vf-marino);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	font-family: var(--vf-titulos);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(11px, 1.2vw, 15px);
	line-height: 1.05;
	animation: vf-pulse 2.4s ease-in-out infinite;
}

/*
 * Beneficios en bucle infinito. theme.js duplica los textos y añade .is-bucle;
 * sin JS se muestran centrados en filas.
 */
.vf-beneficios {
	padding-block: 20px;
	font-family: var(--vf-titulos);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.vf-beneficios__pista {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 0;
}

.vf-beneficios__pista.is-bucle {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	animation: vf-marq 28s linear infinite;
}

.vf-beneficios__pista.is-bucle:hover {
	animation-play-state: paused;
}

.vf-beneficios__pista > * {
	margin: 0 !important;
	flex: none;
	display: flex;
	align-items: center;
	gap: 14px;
	padding-inline: 24px;
	white-space: nowrap;
}

/* Rombo de marca entre cada beneficio */
.vf-beneficios__pista > *::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--vf-azul);
	transform: rotate(45deg);
	flex: none;
}

/* Encabezado de sección: insignia, título y texto con aire entre ellos. */
.vf-encabezado__texto > * + *,
.vf-encabezado > .wp-block-group > * + * {
	margin-block-start: 10px !important;
}

.vf-encabezado .wp-block-heading mark {
	background: none;
}

/*
 * Categorías: foto grande a toda la tarjeta, nombre en blanco sobre un
 * degradado y flecha que gira al pasar el mouse.
 */
.vf-categorias {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 24px;
}

.vf-categoria {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 20px;
	overflow: hidden;
	background: var(--vf-vidrio);
	box-shadow: var(--vf-sombra);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vf-categoria:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(5, 17, 242, 0.25);
	text-decoration: none;
	color: #fff;
}

.vf-categoria__img {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.vf-categoria__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s ease;
}

.vf-categoria:hover .vf-categoria__img img {
	transform: scale(1.08);
}

/* Degradado inferior para que el nombre se lea sobre cualquier foto. */
.vf-categoria::after {
	content: "";
	position: absolute;
	inset: 35% 0 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(5, 11, 102, 0) 0%, rgba(5, 11, 102, 0.55) 45%, rgba(5, 11, 102, 0.92) 100%);
	transition: opacity 0.35s ease;
}

.vf-categoria__info {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 24px;
}

.vf-categoria__nombre {
	font-family: var(--vf-titulos);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	text-wrap: balance;
}

.vf-categoria__total {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--vf-cristal);
}

.vf-categoria__total::before {
	content: "";
	width: 18px;
	height: 2px;
	background: var(--vf-celeste);
	transition: width 0.35s ease;
}

.vf-categoria:hover .vf-categoria__total::before {
	width: 32px;
}

.vf-categoria__flecha {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	color: var(--vf-azul);
	box-shadow: 0 4px 14px rgba(5, 11, 102, 0.2);
	transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.vf-categoria:hover .vf-categoria__flecha {
	background: var(--vf-celeste);
	color: var(--vf-marino);
	transform: rotate(45deg);
}

.vf-pasos {
	gap: 40px;
	margin-block-start: 32px;
}

.vf-paso {
	border-top: 3px solid var(--vf-celeste);
	padding-top: 18px;
}

.vf-paso > * + * {
	margin-block-start: 8px;
}

.vf-paso p:not(.vf-num) {
	color: var(--vf-cristal);
}

.vf-cta {
	padding-block: 44px;
}

.vf-cta > .alignwide {
	gap: 20px 40px;
}

.vf-cta__texto {
	flex: 1 1 420px;
}

.vf-cta__texto h2,
.vf-cta__texto h3,
.vf-cta__texto p {
	margin: 0;
}

.vf-cta__texto p {
	margin-block-start: 6px;
}

.vf-cta-tarjeta {
	background: var(--vf-marino);
	color: #eaf4f8;
	border-radius: 20px;
	padding: clamp(24px, 4vw, 48px);
	gap: 24px 40px;
}

.vf-cta-tarjeta h2,
.vf-cta-tarjeta h3 {
	color: #fff;
}

.vf-cta-tarjeta--compacta {
	border-radius: 14px;
	padding: 28px;
	margin-block: 40px;
}

.vf-suscripcion-banda {
	padding-block: 56px;
}

.vf-suscripcion-banda h2,
.vf-suscripcion-banda p {
	margin: 0 0 6px;
}

/* ---------- 6. Proyectos, blog y lateral ---------- */

.vf-proyecto {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--vf-sombra);
	height: 100%;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vf-proyecto:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(5, 17, 242, 0.22);
}

.vf-proyecto .wp-block-post-featured-image {
	margin: 0;
	background: var(--vf-vidrio);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.vf-proyecto .wp-block-post-featured-image img {
	transition: transform 0.7s ease;
}

.vf-proyecto:hover .wp-block-post-featured-image img {
	transform: scale(1.07);
}

.vf-proyecto__info {
	padding: 16px 18px 20px;
}

.vf-proyecto__info > * {
	margin: 0;
}

.vf-proyecto__info > * + * {
	margin-block-start: 6px;
}

.vf-proyecto__info .wp-block-post-terms a {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--vf-azul);
	text-decoration: none;
}

.vf-proyecto__info .wp-block-post-title a,
.vf-entradas .wp-block-post-title a {
	color: var(--vf-marino);
	text-decoration: none;
}

.vf-proyecto__info .wp-block-post-excerpt {
	color: var(--vf-acero);
	font-size: 15px;
}

.vf-proyecto__info .wp-block-post-excerpt__more-link {
	display: none;
}

.vf-entradas .wp-block-post-template > li > * {
	margin-block: 0 10px;
}

.vf-entradas .wp-block-post-featured-image {
	border-radius: 6px;
	overflow: hidden;
	background: var(--vf-vidrio);
	aspect-ratio: 16 / 10;
}

.vf-entradas .wp-block-post-title {
	font-size: var(--wp--preset--font-size--titulo-s);
	line-height: 1.1;
}

.vf-entradas--listado .wp-block-post-template > li:first-child {
	grid-column: 1 / -1;
}

.vf-sin-imagen {
	background: var(--vf-vidrio);
}

/* Guías del blog (Inicio): 1 destacada grande + 2 tarjetas horizontales. */
.vf-guias .wp-block-post-template {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vf-guias .wp-block-post-template > li {
	margin: 0 !important;
	display: grid;
	grid-template-columns: 44% 1fr;
	background: #fff;
	border: 1px solid var(--vf-borde);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--vf-sombra);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vf-guias .wp-block-post-template > li:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(5, 17, 242, 0.18);
}

.vf-guias .vf-guia__img {
	margin: 0 !important;
	height: 100%;
	min-height: 170px;
	overflow: hidden;
	background: var(--vf-vidrio);
}

.vf-guias .vf-guia__img a,
.vf-guias .vf-guia__img img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.vf-guias li:hover .vf-guia__img img {
	transform: scale(1.07);
}

.vf-guia__info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
}

.vf-guia__info > * {
	margin: 0 !important;
}

.vf-guia__cat a {
	display: inline-block;
	background: var(--vf-cristal);
	color: var(--vf-azul);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 999px;
}

.vf-guia__titulo {
	font-size: 20px;
	line-height: 1.15;
}

.vf-guia__titulo a {
	color: var(--vf-marino);
	text-decoration: none;
}

.vf-guia__titulo a:hover {
	color: var(--vf-azul);
}

.vf-guia__resumen {
	display: none;
	color: var(--vf-acero);
}

.vf-guia__resumen .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.vf-guia__resumen .wp-block-post-excerpt__more-link {
	display: none;
}

.vf-guia__fecha {
	margin-top: auto !important;
	font-size: 13px;
	color: var(--vf-acero);
}

/* La más reciente: imagen principal arriba y texto completo. */
.vf-guias .wp-block-post-template > li:first-child {
	grid-row: span 2;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
}

.vf-guias li:first-child .vf-guia__img {
	aspect-ratio: 16 / 10;
	height: auto;
}

.vf-guias li:first-child .vf-guia__info {
	padding: 26px 28px 28px;
	gap: 12px;
}

.vf-guias li:first-child .vf-guia__titulo {
	font-size: var(--wp--preset--font-size--titulo-m);
	line-height: 1.05;
}

.vf-guias li:first-child .vf-guia__resumen {
	display: block;
}

@media (max-width: 781px) {
	.vf-guias .wp-block-post-template {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.vf-guias .wp-block-post-template > li:first-child {
		grid-row: auto;
	}

	.vf-guias .wp-block-post-template > li:not(:first-child) {
		grid-template-columns: 112px 1fr;
		border-radius: 12px;
	}

	.vf-guias li:not(:first-child) .vf-guia__img {
		min-height: 112px;
	}

	.vf-guias li:not(:first-child) .vf-guia__info {
		padding: 12px 14px;
		gap: 6px;
	}

	.vf-guias li:not(:first-child) .vf-guia__titulo {
		font-size: 16px;
	}

	.vf-guias li:first-child .vf-guia__info {
		padding: 18px 18px 20px;
	}
}

.vf-con-lateral {
	gap: 48px;
}

.vf-lateral {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.vf-lateral__cta {
	background: var(--vf-azul);
	color: #fff;
	border-radius: 14px;
	padding: 24px;
}

.vf-lateral__cta h3 {
	margin-top: 0;
}

.vf-anuncio {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 12px;
	border: 1px dashed var(--vf-acero);
	border-radius: 8px;
	text-align: center;
	color: var(--vf-acero);
	font-size: 14px;
}

.vf-anuncio__etiqueta {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vf-aviso-afiliado {
	font-size: 14px;
	color: var(--vf-acero);
	border-left: 0;
	background: var(--vf-cristal);
	padding: 12px 16px;
	border-radius: 8px;
}

.vf-aviso-admin {
	font-size: 14px;
	background: #fff8d6;
	color: #5c4a00;
	padding: 10px 14px;
	border-radius: 6px;
}

.vf-paginacion {
	margin-block-start: 40px;
	gap: 8px;
	font-weight: 700;
}

.vf-paginacion .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--vf-borde);
	text-decoration: none;
}

.vf-paginacion .page-numbers.current {
	background: var(--vf-azul);
	color: #fff;
	border-color: var(--vf-azul);
}

.vf-contenido h2 {
	font-size: var(--wp--preset--font-size--titulo-m);
	margin-block-start: 1.6em;
	scroll-margin-top: 110px;
}

.vf-contenido table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.vf-contenido th {
	background: var(--vf-marino);
	color: #fff;
	text-align: left;
}

.vf-contenido th,
.vf-contenido td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--vf-borde);
}

.vf-afiliado h3 {
	margin: 4px 0;
}

.vf-sigue-leyendo {
	border-top: 1px solid var(--vf-borde);
	padding-top: 24px;
}

.vf-razon {
	border-top: 4px solid var(--vf-celeste);
	background: var(--vf-hielo);
	padding: 24px;
}

.vf-razon h3,
.vf-razon p {
	margin: 0 0 8px;
}

.vf-persona > * {
	margin: 0 0 6px;
}

.vf-persona img {
	border-radius: 10px;
}

.vf-faq .wp-block-details {
	margin-block-start: 16px;
}

.vf-faq summary {
	font-weight: 600;
	cursor: pointer;
}

.vf-faq .wp-block-details p {
	margin: 10px 0 0;
}

/* ---------- 7. Contacto y formularios ---------- */

.vf-contacto {
	gap: 32px;
}

.vf-contacto .vf-dato + .vf-dato {
	margin-block-start: 16px;
}

.vf-dato p {
	margin: 0 0 4px;
}

.vf-form {
	background: #fff;
	border: 1px solid var(--vf-borde);
	border-radius: 14px;
	padding: clamp(20px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vf-form p {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vf-form__titulo {
	margin: 0;
	font-size: 34px;
}

.vf-form__rejilla {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 18px;
}

.vf-form label {
	font-weight: 700;
	font-size: 14px;
}

.vf-form input,
.vf-form select,
.vf-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 50px;
	padding: 0 14px;
	border-radius: 8px;
	border: 1.5px solid var(--vf-acero);
	background: #fff;
	color: var(--vf-marino);
	font: inherit;
	font-size: 16px;
}

.vf-form textarea {
	padding-block: 12px;
	resize: vertical;
}

.vf-form button {
	min-height: 54px;
	border: 0;
	cursor: pointer;
}

.vf-form__nota {
	font-size: 14px;
	color: var(--vf-acero);
}

.vf-mapa {
	margin-block-start: 40px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--vf-vidrio);
}

/* En Contacto el mapa va en la columna de datos, debajo del horario. */
.vf-contacto .vf-mapa {
	margin-block-start: 16px;
	border: 1px solid var(--vf-borde);
	border-radius: 16px;
}

.vf-mapa iframe {
	display: block;
	width: 100%;
	height: 380px;
	border: 0;
}

.vf-contacto .vf-mapa iframe {
	height: 300px;
}

/* El formulario se queda visible mientras se baja por los datos y el mapa. */
@media (min-width: 782px) {
	.vf-contacto > .wp-block-column:last-child {
		align-self: flex-start;
		position: sticky;
		top: 120px;
	}
}

/* ---------- 8. Filtros por categoría ---------- */

.vf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block: 24px 8px;
}

.vf-chips a {
	background: var(--vf-cristal);
	color: var(--vf-marino);
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 15px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.vf-chips a:hover {
	background: var(--vf-borde);
}

.vf-chips a[aria-current="page"] {
	background: var(--vf-marino);
	color: #fff;
	font-weight: 600;
}

.vf-filtro-movil {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-block: 20px 8px;
}

.vf-filtro__toggle {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.vf-filtro__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 6px;
	background: var(--vf-azul);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	cursor: pointer;
}

.vf-filtro__toggle:focus-visible ~ .vf-filtro__btn {
	outline: 3px solid var(--vf-celeste);
	outline-offset: 3px;
}

.vf-filtro__estado {
	color: var(--vf-acero);
}

.vf-filtro__fondo {
	position: fixed;
	inset: 0;
	background: rgba(5, 11, 102, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 60;
}

.vf-filtro__panel {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(340px, 86vw);
	background: #fff;
	z-index: 70;
	transform: translateX(-105%);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
	overflow-y: auto;
	box-shadow: 12px 0 40px rgba(5, 11, 102, 0.3);
}

.vf-filtro__toggle:checked ~ .vf-filtro__fondo {
	opacity: 1;
	pointer-events: auto;
}

.vf-filtro__toggle:checked ~ .vf-filtro__panel {
	transform: none;
}

.vf-filtro__cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: var(--vf-azul);
	color: #fff;
}

.vf-filtro__cabecera strong {
	font-family: var(--vf-titulos);
	text-transform: uppercase;
	font-size: 22px;
}

.vf-filtro__cabecera label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	cursor: pointer;
}

.vf-filtro__lista {
	list-style: none;
	margin: 0;
	padding: 12px 20px 24px;
}

.vf-filtro__lista a {
	display: flex;
	align-items: center;
	min-height: 48px;
	border-bottom: 1px solid var(--vf-borde);
	color: var(--vf-marino);
	text-decoration: none;
}

.vf-filtro__lista a[aria-current="page"] {
	font-weight: 700;
	color: var(--vf-azul);
}

@media (max-width: 760px) {
	.vf-tienda .vf-chips {
		display: none;
	}

	.vf-filtro-movil {
		display: flex;
	}
}

/* ---------- 9. WooCommerce (catálogo) ---------- */

.vf-tienda .woocommerce-products-header__title,
.vf-tienda .page-title {
	font-size: var(--wp--preset--font-size--titulo-l);
	font-weight: 700;
	letter-spacing: -0.025em;
	margin: 0 0 12px;
}

.vf-intro,
.vf-tienda .term-description {
	font-size: 20px;
	color: var(--vf-acero);
	max-width: 640px;
	margin: 0;
}

.woocommerce .vf-tienda ul.products,
.vf-tienda ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: 24px;
	margin: 24px 0 0;
	padding: 0;
}

.vf-tienda ul.products::before,
.vf-tienda ul.products::after {
	display: none !important;
}

.woocommerce .vf-tienda ul.products li.product,
.vf-tienda ul.products li.product {
	float: none;
	width: auto !important;
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--vf-borde);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vf-tienda ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(5, 17, 242, 0.22);
}

.vf-tienda ul.products li.product .woocommerce-LoopProduct-link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--vf-marino);
	text-decoration: none;
}

.vf-tienda ul.products li.product img {
	height: 200px;
	width: 100%;
	object-fit: cover;
	border-radius: 10px;
	margin: 0 !important;
	background: var(--vf-cristal);
}

.vf-producto__fotos {
	position: absolute;
	right: 10px;
	top: 166px;
	font-size: 12px;
	font-weight: 700;
	background: var(--vf-azul);
	color: #fff;
	padding: 3px 8px;
	border-radius: 999px;
}

.vf-producto__cat {
	font-size: 13px;
	color: var(--vf-acero);
}

.vf-tienda ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--vf-titulos);
	text-transform: uppercase;
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.2;
	padding: 0 !important;
	margin: 0;
}

.vf-precio,
.vf-tienda ul.products li.product .price {
	color: var(--vf-acero) !important;
	font-size: 16px !important;
	margin: 0 !important;
}

.vf-cotizar.wp-element-button {
	display: block;
	margin-top: auto;
	text-align: center;
	border-radius: 999px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	text-decoration: none;
	color: #fff;
	background: var(--vf-azul);
}

.vf-cotizar.wp-element-button:hover {
	background: var(--vf-marino);
	color: #fff;
}

.vf-ficha div.product {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	gap: 48px;
	align-items: start;
}

.vf-ficha div.product .woocommerce-product-gallery,
.vf-ficha div.product .summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.vf-ficha div.product .woocommerce-tabs,
.vf-ficha div.product .related {
	grid-column: 1 / -1;
}

.vf-ficha .product_title {
	font-size: var(--wp--preset--font-size--titulo-l);
}

.vf-ficha .woocommerce-product-gallery img {
	border-radius: 14px;
}

.vf-cotizar-ficha {
	margin-block: 24px;
}

.vf-cotizar-ficha .vf-cotizar {
	display: inline-block;
	padding: 16px 32px;
	font-size: 17px;
}

.vf-cotizar-ficha p {
	color: var(--vf-acero);
	margin: 10px 0 0;
}

.vf-ficha .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: #fff;
}

.vf-ficha .related > h2 {
	font-size: var(--wp--preset--font-size--titulo-m);
}

/* ---------- 10. Botón flotante de WhatsApp ---------- */

.vf-wa {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	width: calc(100vw - 40px);
	max-width: 380px;
	pointer-events: none;
	font-size: 15px;
	line-height: 1.45;
	color: var(--vf-marino);
}

.vf-wa__panel {
	pointer-events: auto;
	width: 100%;
	max-height: calc(100dvh - 120px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(13, 13, 13, 0.3);
	overflow: hidden;
	animation: vf-pop 0.35s ease both;
}

.vf-wa__panel[hidden] {
	display: none;
}

.vf-wa__cabecera {
	background: var(--vf-azul);
	color: #fff;
	padding: 16px 16px 16px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.vf-wa__avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vf-wa__avatar img {
	width: 38px;
	height: auto;
}

.vf-wa__titulo {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.vf-wa__titulo strong {
	font-family: var(--vf-titulos);
	font-size: 19px;
	text-transform: uppercase;
	line-height: 1.1;
}

.vf-wa__titulo span {
	font-size: 13px;
	color: var(--vf-cristal);
}

.vf-wa__cerrar {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
}

.vf-wa__cuerpo {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--vf-hielo);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.vf-wa__datos {
	margin: 0;
	background: #fff;
	border: 1px solid var(--vf-borde);
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vf-wa__datos div {
	display: flex;
	gap: 12px;
	align-items: baseline;
}

.vf-wa__datos dt {
	width: 84px;
	flex: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vf-azul);
}

.vf-wa__datos dd {
	margin: 0;
}

.vf-wa__motivos > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.vf-wa__motivos button {
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--vf-marino);
	background: #fff;
	color: var(--vf-marino);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.vf-wa__motivos button[aria-pressed="true"] {
	background: var(--vf-marino);
	color: #fff;
}

.vf-wa__enviar {
	flex: none;
	background: var(--vf-azul);
	color: #fff;
	min-height: 52px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}

.vf-wa__enviar:hover {
	background: var(--vf-marino);
	color: #fff;
	text-decoration: none;
}

.vf-wa__lanzador {
	display: flex;
	align-items: center;
	gap: 12px;
	pointer-events: auto;
}

.vf-wa__burbuja {
	background: #fff;
	border-radius: 12px;
	padding: 8px 14px;
	box-shadow: 0 6px 20px rgba(13, 13, 13, 0.2);
	font-size: 13px;
	line-height: 1.3;
}

.vf-wa__burbuja[hidden] {
	display: none;
}

.vf-wa__burbuja strong {
	display: block;
}

.vf-wa__boton {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	border: 0;
	background: var(--vf-azul);
	box-shadow: 0 8px 24px rgba(13, 13, 13, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	cursor: pointer;
	animation: vf-ring 2.4s ease-out infinite;
}

@media (max-width: 600px) {
	.vf-wa {
		right: 14px;
		bottom: 14px;
		width: calc(100vw - 28px);
		font-size: 14px;
	}

	.vf-wa__panel {
		max-height: calc(100dvh - 100px);
	}

	.vf-wa__cabecera {
		padding: 12px 12px 12px 14px;
	}

	.vf-wa__avatar {
		width: 40px;
		height: 40px;
	}

	.vf-wa__avatar img {
		width: 32px;
	}

	.vf-wa__titulo strong {
		font-size: 17px;
	}

	.vf-wa__cuerpo {
		padding: 12px;
		gap: 10px;
	}

	.vf-wa__datos {
		padding: 10px 12px;
		gap: 6px;
	}

	.vf-wa__datos dt {
		width: 70px;
		font-size: 11px;
	}

	.vf-wa__motivos button {
		min-height: 38px;
		padding: 0 12px;
		font-size: 13px;
	}

	.vf-wa__enviar {
		min-height: 48px;
	}

	.vf-wa__boton {
		width: 56px;
		height: 56px;
	}

	.vf-wa__burbuja {
		font-size: 12px;
		padding: 6px 12px;
	}
}

/* ---------- 11. Pie ---------- */

.vf-pie {
	background: var(--vf-marino);
	color: var(--vf-cristal);
	font-size: 15px;
	padding-block: 56px 0;
}

.vf-pie a {
	color: var(--vf-cristal);
	text-decoration: none;
}

.vf-pie a:hover {
	color: #fff;
	text-decoration: underline;
}

.vf-pie h3 {
	color: #fff;
	font-size: 18px;
	margin-top: 0;
}

.vf-pie p {
	line-height: 1.9;
}

.vf-redes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-start: 20px;
}

.vf-pie .vf-redes a.vf-red {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vf-pie .vf-redes a.vf-red:hover {
	background: var(--vf-celeste);
	color: var(--vf-marino);
	transform: translateY(-3px);
	text-decoration: none;
}

.vf-pie__legal {
	border-top: 1px solid var(--vf-acero);
	padding-block: 20px 32px;
	margin-block-start: 32px;
	font-size: 14px;
	gap: 8px 24px;
}

.vf-pie__legal p {
	margin: 0;
	line-height: 1.5;
}

.vf-pie a[href*="publika2"] {
	color: var(--vf-celeste);
	font-weight: 700;
	text-decoration: underline;
}

.vf-pie--simple {
	padding-block: 40px;
}

.vf-pie--simple p {
	margin: 0;
	line-height: 1.5;
}

.vf-pie--simple .alignwide {
	gap: 16px 32px;
}

/* ---------- 11b. Ajustes para tablet y celular ---------- */

body {
	overflow-x: clip;
}

@media (max-width: 781px) {
	.vf-lateral {
		position: static;
	}

	.vf-con-lateral {
		gap: 32px;
	}

	.vf-pie {
		padding-block-start: 44px;
	}

	.vf-pie__columnas {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px !important;
	}

	.vf-pie__columnas > .wp-block-column:first-child {
		grid-column: 1 / -1;
	}

	.vf-pie__legal {
		flex-direction: column;
		align-items: flex-start !important;
		padding-block-end: 96px; /* deja sitio al botón de WhatsApp */
	}

	.vf-cta > .alignwide,
	.vf-cta-tarjeta {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.vf-cta__texto {
		flex-basis: auto;
	}

	.vf-ficha div.product {
		gap: 28px;
	}

	.vf-ficha .woocommerce-tabs ul.tabs {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		padding: 0 !important;
	}
}

@media (max-width: 600px) {
	.vf-seccion {
		padding-block: 44px;
	}

	.vf-titulo-banda {
		padding: 18px 16px;
		margin-block-end: 24px;
	}

	.vf-titulo-banda p {
		font-size: 16px;
	}

	.vf-encabezado {
		flex-direction: column;
		align-items: flex-start !important;
	}

	/* Categorías y productos: 2 por fila */
	.vf-categorias,
	.woocommerce .vf-tienda ul.products,
	.vf-tienda ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.vf-categoria {
		aspect-ratio: 3 / 4;
		border-radius: 14px;
	}

	.vf-categoria__info {
		padding: 14px;
	}

	.vf-categoria__nombre {
		font-size: 16px;
	}

	.vf-categoria__total {
		font-size: 12px;
	}

	.vf-categoria__flecha {
		top: 10px;
		right: 10px;
		width: 34px;
		height: 34px;
	}

	.woocommerce .vf-tienda ul.products li.product,
	.vf-tienda ul.products li.product {
		padding: 10px;
		border-radius: 12px;
		gap: 8px;
	}

	.vf-tienda ul.products li.product img {
		height: 130px;
	}

	.vf-producto__fotos {
		top: 100px;
		right: 6px;
		font-size: 11px;
	}

	.vf-tienda ul.products li.product .woocommerce-loop-product__title {
		font-size: 15px !important;
	}

	.vf-precio,
	.vf-tienda ul.products li.product .price {
		font-size: 13px !important;
	}

	.vf-cotizar.wp-element-button {
		padding: 10px 8px;
		font-size: 14px;
	}

	.vf-intro,
	.vf-tienda .term-description {
		font-size: 17px;
	}

	.vf-form__titulo {
		font-size: 28px;
	}

	.vf-mapa iframe {
		height: 300px;
	}

	.vf-contenido table {
		display: block;
		overflow-x: auto;
	}

	.vf-cta-tarjeta .wp-block-buttons,
	.vf-cta-tarjeta .wp-block-button,
	.vf-cta-tarjeta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.vf-pie__columnas {
		grid-template-columns: 1fr;
	}
}

/* ---------- 12. Animaciones ---------- */

h1 {
	animation: vf-fade-up 0.9s ease both;
}

@supports (animation-timeline: view()) {
	.vf-categorias > *,
	.vf-pasos > *,
	.vf-proyectos .wp-block-post-template > *,
	.vf-entradas .wp-block-post-template > *,
	.vf-tienda ul.products > li,
	.wp-block-group.is-style-tarjeta,
	.vf-razon {
		animation: vf-rise linear backwards;
		animation-timeline: view();
		animation-range: entry 0% entry 45%;
	}
}

@keyframes vf-hdr-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes vf-flow { to { background-position: 200% 0; } }
@keyframes vf-shine { 0% { left: -60%; } 60%, 100% { left: 140%; } }
@keyframes vf-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes vf-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes vf-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes vf-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes vf-spin { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
@keyframes vf-marq { to { transform: translateX(-50%); } }
@keyframes vf-pop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes vf-ring { 0% { box-shadow: 0 0 0 0 rgba(5, 199, 242, 0.8); } 100% { box-shadow: 0 0 0 24px rgba(5, 199, 242, 0); } }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Editor: sin animaciones de entrada ni cabecera fija. */
.editor-styles-wrapper h1,
.editor-styles-wrapper .vf-header {
	animation: none;
}

.editor-styles-wrapper .vf-header {
	position: relative;
}
