/**
 * Yummy Premium — component styles.
 * Tokens come from theme.json (--wp--preset--*, --wp--custom--*).
 * Mobile-first: base styles target small screens; media queries scale up.
 */

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
a, button, [role="button"], input[type="submit"] { touch-action: manipulation; }
a, .wp-element-button, .wp-block-button__link { transition: color var(--wp--custom--transition--fast), background-color var(--wp--custom--transition--base), border-color var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base), transform var(--wp--custom--transition--base); }
:where(a) { text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
:where(a):hover { text-decoration-color: currentColor; }
/* Accent words (<em> in headings): brand script (Backline -> Kaushan Script) over a
   swash of colour, echoing the line that runs through the "yummy" of the logo.
   The text stays Near Black so it keeps its contrast on any background. */
h1 em, h2 em, h3 em, .wp-block-heading em {
	font-family: var(--wp--preset--font-family--script); font-style: normal; font-weight: 400; letter-spacing: 0;
	font-size: 1.06em; line-height: 1.1; color: inherit;
	display: inline-block; position: relative; z-index: 0; padding: 0 0.1em 0.12em; max-width: 100%;
}
h1 em::after, h2 em::after, h3 em::after, .wp-block-heading em::after {
	content: ""; position: absolute; z-index: -1; left: -0.05em; right: -0.05em; bottom: -0.02em; height: 0.34em;
	background: var(--yummy-highlight, var(--wp--preset--color--rosa));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16C30 4 52 4 80 12s58 12 86 2c10-4 20-8 30-6' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16C30 4 52 4 80 12s58 12 86 2c10-4 20-8 30-6' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
::selection { background: var(--wp--preset--color--rosa); color: var(--wp--preset--color--chocolate-oscuro); }

/* Visible focus (WCAG 2.2 — 2.4.7 / 2.4.11) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--chocolate);
	outline-offset: 3px;
	border-radius: 4px;
}
.wp-element-button:focus-visible, .wp-block-button__link:focus-visible { outline-offset: 3px; border-radius: 999px; }

.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--chocolate); color: #fff; padding: 0.75rem 1rem; z-index: 100000; }

/* ---------- Eyebrow ---------- */
.is-style-eyebrow,
.wp-block-post-terms.is-style-eyebrow a {
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.22em; /* like the "COMPLACIENDO TU PALADAR" ring of the logo */
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--wp--preset--color--chocolate);
	text-decoration: none;
}
@media (max-width: 480px) { .is-style-eyebrow { letter-spacing: 0.14em; } p.is-style-eyebrow::before, p.is-style-eyebrow.has-text-align-center::after { width: 1.25rem; } }
p.is-style-eyebrow::before { content: ""; display: inline-block; width: 1.75rem; height: 4px; border-radius: 4px; margin-right: 0.7rem; vertical-align: 0.2em; background: var(--yummy-highlight, var(--wp--preset--color--rosa)); }
p.is-style-eyebrow.has-text-align-center::after { content: ""; display: inline-block; width: 1.75rem; height: 4px; border-radius: 4px; margin-left: 0.7rem; vertical-align: 0.2em; background: var(--yummy-highlight, var(--wp--preset--color--rosa)); }
.is-style-eyebrow.has-text-color { color: inherit; }
.wp-block-heading.is-style-eyebrow { color: var(--wp--preset--color--chocolate); margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; cursor: pointer; }
.wp-block-button__link:active, .wp-element-button:active { transform: scale(0.98); }
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--wp--preset--color--chocolate);
	border: 1.5px solid var(--wp--preset--color--chocolate);
	padding: calc(0.875rem - 1.5px) calc(1.625rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--chocolate);
	color: var(--wp--preset--color--blanco);
}
.wp-block-button.is-style-light > .wp-block-button__link { background: var(--wp--preset--color--blanco); color: var(--wp--preset--color--chocolate); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--wp--preset--color--rosa-suave); color: var(--wp--preset--color--chocolate-oscuro); }

/* ---------- Header ---------- */
.yummy-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .yummy-site-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .yummy-site-header { top: 0; } }
.yummy-header { transition: box-shadow var(--wp--custom--transition--base), background-color var(--wp--custom--transition--base); }
.yummy-is-scrolled .yummy-header {
	box-shadow: 0 1px 0 var(--wp--preset--color--borde), 0 10px 30px rgb(76 68 67 / 6%);
}
@supports (backdrop-filter: blur(10px)) {
	.yummy-is-scrolled .yummy-header { background-color: rgb(255 255 255 / 92%) !important; backdrop-filter: saturate(1.4) blur(10px); }
}
.yummy-header__inner { gap: 1rem; min-height: 64px; }
.yummy-header__logo img, .yummy-header .yummy-logo img { height: 64px; width: auto; display: block; }
@media (max-width: 600px) { .yummy-header__logo img, .yummy-header .yummy-logo img { height: 56px; } }
.yummy-header .wp-block-site-logo { flex-shrink: 0; }
.yummy-header__nav { gap: 0.75rem !important; }
.yummy-nav .wp-block-navigation-item__content { position: relative; padding: 0.5rem 0; }
.yummy-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1.5px;
	background: var(--wp--preset--color--rosa); height: 3px; border-radius: 3px; transform: scaleX(0); transform-origin: left;
	transition: transform var(--wp--custom--transition--base);
}
.yummy-nav .wp-block-navigation-item__content:hover::after,
.yummy-nav .current-menu-item > .wp-block-navigation-item__content::after,
.yummy-nav [aria-current="page"]::after { transform: scaleX(1); }
.yummy-nav .wp-block-navigation__responsive-container-open,
.yummy-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.yummy-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1rem, 6vw, 2.5rem) !important; }
.yummy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4.5rem; align-items: flex-start !important; }
.yummy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.yummy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { padding-inline: 0.25rem; }
.yummy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-weight: 800; font-size: var(--wp--preset--font-size--large); }
.yummy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1rem; }

/* Mobile header: hide the WhatsApp button label on very small screens (it keeps an aria-label). */
@media (max-width: 420px) {
	.yummy-header__cta .yummy-whatsapp-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.yummy-header__cta .yummy-whatsapp-button { padding-inline: 0.75rem; min-width: 48px; }
}

/* Logo fallback (site name) */
.yummy-wordmark { margin: 0; font-family: var(--wp--preset--font-family--script); font-size: 2rem; font-weight: 400; line-height: 1; }
.yummy-wordmark a { text-decoration: none; color: var(--wp--preset--color--chocolate); }

/* ---------- Sections ---------- */
.yummy-section__head { margin-bottom: var(--wp--preset--spacing--40); }
.yummy-section__head--split { gap: 1.25rem; }
.yummy-section__head .wp-block-heading { margin-top: 0; }

/* ---------- Hero ---------- */
.yummy-hero { position: relative; overflow: hidden; }
.yummy-hero::before {
	content: ""; position: absolute; width: min(52vw, 620px); aspect-ratio: 1; border-radius: 50%;
	border: clamp(14px, 1.6vw, 22px) solid var(--wp--preset--color--turquesa); outline: 2px solid var(--wp--preset--color--blanco); outline-offset: clamp(8px, 1vw, 14px);
	right: -14vw; top: -18%; z-index: 0; pointer-events: none;
}
.yummy-hero::after {
	content: ""; position: absolute; width: min(22vw, 220px); aspect-ratio: 1; border-radius: 50%;
	background: var(--wp--preset--color--blanco); opacity: 0.35; left: -6vw; bottom: -8%; z-index: 0; pointer-events: none;
}
.yummy-hero > * { position: relative; z-index: 1; }
.yummy-hero__title { margin-top: 0.75rem; text-wrap: balance; }
.yummy-hero__lead { max-width: 34ch; }
.yummy-hero__slogan { margin-top: var(--wp--preset--spacing--40); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem) !important; line-height: 1.2; }
.yummy-hero__media { position: relative; }
.yummy-hero__image { margin-inline: auto; max-width: 100%; }
.yummy-hero__image img { width: 100% !important; max-width: min(560px, 60vh); }
@media (max-width: 781px) { .yummy-hero__image img { max-width: min(420px, 100%); } }
.yummy-hero__media::after {
	content: ""; position: absolute; width: 92px; height: 92px; border-radius: 50%;
	border: 2px solid var(--wp--preset--color--blanco); right: 4%; bottom: 6%; pointer-events: none;
}
@media (max-width: 781px) {
	.yummy-hero { padding-top: var(--wp--preset--spacing--60) !important; }
	.yummy-hero__text { text-align: left; }
	.yummy-hero__image img { max-width: min(340px, 100%); }
	.yummy-hero__media::after { display: none; }
}

/* ---------- Image styles ---------- */
.is-style-arch img, .wp-block-image.is-style-arch img { border-radius: var(--wp--custom--radius--arch) !important; }
.is-style-soft-frame { position: relative; }
.is-style-soft-frame img { border-radius: var(--wp--custom--radius--lg) !important; position: relative; z-index: 1; }
.is-style-soft-frame::before {
	content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--rosa-suave); z-index: 0;
}
@media (max-width: 600px) { .is-style-soft-frame::before { inset: 0.75rem -0.5rem -0.75rem 0.5rem; } }

/* ---------- Generic card ---------- */
.is-style-card {
	background: var(--wp--preset--color--blanco);
	border: 1px solid var(--wp--preset--color--borde);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--40);
	box-shadow: var(--wp--preset--shadow--suave);
}

/* ---------- Occasions ---------- */
.yummy-occasion { padding: 0 !important; overflow: hidden; transition: transform var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base); }
.yummy-occasion > :not(.wp-block-image) { padding-inline: var(--wp--preset--spacing--40); }
.yummy-occasion .wp-block-image { margin: 0; overflow: hidden; }
.yummy-occasion .wp-block-image img { border-radius: 0 !important; width: 100%; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.yummy-occasion h3 { margin-top: var(--wp--preset--spacing--30); }
.yummy-occasion p:last-child { padding-bottom: var(--wp--preset--spacing--40); margin-bottom: 0; }
.yummy-occasions__grid { grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)) !important; }
@media (hover: hover) {
	.yummy-occasion:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--elevada); }
	.yummy-occasion:hover .wp-block-image img { transform: scale(1.04); }
}

/* ---------- Steps (custom orders) ---------- */
.yummy-steps__list { list-style: none; counter-reset: yummy-step; padding: 0; display: grid; gap: 1.25rem; }
.yummy-steps__list li { counter-increment: yummy-step; position: relative; padding-left: 3.25rem; }
.yummy-steps__list li::before {
	content: counter(yummy-step); position: absolute; left: 0; top: -0.1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
	display: grid; place-items: center; background: var(--wp--preset--color--rosa); color: var(--wp--preset--color--chocolate-oscuro);
	font-weight: 800;
}
@media (min-width: 782px) { .yummy-steps { position: sticky; top: calc(var(--wp--custom--header--height) + 2rem); align-self: flex-start; } }

/* ---------- Lists with checks ---------- */
.is-style-checks { list-style: none; padding-left: 0; display: grid; gap: 0.5rem; }
.is-style-checks li { position: relative; padding-left: 1.75rem; }
.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
	background: var(--wp--preset--color--turquesa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234C4443' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Page heroes ---------- */
/* Brand colour + line pattern: the original pastry line art (assets/images/pattern-reposteria.svg)
   sits in white at low opacity between the background colour and the content, fading out
   behind the text so the title always reads on the flat colour. Also available on any Group
   as the "Con patrón" style. */
.yummy-page-hero, .wp-block-group.is-style-pattern { position: relative; isolation: isolate; overflow: hidden; }
.yummy-page-hero::before, .wp-block-group.is-style-pattern::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: url("../images/pattern-reposteria.svg") center top / 300px auto repeat;
	opacity: 0.38;
	-webkit-mask: radial-gradient(ellipse 58% 70% at 50% 50%, transparent 30%, #000 85%);
	mask: radial-gradient(ellipse 58% 70% at 50% 50%, transparent 30%, #000 85%);
}
/* White lines disappear on white/cream; there the pattern uses the deep Tiffany Blue, fainter. */
.wp-block-group.is-style-pattern:not(.has-background)::before,
.wp-block-group.is-style-pattern:is(.has-blanco-background-color, .has-crema-background-color, .has-rosa-suave-background-color, .has-turquesa-suave-background-color)::before {
	background-image: none; background-color: var(--wp--preset--color--turquesa-intenso); opacity: 0.12;
	-webkit-mask: url("../images/pattern-reposteria.svg") center top / 300px auto repeat, radial-gradient(ellipse 58% 70% at 50% 50%, transparent 30%, #000 85%);
	-webkit-mask-composite: source-in;
	mask: url("../images/pattern-reposteria.svg") center top / 300px auto repeat, radial-gradient(ellipse 58% 70% at 50% 50%, transparent 30%, #000 85%);
	mask-composite: intersect;
}
@media (max-width: 600px) {
	.yummy-page-hero::before, .wp-block-group.is-style-pattern::before { background-size: 240px auto; }
	.yummy-page-hero::before { -webkit-mask: radial-gradient(ellipse 75% 62% at 50% 50%, transparent 35%, #000 90%); mask: radial-gradient(ellipse 75% 62% at 50% 50%, transparent 35%, #000 90%); }
}
@media (forced-colors: active) { .yummy-page-hero::before, .wp-block-group.is-style-pattern::before { display: none; } }
.yummy-page-hero h1 { text-wrap: balance; }
.yummy-full-content > .yummy-page-hero:first-child { margin-top: 0; }
.yummy-legal-notice { background: var(--wp--preset--color--rosa-suave); border-left: 4px solid var(--wp--preset--color--rosa); padding: 1rem 1.25rem; border-radius: 0 var(--wp--custom--radius--sm) var(--wp--custom--radius--sm) 0; font-size: var(--wp--preset--font-size--small); }
.yummy-legal h2 { font-size: var(--wp--preset--font-size--large); margin-top: var(--wp--preset--spacing--50); }

/* ---------- Footer ---------- */
/* The logo sits on a white disc: the brand guide shows it on white (colour version) or on pink (white version). */
.yummy-footer .wp-block-site-logo { display: inline-block; background: var(--wp--preset--color--blanco); border-radius: 50%; padding: 10px; line-height: 0; }
.yummy-footer .wp-block-site-logo img { height: 104px; width: auto; }
.yummy-footer__slogan { margin-top: 1rem; font-size: 1.75rem !important; line-height: 1.2; }
.yummy-footer a { text-decoration: none; }
.yummy-footer a:hover { text-decoration: underline; }
.yummy-footer__nav .wp-block-navigation-item__content { padding: 0.25rem 0; }
.yummy-footer__bottom { gap: 0.75rem 1.5rem; }
/* Comfortable tap targets (WCAG 2.2 · 2.5.8) */
.yummy-footer__legal .wp-block-navigation-item__content,
.yummy-footer__nav .wp-block-navigation-item__content,
.yummy-info__list a { display: inline-flex; align-items: center; min-height: 44px; }
.yummy-info__list li { align-items: center; }
.yummy-footer__bottom p { margin: 0; }
@media (max-width: 781px) { .yummy-footer__columns { flex-wrap: wrap !important; } .yummy-footer__columns > .wp-block-column { flex-basis: 100% !important; } }
@media (min-width: 600px) and (max-width: 781px) { .yummy-footer__columns > .wp-block-column:not(:first-child) { flex-basis: calc(50% - 1.5rem) !important; } }

/* ---------- Instagram gallery ---------- */
.yummy-instagram__gallery.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--wp--custom--radius--md); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 600px) { .yummy-instagram__gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - 0.375rem); } }
/* Live feed (Smash Balloon Social Photo Feed). */
.yummy-instagram__feed #sb_instagram { padding-bottom: 0 !important; }
.yummy-instagram__feed #sb_instagram .sbi_photo,
.yummy-instagram__feed #sb_instagram .sbi_photo img { border-radius: var(--wp--custom--radius--md); }
.yummy-instagram__feed #sb_instagram .sbi_item { transition: transform .25s ease; }
.yummy-instagram__feed #sb_instagram .sbi_item:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .yummy-instagram__feed #sb_instagram .sbi_item { transition: none; } .yummy-instagram__feed #sb_instagram .sbi_item:hover { transform: none; } }

/* ---------- Entrance animations (only with JS and no reduced-motion preference) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.yummy-js .yummy-reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--wp--custom--transition--slow), transform var(--wp--custom--transition--slow); transition-delay: var(--yummy-delay, 0ms); }
	.yummy-js .yummy-reveal.is-visible { opacity: 1; transform: none; }
	html { scroll-behavior: smooth; }
}
.editor-styles-wrapper .yummy-reveal, .block-editor-block-list__layout .yummy-reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Pagination ---------- */
.wp-block-query-pagination { gap: 0.5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; padding-inline: 0.75rem; }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--chocolate); color: #fff; }
.wp-block-query-pagination a:hover { background: var(--wp--preset--color--rosa-suave); }

/* ---------- Forms (base) ---------- */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"], input[type="password"], input[type="url"], select, textarea) {
	font: inherit; color: var(--wp--preset--color--chocolate); background: var(--wp--preset--color--blanco);
	border: 1.5px solid #DCCBCE; border-radius: var(--wp--custom--radius--sm); padding: 0.75rem 0.9rem; min-height: 48px; width: 100%; max-width: 100%; box-sizing: border-box;
	transition: border-color var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast);
}
:where(input, select, textarea):focus { border-color: var(--wp--preset--color--chocolate); box-shadow: 0 0 0 3px rgb(255 145 164 / 45%); outline: none; }
.wp-block-search__inside-wrapper { gap: 0.5rem; }

/* ---------- Utilities ---------- */
.yummy-empty { text-align: center; padding-block: var(--wp--preset--spacing--60); }
.yummy-secure-note::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.4em; vertical-align: -0.15em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- Brand surfaces ----------
   Flat brand colours as in the brand guide. Text on Pinkish Red uses the deeper
   Near Black (#2F2928: 6.7:1) because #4C4443 on pink is 4.4:1; on Tiffany Blue
   #4C4443 passes (5.8:1). Secondary text inherits the main text colour there. */
.has-rosa-background-color {
	--wp--preset--color--chocolate: #2F2928;
	--wp--preset--color--texto-suave: #2F2928;
	--yummy-highlight: var(--wp--preset--color--blanco);
	color: #2F2928;
}
/* Titles (H1/H2) use the title turquoise #61CCC6 chosen by Yummy (1.9:1 on white: below the
   WCAG 3:1 minimum for large text; decision recorded in DESIGN_SYSTEM.md).
   On Tiffany Blue backgrounds #61CCC6 would be invisible (1.2:1), so there titles use the deep
   turquoise #145E5B (4.6:1); on pink and Near Black titles keep Near Black / white. */
.has-rosa-background-color :where(h1, h2) { color: #2F2928; }
.has-chocolate-background-color :where(h1, h2), .has-chocolate-oscuro-background-color :where(h1, h2) { color: var(--wp--preset--color--blanco); }
.has-turquesa-background-color {
	--wp--preset--color--turquesa-intenso: #145E5B;
	--wp--preset--color--texto-suave: var(--wp--preset--color--chocolate);
	--yummy-highlight: var(--wp--preset--color--blanco);
}
/* On pink, the primary button turns Near Black so it does not disappear. */
.has-rosa-background-color .wp-block-button:not(.is-style-outline):not(.is-style-light) > .wp-block-button__link { background: var(--wp--preset--color--chocolate); color: var(--wp--preset--color--blanco); }
.has-rosa-background-color .wp-block-button:not(.is-style-outline):not(.is-style-light) > .wp-block-button__link:hover { background: var(--wp--preset--color--blanco); color: var(--wp--preset--color--chocolate); }
.has-rosa-background-color .yummy-button.is-variant-primary { background: var(--wp--preset--color--chocolate) !important; color: var(--wp--preset--color--blanco) !important; }
.has-rosa-background-color .yummy-button.is-variant-primary:hover { background: var(--wp--preset--color--blanco) !important; color: var(--wp--preset--color--chocolate) !important; }
.has-rosa-background-color .wp-block-button.is-style-outline > .wp-block-button__link { background: var(--wp--preset--color--blanco); border-color: var(--wp--preset--color--blanco); }
.has-rosa-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--chocolate); border-color: var(--wp--preset--color--chocolate); color: var(--wp--preset--color--blanco); }

/* Footer in Pinkish Red (1.2.2).
   - Text: deep Near Black #2F2928 (6.7:1 on pink). White on pink is 2.1:1, so it is not used for text.
   - Top edge: irregular wave (assets/images/wave-top.svg) applied as a mask; the footer is pulled up
     by the wave height so the curve sits over the end of the page.
   - Texture: by default the pastry line pattern in white. If a background image is set on the footer
     Group (Site Editor › Footer › Group › Styles › Background image), the image shows through the
     pink at 14 % (pink layer at 86 %) instead of the pattern.
   - Bottom bar in deep Near Black with white text and the Kroding logo (white version). */
:root { --yummy-wave: clamp(26px, 3.6vw, 52px); }
.wp-site-blocks > footer { margin-block-start: calc(var(--yummy-wave) * -1); position: relative; z-index: 1; }
.yummy-footer {
	position: relative; isolation: isolate; overflow: hidden;
	padding-top: calc(var(--wp--preset--spacing--70) + var(--yummy-wave)) !important;
	-webkit-mask: url("../images/wave-top.svg") center top / 100% var(--yummy-wave) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--yummy-wave) - 1px) / 100% calc(100% - var(--yummy-wave) + 1px) no-repeat;
	mask: url("../images/wave-top.svg") center top / 100% var(--yummy-wave) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--yummy-wave) - 1px) / 100% calc(100% - var(--yummy-wave) + 1px) no-repeat;
}
.yummy-footer::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: url("../images/pattern-reposteria.svg") center top / 300px auto repeat;
	opacity: 0.3;
}
.yummy-footer[style*="background-image"] { background-size: cover; background-position: center; }
.yummy-footer[style*="background-image"]::before { background: var(--wp--preset--color--rosa); opacity: 0.86; }
@media (max-width: 600px) { .yummy-footer::before { background-size: 240px auto; } }
@media (forced-colors: active) { .yummy-footer { -webkit-mask: none; mask: none; } .yummy-footer::before { display: none; } }

.yummy-footer.has-rosa-background-color { color: #2F2928; }
.yummy-footer.has-rosa-background-color a,
.yummy-footer.has-rosa-background-color .wp-block-navigation-item__content { color: #2F2928; }
.yummy-footer.has-rosa-background-color .wp-block-heading.is-style-eyebrow { color: #2F2928; }
.yummy-footer.has-rosa-background-color .yummy-footer__slogan { color: #2F2928; }
.yummy-footer.has-rosa-background-color .yummy-social.is-icons a { background: rgb(255 255 255 / 55%); color: #2F2928; border-color: transparent; }
.yummy-footer.has-rosa-background-color .yummy-social.is-icons a:hover { background: #2F2928; color: var(--wp--preset--color--blanco); border-color: #2F2928; }
.yummy-footer.has-rosa-background-color :where(a, button):focus-visible { outline-color: #2F2928; }

/* Bottom bar */
.yummy-footer__bar { color: var(--wp--preset--color--blanco); --wp--preset--color--texto-suave: #E9E2E1; }
.yummy-footer .yummy-footer__bar a,
.yummy-footer .yummy-footer__bar .wp-block-navigation-item__content { color: var(--wp--preset--color--blanco); }
.yummy-footer .yummy-footer__bar a:hover { color: var(--wp--preset--color--rosa); }
.yummy-footer .yummy-footer__bar :where(a, button):focus-visible { outline-color: var(--wp--preset--color--blanco); }
.yummy-credit { display: inline-flex; align-items: center; gap: 0.6rem; }
.yummy-credit a { display: inline-flex; align-items: center; min-height: 44px; line-height: 0; }
.yummy-credit__logo { height: 22px; width: auto; display: block; }
.yummy-credit a:hover .yummy-credit__logo { opacity: 0.85; }

/* Footer in Near Black (kept for sites that switch the footer colour back in the Site Editor). */
.yummy-footer.has-chocolate-background-color { color: var(--wp--preset--color--blanco); --wp--preset--color--texto-suave: #E9E2E1; }
.yummy-footer.has-chocolate-background-color a,
.yummy-footer.has-chocolate-background-color .wp-block-navigation-item__content { color: var(--wp--preset--color--blanco); }
.yummy-footer.has-chocolate-background-color .wp-block-heading.is-style-eyebrow { color: var(--wp--preset--color--turquesa); }
.yummy-footer.has-chocolate-background-color .yummy-footer__slogan { color: var(--wp--preset--color--rosa); }
.yummy-footer.has-chocolate-background-color .yummy-social.is-icons a { background: transparent; color: var(--wp--preset--color--blanco); border-color: rgb(255 255 255 / 35%); }

/* Content created with earlier versions of the theme (colours and fonts no longer in the palette). */
.has-rosa-profundo-color { color: var(--wp--preset--color--chocolate) !important; }
.has-turquesa-profundo-color { color: var(--wp--preset--color--turquesa-intenso) !important; }
.has-serif-font-family { font-family: var(--wp--preset--font-family--script) !important; }
.has-serif-font-family em { font-style: normal; }

/* ---------- Menu page (template page-menu) ---------- */
.yummy-menu-page .yummy-page-title { text-align: left; margin-bottom: 0; }
.yummy-menu-page .yummy-menu-lead { color: var(--wp--preset--color--texto-suave); font-size: var(--wp--preset--font-size--medium); margin: 0.5rem 0 clamp(1.5rem, 3vw, 2.25rem); max-width: 60ch; }
