/*
Theme Name: Chef de Los Ríos
Theme URI: https://chefdelosrios.cl
Author: Maximiliano
Description: Tema de la Asociación Gastronómica Chef de Los Ríos. Directorio de chefs, recetas regionales y eventos, sin dependencias de constructores visuales.
Version: 2.2.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chef-de-los-rios
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--c-ink: #121212;
	--c-ink-2: #1b1917;
	--c-cream: #f9f7f2;
	--c-paper: #fffdf9;
	--c-gold: #c5a059;
	--c-gold-hover: #d4b26f;
	--c-gold-ink: #7f6128;            /* dorado legible sobre claro (5.5:1) */
	--c-brown: #3d342f;
	--c-text: #111111;
	--c-muted: #5c524c;               /* secundario sobre crema (7.1:1) */
	--c-on-dark: #ffffff;
	--c-on-dark-muted: rgba(255, 255, 255, 0.72);
	--c-line: rgba(61, 52, 47, 0.14);
	--c-line-dark: rgba(255, 255, 255, 0.12);
	--c-error: #b42318;
	--c-success: #2e6b3f;

	--f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--f-sans: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	--fs-h4: 1.25rem;
	--fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	--fs-h2: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
	--fs-h1: clamp(2.25rem, 1.3rem + 3.8vw, 4rem);
	--fs-display: clamp(2.5rem, 1.25rem + 5.2vw, 6rem);

	--radius-sm: 4px;
	--radius: 8px;
	--radius-lg: 12px;

	--container: 1200px;
	--gutter: 16px;
	--section-y: clamp(64px, 9vw, 120px);
	--header-h: 80px;

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--t-press: 160ms;
	--t-hover: 200ms;
	--t-panel: 240ms;
}

@media (min-width: 768px) {
	:root {
		--gutter: 32px;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--f-serif);
	font-weight: 700;
	line-height: 1.12;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 3px;
}

.is-light :focus-visible,
.section--cream :focus-visible,
.section--paper :focus-visible {
	outline-color: var(--c-brown);
}

::selection {
	background: var(--c-gold);
	color: var(--c-ink);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 12px 20px;
	background: var(--c-gold);
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
	width: min(100% - var(--gutter) * 2, var(--container));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - var(--gutter) * 2, 760px);
	margin-inline: auto;
}

.section {
	padding-block: var(--section-y);
}

.section--dark {
	background: var(--c-ink);
	color: var(--c-on-dark);
}

.section--cream {
	background: var(--c-cream);
	color: var(--c-text);
}

.section--paper {
	background: var(--c-paper);
	color: var(--c-text);
}

.grid {
	display: grid;
	gap: 32px;
}

.grid--2 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 24px;
}

/* ==========================================================================
   4. Type helpers
   ========================================================================== */

.rule {
	display: block;
	width: 56px;
	height: 1px;
	margin: 0 auto 28px;
	background: var(--c-gold);
	border: 0;
}

.rule--left {
	margin-left: 0;
}

.eyebrow {
	display: block;
	font-family: var(--f-sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-gold);
}

.section--cream .eyebrow,
.section--paper .eyebrow,
.is-light .eyebrow {
	color: var(--c-gold-ink);
}

.section-head {
	max-width: 44rem;
	margin: 0 auto 56px;
	text-align: center;
}

.section-head h2 {
	font-size: var(--fs-h2);
}

.section-head p {
	margin-top: 16px;
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--c-muted);
}

.section--dark .section-head p {
	color: var(--c-on-dark-muted);
}

.section-foot {
	margin-top: 56px;
	text-align: center;
}

.accent {
	font-style: italic;
	color: var(--c-gold);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn,
.wp-block-button__link,
.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 14px 32px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--f-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition:
		color var(--t-hover) ease,
		background-color var(--t-hover) ease,
		border-color var(--t-hover) ease,
		transform var(--t-press) var(--ease-out);
}

.btn:active,
.wp-block-button__link:active,
.wpcf7-submit:active {
	transform: scale(0.97);
}

.btn--primary,
.wp-block-button__link,
.wpcf7-submit {
	background: var(--c-gold);
	color: var(--c-ink);
}

.btn--outline {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	.btn--primary:hover,
	.wp-block-button__link:hover,
	.wpcf7-submit:hover {
		background: var(--c-gold-hover);
	}

	.section--dark .btn--outline:hover,
	.hero .btn--outline:hover,
	.site-footer .btn--outline:hover {
		background: var(--c-on-dark);
		border-color: var(--c-on-dark);
		color: var(--c-ink);
	}

	.section--cream .btn--outline:hover,
	.section--paper .btn--outline:hover,
	.is-light .btn--outline:hover {
		background: var(--c-brown);
		border-color: var(--c-brown);
		color: var(--c-on-dark);
	}
}

.section--cream .btn--outline,
.section--paper .btn--outline,
.is-light .btn--outline {
	color: var(--c-brown);
}

.btn .icon {
	width: 16px;
	height: 16px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 32px;
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--c-muted);
	transition: color var(--t-hover) ease;
}

.back-link .icon {
	width: 16px;
	height: 16px;
}

.back-link:hover {
	color: var(--c-gold-ink);
}

/* ==========================================================================
   6. Icons
   ========================================================================== */

.icon {
	width: 24px;
	height: 24px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ==========================================================================
   7. Header & navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--c-ink);
	color: var(--c-on-dark);
	transition:
		background-color var(--t-panel) ease,
		box-shadow var(--t-panel) ease;
}

/* En la portada el header flota sobre el hero y se oscurece al hacer scroll. */
.has-hero .site-header {
	position: fixed;
	inset: 0 0 auto;
	background: transparent;
}

.has-hero .site-header.is-scrolled {
	background: rgba(18, 18, 18, 0.94);
	box-shadow: 0 1px 0 var(--c-line-dark);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

.site-logo {
	display: block;
	flex: none;
}

.site-logo img {
	width: auto;
	height: 56px;
}

.site-logo__text {
	font-family: var(--f-serif);
	font-size: 1.375rem;
	font-weight: 700;
	text-decoration: none;
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
}

.primary-nav__list a {
	display: block;
	padding: 10px 14px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-on-dark-muted);
	transition: color var(--t-hover) ease;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a,
.primary-nav__list .current_page_parent > a,
.primary-nav__list a[aria-current="page"] {
	color: var(--c-gold);
}

.primary-nav__list .sub-menu {
	display: none;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 4px;
	background: none;
	border: 0;
	color: var(--c-on-dark);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.menu-toggle .icon-close {
	display: none;
}

@media (max-width: 991px) {
	.menu-toggle,
	.site-header .site-logo {
		position: relative;
		z-index: 2;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
		background: var(--c-ink);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition:
			opacity 160ms ease,
			transform 160ms ease,
			visibility 0s linear 160ms;
	}

	.nav-open .primary-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition:
			opacity var(--t-panel) var(--ease-out),
			transform var(--t-panel) var(--ease-out),
			visibility 0s;
	}

	.nav-open .menu-toggle .icon-menu {
		display: none;
	}

	.nav-open .menu-toggle .icon-close {
		display: block;
	}

	.primary-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.primary-nav__list li {
		width: 100%;
		border-bottom: 1px solid var(--c-line-dark);
	}

	.primary-nav__list a {
		padding: 18px 0;
		font-family: var(--f-serif);
		font-size: 1.75rem;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
		color: var(--c-on-dark);
	}

	.nav-open {
		overflow: hidden;
	}
}

/* ==========================================================================
   8. Hero (portada)
   ========================================================================== */

.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(100svh, 920px);
	padding: calc(var(--header-h) + 48px) 0 80px;
	background-color: var(--c-ink);
	background-position: center;
	background-size: cover;
	color: var(--c-on-dark);
	text-align: center;
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.75) 100%);
}

.hero__title {
	font-size: var(--fs-display);
	line-height: 1.04;
	letter-spacing: -0.01em;
}

.hero__title .accent {
	display: block;
}

.hero__text {
	max-width: 36rem;
	margin: 28px auto 0;
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 44px;
}

/* ==========================================================================
   9. Page hero (páginas internas y archivos)
   ========================================================================== */

.page-hero {
	padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
	background: var(--c-ink);
	color: var(--c-on-dark);
	text-align: center;
}

.page-hero h1 {
	font-size: var(--fs-h1);
}

.page-hero__lead {
	max-width: 40rem;
	margin: 20px auto 0;
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--c-on-dark-muted);
}

.page-hero .eyebrow {
	margin-bottom: 16px;
}

/* ==========================================================================
   10. Cards
   ========================================================================== */

/* Patrón común: toda la tarjeta es el enlace (el título lleva el ::after). */
.card {
	position: relative;
}

.card__link {
	text-decoration: none;
	color: inherit;
}

.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card__link:focus-visible {
	outline: none;
}

.card:has(.card__link:focus-visible) {
	outline: 2px solid var(--c-gold);
	outline-offset: 4px;
	border-radius: var(--radius);
}

.section--cream .card:has(.card__link:focus-visible),
.section--paper .card:has(.card__link:focus-visible) {
	outline-color: var(--c-brown);
}

.card__media {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-ink-2);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.card:hover .card__media img {
		transform: scale(1.03);
	}

	.card:hover .card__link {
		color: var(--c-gold);
	}

	.section--cream .card:hover .card__link,
	.section--paper .card:hover .card__link {
		color: var(--c-gold-ink);
	}
}

.card .card__link {
	transition: color var(--t-hover) ease;
}

/* 10.1 Accesos de portada */
.feature-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 36px 24px 32px;
	background: var(--c-paper);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	text-align: center;
	transition:
		transform var(--t-hover) var(--ease-out),
		border-color var(--t-hover) ease;
}

.feature-card .icon {
	width: 32px;
	height: 32px;
	margin-bottom: 4px;
	color: var(--c-gold-ink);
}

.feature-card h3 {
	font-size: var(--fs-h4);
}

.feature-card p {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--c-muted);
}

@media (hover: hover) and (pointer: fine) {
	.feature-card:hover {
		transform: translateY(-4px);
		border-color: var(--c-gold);
	}

	.feature-card:hover .card__link {
		color: inherit;
	}
}

.feature-card:active {
	transform: scale(0.98);
	transition-duration: var(--t-press);
}

/* 10.2 Receta */
.recipe-card .card__media {
	aspect-ratio: 4 / 3;
}

.recipe-card__body {
	padding-top: 20px;
}

.recipe-card h3 {
	margin-top: 8px;
	font-size: var(--fs-h3);
	line-height: 1.25;
}

.recipe-card__author {
	margin-top: 8px;
	font-size: var(--fs-sm);
	color: var(--c-on-dark-muted);
}

.section--cream .recipe-card__author,
.section--paper .recipe-card__author {
	color: var(--c-muted);
}

/* 10.3 Chef: foto y texto superpuestos con grid, así el enlace cubre toda la tarjeta. */
.chef-card {
	display: grid;
}

.chef-card > * {
	grid-area: 1 / 1;
}

.chef-card .card__media {
	position: relative;
	aspect-ratio: 3 / 4;
}

.chef-card .card__media::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
	pointer-events: none;
}

.chef-card__body {
	align-self: end;
	z-index: 1;
	padding: 20px;
	color: var(--c-on-dark);
	pointer-events: none;
}

.chef-card h3 {
	font-size: var(--fs-h4);
}

.chef-card__meta {
	margin-top: 4px;
	font-size: var(--fs-sm);
	color: var(--c-on-dark-muted);
}

.chef-card .card__link {
	pointer-events: auto;
}

.monogram {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, var(--c-brown), var(--c-ink));
	font-family: var(--f-serif);
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	font-style: italic;
	color: var(--c-gold);
	letter-spacing: 0.02em;
}

/* 10.4 Evento */
.event-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--c-paper);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color var(--t-hover) ease;
}

.event-card .card__media {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.event-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 24px;
}

.event-card h3 {
	font-size: var(--fs-h4);
	line-height: 1.3;
}

.event-card__place {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.event-card__place .icon {
	width: 16px;
	height: 16px;
	color: var(--c-gold-ink);
}

.event-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--c-muted);
}

@media (hover: hover) and (pointer: fine) {
	.event-card:hover {
		border-color: var(--c-gold);
	}
}

/* ==========================================================================
   11. Archivos
   ========================================================================== */

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 48px;
	list-style: none;
}

.filter-bar a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid var(--c-line-dark);
	border-radius: 999px;
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
	color: var(--c-on-dark-muted);
	transition:
		color var(--t-hover) ease,
		border-color var(--t-hover) ease,
		background-color var(--t-hover) ease;
}

.filter-bar a:hover {
	color: var(--c-on-dark);
	border-color: var(--c-on-dark-muted);
}

.filter-bar a[aria-current="page"] {
	background: var(--c-gold);
	border-color: var(--c-gold);
	color: var(--c-ink);
}

.empty-state {
	max-width: 32rem;
	margin: 0 auto;
	text-align: center;
	color: var(--c-muted);
}

.section--dark .empty-state {
	color: var(--c-on-dark-muted);
}

.pagination {
	margin-top: 64px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition:
		border-color var(--t-hover) ease,
		color var(--t-hover) ease;
}

.section--dark .pagination .page-numbers {
	border-color: var(--c-line-dark);
}

.pagination a.page-numbers:hover {
	border-color: var(--c-gold);
}

.pagination .page-numbers.current {
	background: var(--c-gold);
	border-color: var(--c-gold);
	color: var(--c-ink);
}

/* ==========================================================================
   12. Ficha (chef / receta)
   ========================================================================== */

.profile {
	display: grid;
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
}

@media (min-width: 900px) {
	.profile {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	.profile__media {
		position: sticky;
		top: calc(var(--header-h) + 32px);
	}
}

.profile.profile--text {
	display: block;
	max-width: 760px;
}

.gallery__main {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-ink-2);
}

.gallery__main img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 12px;
	margin-top: 12px;
	list-style: none;
}

.gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	background: none;
	cursor: pointer;
	opacity: 0.7;
	transition:
		opacity var(--t-hover) ease,
		border-color var(--t-hover) ease;
}

.gallery__thumb img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.gallery__thumb:hover,
.gallery__thumb[aria-current="true"] {
	opacity: 1;
}

.gallery__thumb[aria-current="true"] {
	border-color: var(--c-gold);
}

.profile__title {
	font-size: var(--fs-h1);
}

.profile__byline {
	margin-top: 12px;
	font-size: var(--fs-lead);
	color: var(--c-muted);
}

.profile__byline a {
	color: var(--c-text);
	font-weight: 600;
}

.profile__byline a:hover {
	color: var(--c-gold-ink);
}

.meta-list {
	display: grid;
	gap: 14px;
	margin-top: 28px;
	list-style: none;
}

.meta-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: var(--fs-base);
}

.meta-list .icon {
	width: 20px;
	height: 20px;
	color: var(--c-gold-ink);
}

.meta-list .label {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.profile__section {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--c-line);
}

.profile__section > h2 {
	margin-bottom: 20px;
	font-size: var(--fs-h3);
}

.ingredients {
	display: grid;
	gap: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.ingredients {
		grid-template-columns: 1fr 1fr;
		column-gap: 32px;
	}
}

.ingredients li {
	padding: 10px 0 10px 24px;
	border-bottom: 1px solid var(--c-line);
	position: relative;
}

.ingredients li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.15em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-gold);
}

.steps {
	display: grid;
	gap: 20px;
	list-style: none;
	counter-reset: step;
}

.steps li {
	position: relative;
	padding-left: 52px;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -2px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--c-gold);
	border-radius: 50%;
	font-family: var(--f-serif);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--c-gold-ink);
}

/* ==========================================================================
   13. Contenido editorial (bloques)
   ========================================================================== */

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.entry-content h3 {
	margin-top: 1.75em;
	font-size: var(--fs-h3);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content li::marker {
	color: var(--c-gold-ink);
}

.entry-content a {
	color: var(--c-gold-ink);
	font-weight: 500;
}

.entry-content blockquote {
	margin-inline: 0;
	padding-left: 24px;
	border-left: 2px solid var(--c-gold);
	font-family: var(--f-serif);
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.5;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 24px;
	margin-block: 2.5em;
}

.entry-content .wp-block-column > * + * {
	margin-top: 0.75em;
}

.entry-content .wp-block-column > :first-child,
.entry-content .callout > :first-child {
	margin-top: 0;
}

.entry-content .wp-block-column > h3:not(:first-child) {
	margin-top: 1.5em;
}

.entry-content .value-card {
	height: 100%;
	padding: 28px;
	background: var(--c-paper);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.entry-content .value-card h3 {
	margin-top: 0;
	font-size: var(--fs-h4);
}

.entry-content .value-card p {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--c-muted);
}

.entry-content .callout {
	margin-top: 3em;
	padding: clamp(32px, 5vw, 56px);
	background: var(--c-ink);
	color: var(--c-on-dark);
	border-radius: var(--radius-lg);
	text-align: center;
}

.entry-content .callout h2 {
	margin-top: 0;
}

.entry-content .callout p {
	color: var(--c-on-dark-muted);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.wp-block-buttons.is-content-justification-center {
	justify-content: center;
}

.entry-content .wp-block-button__link {
	color: var(--c-ink);
	font-weight: 600;
}

.alignwide {
	width: min(100vw - var(--gutter) * 2, var(--container));
	margin-inline: calc(50% - min(50vw - var(--gutter), var(--container) / 2));
}

.has-text-align-center {
	text-align: center;
}

.wp-caption-text,
.wp-element-caption {
	margin-top: 8px;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

/* ==========================================================================
   14. Formularios (Contact Form 7 y búsqueda)
   ========================================================================== */

.wpcf7 form,
.contact-form {
	display: grid;
	gap: 20px;
}

.wpcf7 p {
	margin: 0;
}

.wpcf7 label,
.field-label {
	display: block;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-text);
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea,
.search-form input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: var(--c-paper);
	border: 1px solid rgba(61, 52, 47, 0.28);
	border-radius: var(--radius-sm);
	font-size: var(--fs-base);
	color: var(--c-text);
	transition:
		border-color var(--t-hover) ease,
		box-shadow var(--t-hover) ease;
}

.wpcf7 textarea {
	min-height: 160px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--c-gold-ink);
	box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.3);
}

.wpcf7 ::placeholder,
.search-form ::placeholder {
	color: #8a817b;
}

.wpcf7-submit {
	justify-self: start;
	min-width: 180px;
}

.wpcf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
}

.wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: var(--fs-sm);
	color: var(--c-error);
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--c-error) !important;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--c-success);
	color: var(--c-success);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--c-error);
	color: var(--c-error);
}

.form-card {
	padding: clamp(24px, 4vw, 40px);
	background: var(--c-paper);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
}

.notice-box {
	padding: 20px;
	border: 1px dashed var(--c-line);
	border-radius: var(--radius);
	color: var(--c-muted);
}

.search-form {
	display: flex;
	gap: 12px;
	max-width: 32rem;
	margin: 32px auto 0;
}

.search-form .btn {
	flex: none;
}

/* ==========================================================================
   15. Portada: CTA final
   ========================================================================== */

.cta {
	position: relative;
	padding-block: clamp(96px, 12vw, 160px);
	background-color: var(--c-brown);
	background-position: center;
	background-size: cover;
	color: var(--c-on-dark);
	text-align: center;
	isolation: isolate;
}

.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(61, 52, 47, 0.9);
}

.cta h2 {
	font-size: var(--fs-h2);
}

.cta p {
	max-width: 36rem;
	margin: 24px auto 0;
	font-size: var(--fs-lead);
	color: rgba(255, 255, 255, 0.85);
}

.cta .btn {
	margin-top: 40px;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
	padding-top: clamp(64px, 8vw, 96px);
	background: #0c0c0c;
	color: var(--c-on-dark-muted);
	font-size: var(--fs-sm);
}

.site-footer__grid {
	display: grid;
	gap: 48px;
	padding-bottom: 56px;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr;
	}
}

.site-footer .site-logo img {
	height: 64px;
}

.site-footer__about {
	max-width: 26rem;
	margin-top: 20px;
	line-height: 1.7;
}

.site-footer h2 {
	margin-bottom: 20px;
	font-family: var(--f-sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-on-dark);
}

.footer-nav {
	display: grid;
	gap: 10px;
	list-style: none;
}

.site-footer a {
	text-decoration: none;
	transition: color var(--t-hover) ease;
}

.site-footer a:hover {
	color: var(--c-gold);
}

.social {
	display: flex;
	gap: 8px;
	margin-top: 20px;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--c-line-dark);
	border-radius: 50%;
	color: var(--c-on-dark);
	transition:
		color var(--t-hover) ease,
		border-color var(--t-hover) ease;
}

.social a:hover {
	border-color: var(--c-gold);
}

.social .icon {
	width: 18px;
	height: 18px;
}

.site-footer .btn {
	margin-top: 24px;
	color: var(--c-on-dark);
}

.site-footer__bottom {
	padding-block: 24px;
	border-top: 1px solid var(--c-line-dark);
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   17. Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}

	.btn:active,
	.wp-block-button__link:active,
	.wpcf7-submit:active,
	.feature-card:hover,
	.feature-card:active,
	.card:hover .card__media img {
		transform: none !important;
	}

	.primary-nav,
	.nav-open .primary-nav {
		transform: none !important;
	}
}
