/* Shared front-end and editor refinements not expressible in theme.json. */
:where(.wp-site-blocks) :focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

:where(.wp-site-blocks) .wp-block-button__link {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 35%, transparent);
}

.wp-site-blocks .has-gold-background-color,
.editor-styles-wrapper .has-gold-background-color {
	background-color: var(--wp--preset--color--gold-accent);
}

/* Equal-height/width card rows (category cards, story stats). */
.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Category chip row — lightweight nav links, no card border/shadow/hover-lift. */
.wp-site-blocks .category-chip-row {
	gap: var(--wp--preset--spacing--lg);
}
.wp-site-blocks .category-chip {
	flex: 1 1 260px;
	gap: var(--wp--preset--spacing--md);
	align-items: flex-start;
}
.wp-site-blocks .category-chip-thumb img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	flex-shrink: 0;
}
.wp-site-blocks .category-chip a {
	transition: color 0.2s ease;
}
.wp-site-blocks .category-chip a:hover,
.wp-site-blocks .category-chip a:focus-visible {
	color: var(--wp--preset--color--primary);
}

/* Circular avatar photo with fixed crop and gold ring (story section). */
.wp-block-image.story-avatar img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border: 3px solid var(--wp--preset--color--gold-accent);
	border-radius: 50%;
}

/* Fixed footer border/padding — part of theme design, not editable via Gutenberg. */
.wp-site-blocks .site-footer-main {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--xl);
	padding-right: var(--wp--preset--spacing--md);
	padding-bottom: var(--wp--preset--spacing--lg);
	padding-left: var(--wp--preset--spacing--md);
}

/* Card hover lift for clickable image/content cards (categories, gallery). */
.wp-site-blocks .hover-lift {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-site-blocks .hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--rose-lift);
}

/* Section wrapper that positions decor-blur-circle children. */
.wp-site-blocks .decor-wrap {
	position: relative;
	overflow: hidden;
}
.wp-site-blocks .decor-wrap > .decor-content {
	position: relative;
	z-index: 1;
}

/* Blurred decorative circles used in place of photography (hero, newsletter). */
.wp-site-blocks .decor-wrap::before,
.wp-site-blocks .decor-wrap::after {
	content: "";
	position: absolute;
	border-radius: 9999px;
	filter: blur(60px);
	pointer-events: none;
	z-index: 0;
}
.wp-site-blocks .decor-wrap::before {
	top: -6rem;
	right: -6rem;
	width: 320px;
	height: 320px;
	background-color: color-mix(in srgb, var(--wp--preset--color--gold) 35%, transparent);
}
.wp-site-blocks .decor-wrap::after {
	bottom: -4rem;
	left: -4rem;
	width: 260px;
	height: 260px;
	background-color: color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent);
}
.wp-site-blocks .decor-wrap.is-newsletter::before {
	top: -5rem;
	left: -5rem;
	right: auto;
	width: 280px;
	height: 280px;
	background-color: color-mix(in srgb, var(--wp--preset--color--gold) 35%, transparent);
}
.wp-site-blocks .decor-wrap.is-newsletter::after {
	bottom: -4rem;
	right: -4rem;
	left: auto;
	width: 220px;
	height: 220px;
	background-color: color-mix(in srgb, var(--wp--preset--color--gold) 30%, transparent);
}

/* Pulsing status dot for the announcement bar. */
.wp-site-blocks .pulse-subtle {
	display: inline-block;
	animation: ollie-child-pulse 2s ease-in-out infinite;
}
@keyframes ollie-child-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Decorative ribbon badge over an image, no commercial data implied. */
.wp-site-blocks .badge-ribbon {
	position: relative;
}
.wp-site-blocks .badge-ribbon-label {
	position: absolute;
	top: var(--wp--preset--spacing--sm);
	left: var(--wp--preset--spacing--sm);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background) !important;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	z-index: 1;
	margin: 0;
}

/* Fixed-width circle for numbered step badges in the cotizador pattern. */
.wp-site-blocks .step-badge {
  width: 2.5rem;
  flex: 0 0 auto;
}

/* Mobile sticky bottom navigation (Inicio / Tortas / Cotizador / WhatsApp). */
.ollie-child-bottom-nav {
	position: fixed;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 100;
	display: flex;
	justify-content: space-around;
	align-items: center;
	background-color: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--wp--preset--shadow--floating);
	padding-block: var(--wp--preset--spacing--sm);
}
.ollie-child-bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.125rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}
.ollie-child-bottom-nav a[href^="https://wa.me/"] {
	color: var(--wp--preset--color--primary);
}

@media (min-width: 782px) {
	.ollie-child-bottom-nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks .hover-lift {
		transition-duration: 0.01ms;
	}
	.wp-site-blocks .pulse-subtle {
		animation-duration: 0.01ms;
	}
}
