/* ==========================================================================
   La Cocinita — hoja de estilos principal
   Paleta: papel crema, terracota, azafrán, oliva y azul azulejo.
   ========================================================================== */

:root {
	--cream: #fbf6ee;
	--paper: #fffdf9;
	--sand: #f3e9d9;
	--sand-2: #eadcc6;
	--ink: #2b211c;
	--ink-2: #5a4b42;
	--ink-3: #84736a;
	--terracotta: #c4532d;
	--terracotta-dark: #9e3f1f;
	--saffron: #e3a93b;
	--olive: #5e6b3a;
	--azulejo: #2f5d8a;
	--line: #e6d8c3;

	--accent: var(--terracotta);
	--accent-soft: #f6e1d6;

	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(43, 33, 28, .06), 0 8px 24px -12px rgba(43, 33, 28, .18);
	--shadow-lg: 0 2px 4px rgba(43, 33, 28, .05), 0 24px 48px -24px rgba(43, 33, 28, .3);
	--wrap: 1200px;
	--wrap-narrow: 760px;
	--gutter: clamp(16px, 4vw, 32px);

	/* Azulejo: patrón de baldosa en SVG */
	--tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%232f5d8a'/%3E%3Cpath d='M20 4l16 16-16 16L4 20z' fill='%23fbf6ee'/%3E%3Cpath d='M20 11l9 9-9 9-9-9z' fill='%23e3a93b'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%232f5d8a'/%3E%3Cpath d='M0 0h6a6 6 0 0 1-6 6zM40 0v6a6 6 0 0 1-6-6zM0 40v-6a6 6 0 0 1 6 6zM40 40h-6a6 6 0 0 1 6-6z' fill='%23fbf6ee'/%3E%3C/svg%3E");
	--tile-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c4532d' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M28 6l22 22-22 22L6 28z'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 8a8 8 0 0 0 8-8M48 0a8 8 0 0 0 8 8M56 48a8 8 0 0 0-8 8M8 56a8 8 0 0 0-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Colores por grupo de recetas */
.group-dulces     { --accent: #c65a6e; --accent-soft: #f8e1e5; }
.group-tartas     { --accent: #a9508a; --accent-soft: #f3e0ec; }
.group-panes      { --accent: #b0721f; --accent-soft: #f6e7cf; }
.group-aperitivos { --accent: #66752f; --accent-soft: #e9ecd5; }
.group-mar        { --accent: #2f5d8a; --accent-soft: #dde8f2; }
.group-carnes     { --accent: #a2412a; --accent-soft: #f4ddd5; }
.group-arroz      { --accent: #b8800f; --accent-soft: #f8ebcb; }
.group-huerta     { --accent: #4a7f45; --accent-soft: #dfeedc; }
.group-helados    { --accent: #2f8796; --accent-soft: #d9eef1; }
.group-salsas     { --accent: #c4532d; --accent-soft: #f6e1d6; }
.group-bebidas    { --accent: #7a4e2d; --accent-soft: #efe2d6; }
.group-trucos     { --accent: #5f5a8c; --accent-soft: #e5e3f1; }

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 650;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ink);
	font-variation-settings: "SOFT" 60, "WONK" 0;
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }

.icon { width: 24px; height: 24px; flex: none; }
.icon--inline { width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.ui-icon { flex: none; }

/* --------------------------------------------------------------------------
   Botones, chips, formularios
   ----------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .7em 1.25em;
	border: 2px solid var(--terracotta);
	border-radius: 999px;
	background: var(--terracotta);
	color: #fff;
	font: 800 .95rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--terracotta-dark); }
.btn--ghost:hover { background: var(--terracotta); color: #fff; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: transparent; color: var(--ink);
	cursor: pointer;
}
.icon-btn:hover { background: var(--sand); }

.chip {
	display: inline-flex; align-items: center; gap: .35em;
	padding: .3em .8em;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: .78rem; font-weight: 800; letter-spacing: .02em;
	text-decoration: none;
	line-height: 1.4;
}
.chip:hover { background: var(--accent); color: #fff; }
.chip--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.chip--outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); background: transparent; color: var(--accent); }
.chip.is-active { background: var(--accent); color: #fff; }
.chip .count { opacity: .6; font-weight: 600; }
.chip--group { font-size: .85rem; padding: .4em .95em; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }

.eyebrow {
	margin: 0 0 .6em;
	color: var(--accent);
	font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow--group { display: inline-flex; align-items: center; gap: .45em; }

.search-form { display: flex; gap: 8px; width: 100%; }
.search-form input[type="search"] {
	flex: 1; min-width: 0;
	padding: .85em 1.15em;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(196, 83, 45, .15); }
.search-form .btn { flex: none; }
@media (max-width: 520px) { .search-form .btn span { display: none; } .search-form .btn { padding-inline: .9em; } }

/* --------------------------------------------------------------------------
   Cabecera
   ----------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 246, 238, .94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.tile-strip { height: 10px; background: var(--tile) 0 0 / 10px 10px repeat-x; opacity: .95; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; }
.brand__logo { max-height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__small { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.brand__name { font-family: var(--font-display); font-size: 1.65rem; font-weight: 650; font-style: italic; color: var(--terracotta); letter-spacing: -.01em; margin-top: 2px; }

.nav { margin-left: auto; }
.nav__list, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item, .nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a {
	display: block; padding: .55em .75em; border-radius: 999px;
	color: var(--ink); font-weight: 800; font-size: .93rem; text-decoration: none; white-space: nowrap;
}
.nav__list > li > a:hover { background: var(--accent-soft); color: var(--accent); }
.nav__toggle { display: none; }
.nav__sub, .nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px;
	padding: 8px; margin-top: 6px;
	background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__sub a, .nav .sub-menu a {
	display: flex; justify-content: space-between; gap: 12px;
	padding: .45em .7em; border-radius: 8px;
	color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 600;
}
.nav__sub a:hover, .nav .sub-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.nav__sub .count { color: var(--ink-3); font-size: .8rem; font-weight: 600; }

.site-header__actions { display: flex; gap: 4px; }
.nav-toggle { display: none; }

/* Selector de idioma */
.lang-switch { position: relative; }
.lang-switch__btn { width: auto; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; border-radius: 999px; list-style: none; }
.lang-switch__btn::-webkit-details-marker { display: none; }
.lang-switch__code { font-weight: 800; font-size: .8rem; letter-spacing: .06em; }
.lang-switch__list {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
	min-width: 190px; margin: 0; padding: 8px; list-style: none;
	background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.lang-switch__list a {
	display: flex; gap: 10px; align-items: center; padding: .45em .7em; border-radius: 8px;
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem;
}
.lang-switch__list a:hover { background: var(--accent-soft); color: var(--accent); }
.lang-switch__list a[aria-current] { background: var(--sand); }
.lang-switch__slug { width: 2.2em; font-size: .75rem; font-weight: 800; color: var(--ink-3); }
.site-footer__langs { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 12px; padding: 0; }
.site-footer__langs a[aria-current] { color: var(--saffron); }

.header-search { padding: 12px 0 18px; }
.header-search[hidden] { display: none; }

@media (max-width: 1100px) {
	/* backdrop-filter haría que el menú fijo se recortase dentro de la cabecera */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
	.site-header__inner { gap: 12px; }
	.site-header__actions { margin-left: auto; }
	.nav-toggle { display: inline-grid; }
	.nav {
		position: fixed; inset: 73px 0 0; z-index: 40;
		margin: 0; padding: 12px var(--gutter) 40px;
		background: var(--cream); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.admin-bar .nav { inset-block-start: 119px; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item, .nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__list > li > a { flex: 1; padding: 1em .25em; font-size: 1.1rem; border-radius: 0; }
	.nav__list > li > a:hover { background: none; }
	.nav__toggle {
		display: inline-grid; place-items: center; width: 44px; height: 44px;
		border: 0; background: none; color: var(--ink); cursor: pointer;
	}
	.nav__toggle[aria-expanded="true"] .ui-icon { transform: rotate(180deg); }
	.nav__sub, .nav .sub-menu {
		position: static; flex-basis: 100%; display: none;
		opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent;
		margin: 0 0 12px; padding: 0 0 0 8px;
	}
	.nav__item.is-open > .nav__sub { display: block; }
	.nav__item:hover > .nav__sub { display: none; }
	.nav__item.is-open:hover > .nav__sub { display: block; }
}
@media (max-width: 600px) {
	.brand__name { font-size: 1.35rem; }
	.brand__mark { width: 36px; height: 36px; }
	.site-header__inner { min-height: 64px; }
	.nav { inset-block-start: 65px; }
}
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Secciones
   ----------------------------------------------------------------------- */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section--tint { background: var(--sand); }
.section__head { margin-bottom: 28px; max-width: 720px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.section__title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: 0; }
.section__lead { color: var(--ink-2); margin: .4em 0 0; }
.link-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 800; color: var(--accent); text-decoration: none; }
.link-more:hover { color: var(--ink); }
.link-more .ui-icon { transition: transform .15s; }
.link-more:hover .ui-icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Hero de portada
   ----------------------------------------------------------------------- */
.hero {
	position: relative;
	background: var(--tile-faint) center / 56px 56px, linear-gradient(180deg, var(--cream), var(--sand));
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.hero__inner {
	display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px;
	padding-block: clamp(40px, 7vw, 96px);
}
.hero__title { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.04; margin-bottom: .35em; }
.hero__title::after {
	content: ""; display: block; width: 84px; height: 6px; margin-top: .3em;
	background: var(--tile) 0 0 / 6px 6px; border-radius: 3px;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 36em; margin-bottom: 1.6em; }
.hero .search-form { max-width: 560px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.hero__chips .chip { background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.hero__chips .chip:hover { background: var(--terracotta); color: #fff; box-shadow: none; }

.hero__plate { position: relative; justify-self: center; width: min(380px, 80%); aspect-ratio: 1; }
.plate {
	position: absolute; inset: 0; display: grid; place-items: center;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, var(--paper) 0 48%, var(--sand) 48.5% 52%, var(--paper) 52.5% 62%, transparent 62.5%),
		var(--tile) center / 34px 34px;
	box-shadow: var(--shadow-lg), inset 0 0 0 10px var(--paper);
}
.plate__icon { width: 34%; height: 34%; color: var(--terracotta); stroke-width: 1.2; }
.hero__sticker {
	position: absolute; right: -4%; bottom: 8%;
	display: grid; place-items: center; text-align: center;
	width: 112px; height: 112px; border-radius: 50%;
	background: var(--saffron); color: var(--ink);
	font-weight: 800; font-size: .85rem; line-height: 1.1;
	box-shadow: var(--shadow);
	transform: rotate(-10deg);
}
.hero__sticker strong { display: block; font-family: var(--font-display); font-size: 2rem; }

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__plate { display: none; }
}

/* --------------------------------------------------------------------------
   Tiles de grupos
   ----------------------------------------------------------------------- */
.groups {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px;
	list-style: none; margin: 0; padding: 0;
}
.group-tile a {
	display: flex; flex-direction: column; gap: 10px; height: 100%;
	padding: 18px;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: inset 0 0 0 1.5px var(--line);
	color: var(--ink); text-decoration: none;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.group-tile a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); color: var(--ink); }
.group-tile__icon {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
	background: var(--accent-soft); color: var(--accent);
}
.group-tile__icon .icon { width: 30px; height: 30px; }
.group-tile__name { font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; line-height: 1.2; }
.group-tile__count { margin-top: auto; color: var(--ink-3); font-size: .85rem; font-weight: 600; }
@media (max-width: 560px) {
	.groups { grid-template-columns: 1fr 1fr; gap: 10px; }
	.group-tile a { padding: 14px; gap: 8px; }
	.group-tile__icon { width: 44px; height: 44px; }
	.group-tile__name { font-size: 1rem; }
}
.groups--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.groups--compact .group-tile a { flex-direction: row; align-items: center; padding: 12px; }
.groups--compact .group-tile__icon { width: 42px; height: 42px; }

/* --------------------------------------------------------------------------
   Tarjetas de receta
   ----------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4, .grid--3 { grid-template-columns: 1fr; } }

.card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__art {
	position: relative; display: grid; place-items: center; width: 100%; height: 100%;
	background:
		radial-gradient(circle at 50% 50%, var(--paper) 0 26%, transparent 26.5%),
		var(--tile-faint) center / 44px 44px,
		var(--accent-soft);
	color: var(--accent);
}
.card__art::after {
	content: ""; position: absolute; inset: auto 0 0; height: 6px;
	background: var(--accent); opacity: .85;
}
.card__icon { width: 46px; height: 46px; stroke-width: 1.4; transition: transform .25s; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__title { font-size: 1.25rem; margin: 0; line-height: 1.22; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--accent); }
.card .chip { position: relative; z-index: 2; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.card__meta { display: flex; gap: 6px; margin: auto 0 0; padding-top: 6px; color: var(--ink-3); font-size: .82rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   Archivo / categoría
   ----------------------------------------------------------------------- */
.archive-hero {
	padding-block: clamp(28px, 5vw, 56px);
	background: var(--tile-faint) center / 56px 56px, var(--accent-soft);
	border-bottom: 1px solid var(--line);
}
.archive-hero__row { display: flex; gap: 20px; align-items: flex-start; }
.archive-hero__icon {
	display: grid; place-items: center; flex: none;
	width: 72px; height: 72px; border-radius: 20px;
	background: var(--paper); color: var(--accent); box-shadow: var(--shadow);
}
.archive-hero__icon .icon { width: 40px; height: 40px; }
.archive-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .3em; }
.archive-desc { max-width: 680px; color: var(--ink-2); font-size: 1.08rem; }
.archive-desc p:last-child { margin-bottom: .5em; }
.archive-count { color: var(--ink-3); font-weight: 700; font-size: .9rem; margin: 0 0 1em; }
.archive-hero .search-form { max-width: 560px; margin-top: 12px; }
@media (max-width: 600px) { .archive-hero__icon { display: none; } }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
	color: var(--ink); font-weight: 800; text-decoration: none;
}
.pagination .page-numbers:hover { box-shadow: inset 0 0 0 2px var(--terracotta); color: var(--terracotta); }
.pagination .page-numbers.current { background: var(--terracotta); color: #fff; box-shadow: none; }
.pagination .dots { box-shadow: none; background: none; }

.empty { text-align: center; max-width: 820px; margin-inline: auto; }
.empty__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 650; }
.empty .groups { text-align: left; margin-top: 24px; }

/* --------------------------------------------------------------------------
   Migas de pan
   ----------------------------------------------------------------------- */
.breadcrumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumbs p { margin: 0; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.breadcrumbs a:hover { color: var(--terracotta); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 .2em; }

/* --------------------------------------------------------------------------
   Entrada
   ----------------------------------------------------------------------- */
.entry-hero {
	padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px);
	background: var(--tile-faint) center / 56px 56px, linear-gradient(180deg, var(--accent-soft), var(--cream));
}
.entry-title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.06; margin: .35em 0 .35em; }
.entry-lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.55; }
.entry-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
	color: var(--ink-3); font-size: .9rem; font-weight: 600;
}
.entry-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta a { color: var(--ink); font-weight: 800; text-decoration: none; }
.entry-meta .avatar { border-radius: 50%; width: 32px; height: 32px; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.entry--page .entry-hero { background: var(--tile-faint) center / 56px 56px, var(--sand); }

.entry-cover { margin-block: 0 8px; }
.entry-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.entry-content { font-size: 1.1rem; padding-block: 24px 8px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin-top: 1.8em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
	margin-inline: 0; padding: 4px 0 4px 22px;
	border-left: 4px solid var(--saffron);
	font-family: var(--font-display); font-style: italic; font-size: 1.2em; color: var(--ink-2);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .6em .8em; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content > p:first-child { font-size: 1.18rem; color: var(--ink-2); }

/* Tarjeta de receta */
.recipe-card {
	margin-block: 2em !important;
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	position: relative;
}
.recipe-card::before { content: ""; display: block; height: 10px; background: var(--tile) 0 0 / 10px 10px repeat-x; }
.recipe-card__head {
	display: flex; align-items: flex-start; gap: 16px;
	padding: 24px clamp(18px, 4vw, 36px) 20px;
	border-bottom: 2px dashed var(--line);
}
.recipe-card__icon {
	display: grid; place-items: center; flex: none;
	width: 56px; height: 56px; border-radius: 16px;
	background: var(--accent-soft); color: var(--accent);
}
.recipe-card__icon .icon { width: 32px; height: 32px; }
.recipe-card__eyebrow { margin: 0 0 4px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.recipe-card__title { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0 0 8px; }
.recipe-card__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 !important; padding: 0 !important; color: var(--ink-2); font-size: .9rem; font-weight: 700; }
.recipe-card__facts li { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; }
.recipe-card__facts .ui-icon { width: 18px; height: 18px; color: var(--accent); }
.recipe-card__print { margin-left: auto; padding: .5em 1em; font-size: .85rem; }
@media (max-width: 600px) {
	.recipe-card__head { flex-wrap: wrap; }
	.recipe-card__icon { display: none; }
	.recipe-card__print span { display: none; }
	.recipe-card__print { position: absolute; top: 26px; right: 14px; }
}
.recipe-card__body { padding: 4px clamp(18px, 4vw, 36px) 28px; }
.recipe-card__body > * + * { margin-top: 1em; }
.recipe-card__body h2 { margin-top: 1.2em; font-size: 1.5rem; display: flex; align-items: center; gap: .5em; }
.recipe-card__body h2::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.recipe-card__body h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 1.4em; }

.recipe-ingredients { list-style: none; padding: 0 !important; columns: 2 260px; column-gap: 28px; }
.recipe-ingredients li {
	break-inside: avoid;
	position: relative;
	padding: .45em 0 .45em 2.1em;
	margin: 0 !important;
	border-bottom: 1px dotted var(--sand-2);
	cursor: pointer;
	transition: color .15s;
}
.recipe-ingredients li::before {
	content: ""; position: absolute; left: 0; top: .6em;
	width: 1.2em; height: 1.2em; border-radius: 6px;
	border: 2px solid var(--sand-2); background: var(--paper);
	transition: background .15s, border-color .15s;
}
.recipe-ingredients li:hover::before { border-color: var(--accent); }
.recipe-ingredients li.is-done { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--accent); }
.recipe-ingredients li.is-done::before {
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat;
	border-color: var(--accent);
}

.recipe-steps { list-style: none; padding: 0 !important; counter-reset: paso; }
.recipe-steps li {
	counter-increment: paso;
	position: relative;
	padding: .2em 0 1em 3.4em;
	margin: 0 !important;
	min-height: 2.6em;
}
.recipe-steps li::before {
	content: counter(paso);
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center;
	width: 2.3em; height: 2.3em; border-radius: 50%;
	background: var(--accent); color: #fff;
	font: 650 1rem/1 var(--font-display);
}
.recipe-steps li:not(:last-child)::after {
	content: ""; position: absolute; left: 1.15em; top: 2.5em; bottom: .2em;
	width: 2px; background: var(--accent-soft);
}
.recipe-card__body { counter-reset: prosa; }
.recipe-step-prose { counter-increment: prosa; position: relative; padding-left: 3.4em; min-height: 2.4em; }
.recipe-step-prose::before {
	content: counter(prosa);
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center;
	width: 2.3em; height: 2.3em; border-radius: 50%;
	background: var(--accent); color: #fff;
	font: 650 1rem/1 var(--font-display);
}
.recipe-step-prose:target { background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 8px; }
.recipe-steps li:target { background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 8px; }

/* Pie de entrada */
.entry-footer { padding-block: 24px 48px; }
.share {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	padding: 16px 0; border-block: 1px solid var(--line);
}
.share__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; margin-right: 6px; }
.share__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: .4em .9em; border-radius: 999px; border: 0;
	background: var(--sand); color: var(--ink); font: 700 .85rem/1.4 var(--font-body);
	text-decoration: none; cursor: pointer;
}
.share__link:hover { background: var(--ink); color: var(--cream); }
.share__link .ui-icon { width: 16px; height: 16px; }
.entry-cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 0; font-weight: 700; color: var(--ink-3); font-size: .9rem; }

.author-box {
	display: flex; gap: 18px; align-items: flex-start;
	margin-top: 28px; padding: 22px;
	background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line);
}
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; margin: 0 0 4px; }
.author-box p:last-child { margin: 0; color: var(--ink-2); font-size: .98rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 40px; }
.post-nav__link {
	display: flex; flex-direction: column; gap: 4px;
	padding: 18px 20px; border-radius: var(--radius);
	background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
	color: var(--ink); font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; line-height: 1.25; text-decoration: none;
}
.post-nav__link span { font-family: var(--font-body); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.post-nav__link:hover { box-shadow: inset 0 0 0 2px var(--terracotta); color: var(--terracotta-dark); }
.post-nav__link--next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: auto; } }

/* Comentarios */
.comments { padding-block: 8px 56px; }
.comments__title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .7em .9em; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font: inherit;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--terracotta); }

/* Bloque "sobre" de portada */
.about-band {
	display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
	padding: clamp(24px, 4vw, 44px);
	background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-band__art {
	display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%;
	background: var(--tile) center / 28px 28px;
	box-shadow: inset 0 0 0 10px var(--paper), 0 0 0 2px var(--line);
}
.about-band__icon { width: 64px; height: 64px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: var(--paper); color: var(--terracotta); }
.about-band p { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 700px) { .about-band { grid-template-columns: 1fr; } .about-band__art { width: 96px; height: 96px; } .about-band__icon { width: 40px; height: 40px; padding: 10px; } }

/* --------------------------------------------------------------------------
   Pie
   ----------------------------------------------------------------------- */
.site-footer { margin-top: 0; background: var(--ink); color: #e9ddcf; }
.site-footer .tile-strip { opacity: 1; }
.site-footer__grid {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
	padding-block: 56px 32px;
}
.site-footer__brand { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: #fff; margin-bottom: .4em; }
.site-footer__about p { color: #cdbfb0; font-size: .95rem; }
.site-footer__title { font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); margin-bottom: 1em; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li + li { margin-top: .45em; }
.site-footer a { color: #f3e9dd; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.site-footer .search-form input[type="search"] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
.site-footer .search-form input::placeholder { color: #a99a8b; }
.site-footer__bottom { padding-block: 18px 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #a99a8b; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Utilidades de WordPress */
.alignwide { max-width: 1000px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: .5em; }
.sticky, .bypostauthor, .gallery-caption { /* requeridas por WordPress */ }

/* Aviso "Copiado" */
.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100;
	padding: .7em 1.2em; border-radius: 999px; background: var(--ink); color: var(--cream);
	font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg);
	transform: translate(-50%, 20px); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Impresión: solo la receta
   ----------------------------------------------------------------------- */
@media print {
	@page { margin: 14mm; }
	body { background: #fff; font-size: 11pt; }
	.site-header, .site-footer, .breadcrumbs, .entry-actions, .entry-footer, .related, .post-nav, .comments, .recipe-card__print, .skip-link, .chip--group { display: none !important; }
	.entry-hero { background: none; padding: 0 0 8pt; }
	.entry-title { font-size: 22pt; }
	.entry-meta { font-size: 9pt; }
	.recipe-card { box-shadow: none; border: 1px solid #ccc; break-inside: auto; }
	.recipe-card::before { display: none; }
	.recipe-ingredients li::before { border-color: #999; }
	.recipe-steps li::before { background: #fff; color: #000; border: 1.5px solid #000; }
	.recipe-steps li::after { display: none; }
	body.print-recipe-only .entry-content > :not(.recipe-card) { display: none; }
	a { color: #000; text-decoration: none; }
}
