/*
Theme Name: GeneratePress Child CM
Template: generatepress
Version: 1.1.0
Author: LlobregatWeb
Description: Tema hijo de GeneratePress para Carnicas Maestros. Diseño premium B2B según guía de estilo v1.0: rojo #C8102E, dorado #D4A832, azul marino #1B3664, negro #1A1A1A y blanco roto #FAFAF8. Tipografías Playfair Display + Inter + Cormorant Garamond.
*/

/* =====================================================================
   1. VARIABLES DE MARCA (guía de estilo §9.2)
   ===================================================================== */
:root {
	/* Colores de marca */
	--cm-red: #C8102E;
	--cm-red-dark: #A80D24;
	--cm-red-light: #E8384F;
	--cm-gold: #D4A832;
	--cm-gold-dark: #C49A28;
	--cm-gold-light: #E4BE5A;
	--cm-navy: #1B3664;
	--cm-navy-dark: #0F2244;
	--cm-navy-light: #2A4F8A;

	/* Neutros */
	--cm-black: #1A1A1A;
	--cm-black-deep: #111111;
	--cm-charcoal: #2D2D2D;
	--cm-gray-dark: #4A4A4A;
	--cm-gray: #6B6B6B;
	--cm-gray-medium: #9E9E9E;
	--cm-gray-light: #E8E6E1;
	--cm-gray-pale: #F5F3EF;
	--cm-white-off: #FAFAF8;
	--cm-white: #FFFFFF;

	/* Semánticos */
	--cm-success: #2E7D32;
	--cm-success-bg: #E8F5E9;
	--cm-error: #C62828;
	--cm-error-bg: #FFEBEE;
	--cm-warning: #F9A825;
	--cm-warning-bg: #FFF8E1;
	--cm-info: #1565C0;
	--cm-info-bg: #E3F2FD;

	/* Tipografía */
	--cm-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--cm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--cm-font-accent: 'Cormorant Garamond', Georgia, serif;

	/* Escala */
	--cm-text-xs: 0.75rem;
	--cm-text-sm: 0.875rem;
	--cm-text-base: 1rem;
	--cm-text-lg: 1.125rem;
	--cm-text-xl: 1.25rem;
	--cm-text-2xl: 1.375rem;
	--cm-text-3xl: 1.5rem;
	--cm-text-4xl: 2.25rem;
	--cm-text-5xl: 3rem;
	--cm-text-6xl: 3.5rem;

	/* Espaciado */
	--cm-space-xs: 4px;
	--cm-space-sm: 8px;
	--cm-space-md: 16px;
	--cm-space-lg: 24px;
	--cm-space-xl: 32px;
	--cm-space-2xl: 48px;
	--cm-space-3xl: 64px;
	--cm-space-4xl: 80px;

	/* Bordes / sombras / transiciones */
	--cm-radius-sm: 3px;
	--cm-radius-md: 4px;
	--cm-radius-lg: 8px;
	--cm-radius-xl: 12px;
	--cm-radius-full: 9999px;
	--cm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--cm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
	--cm-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
	--cm-shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);
	--cm-transition-fast: 150ms ease;
	--cm-transition-base: 200ms ease;
	--cm-transition-slow: 300ms ease;
	--cm-transition-reveal: 600ms ease;

	/* Z-index */
	--cm-z-sticky: 200;
	--cm-z-navbar: 500;
	--cm-z-modal: 1000;
	--cm-z-toast: 1100;
	--cm-z-skip-link: 9999;

	/* Contenedor */
	--cm-container-max: 1200px;
	--cm-container-padding: 40px;
	--cm-container-padding-mobile: 16px;
}

/* =====================================================================
   2. BASE Y TIPOGRAFÍA (guía §3)
   ===================================================================== */
body {
	font-family: var(--cm-font-body);
	font-size: var(--cm-text-base);
	font-weight: 400;
	line-height: 1.6;
	color: var(--cm-gray-dark);
	background-color: var(--cm-white-off);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cm-font-display);
	color: var(--cm-black);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.6em;
}
.entry-content h1 { font-size: var(--cm-text-5xl); }
.entry-content h2 { font-size: var(--cm-text-4xl); }
.entry-content h3 { font-family: var(--cm-font-body); font-size: var(--cm-text-3xl); font-weight: 700; color: var(--cm-charcoal); }
.entry-content h4 { font-family: var(--cm-font-body); font-size: var(--cm-text-xl); font-weight: 600; color: var(--cm-charcoal); }
.entry-content h5 { font-family: var(--cm-font-body); font-size: var(--cm-text-lg); font-weight: 600; color: var(--cm-charcoal); }

a { color: var(--cm-red); text-decoration: none; }
a:hover { color: var(--cm-red-dark); }

/* Titulo de página: cada página incluye su propio H1 */
.page .entry-header { display: none; }
.cm-front .page-header { display: none; }

/* =====================================================================
   3. UTILIDADES (guía §9.3)
   ===================================================================== */
.container-centered {
	max-width: var(--cm-container-max);
	margin: 0 auto;
	padding-left: var(--cm-container-padding);
	padding-right: var(--cm-container-padding);
}
@media (max-width: 767px) {
	.container-centered {
		padding-left: var(--cm-container-padding-mobile);
		padding-right: var(--cm-container-padding-mobile);
	}
}

.section-padding { padding-top: var(--cm-space-4xl); padding-bottom: var(--cm-space-4xl); }
@media (max-width: 767px) {
	.section-padding { padding-top: var(--cm-space-3xl); padding-bottom: var(--cm-space-3xl); }
}

.section-dark { background-color: var(--cm-black); color: var(--cm-white); }
.section-dark h2, .section-dark h3 { color: var(--cm-white); }
.section-dark p { color: var(--cm-gray-medium); }

.gold-divider {
	width: 60px;
	height: 2px;
	background: linear-gradient(90deg, var(--cm-gold), var(--cm-gold-light));
	margin: var(--cm-space-md) 0;
}
.text-gold { color: var(--cm-gold); }
.text-red { color: var(--cm-red); }
.bg-red-light { background-color: rgba(200, 16, 46, 0.06); }
.bg-gold-light { background-color: rgba(212, 168, 50, 0.08); }
.section-title { text-align: center; max-width: 700px; margin: 0 auto var(--cm-space-3xl); }
.section-title h2 { font-size: var(--cm-text-4xl); margin-bottom: var(--cm-space-sm); }
.section-title p { color: var(--cm-gray); max-width: 600px; margin: 0 auto; }

/* =====================================================================
   4. BOTONES (guía §4.1)
   ===================================================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-dark,
.btn-cta-b2b {
	display: inline-block;
	font-family: var(--cm-font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 14px 32px;
	border-radius: var(--cm-radius-md);
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	border: none;
}

.btn-primary {
	background-color: var(--cm-red);
	color: var(--cm-white);
}
.btn-primary:hover {
	background-color: var(--cm-red-dark);
	color: var(--cm-white);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(200, 16, 46, 0.25); }

.btn-secondary {
	background-color: transparent;
	color: var(--cm-white);
	border: 2px solid var(--cm-white);
	padding: 12px 30px;
}
.btn-secondary:hover {
	background-color: var(--cm-white);
	color: var(--cm-black);
}

.btn-outline-dark {
	background-color: transparent;
	color: var(--cm-black);
	border: 2px solid var(--cm-black);
	padding: 12px 30px;
}
.btn-outline-dark:hover { background-color: var(--cm-black); color: var(--cm-white); }

.btn-cta-b2b {
	background-color: var(--cm-gold);
	color: var(--cm-black);
	font-weight: 700;
	font-size: 16px;
	padding: 16px 40px;
	letter-spacing: 1px;
}
.btn-cta-b2b:hover {
	background-color: var(--cm-gold-dark);
	color: var(--cm-black);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(212, 168, 50, 0.4);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline-dark:focus-visible,
.btn-cta-b2b:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--cm-gold);
	outline-offset: 2px;
}

/* =====================================================================
   5. BARRA SUPERIOR (guía §9.4 generate_before_header)
   ===================================================================== */
.cm-topbar {
	background-color: var(--cm-navy);
	color: var(--cm-white);
	font-size: 13px;
}
.cm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 8px;
	padding-bottom: 8px;
	flex-wrap: wrap;
}
.cm-topbar__tagline { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.cm-topbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-topbar__link { color: var(--cm-white); font-weight: 500; text-decoration: none; }
.cm-topbar__link:hover { color: var(--cm-gold-light); }
.cm-topbar__sep { color: rgba(255, 255, 255, 0.4); }
.cm-topbar__login { color: var(--cm-gold-light); }
@media (max-width: 767px) {
	.cm-topbar__inner { justify-content: center; text-align: center; }
	.cm-topbar__tagline { display: none; }
}

/* =====================================================================
   6. HEADER Y NAVEGACIÓN (guía §9.1 / §9.3)
   ===================================================================== */
.site-header {
	background-color: var(--cm-white);
	border-bottom: 1px solid var(--cm-gray-light);
}
.site-header .inside-header { max-width: var(--cm-container-max); margin: 0 auto; }
.header-image { max-height: 64px; width: auto; }

.main-navigation { background-color: var(--cm-white); }
.main-navigation .main-nav ul li a {
	font-family: var(--cm-font-body);
	font-weight: 500;
	font-size: 15px;
	color: var(--cm-charcoal);
	text-transform: none;
	letter-spacing: 0;
	transition: color 0.2s ease;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current"] > a {
	color: var(--cm-red);
}
.main-navigation .main-nav ul ul { background-color: var(--cm-white); }
.main-navigation .main-nav ul ul li a { font-size: 14px; }

/* Botón destacado del menú: Solicita tu alta B2B */
.main-navigation .main-nav > ul > li.menu-cta-b2b > a {
	background-color: var(--cm-red);
	color: var(--cm-white);
	padding: 12px 22px;
	border-radius: var(--cm-radius-md);
	margin-left: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
}
.main-navigation .main-nav > ul > li.menu-cta-b2b > a:hover {
	background-color: var(--cm-red-dark);
	color: var(--cm-white);
}
.main-navigation .menu-toggle { color: var(--cm-charcoal); }

/* =====================================================================
   7. HERO HOME (guía §5.1)
   ===================================================================== */
.cm-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: center;
}
.cm-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 15, 15, 0.75) 0%, rgba(15, 15, 15, 0.45) 100%);
}
.cm-hero__content { position: relative; z-index: 2; max-width: 820px; padding: 0 24px; }
.cm-hero__kicker {
	color: var(--cm-gold);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 16px;
}
.cm-hero__title {
	color: var(--cm-white);
	font-family: var(--cm-font-display);
	font-weight: 900;
	font-size: 56px;
	line-height: 1.1;
	margin: 0 0 16px;
}
.cm-hero__subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	max-width: 600px;
	margin: 0 auto 32px;
}
.cm-hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cm-hero__scroll {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: var(--cm-gold);
	font-size: 26px;
	opacity: 0.7;
	animation: cm-bounce 2s infinite;
}
@keyframes cm-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(-10px); }
	60% { transform: translateX(-50%) translateY(-5px); }
}

/* =====================================================================
   8. HERO DE PÁGINA INTERNA (guía §5.2-§5.6)
   ===================================================================== */
.cm-page-hero {
	position: relative;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: center;
	margin-bottom: 48px;
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
}
.cm-page-hero__overlay { position: absolute; inset: 0; background: rgba(15, 15, 15, 0.6); }
.cm-page-hero h1 { position: relative; z-index: 2; color: var(--cm-white); font-size: 40px; font-weight: 700; margin: 0; padding: 0 24px; }

/* =====================================================================
   9. SECCIÓN 3 PILARES (guía §5.1)
   ===================================================================== */
.cm-pilares { padding: var(--cm-space-4xl) 0; background-color: var(--cm-white-off); }
.cm-pilares__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cm-pilar { text-align: center; }
.cm-pilar__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--cm-navy);
	color: var(--cm-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin: 0 auto 20px;
}
.cm-pilar h3 { font-family: var(--cm-font-body); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.cm-pilar p { font-size: 15px; color: var(--cm-gray-dark); margin-bottom: 12px; }
.cm-pilar__link { color: var(--cm-red); font-weight: 600; font-size: 14px; }
.cm-pilar__link:hover { color: var(--cm-red-dark); }

/* =====================================================================
   10. SECCIÓN PRODUCTO ESTRELLA BOS TAURUS (guía §5.1)
   ===================================================================== */
.cm-star { display: grid; grid-template-columns: 1fr 1fr; background-color: var(--cm-black); }
.cm-star__img { min-height: 480px; background-size: cover; background-position: center; }
.cm-star__body { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.cm-star__body h2 { color: var(--cm-white); font-size: 36px; }
.cm-star__body p { color: var(--cm-gray-medium); }
.cm-star__list { list-style: none; padding: 0; margin: 0 0 24px; }
.cm-star__list li { color: var(--cm-white); padding: 8px 0 8px 32px; position: relative; }
.cm-star__list li::before { content: "✓"; color: var(--cm-gold); position: absolute; left: 0; font-weight: 700; }

/* =====================================================================
   11. BLOQUES DE CONFIANZA (guía §5.1 / §4.6)
   ===================================================================== */
.cm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: var(--cm-space-3xl) 0; }
.cm-trust-item { text-align: center; }
.cm-trust-item__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cm-navy);
	color: var(--cm-white);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	font-size: 20px;
}
.cm-trust-item h4 { font-family: var(--cm-font-body); font-size: 18px; font-weight: 700; color: var(--cm-black); margin-bottom: 6px; }
.cm-trust-item p { font-size: 14px; color: var(--cm-gray); margin: 0; }

.trust-block {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px;
	background: var(--cm-white-off);
	border-left: 3px solid var(--cm-gold);
	border-radius: 0 8px 8px 0;
	margin-bottom: 16px;
}
.trust-block__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cm-navy);
	color: var(--cm-white);
	border-radius: 50%;
	font-size: 20px;
}
.trust-block__title { font-family: var(--cm-font-body); font-size: 16px; font-weight: 600; color: var(--cm-black); margin-bottom: 4px; }
.trust-block__text { font-size: 14px; color: var(--cm-gray); line-height: 1.5; margin: 0; }

/* =====================================================================
   12. BANNER ESCUELA / BANNER GENÉRICO (guía §5.1)
   ===================================================================== */
.cm-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 100px 0;
	text-align: center;
}
.cm-banner__overlay { position: absolute; inset: 0; background: rgba(15, 15, 15, 0.68); }
.cm-banner__content { position: relative; z-index: 2; }
.cm-banner h2 { color: var(--cm-white); font-size: 36px; }
.cm-banner p { color: var(--cm-gray-medium); max-width: 600px; margin: 0 auto 24px; }

/* =====================================================================
   13. CTA FINAL DE REGISTRO (guía §5.1)
   ===================================================================== */
.cm-cta-final {
	padding: var(--cm-space-4xl) 0;
	text-align: center;
	background: linear-gradient(135deg, var(--cm-navy) 0%, var(--cm-black) 100%);
	color: var(--cm-white);
}
.cm-cta-final h2 { color: var(--cm-white); font-size: 36px; }
.cm-cta-final p { color: var(--cm-gray-medium); max-width: 640px; margin: 0 auto 24px; }
.cm-cta-final__note { font-size: 13px; color: var(--cm-gray-medium); margin-top: 16px; }

/* =====================================================================
   14. BANDA DE MARCA / LEMAS
   ===================================================================== */
.cm-marca-band { background-color: var(--cm-black-deep); padding: 24px 0; text-align: center; }
.cm-marca-band p { color: var(--cm-gray-medium); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.cm-marca-band strong { color: var(--cm-gold); font-weight: 600; }

/* =====================================================================
   15. AVISOS / NOTIFICACIONES (guía §4.7)
   ===================================================================== */
.notice-info, .notice-success, .notice-error, .notice-warning, .notice-b2b {
	padding: 16px 20px;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
	color: var(--cm-black);
	margin-bottom: 24px;
}
.notice-info { background: var(--cm-info-bg); border-left: 4px solid var(--cm-info); }
.notice-success { background: var(--cm-success-bg); border-left: 4px solid var(--cm-success); }
.notice-error { background: var(--cm-error-bg); border-left: 4px solid var(--cm-error); }
.notice-warning { background: var(--cm-warning-bg); border-left: 4px solid var(--cm-warning); }
.notice-b2b {
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--cm-black) 0%, var(--cm-charcoal) 100%);
	color: var(--cm-white);
	border-left: 4px solid var(--cm-gold);
	border-radius: 0 8px 8px 0;
	font-size: 14px;
}
.notice-b2b strong { color: var(--cm-gold); }

/* =====================================================================
   16. FORMULARIOS (guía §4.4)
   ===================================================================== */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-family: var(--cm-font-body); font-size: 14px; font-weight: 500; color: var(--cm-charcoal); margin-bottom: 6px; }
.form-field label .required { color: var(--cm-red); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: var(--cm-font-body);
	font-size: 15px;
	color: var(--cm-black);
	background: var(--cm-white);
	border: 1px solid var(--cm-gray-light);
	border-radius: var(--cm-radius-md);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	max-width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--cm-red);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.form-field input::placeholder { color: var(--cm-gray-medium); }
.form-field .help-text { font-size: 13px; color: var(--cm-gray); margin-top: 4px; }
.form-field .error-text { font-size: 13px; color: var(--cm-error); margin-top: 4px; }

.login-form {
	max-width: 420px;
	margin: 0 auto;
	padding: 48px 40px;
	background: var(--cm-white);
	border: 1px solid var(--cm-gray-light);
	border-radius: var(--cm-radius-lg);
}
.login-form h2 { font-family: var(--cm-font-display); font-size: 28px; font-weight: 700; color: var(--cm-black); text-align: center; margin-bottom: 8px; }
.login-form .subtitle { font-size: 14px; color: var(--cm-gray); text-align: center; margin-bottom: 32px; }

/* Contact Form 7 */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%;
	padding: 12px 16px;
	font-family: var(--cm-font-body);
	font-size: 15px;
	color: var(--cm-black);
	background: var(--cm-white);
	border: 1px solid var(--cm-gray-light);
	border-radius: var(--cm-radius-md);
	box-sizing: border-box;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
	outline: none;
	border-color: var(--cm-red);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.wpcf7 label { font-weight: 500; font-size: 14px; color: var(--cm-charcoal); }
.wpcf7 input[type="submit"] {
	background-color: var(--cm-red);
	color: var(--cm-white);
	border: none;
	padding: 14px 32px;
	font-family: var(--cm-font-body);
	font-weight: 600;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--cm-radius-md);
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.wpcf7 input[type="submit"]:hover { background-color: var(--cm-red-dark); }

/* =====================================================================
   17. TABLAS (guía §4.5)
   ===================================================================== */
table { border-collapse: collapse; width: 100%; margin-bottom: 24px; }
table th, table td { padding: 12px 14px; border: 1px solid var(--cm-gray-light); text-align: left; }
table thead th { background: var(--cm-black); color: var(--cm-white); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
table tbody tr:nth-child(even) { background: var(--cm-white-off); }

.price-table { width: 100%; border-collapse: collapse; font-family: var(--cm-font-body); }
.price-table thead { background: var(--cm-black); color: var(--cm-white); }
.price-table thead th { padding: 14px 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; }
.price-table tbody tr { border-bottom: 1px solid var(--cm-gray-light); }
.price-table tbody tr:hover { background: var(--cm-white-off); }
.price-table tbody td { padding: 14px 16px; font-size: 14px; color: var(--cm-charcoal); }
.price-table .price { font-weight: 700; color: var(--cm-red); font-size: 16px; }
.price-table .price-iva { font-size: 12px; color: var(--cm-gray); font-weight: 400; }

/* =====================================================================
   18. BADGES (guía §4.3)
   ===================================================================== */
.badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--cm-radius-sm);
	font-family: var(--cm-font-body);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.4;
}
.badge--madurado { background-color: var(--cm-navy); color: var(--cm-white); }
.badge--bos-taurus { background-color: var(--cm-red); color: var(--cm-white); }
.badge--elaboracion-propia { background-color: var(--cm-gold); color: var(--cm-black); }
.badge--nuevo { background-color: var(--cm-success); color: var(--cm-white); }
.badge--oferta { background-color: var(--cm-error); color: var(--cm-white); }
.badge--disponible { background-color: var(--cm-success); color: var(--cm-white); font-size: 10px; }

/* =====================================================================
   19. TARJETAS DE PRODUCTO (guía §4.2)
   ===================================================================== */
.product-card {
	background: var(--cm-white);
	border: 1px solid var(--cm-gray-light);
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--cm-shadow-lg); }
.product-card__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cm-gray-pale); display: block; }
.product-card__body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-card__category { font-family: var(--cm-font-body); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--cm-gray); margin-bottom: 8px; }
.product-card__name { font-family: var(--cm-font-body); font-size: 17px; font-weight: 600; color: var(--cm-black); margin-bottom: 8px; line-height: 1.3; }
.product-card__price { font-family: var(--cm-font-body); font-size: 22px; font-weight: 700; color: var(--cm-red); margin-bottom: 4px; }
.product-card__price-note { font-size: 12px; color: var(--cm-gray); font-style: italic; }
.product-card__unit { font-size: 13px; color: var(--cm-gray-medium); margin-top: 4px; }
.product-card__link { margin-top: auto; padding-top: 16px; }
.product-card__price--locked { color: var(--cm-gray-medium); font-size: 14px; font-weight: 500; }
.product-card__price--locked::before { content: "🔒 "; }

/* Grid de tarjetas genérico (categorías, destacados) */
.cm-grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cm-grid-cards--3 { grid-template-columns: repeat(3, 1fr); }
.cm-grid-cards--2 { grid-template-columns: repeat(2, 1fr); }

/* Tarjetas de categoría */
.cm-cat-card {
	position: relative;
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	display: block;
	aspect-ratio: 4/3;
	background-size: cover;
	background-position: center;
}
.cm-cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,15,0) 30%, rgba(15,15,15,0.85) 100%); transition: background 0.25s ease; }
.cm-cat-card:hover .cm-cat-card__overlay { background: linear-gradient(180deg, rgba(15,15,15,0.1) 0%, rgba(15,15,15,0.9) 100%); }
.cm-cat-card__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; color: var(--cm-white); font-family: var(--cm-font-display); font-size: 22px; font-weight: 700; z-index: 2; }

/* =====================================================================
   20. WOOCOMMERCE (guía §9.5)
   ===================================================================== */
.woocommerce ul.products li.product {
	background: var(--cm-white);
	border: 1px solid var(--cm-gray-light);
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-align: center;
	padding: 0;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--cm-shadow-lg); }
.woocommerce ul.products li.product a img { margin: 0; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--cm-font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--cm-black);
	padding: 14px 16px 4px;
	margin: 0;
}
.woocommerce ul.products li.product .price {
	color: var(--cm-red);
	font-weight: 700;
	font-size: 22px;
	margin: 4px 0 8px;
}
.woocommerce ul.products li.product .price del { color: var(--cm-gray-medium); opacity: 1; font-weight: 400; font-size: 15px; }
.woocommerce ul.products li.product .price ins { background: transparent; }
.woocommerce ul.products li.product .button {
	background-color: var(--cm-red);
	color: var(--cm-white);
	border-radius: var(--cm-radius-md);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	padding: 12px 20px;
	margin: 8px 12px 16px;
}
.woocommerce ul.products li.product .button:hover { background-color: var(--cm-red-dark); color: var(--cm-white); }
.woocommerce a.added_to_cart { color: var(--cm-red); font-size: 13px; font-weight: 600; }

/* Ficha de producto */
.woocommerce div.product .product_title { font-size: 36px; }
.woocommerce div.product p.price { color: var(--cm-red); font-weight: 700; font-size: 28px; }
.woocommerce div.product p.price del { color: var(--cm-gray-medium); }
.woocommerce div.product .button {
	background-color: var(--cm-red);
	color: var(--cm-white);
	border-radius: var(--cm-radius-md);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.woocommerce div.product .button:hover { background-color: var(--cm-red-dark); color: var(--cm-white); }
.woocommerce div.product form.cart { margin-bottom: 24px; }

/* Aviso de precios en catálogo */
.woocommerce .woocommerce-info { border-top-color: var(--cm-gold); }
.woocommerce .woocommerce-info::before { color: var(--cm-gold); }

/* B2B futuro: precio oculto y badges (plugin cm-b2b, aún inactivo) */
.cm-price-locked {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--cm-radius-sm);
	background: var(--cm-gray-pale);
	border: 1px dashed var(--cm-gray-medium);
	color: var(--cm-gray);
	font-size: 12px;
	font-weight: 500;
}
.cm-b2b-group-badge {
	display: inline-block;
	background: var(--cm-navy);
	color: var(--cm-white);
	padding: 3px 10px;
	border-radius: var(--cm-radius-full);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.cm-b2b-register { max-width: 600px; margin: 0 auto; background: var(--cm-white); border: 1px solid var(--cm-gray-light); border-radius: var(--cm-radius-lg); padding: 40px; }
.woocommerce-checkout #delivery_day_field input,
.woocommerce-checkout #delivery_day_field select { max-width: 100%; }

/* Mi cuenta */
.woocommerce-MyAccount-navigation { background: var(--cm-white); border: 1px solid var(--cm-gray-light); border-radius: var(--cm-radius-lg); overflow: hidden; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--cm-gray-light); color: var(--cm-charcoal); font-weight: 500; text-decoration: none; font-size: 14px; }
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover { color: var(--cm-red); background: var(--cm-white-off); }

/* =====================================================================
   21. BREADCRUMBS (guía §4.8)
   ===================================================================== */
.cm-breadcrumb { font-family: var(--cm-font-body); font-size: 13px; color: var(--cm-gray); padding: 14px 0 4px; }
.cm-breadcrumb a { color: var(--cm-gray); text-decoration: none; transition: color 0.2s ease; }
.cm-breadcrumb a:hover { color: var(--cm-red); }
.cm-breadcrumb__sep { margin: 0 8px; color: var(--cm-gray-medium); }
.cm-breadcrumb__current { color: var(--cm-black); font-weight: 500; }

/* =====================================================================
   22. PAGINACIÓN (guía §4.9)
   ===================================================================== */
.pagination,
.paging-navigation .nav-links {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin: 40px 0;
	flex-wrap: wrap;
}
.pagination a,
.pagination span,
.paging-navigation .nav-links .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-family: var(--cm-font-body);
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--cm-gray-light);
	border-radius: var(--cm-radius-md);
	color: var(--cm-charcoal);
	text-decoration: none;
	transition: all 0.2s ease;
}
.pagination a:hover,
.paging-navigation .nav-links a.page-numbers:hover { border-color: var(--cm-red); color: var(--cm-red); }
.pagination .current,
.paging-navigation .nav-links .page-numbers.current {
	background: var(--cm-red);
	border-color: var(--cm-red);
	color: var(--cm-white);
}

/* =====================================================================
   23. BLOG (guía §5.7)
   ===================================================================== */
.blog .site-main,
.archive .site-main {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 24px 0 48px;
}
.blog .inside-article,
.archive .inside-article {
	background: var(--cm-white);
	border: 1px solid var(--cm-gray-light);
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
}
.blog .post-image,
.archive .post-image { margin: 0; }
.blog .post-image img,
.archive .post-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.blog .entry-header,
.archive .entry-header { padding: 20px 20px 0; }
.blog .entry-title,
.archive .entry-title { margin: 0 0 8px; }
.blog .entry-title a,
.archive .entry-title a { font-size: 22px; color: var(--cm-black); }
.blog .entry-title a:hover,
.archive .entry-title a:hover { color: var(--cm-red); }
.blog .entry-meta,
.archive .entry-meta { font-size: 13px; color: var(--cm-gray); }
.blog .entry-summary,
.archive .entry-summary { padding: 12px 20px 0; font-size: 14px; color: var(--cm-gray-dark); }
.blog .entry-summary p { margin: 0 0 16px; }
.blog .read-more-container,
.archive .read-more-container { padding: 0 20px 20px; }
.blog .read-more-container .read-more,
.archive .read-more-container .read-more { color: var(--cm-red); font-weight: 600; font-size: 14px; }
.blog .cat-links, .blog .tags-links { display: none; }

/* Entrada individual */
.single-post .inside-article { padding: 0; border: none; background: transparent; }
.single-post .entry-header { text-align: center; padding: 24px 0 8px; }
.single-post .entry-title { font-size: 40px; }
.single-post .entry-meta { color: var(--cm-gray); font-size: 14px; margin-bottom: 16px; }
.single-post .post-image img { border-radius: var(--cm-radius-lg); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.single-post .entry-content h2 { margin-top: 32px; }

/* =====================================================================
   24. PÁGINA DE CONTACTO (guía §5.8)
   ===================================================================== */
.cm-contact { display: grid; grid-template-columns: 60% 40%; gap: 40px; align-items: start; }
.cm-contact__info { background: var(--cm-white); border: 1px solid var(--cm-gray-light); border-radius: var(--cm-radius-lg); padding: 32px; }
.cm-contact__info h3 { font-size: 20px; margin-bottom: 16px; }
.cm-contact__info p { margin: 0 0 12px; font-size: 14px; }
.cm-contact__info a { color: var(--cm-red); }
.cm-contact__map { border-radius: var(--cm-radius-lg); overflow: hidden; margin-top: 20px; line-height: 0; }
.cm-contact__map iframe { width: 100%; height: 300px; border: 0; }

/* =====================================================================
   25. FOOTER (guía §5.1)
   ===================================================================== */
.site-footer { background-color: var(--cm-black); }
.cm-footer { border-top: 2px solid var(--cm-gold); }
.cm-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 60px 0 40px;
}
.cm-footer__logo { max-width: 220px; height: auto; margin-bottom: 16px; }
.cm-footer__about { color: var(--cm-gray-medium); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.cm-footer__contact { color: var(--cm-gray-medium); font-size: 14px; margin: 0 0 10px; }
.cm-footer__contact strong { color: var(--cm-white); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.cm-footer__contact a { color: var(--cm-gray-medium); text-decoration: none; }
.cm-footer__contact a:hover { color: var(--cm-gold); }
.cm-footer__title {
	color: var(--cm-white);
	font-family: var(--cm-font-body);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 16px;
}
.cm-footer__title--mt { margin-top: 28px; }
.cm-footer ul { list-style: none; padding: 0; margin: 0; }
.cm-footer ul li { margin-bottom: 10px; }
.cm-footer ul a { color: var(--cm-gray-medium); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.cm-footer ul a:hover { color: var(--cm-gold); }
.cm-footer__text { color: var(--cm-gray-medium); font-size: 14px; line-height: 1.6; margin: 0; }
.cm-footer__copyright { background-color: var(--cm-black-deep); padding: 18px 0; color: var(--cm-gray-medium); font-size: 13px; }
.cm-footer__copyright p { margin: 0; text-align: center; }
.site-info { display: none; }

/* =====================================================================
   26. CTA STICKY MÓVIL (guía §7.3)
   ===================================================================== */
.cta-sticky { display: none; }
@media (max-width: 767px) {
	.cta-sticky {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		background: var(--cm-white);
		padding: 12px 16px;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
		border-top: 1px solid var(--cm-gray-light);
		display: block;
	}
	.cta-sticky .btn { width: 100%; display: block; }
	body.has-sticky-cta { padding-bottom: 72px; }
	body.cm-no-sticky .cta-sticky,
	body.cm-no-sticky.has-sticky-cta { display: none !important; }
	body.cm-no-sticky.has-sticky-cta { padding-bottom: 0; }
}

/* =====================================================================
   27. SCROLL REVEAL (guía §8.2)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.cm-hero__scroll { animation: none; }
}

/* =====================================================================
   28. RESPONSIVE (guía §7)
   ===================================================================== */
@media (max-width: 1199px) {
	.cm-grid-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
	.cm-pilares__grid { grid-template-columns: 1fr; gap: 32px; }
	.cm-star { grid-template-columns: 1fr; }
	.cm-star__img { min-height: 320px; }
	.cm-star__body { padding: 40px 24px; }
	.cm-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.cm-grid-cards { grid-template-columns: repeat(2, 1fr); }
	.blog .site-main, .archive .site-main { grid-template-columns: repeat(2, 1fr); }
	.cm-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
	.cm-contact { grid-template-columns: 1fr; }
	.cm-hero__title { font-size: 40px; }
	.cm-hero { min-height: 80vh; }
}
@media (max-width: 767px) {
	.cm-hero { min-height: 100vh; }
	.cm-hero__title { font-size: 32px; }
	.cm-hero__subtitle { font-size: 16px; }
	.cm-hero__ctas { flex-direction: column; }
	.cm-hero__ctas .btn { width: 100%; }
	.cm-trust-grid { grid-template-columns: 1fr; }
	.cm-grid-cards, .cm-grid-cards--3, .cm-grid-cards--2 { grid-template-columns: 1fr; }
	.blog .site-main, .archive .site-main { grid-template-columns: 1fr; }
	.cm-footer__inner { grid-template-columns: 1fr; }
	.cm-page-hero { min-height: 220px; }
	.cm-page-hero h1 { font-size: 30px; }
	.cm-star__body h2, .cm-cta-final h2, .cm-banner h2, .section-title h2, .entry-content h2 { font-size: 28px; }
	.cm-banner { padding: 60px 0; }
	.cm-cta-final { padding: 60px 0; }
	.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { width: 48%; float: left; }
}

/* =====================================================================
   29. FIX HEADER MÓVIL — desbordamiento horizontal
   ===================================================================== */
/* El logo ya es la marca: ocultar el título de texto junto al logo */
.site-branding .main-title,
.site-branding .site-description {
	display: none;
}
/* Logo con altura controlada */
.header-image,
.site-logo {
	max-height: 60px;
	width: auto;
}
.site-branding-container {
	overflow: hidden;
}
@media (max-width: 767px) {
	.header-image,
	.site-logo {
		max-height: 44px;
	}
	.site-header .inside-header {
		padding: 12px 16px;
	}
	.main-navigation .menu-toggle {
		padding: 8px 10px;
	}
}

/* =====================================================================
   30. HEADER DEL BLOG (guía §5.7)
   ===================================================================== */
.cm-blog-header {
	padding: 48px 0 8px;
	text-align: center;
}
.cm-blog-header h1 {
	font-size: 40px;
	margin: 0 0 8px;
}
.cm-blog-header p {
	color: var(--cm-gray);
	font-size: 16px;
	margin: 0;
}
