/* =========================================================
   Vive Fácil Market - main.css
   Autor: Raul De La Reguera para Partimos.cl
   ========================================================= */

*{ box-sizing: border-box; }
body{
	margin: 0;
	font-family: var(--vfm-font-body);
	color: var(--vfm-text);
	background: var(--vfm-white);
	line-height: 1.55;
}
img{ max-width: 100%; display: block; }
a{ text-decoration: none; color: inherit; }
h1,h2,h3,h4{ font-family: var(--vfm-font-heading); color: var(--vfm-navy); margin: 0 0 .5em; line-height: 1.2; }
h1{ font-size: 44px; font-weight: 800; }
h2{ font-size: 32px; font-weight: 700; }
h3{ font-size: 20px; font-weight: 600; }

.vfm-container{
	max-width: var(--vfm-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* Botones */
.vfm-btn{
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--vfm-radius-sm);
	font-weight: 600; font-size: 15px; border: 2px solid transparent;
	transition: transform .15s ease, opacity .15s ease;
}
.vfm-btn:hover{ transform: translateY(-1px); opacity: .92; }
.vfm-btn-primary{ background: var(--vfm-navy); color: var(--vfm-white); }
.vfm-btn-outline{ background: var(--vfm-white); color: var(--vfm-navy); border-color: var(--vfm-navy); }

/* =========================================================
   HEADER
   ========================================================= */
.vfm-header{
	border-bottom: 1px solid var(--vfm-border);
	background: var(--vfm-white);
	position: sticky; top: 0; z-index: 100;
	box-shadow: 0 1px 8px rgba(15,61,92,.06);
}
.vfm-header-inner{
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 24px; gap: 24px;
}
.vfm-logo img,
.vfm-header-logo .custom-logo,
.vfm-header-logo img{ width: 180px; height: auto; max-width: 100%; }
.vfm-main-nav{ flex: 1; display: flex; justify-content: center; }
.vfm-menu{ display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.vfm-menu a{
	font-weight: 500; font-size: 15px; color: var(--vfm-navy);
	padding-bottom: 4px; border-bottom: 2px solid transparent;
	transition: border-color .15s ease;
}
.vfm-menu a:hover, .vfm-menu .current-menu-item a{ border-color: var(--vfm-green); color: var(--vfm-green); }

.vfm-header-icons{ display: flex; align-items: center; gap: 18px; }
.vfm-icon-btn{
	position: relative; background: none; border: none; cursor: pointer;
	font-size: 18px; color: var(--vfm-navy); padding: 6px;
	transition: color .15s ease;
}
.vfm-icon-btn:hover{ color: var(--vfm-green); }
.vfm-cart-count{
	position: absolute; top: -4px; right: -4px;
	background: var(--vfm-navy); color: #fff; font-size: 10px;
	border-radius: 50%; width: 16px; height: 16px;
	display: flex; align-items: center; justify-content: center;
}
.vfm-mobile-toggle{ display: none; background: none; border: none; font-size: 22px; color: var(--vfm-navy); cursor: pointer; }

/* Menú móvil abierto */
.vfm-main-nav.is-open{
	display: flex !important; flex-direction: column;
	position: absolute; top: 100%; left: 0; right: 0;
	background: var(--vfm-white); border-bottom: 1px solid var(--vfm-border);
	padding: 20px 24px; box-shadow: 0 8px 24px rgba(15,61,92,.12);
	z-index: 99;
}
.vfm-main-nav.is-open .vfm-menu{
	flex-direction: column; gap: 0;
}
.vfm-main-nav.is-open .vfm-menu li{
	border-bottom: 1px solid var(--vfm-border);
}
.vfm-main-nav.is-open .vfm-menu a{
	display: block; padding: 14px 0; font-size: 16px;
	border-bottom: none;
}

/* =========================================================
   HERO
   ========================================================= */
.vfm-hero{ padding: 60px 0 84px; }   /* padding-bottom extra para la tarjeta flotante */
.vfm-hero-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vfm-badge{
	display: inline-block; background: var(--vfm-navy); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .8px;
	padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
	text-transform: uppercase;
}
.vfm-hero-copy h1{
	font-size: 44px; line-height: 1.15; margin-bottom: 20px;
	font-weight: 800;
}
.vfm-hero-copy p{ color: var(--vfm-text-muted); margin-bottom: 28px; font-size: 16px; line-height: 1.65; }
.vfm-hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.vfm-hero-media{ position: relative; padding-bottom: 40px; }   /* espacio para la tarjeta */
.vfm-hero-media > img{
	border-radius: var(--vfm-radius); width: 100%; height: 480px;
	object-fit: cover; object-position: center top;
	display: block;
}
.vfm-hero-card{
	position: absolute; bottom: 0; right: -10px; max-width: 240px;
	background: #fff; border-radius: var(--vfm-radius); padding: 20px 22px;
	box-shadow: 0 12px 32px rgba(15,61,92,.14);
	z-index: 2;
}
.vfm-hero-card i{ color: var(--vfm-green); font-size: 24px; margin-bottom: 10px; display: block; }
.vfm-hero-card p{ font-size: 14px; font-weight: 600; color: var(--vfm-navy); margin: 0; line-height: 1.4; }
.vfm-hero-card span{ display: flex; gap: 6px; color: var(--vfm-text-muted); font-size: 13px; margin-top: 10px; align-items: center; }
.vfm-hero-card span i{ font-size: 13px; margin-bottom: 0; }

/* =========================================================
   HERO — MODO FONDO COMPLETO
   ========================================================= */
.vfm-hero--fondo {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	padding: 100px 0 120px;
}
/* Overlay oscuro para legibilidad del texto */
.vfm-hero--fondo::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(15, 61, 92, 0.58);
	z-index: 0;
}
.vfm-hero--fondo .vfm-container { position: relative; z-index: 1; }
/* Colores invertidos para contraste sobre el overlay */
.vfm-hero--fondo .vfm-hero-copy h1 { color: #fff; }
.vfm-hero--fondo .vfm-hero-copy p  { color: rgba(255,255,255,.85); }
.vfm-hero--fondo .vfm-badge        { background: rgba(255,255,255,.18); color: #fff; }
.vfm-hero--fondo .vfm-btn-outline  {
	border-color: rgba(255,255,255,.6);
	color: #fff;
}
.vfm-hero--fondo .vfm-btn-outline:hover {
	background: rgba(255,255,255,.12);
}
/* Ocultar la imagen lateral (ya está de fondo) */
.vfm-hero--fondo .vfm-hero-media { display: none; }

/* =========================================================
   CTA STRIP (bajo el hero)
   ========================================================= */
.vfm-cta-strip{
	background: var(--vfm-bg-light);
	border-top: 1px solid var(--vfm-border);
	border-bottom: 1px solid var(--vfm-border);
	padding: 20px 0;
}
.vfm-cta-strip-inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.vfm-cta-strip-text{
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--vfm-navy);
}
@media(max-width:600px){
	.vfm-cta-strip-inner{ flex-direction: column; text-align: center; }
}

/* =========================================================
   FEATURES
   ========================================================= */
.vfm-features{ padding: 48px 0; background: var(--vfm-white); border-top: 1px solid var(--vfm-border); border-bottom: 1px solid var(--vfm-border); }
.vfm-features-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.vfm-feature-icon{
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--vfm-bg-light); color: var(--vfm-navy);
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; margin-bottom: 14px;
}
.vfm-feature h3{ font-size: 16px; margin-bottom: 6px; }
.vfm-feature p{ font-size: 14px; color: var(--vfm-text-muted); margin: 0; }

/* =========================================================
   SECCIÓN GENÉRICA (head + eyebrow)
   ========================================================= */
.vfm-section-head{ margin-bottom: 36px; }
.vfm-section-head h2{ margin-bottom: 12px; }
.vfm-section-head p{ color: var(--vfm-text-muted); font-size: 15px; margin: 0; }
.vfm-section-head.vfm-center{ text-align: center; }
.vfm-eyebrow{
	display: inline-block; background: var(--vfm-green-light); color: var(--vfm-green);
	font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	padding: 5px 12px; border-radius: 14px; margin-bottom: 14px;
}
.vfm-text-green{ color: var(--vfm-green); }
.vfm-link-arrow{
	display: inline-flex; gap: 8px; align-items: center; color: var(--vfm-navy);
	font-weight: 600; font-size: 14px; margin-top: 16px;
	border: 1px solid var(--vfm-border); padding: 10px 20px; border-radius: 24px;
	transition: border-color .15s ease, color .15s ease;
}
.vfm-link-arrow:hover{ border-color: var(--vfm-green); color: var(--vfm-green); }

/* =========================================================
   PRODUCTOS DESTACADOS
   ========================================================= */
.vfm-featured-products{ padding: 72px 0; background: var(--vfm-white); }

/* Layout: texto izquierda (fijo 290px) + grid de tarjetas derecha */
.vfm-solutions-grid{
	display: grid;
	grid-template-columns: 290px 1fr;
	gap: 48px;
	align-items: start;
}
.vfm-solutions-grid .vfm-section-head{ margin-bottom: 0; }

/* Grid de tarjetas: siempre 2 columnas */
.vfm-products-grid{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* ── Tarjeta de producto ── */
.vfm-product-card{
	position: relative;
	display: grid;
	grid-template-columns: 1fr 44%;   /* texto | imagen */
	border-radius: var(--vfm-radius);
	overflow: hidden;
	min-height: 240px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.vfm-product-card:hover{
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(15,61,92,.13);
}
/* Fondos alternados: lavanda (impar) + menta (par) */
.vfm-product-card:nth-child(odd) { background: var(--vfm-bg-light); }
.vfm-product-card:nth-child(even){ background: var(--vfm-green-light); }

/* Columna izquierda: info */
.vfm-product-info{
	padding: 24px 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}
.vfm-product-title{
	font-size: 18px; font-weight: 700; color: var(--vfm-navy);
	margin: 0; line-height: 1.3;
}
.vfm-product-desc{
	font-size: 13px; color: var(--vfm-text-muted);
	line-height: 1.5; margin: 0; flex: 1;
}
.vfm-btn-sm{ padding: 9px 18px; font-size: 13px; align-self: flex-start; }

/* Columna derecha: imagen */
.vfm-product-img{
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.vfm-product-img img{
	width: 100%; height: 100%;
	object-fit: cover; object-position: center;
	display: block;
}
/* SVG ilustración: centrar y contener (no recortar) */
.vfm-product-img img[src$=".svg"]{
	object-fit: contain;
	padding: 16px;
	height: 90%;
}

/* Badge NUEVO — desktop: esquina superior derecha (sobre la imagen) */
.vfm-product-badge{
	position: absolute; top: 14px; right: 14px; z-index: 2;
	background: var(--vfm-green); color: #fff;
	font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
	padding: 4px 12px; border-radius: 14px;
}

/* =========================================================
   ARTÍCULOS / BLOG
   ========================================================= */
.vfm-articles{ padding: 64px 0; }
.vfm-articles-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 32px; }
.vfm-article-card{ border-radius: var(--vfm-radius); overflow: hidden; box-shadow: 0 6px 18px rgba(15,61,92,.06); background: #fff; }
.vfm-article-thumb{ position: relative; display: block; }
.vfm-article-thumb img{ width: 100%; height: 200px; object-fit: cover; }
.vfm-tag{
	position: absolute; top: 14px; left: 14px;
	background: var(--vfm-navy); color: #fff; font-size: 11px; font-weight: 700;
	padding: 4px 12px; border-radius: 14px; text-transform: uppercase;
}
.vfm-article-body{ padding: 18px 20px; }
.vfm-article-body h3{ font-size: 18px; margin-bottom: 10px; }
.vfm-article-meta{ display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--vfm-text-muted); }
.vfm-article-meta a{ color: var(--vfm-navy); font-weight: 600; }
.vfm-center{ text-align: center; }

/* =========================================================
   MISIÓN
   ========================================================= */
.vfm-mission{ background: var(--vfm-bg-light); padding: 72px 0; }
.vfm-mission-grid{ display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.vfm-mission-media img{ border-radius: var(--vfm-radius); width: 100%; height: 440px; object-fit: cover; object-position: center; display: block; }
.vfm-mission-copy .vfm-eyebrow{ margin-bottom: 16px; }
.vfm-mission-copy h2{ font-size: 30px; margin-bottom: 16px; }
.vfm-mission-copy > p{ color: var(--vfm-text-muted); font-size: 15px; line-height: 1.7; }
.vfm-mission-list{ list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.vfm-mission-list li{
	display: flex; gap: 12px; align-items: flex-start;
	color: var(--vfm-text); font-size: 14px; line-height: 1.5;
	background: rgba(255,255,255,.6); border-radius: var(--vfm-radius-sm);
	padding: 14px 16px;
}
.vfm-mission-list i{ color: var(--vfm-green); margin-top: 2px; font-size: 16px; flex-shrink: 0; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.vfm-newsletter{ background: var(--vfm-bg-light); padding: 36px 0; color: var(--vfm-navy); }
.vfm-newsletter-inner{ display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.vfm-newsletter-copy{ display: flex; gap: 16px; align-items: flex-start; }
.vfm-newsletter-copy i{ font-size: 22px; margin-top: 4px; color: var(--vfm-navy); }
.vfm-newsletter-copy h3{ color: var(--vfm-navy); margin-bottom: 6px; }
.vfm-newsletter-copy p{ margin: 0; color: var(--vfm-text-muted); font-size: 14px; }
.vfm-newsletter-form{ display: flex; gap: 10px; }
.vfm-newsletter-form input{
	padding: 12px 16px; border-radius: var(--vfm-radius-sm); border: 1px solid var(--vfm-border);
	background: var(--vfm-white); min-width: 260px;
}
.vfm-newsletter-form button{
	background: var(--vfm-navy); color: #fff; border: none; font-weight: 700;
	padding: 12px 22px; border-radius: var(--vfm-radius-sm); cursor: pointer;
}
.vfm-newsletter-note{ font-size: 12px; color: var(--vfm-text-muted); margin-top: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.vfm-footer{ background: var(--vfm-cream); padding: 56px 0 0; border-top: 1px solid var(--vfm-border); }
.vfm-footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.vfm-footer-brand p{ color: var(--vfm-text-muted); font-size: 13px; margin-top: 12px; }
.vfm-footer-col h4{ font-size: 14px; margin-bottom: 14px; }
.vfm-footer-menu{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vfm-footer-menu a{ font-size: 14px; color: var(--vfm-text-muted); }
.vfm-social-icons{ display: flex; gap: 10px; }
.vfm-social-icons a{
	width: 34px; height: 34px; border-radius: 50%; background: var(--vfm-navy); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.vfm-footer-bottom{
	display: flex; justify-content: space-between; padding: 18px 24px;
	border-top: 1px solid var(--vfm-border); font-size: 13px; color: var(--vfm-text-muted);
}
.vfm-credit a{ color: var(--vfm-navy); font-weight: 600; }

/* =========================================================
   GENÉRICO (páginas / single)
   ========================================================= */
.vfm-generic-content{ padding: 56px 0; max-width: 860px; }
.vfm-page-title{ font-size: 34px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px){
	.vfm-features-grid{ grid-template-columns: repeat(2, 1fr); }
	.vfm-articles-grid{ grid-template-columns: 1fr 1fr; }
	.vfm-solutions-grid{ grid-template-columns: 1fr; gap: 28px; }
	.vfm-solutions-grid .vfm-section-head{ margin-bottom: 8px; }
	.vfm-products-grid{ grid-template-columns: repeat(2, 1fr); display: grid; overflow: visible; }
	.vfm-mission-grid{ grid-template-columns: 1fr; gap: 36px; }
	.vfm-mission-media img{ height: 340px; }
}
@media (max-width: 768px){

	/* ── TIPOGRAFÍA BASE ── */
	h1{ font-size: 32px; }
	h2{ font-size: 26px; }
	h3{ font-size: 18px; }

	/* ── HEADER ── */
	.vfm-header-inner{ padding: 12px 16px; gap: 12px; }
	.vfm-main-nav{ display: none; position: absolute; width: 100%; left: 0; top: 100%; }
	.vfm-mobile-toggle{ display: block; }
	.vfm-logo img,
	.vfm-header-logo .custom-logo,
	.vfm-header-logo img{ width: 130px; }
	.vfm-header-icons{ gap: 12px; }
	.vfm-icon-btn{ font-size: 16px; }

	/* ── HERO lateral ── */
	.vfm-hero{ padding: 36px 0 48px; }
	.vfm-hero-grid{
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.vfm-hero-copy h1{ font-size: 32px; margin-bottom: 14px; }
	.vfm-hero-copy p{ font-size: 15px; margin-bottom: 20px; }
	.vfm-hero-actions{ flex-direction: column; gap: 10px; }
	.vfm-hero-actions .vfm-btn{ width: 100%; justify-content: center; }
	.vfm-hero-media{ padding-bottom: 80px; }
	.vfm-hero-media > img{ height: 260px; }
	.vfm-hero-card{
		right: 0; left: 0; max-width: 90%; margin: 0 auto;
		bottom: 0;
	}

	/* ── HERO fondo ── */
	.vfm-hero--fondo{ padding: 56px 0 64px; }

	/* ── FEATURES ── */
	.vfm-features{ padding: 32px 0; }
	.vfm-features-grid{ grid-template-columns: 1fr 1fr; gap: 20px; }

	/* ── PRODUCTOS ── */
	.vfm-featured-products{ padding: 48px 0; }
	.vfm-solutions-grid{
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.vfm-products-grid{
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.vfm-product-card{
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		min-height: unset;
	}
	.vfm-product-info{ padding: 20px 18px; gap: 8px; }
	.vfm-product-img{
		height: 180px;
		order: -1;    /* imagen arriba, texto abajo */
	}
	.vfm-product-img img{ height: 100%; }
	.vfm-product-badge{ top: 10px; right: 10px; }

	/* ── ARTÍCULOS ── */
	.vfm-articles{ padding: 44px 0; }
	.vfm-articles-grid{
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 24px;
	}

	/* ── MISIÓN ── */
	.vfm-mission{ padding: 48px 0; }
	.vfm-mission-grid{
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.vfm-mission-media img{ height: 240px; }
	.vfm-mission-copy h2{ font-size: 24px; }

	/* ── NEWSLETTER ── */
	.vfm-newsletter{ padding: 32px 0; }
	.vfm-newsletter-inner{
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.vfm-newsletter-form{
		flex-direction: column;
		gap: 10px;
		width: 100%;
	}
	.vfm-newsletter-form input{
		min-width: unset;
		width: 100%;
	}
	.vfm-newsletter-form button{ width: 100%; }

	/* ── FOOTER ── */
	.vfm-footer{ padding: 40px 0 0; }
	.vfm-footer-grid{
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
	.vfm-footer-bottom{
		flex-direction: column;
		gap: 6px;
		text-align: center;
		padding: 16px;
	}
}

@media (max-width: 480px){

	/* ── TIPOGRAFÍA ── */
	h1{ font-size: 28px; }
	h2{ font-size: 22px; }

	/* ── CONTENEDOR ── */
	.vfm-container{ padding: 0 16px; }

	/* ── HEADER ── */
	.vfm-logo img,
	.vfm-header-logo .custom-logo,
	.vfm-header-logo img{ width: 110px; }

	/* ── HERO ── */
	.vfm-hero{ padding: 28px 0 40px; }
	.vfm-hero-copy h1{ font-size: 28px; }
	.vfm-hero-media > img{ height: 220px; }

	/* ── FEATURES ── */
	.vfm-features-grid{ grid-template-columns: 1fr; gap: 16px; }

	/* ── PRODUCTOS ── */
	.vfm-product-img{ height: 160px; }

	/* ── ARTÍCULOS ── */
	.vfm-article-thumb img{ height: 180px; }

	/* ── MISIÓN ── */
	.vfm-mission-media img{ height: 200px; }

	/* ── FOOTER ── */
	.vfm-footer-grid{ grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   PRODUCTOS — 3 columnas (portada)
   ========================================================= */
.vfm-products-grid--3{
	grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   ARTÍCULOS — imagen con ratio flexible (no deforma)
   ========================================================= */
.vfm-article-thumb img{
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

/* =========================================================
   SINGLE — artículo completo
   ========================================================= */
.vfm-single-wrap{ padding: 48px 0 72px; }
.vfm-single-container{ max-width: 780px; }

.vfm-single-header{ margin-bottom: 28px; }
.vfm-single-header .vfm-tag{ margin-bottom: 16px; display: inline-block; }
.vfm-single-title{
	font-size: 36px; font-weight: 800; line-height: 1.15;
	color: var(--vfm-navy); margin: 12px 0 16px;
}
.vfm-single-meta{
	display: flex; gap: 20px; color: var(--vfm-text-muted); font-size: 14px;
}
.vfm-single-meta span{ display: flex; align-items: center; gap: 6px; }

.vfm-single-thumb{ margin-bottom: 36px; border-radius: var(--vfm-radius); overflow: hidden; }
.vfm-single-thumb img{ width: 100%; height: auto; display: block; }

.vfm-single-content{
	font-size: 16px; line-height: 1.75; color: var(--vfm-text);
}
.vfm-single-content h2{ font-size: 24px; margin-top: 36px; margin-bottom: 14px; }
.vfm-single-content h3{ font-size: 20px; margin-top: 28px; }
.vfm-single-content p{ margin: 0 0 20px; }
.vfm-single-content img{ border-radius: var(--vfm-radius-sm); margin: 20px 0; }
.vfm-single-content ul, .vfm-single-content ol{ padding-left: 24px; margin-bottom: 20px; }
.vfm-single-content li{ margin-bottom: 8px; }
.vfm-single-content a{ color: var(--vfm-green); text-decoration: underline; }
.vfm-single-content blockquote{
	border-left: 4px solid var(--vfm-green); margin: 28px 0; padding: 16px 20px;
	background: var(--vfm-bg-light); border-radius: 0 var(--vfm-radius-sm) var(--vfm-radius-sm) 0;
	font-style: italic; color: var(--vfm-navy);
}

.vfm-single-nav{
	display: flex; justify-content: space-between; gap: 16px;
	margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--vfm-border);
}
.vfm-nav-link{
	display: flex; align-items: center; gap: 14px;
	padding: 16px 20px; border-radius: var(--vfm-radius); border: 1px solid var(--vfm-border);
	max-width: 48%; transition: border-color .15s, color .15s; color: var(--vfm-navy);
}
.vfm-nav-link:hover{ border-color: var(--vfm-green); color: var(--vfm-green); }
.vfm-nav-link span{ display: flex; flex-direction: column; gap: 4px; }
.vfm-nav-link small{ font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--vfm-text-muted); }
.vfm-nav-link i{ font-size: 16px; flex-shrink: 0; }
.vfm-nav-next{ text-align: right; flex-direction: row-reverse; margin-left: auto; }

.vfm-single-back{ margin-top: 32px; }

/* Responsive single */
@media (max-width: 768px){
	.vfm-single-title{ font-size: 26px; }
	.vfm-single-meta{ flex-direction: column; gap: 8px; }
	.vfm-single-nav{ flex-direction: column; }
	.vfm-nav-link{ max-width: 100%; }
	.vfm-nav-next{ flex-direction: row; text-align: left; margin-left: 0; }
	.vfm-products-grid--3{ grid-template-columns: 1fr; }
}
@media (max-width: 1024px){
	.vfm-products-grid--3{ grid-template-columns: 1fr; }
}

/* =========================================================
   BLOG ARCHIVE (index.php)
   ========================================================= */
.vfm-blog-wrap{ padding: 56px 0 72px; }
.vfm-blog-header{ margin-bottom: 40px; }
.vfm-blog-header h1{ font-size: 34px; margin-bottom: 8px; }
.vfm-archive-desc{ color: var(--vfm-text-muted); font-size: 15px; }

.vfm-blog-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 48px;
}
.vfm-blog-card{
	background: #fff;
	border-radius: var(--vfm-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15,61,92,.07);
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}
.vfm-blog-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,61,92,.12); }

.vfm-blog-thumb{
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--vfm-bg-light);
}
.vfm-blog-thumb img{
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	transition: transform .3s ease;
}
.vfm-blog-card:hover .vfm-blog-thumb img{ transform: scale(1.04); }
.vfm-blog-thumb-placeholder{
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-size: 40px; color: var(--vfm-border);
}

.vfm-blog-body{
	padding: 20px 22px 22px;
	display: flex; flex-direction: column; flex: 1;
}
.vfm-blog-title{ font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.vfm-blog-title a{ color: var(--vfm-navy); }
.vfm-blog-title a:hover{ color: var(--vfm-green); }
.vfm-blog-excerpt{ font-size: 14px; color: var(--vfm-text-muted); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.vfm-blog-meta{
	display: flex; justify-content: space-between; align-items: center;
	font-size: 13px; color: var(--vfm-text-muted);
	border-top: 1px solid var(--vfm-border); padding-top: 14px;
}
.vfm-blog-read{ color: var(--vfm-navy); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.vfm-blog-read:hover{ color: var(--vfm-green); }

.vfm-no-posts{ color: var(--vfm-text-muted); font-size: 16px; text-align: center; padding: 40px 0; }

/* Paginación */
.vfm-pagination .nav-links{ display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vfm-pagination .page-numbers{
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--vfm-border); border-radius: var(--vfm-radius-sm);
	color: var(--vfm-navy); font-weight: 600; font-size: 14px;
	transition: border-color .15s, color .15s;
}
.vfm-pagination .page-numbers.current,
.vfm-pagination .page-numbers:hover{ border-color: var(--vfm-green); color: var(--vfm-green); }

/* =========================================================
   SINGLE — CONTENIDO GUTENBERG
   ========================================================= */
/* Reset de posibles conflictos con bloques */
.vfm-single-content .wp-block-image img{ max-width: 100%; height: auto; border-radius: var(--vfm-radius-sm); }
.vfm-single-content .wp-block-image figcaption{ font-size: 13px; color: var(--vfm-text-muted); text-align: center; margin-top: 8px; }
.vfm-single-content .wp-block-quote{
	border-left: 4px solid var(--vfm-green); margin: 28px 0; padding: 16px 20px;
	background: var(--vfm-bg-light); border-radius: 0 var(--vfm-radius-sm) var(--vfm-radius-sm) 0;
	font-style: italic; color: var(--vfm-navy);
}
.vfm-single-content .wp-block-quote cite{ display: block; font-size: 13px; color: var(--vfm-text-muted); margin-top: 8px; font-style: normal; }
.vfm-single-content .wp-block-separator{ border: none; border-top: 1px solid var(--vfm-border); margin: 32px 0; }
.vfm-single-content .wp-block-columns{ display: flex; gap: 24px; margin-bottom: 20px; }
.vfm-single-content .wp-block-column{ flex: 1; }
.vfm-single-content .wp-block-button .wp-block-button__link{
	background: var(--vfm-navy); color: #fff; padding: 12px 22px;
	border-radius: var(--vfm-radius-sm); font-weight: 600; display: inline-block;
}
.vfm-single-content figure{ margin: 24px 0; }
.vfm-single-content table{ width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.vfm-single-content table th,
.vfm-single-content table td{ border: 1px solid var(--vfm-border); padding: 10px 14px; font-size: 14px; text-align: left; }
.vfm-single-content table th{ background: var(--vfm-bg-light); font-weight: 700; }

/* =========================================================
   RESPONSIVE — BLOG + SINGLE (ampliación)
   ========================================================= */
@media (max-width: 1024px){
	.vfm-blog-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
	.vfm-blog-wrap{ padding: 36px 0 48px; }
	.vfm-blog-grid{ grid-template-columns: 1fr; gap: 20px; }
	.vfm-single-content .wp-block-columns{ flex-direction: column; }
}

/* =========================================================
   ETIQUETA PERSONALIZADA DE PRODUCTO
   ========================================================= */
/* Tarjetas de portada */
.vfm-product-badge{
	background: var(--vfm-green);
	color: #fff;
	font-size: 11px; font-weight: 700;
	l
/* =========================================================
   SINGLE PRODUCT — Ficha de producto VFM
   ========================================================= */
.vfm-single-product-wrapper{
	padding: 40px 0 72px;
}

/* — Layout general: galería + resumen — */
.woocommerce div.product{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 52px;
	align-items: start;
}

/* — Galería — */
.woocommerce div.product div.images .woocommerce-product-gallery__image img{
	border-radius: var(--vfm-radius);
	width: 100%;
	height: auto;
	display: block;
}
.woocommerce div.product div.images .flex-control-thumbs li img{
	border-radius: 6px;
	border: 2px solid transparent;
	transition: border-color .15s;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover{
	border-color: var(--vfm-green);
}

/* — Resumen — */
.woocommerce div.product .summary.entry-summary{
	padding-top: 6px;
}

/* Título */
.woocommerce div.product .product_title{
	font-family: var(--vfm-font-heading);
	color: var(--vfm-navy);
	font-size: 30px;
	line-height: 1.25;
	margin-bottom: 14px;
	font-weight: 700;
}

/* Rating */
.woocommerce div.product .star-rating span::before,
.woocommerce div.product .star-rating::before{
	color: var(--vfm-green);
}

/* Precio */
.woocommerce div.product p.price,
.woocommerce div.product span.price{
	font-size: 26px;
	font-weight: 700;
	color: var(--vfm-navy);
	display: block;
	margin-bottom: 18px;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins{
	color: var(--vfm-green);
	text-decoration: none;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del{
	color: var(--vfm-text-muted);
	font-weight: 400;
	font-size: 18px;
	margin-right: 6px;
}

/* Descripción corta */
.woocommerce div.product .woocommerce-product-details__short-description{
	color: var(--vfm-text-muted);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 24px;
}
.woocommerce div.product .woocommerce-product-details__short-description p{
	margin: 0 0 10px;
}

/* — Formulario carrito — */
.woocommerce div.product form.cart{
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.woocommerce div.product form.cart .quantity input.qty{
	border: 1px solid var(--vfm-border) !important;
	border-radius: var(--vfm-radius-sm) !important;
	padding: 10px 14px !important;
	font-size: 15px;
	color: var(--vfm-navy);
	width: 72px;
	text-align: center;
	height: auto !important;
}

/* Botón añadir al carrito */
.woocommerce div.product form.cart .single_add_to_cart_button{
	background: var(--vfm-navy) !important;
	color: #fff !important;
	border: 2px solid var(--vfm-navy) !important;
	border-radius: var(--vfm-radius-sm) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 12px 28px !important;
	cursor: pointer;
	transition: background .2s, border-color .2s;
	letter-spacing: .2px;
	text-transform: none !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover{
	background: var(--vfm-green) !important;
	border-color: var(--vfm-green) !important;
}

/* Botones generales WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
	background: var(--vfm-navy) !important;
	color: #fff !important;
	border-radius: var(--vfm-radius-sm) !important;
	border: none !important;
	font-weight: 600 !important;
	transition: background .2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{
	background: var(--vfm-green) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt{
	background: var(--vfm-green) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover{
	background: var(--vfm-navy) !important;
}

/* — Meta (SKU / categorías) — */
.woocommerce div.product .product_meta{
	font-size: 13px;
	color: var(--vfm-text-muted);
	border-top: 1px solid var(--vfm-border);
	padding-top: 16px;
	margin-top: 20px;
	line-height: 1.8;
}
.woocommerce div.product .product_meta a{
	color: var(--vfm-navy);
}
.woocommerce div.product .product_meta a:hover{
	color: var(--vfm-green);
}

/* — Tabs — */
.woocommerce div.product .woocommerce-tabs{
	grid-column: 1 / -1;
	margin-top: 48px;
	border-top: 1px solid var(--vfm-border);
	padding-top: 32px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs{
	border-bottom: 2px solid var(--vfm-border);
	padding: 0;
	margin: 0 0 28px;
	list-style: none;
	display: flex;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{ display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li{
	border: none !important;
	background: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{ display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vfm-text-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	text-decoration: none;
	transition: color .15s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{
	color: var(--vfm-navy);
	border-bottom-color: var(--vfm-green);
}
.woocommerce div.product .woocommerce-tabs .panel{
	font-size: 15px;
	color: var(--vfm-text-muted);
	line-height: 1.7;
}
.woocommerce div.product .woocommerce-tabs .panel h2{
	font-family: var(--vfm-font-heading);
	color: var(--vfm-navy);
	font-size: 20px;
	margin-bottom: 16px;
}

/* — Productos relacionados — */
.woocommerce .related.products{
	grid-column: 1 / -1;
	margin-top: 56px;
}
.woocommerce .related.products > h2{
	font-family: var(--vfm-font-heading);
	color: var(--vfm-navy);
	font-size: 24px;
	margin-bottom: 28px;
	font-weight: 700;
}

/* — Responsive single product — */
@media (max-width: 768px){
	.vfm-single-product-wrapper{ padding: 24px 0 48px; }
	.woocommerce div.product{
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.woocommerce div.product .product_title{ font-size: 24px; }
	.woocommerce div.product p.price,
	.woocommerce div.product span.price{ font-size: 22px; }
	.woocommerce div.product form.cart .single_add_to_cart_button{
		width: 100% !important;
		justify-content: center;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs{
		flex-wrap: wrap;
	}
}

/* — Ocultar cantidad en stock — */
.woocommerce-variation-availability .stock,
.woocommerce .stock{ display: none !important; }
column: 1 / -1;
	margin-top: 56px;
}
.woocommerce .related.products > h2{
	font-family: var(--vfm-font-heading);
	color: var(--vfm-navy);
	font-size: 24px;
	margin-bottom: 28px;
	font-weight: 700;
}

/* — Responsive single product — */
@media (max-width: 768px){
	.vfm-single-product-wrapper{ padding: 24px 0 48px; }
	.woocommerce div.product{
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.woocommerce div.product .product_title{ font-size: 24px; }
	.woocommerce div.product p.price,
	.woocommerce div.product span.price{ font-size: 22px; }
	.woocommerce div.product form.cart .single_add_to_cart_button{
		width: 100% !important;
		justify-content: center;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs{
		flex-wrap: wrap;
	}
}
