/* ============================================================
   FIXES DE HEADER Y TITULO DE PAGINA
   ============================================================ */

/* Ocultar el toggle "Menu" que GeneratePress muestra junto al menu en desktop */
@media (min-width: 769px) {
	.main-navigation .menu-toggle {
		display: none !important;
	}
}

/* Ocultar el titulo automatico de pagina en home y paginas custom — ya hay hero propio */
body.page-id-80 .entry-header,
body.page-id-80 .page-title,
body.page-id-80 h1.entry-title,
body.page-id-70 .entry-header,
body.page-id-70 .page-title,
body.page-id-70 h1.entry-title,
body.page-id-71 .entry-header,
body.page-id-71 .page-title,
body.page-id-71 h1.entry-title,
body.page-id-72 .entry-header,
body.page-id-72 .page-title,
body.page-id-72 h1.entry-title,
body.page-id-73 .entry-header,
body.page-id-73 .page-title,
body.page-id-73 h1.entry-title,
body.page-id-74 .entry-header,
body.page-id-74 .page-title,
body.page-id-74 h1.entry-title,
body.page-id-75 .entry-header,
body.page-id-75 .page-title,
body.page-id-75 h1.entry-title,
body.page-id-76 .entry-header,
body.page-id-76 .page-title,
body.page-id-76 h1.entry-title,
body.page-id-77 .entry-header,
body.page-id-77 .page-title,
body.page-id-77 h1.entry-title,
body.page-id-78 .entry-header,
body.page-id-78 .page-title,
body.page-id-78 h1.entry-title,
body.page-id-79 .entry-header,
body.page-id-79 .page-title,
body.page-id-79 h1.entry-title,
body.archive.tax-product_cat .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header,
body.archive.tax-product_cat .page-title,
body.post-type-archive-product .page-title {
	display: none !important;
}


/* ============================================================
   FIX MENU TOGGLE DESKTOP - oculta el boton hamburguesa en pantallas grandes
   ============================================================ */
@media (min-width: 769px) {
	.main-navigation .menu-toggle,
	.menu-toggle {
		display: none !important;
	}
}

/* ============================================================
   FIX TITULO DE PAGINA - oculta entry-title automatico en home y archivos WC
   ============================================================ */
body.home .entry-header,
body.home .page-title,
body.home h1.entry-title,
body.page-id-80 .entry-header,
body.page-id-80 .page-title,
body.page-id-80 h1.entry-title,
body.archive.tax-product_cat .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header,
body.archive.tax-product_cat .page-title,
body.post-type-archive-product .page-title {
	display: none !important;
}

/* ============================================================
   LAYOUT FULL-WIDTH para WooCommerce y paginas custom
   ============================================================
   GeneratePress aplica display:flex en .site-content y max-width
   en #page. Los reseteamos con id-selectors para mayor especificidad.
   ============================================================ */

body.archive.tax-product_cat #page,
body.post-type-archive-product #page,
body.single-product #page,
body.page-id-80 #page,
body.page-id-70 #page,
body.page-id-71 #page,
body.page-id-72 #page,
body.page-id-73 #page,
body.page-id-74 #page,
body.page-id-75 #page,
body.page-id-76 #page,
body.page-id-77 #page,
body.page-id-78 #page,
body.page-id-79 #page {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
}

body.archive.tax-product_cat #content.site-content,
body.post-type-archive-product #content.site-content,
body.single-product #content.site-content,
body.page-id-80 #content.site-content,
body.page-id-70 #content.site-content,
body.page-id-71 #content.site-content,
body.page-id-72 #content.site-content,
body.page-id-73 #content.site-content,
body.page-id-74 #content.site-content,
body.page-id-75 #content.site-content,
body.page-id-76 #content.site-content,
body.page-id-77 #content.site-content,
body.page-id-78 #content.site-content,
body.page-id-79 #content.site-content {
	display: block !important;
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.archive.tax-product_cat #primary.content-area,
body.post-type-archive-product #primary.content-area,
body.single-product #primary.content-area,
body.page-id-80 #primary.content-area,
body.page-id-70 #primary.content-area,
body.page-id-71 #primary.content-area,
body.page-id-72 #primary.content-area,
body.page-id-73 #primary.content-area,
body.page-id-74 #primary.content-area,
body.page-id-75 #primary.content-area,
body.page-id-76 #primary.content-area,
body.page-id-77 #primary.content-area,
body.page-id-78 #primary.content-area,
body.page-id-79 #primary.content-area {
	width: 100% !important;
	flex: 1 1 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.archive.tax-product_cat .site-main,
body.post-type-archive-product .site-main,
body.single-product .site-main,
body.page-id-80 .site-main,
body.page-id-70 .site-main,
body.page-id-71 .site-main,
body.page-id-72 .site-main,
body.page-id-73 .site-main,
body.page-id-74 .site-main,
body.page-id-75 .site-main,
body.page-id-76 .site-main,
body.page-id-77 .site-main,
body.page-id-78 .site-main,
body.page-id-79 .site-main {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

body.archive.tax-product_cat .inside-article,
body.post-type-archive-product .inside-article,
body.single-product .inside-article,
body.page-id-80 .inside-article,
body.page-id-70 .inside-article,
body.page-id-71 .inside-article,
body.page-id-72 .inside-article,
body.page-id-73 .inside-article,
body.page-id-74 .inside-article,
body.page-id-75 .inside-article,
body.page-id-76 .inside-article,
body.page-id-77 .inside-article,
body.page-id-78 .inside-article,
body.page-id-79 .inside-article {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
}

body.archive.tax-product_cat .entry-content,
body.post-type-archive-product .entry-content,
body.single-product .entry-content,
body.page-id-80 .entry-content,
body.page-id-70 .entry-content,
body.page-id-71 .entry-content,
body.page-id-72 .entry-content,
body.page-id-73 .entry-content,
body.page-id-74 .entry-content,
body.page-id-75 .entry-content,
body.page-id-76 .entry-content,
body.page-id-77 .entry-content,
body.page-id-78 .entry-content,
body.page-id-79 .entry-content {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.archive.tax-product_cat .widget-area,
body.post-type-archive-product .widget-area,
body.single-product .widget-area,
body.page-id-80 .widget-area,
body.page-id-70 .widget-area,
body.page-id-71 .widget-area,
body.page-id-72 .widget-area,
body.page-id-73 .widget-area,
body.page-id-74 .widget-area,
body.page-id-75 .widget-area,
body.page-id-76 .widget-area,
body.page-id-77 .widget-area,
body.page-id-78 .widget-area,
body.page-id-79 .widget-area {
	display: none !important;
}

.pt-section {
	width: 100% !important;
	margin: 0 !important;
	position: relative;
	display: block !important;
	float: none !important;
}
.pt-cat-hero {
	width: 100% !important;
	margin: 0 !important;
	position: relative;
	display: block !important;
	float: none !important;
}

.pt-container {
	width: 100%;
	max-width: var(--pt-container-wide, 1280px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--pt-space-6, 1.5rem);
	padding-right: var(--pt-space-6, 1.5rem);
	box-sizing: border-box;
}

.pt-pack-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: var(--pt-space-6, 1.5rem);
	width: 100%;
	max-width: 100%;
}
@media (min-width: 640px) {
	.pt-pack-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (min-width: 1024px) {
	.pt-pack-grid {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}


/* ============================================================
   FICHA DE PRODUCTO
   ============================================================ */

.pt-product {
	padding-block: var(--pt-space-12) var(--pt-space-16);
}

.pt-product__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--pt-space-8);
	margin-bottom: var(--pt-space-16);
}
@media (min-width: 900px) {
	.pt-product__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--pt-space-12);
		align-items: start;
	}
}

.pt-product__media {
	position: relative;
}
.pt-product__main-image {
	border-radius: var(--pt-radius-lg);
	overflow: hidden;
	box-shadow: var(--pt-shadow-md);
	background: var(--pt-color-bg-alt);
	aspect-ratio: 4 / 5;
}
.pt-product__main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (min-width: 900px) {
	.pt-product__media {
		position: sticky;
		top: var(--pt-space-6);
	}
}

.pt-product__info {
	display: flex;
	flex-direction: column;
}

.pt-product__tier {
	display: inline-block;
	font-family: var(--pt-font-body);
	font-size: var(--pt-fs-xs);
	font-weight: var(--pt-fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pt-color-accent);
	margin-bottom: var(--pt-space-3);
}

.pt-product__title {
	font-family: var(--pt-font-heading);
	font-size: var(--pt-fs-3xl);
	color: var(--pt-color-primary);
	margin: 0 0 var(--pt-space-4);
	line-height: var(--pt-lh-tight);
}

.pt-product__lead {
	font-size: var(--pt-fs-lg);
	line-height: var(--pt-lh-snug);
	color: var(--pt-color-text-muted);
	margin: 0 0 var(--pt-space-6);
}

.pt-product__meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--pt-space-3);
	padding: var(--pt-space-4) 0;
	border-top: 1px solid var(--pt-color-border);
	border-bottom: 1px solid var(--pt-color-border);
	margin-bottom: var(--pt-space-6);
}
.pt-product__meta-item {
	display: flex;
	flex-direction: column;
	gap: var(--pt-space-1);
	text-align: center;
}
.pt-product__meta-label {
	font-size: var(--pt-fs-xs);
	color: var(--pt-color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.pt-product__meta-value {
	font-family: var(--pt-font-heading);
	font-size: var(--pt-fs-base);
	font-weight: var(--pt-fw-semibold);
	color: var(--pt-color-primary);
}

.pt-product__note {
	font-size: var(--pt-fs-sm);
	color: var(--pt-color-text-muted);
	margin: var(--pt-space-3) 0 0;
	font-style: italic;
}

.pt-product__guarantee {
	font-size: var(--pt-fs-sm);
	color: var(--pt-color-text-muted);
	text-align: center;
	margin: var(--pt-space-3) 0 0;
}

.pt-product__origen {
	display: flex;
	flex-direction: column;
	gap: var(--pt-space-1);
	padding: var(--pt-space-4) 0;
	border-top: 1px solid var(--pt-color-border);
	margin-top: var(--pt-space-6);
}
.pt-product__origen-label {
	font-size: var(--pt-fs-xs);
	color: var(--pt-color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.pt-product__origen-value {
	font-family: var(--pt-font-heading);
	font-size: var(--pt-fs-base);
	color: var(--pt-color-primary);
}


/* ============================================================
   PROSE - texto editorial para descripcion larga
   ============================================================ */

.pt-product__details {
	max-width: 760px;
	margin: 0 auto var(--pt-space-16);
}

.pt-prose h2 {
	font-family: var(--pt-font-heading);
	font-size: var(--pt-fs-2xl);
	color: var(--pt-color-primary);
	margin: var(--pt-space-10) 0 var(--pt-space-4);
}
.pt-prose h3 {
	font-family: var(--pt-font-heading);
	font-size: var(--pt-fs-xl);
	color: var(--pt-color-primary);
	margin: var(--pt-space-8) 0 var(--pt-space-3);
}
.pt-prose p {
	font-size: var(--pt-fs-base);
	line-height: var(--pt-lh-relaxed);
	color: var(--pt-color-text);
	margin: 0 0 var(--pt-space-4);
}
.pt-prose ul {
	padding-left: 1.5em;
	margin: 0 0 var(--pt-space-4);
}
.pt-prose li {
	margin-bottom: var(--pt-space-2);
	line-height: var(--pt-lh-relaxed);
}
.pt-prose strong {
	font-weight: var(--pt-fw-semibold);
	color: var(--pt-color-primary);
}

.pt-prose blockquote {
	background: var(--pt-color-bg-alt);
	border-left: 4px solid var(--pt-color-accent);
	border-radius: var(--pt-radius-md);
	padding: var(--pt-space-6);
	margin: var(--pt-space-8) 0;
	font-family: var(--pt-font-heading);
	font-size: var(--pt-fs-lg);
	font-style: italic;
	color: var(--pt-color-text);
	line-height: var(--pt-lh-snug);
}
.pt-prose blockquote p {
	margin: 0;
}


/* ============================================================
   PRODUCTOS RELACIONADOS
   ============================================================ */

.pt-product__related {
	border-top: 1px solid var(--pt-color-border);
	padding-top: var(--pt-space-12);
}
.pt-product__related .pt-section__header {
	margin-bottom: var(--pt-space-8);
}


/* ============================================================
   CATEGORIA - archive-product
   ============================================================ */

.pt-cat-hero {
	position: relative;
	min-height: 360px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: var(--pt-color-text-inverse);
}
.pt-cat-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.pt-cat-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pt-cat-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: var(--pt-space-12);
}
.pt-cat-hero__title {
	font-family: var(--pt-font-heading);
	font-size: var(--pt-fs-4xl);
	color: var(--pt-color-bg);
	margin: var(--pt-space-3) 0 var(--pt-space-3);
	line-height: var(--pt-lh-tight);
}
.pt-cat-hero__subtitle {
	font-size: var(--pt-fs-lg);
	color: var(--pt-color-bg);
	opacity: 0.92;
	max-width: 640px;
	margin: 0;
}

.pt-breadcrumbs--light a,
.pt-breadcrumbs--light span {
	color: rgba(253, 250, 245, 0.85);
}
.pt-breadcrumbs--light a:hover {
	color: var(--pt-color-accent-light);
}

.pt-pack-card__cta {
	display: inline-block;
	margin-top: var(--pt-space-3);
	font-size: var(--pt-fs-sm);
	font-weight: var(--pt-fw-semibold);
	color: var(--pt-color-accent);
	letter-spacing: 0.02em;
}


/* ============================================================
   HEADER - refinamientos para GeneratePress
   ============================================================ */

.site-header {
	background: var(--pt-color-bg) !important;
	box-shadow: var(--pt-shadow-sm);
	border-bottom: 1px solid var(--pt-color-border);
}
.site-branding .site-title,
.site-branding .site-title a {
	font-family: var(--pt-font-heading) !important;
	color: var(--pt-color-primary) !important;
	font-weight: var(--pt-fw-bold) !important;
	letter-spacing: -0.01em;
}
.site-branding .site-description {
	color: var(--pt-color-text-muted) !important;
	font-style: italic;
	font-size: var(--pt-fs-sm) !important;
}
.main-navigation .main-nav ul li a {
	font-family: var(--pt-font-body);
	font-weight: var(--pt-fw-medium);
	color: var(--pt-color-primary) !important;
	letter-spacing: 0.01em;
	padding: 0.6em 1em !important;
}
.main-navigation .main-nav ul li a:hover {
	color: var(--pt-color-accent) !important;
}
.main-navigation .main-nav ul li.current-menu-item a {
	color: var(--pt-color-accent) !important;
}

.main-navigation .menu-toggle,
.main-navigation .main-nav ul.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.main-navigation .main-nav ul.menu {
	max-width: 100%;
}


/* ============================================================
   NAVEGACION DE CATEGORIAS en /tienda/
   ============================================================ */

.pt-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pt-space-3);
	justify-content: center;
	margin-top: var(--pt-space-6);
}
.pt-cat-nav__link {
	display: inline-flex;
	align-items: center;
	padding: var(--pt-space-2) var(--pt-space-5);
	background: var(--pt-color-surface);
	border: 2px solid var(--pt-color-border);
	border-radius: var(--pt-radius-full);
	font-size: var(--pt-fs-sm);
	font-weight: var(--pt-fw-semibold);
	color: var(--pt-color-primary);
	text-decoration: none;
	transition: all var(--pt-transition-fast);
}
.pt-cat-nav__link:hover {
	background: var(--pt-color-primary);
	border-color: var(--pt-color-primary);
	color: var(--pt-color-bg);
}


/* ============================================================
   HEADER DE SECCION DE CATEGORIA en /tienda/
   ============================================================ */

.pt-cat-section-header {
	display: flex;
	flex-direction: column;
	gap: var(--pt-space-4);
	margin-bottom: var(--pt-space-10);
	position: relative;
}
@media (min-width: 768px) {
	.pt-cat-section-header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--pt-space-8);
	}
	.pt-cat-section-header > div {
		flex: 1;
		max-width: 720px;
	}
}
.pt-cat-section-title {
	text-align: left;
	margin: 0 0 var(--pt-space-3);
}
.pt-cat-section-lead {
	text-align: left;
	margin: 0;
}
.pt-cat-section-link {
	flex-shrink: 0;
	white-space: nowrap;
}
