/* =========================================================================
   Del Carajo — main.css
   Tema clásico, ligero, sin dependencias externas.
   Paleta cálida vintage-Lima: crema, vino, oro, carbón.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Fuentes locales (woff2, font-display: swap)
   ---------------------------------------------------------------------- */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 400 600; /* fuente variable */
	font-display: swap;
	src: url('../fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400 600; /* fuente variable */
	font-display: swap;
	src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
}

/* -------------------------------------------------------------------------
   2. Variables
   ---------------------------------------------------------------------- */
:root {
	--bg: #FBF6EE;
	--ink: #1E1A17;
	--ink-soft: #4a423b;
	--wine: #7A1F2B;
	--wine-dark: #5e151f;
	--gold: #C8902A;
	--gold-dark: #9a6b12;
	--dark: #241A18;
	--surface: #ffffff;
	--border: #e7dccb;
	--border-strong: #d8c9b2;
	--shadow: 0 1px 2px rgba(36, 26, 24, 0.06), 0 8px 24px rgba(36, 26, 24, 0.06);
	--shadow-hover: 0 2px 6px rgba(36, 26, 24, 0.10), 0 16px 40px rgba(36, 26, 24, 0.12);

	--font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--maxw: 1140px;
	--maxw-read: 720px;
	--radius: 14px;
	--radius-sm: 8px;
	--gap: clamp(1rem, 2.5vw, 2rem);

	--cat-color: var(--wine); /* sobrescrito por entrada/categoría */
}

/* -------------------------------------------------------------------------
   3. Reset suave / base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--ink);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.4rem); }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.4em; }

hr { border: 0; border-top: 1px solid var(--border-strong); margin: 2rem 0; }

/* -------------------------------------------------------------------------
   4. Accesibilidad: foco visible, skip link, screen-reader
   ---------------------------------------------------------------------- */
:focus-visible {
	outline: 3px solid var(--gold-dark);
	outline-offset: 2px;
	border-radius: 3px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--wine); color: #fff; padding: 0.7em 1.2em;
	border-radius: 0 0 var(--radius-sm) 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus {
	left: 0; color: #fff;
}

/* -------------------------------------------------------------------------
   5. Layout helpers
   ---------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.site-main { display: block; }

.content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-block: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}
.content-area--single { grid-template-columns: minmax(0, 1fr); }
.content-area__main { min-width: 0; }
.no-sidebar .content-area { grid-template-columns: minmax(0, 1fr); }

.section-title {
	position: relative;
	margin-bottom: 1.4rem;
	padding-bottom: 0.4rem;
}
.section-title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 64px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--wine), var(--gold));
}

/* -------------------------------------------------------------------------
   6. Botones
   ---------------------------------------------------------------------- */
.btn {
	display: inline-block;
	background: var(--wine);
	color: #fff;
	font-weight: 600;
	font-family: var(--font-body);
	padding: 0.7em 1.4em;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid var(--wine);
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: #fff; }

/* -------------------------------------------------------------------------
   7. Cabecera / navegación
   ---------------------------------------------------------------------- */
.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	position: sticky; top: 0; z-index: 100;
	backdrop-filter: saturate(1.1);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; padding-block: 0.9rem;
	flex-wrap: wrap;
}
.site-branding { display: flex; flex-direction: column; }
.wordmark { text-decoration: none; display: inline-block; }
.wordmark__text {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
	color: var(--wine);
	letter-spacing: -0.02em;
	line-height: 1;
}
.site-tagline { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

.primary-nav .menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); align-items: center; flex-wrap: wrap;
}
.primary-nav a {
	text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem;
	padding: 0.3em 0; position: relative;
}
.primary-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--gold); transform: scaleX(0); transform-origin: left;
	transition: transform .2s ease;
}
.primary-nav a:hover { color: var(--wine); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.primary-nav .current-menu-item > a { color: var(--wine); }

.nav-toggle {
	display: none;
	background: transparent; border: 2px solid var(--border-strong);
	border-radius: var(--radius-sm); padding: 0.5em; cursor: pointer;
	color: var(--wine);
}
.nav-toggle__bars { display: block; width: 22px; height: 16px; position: relative; }
.nav-toggle__bars span {
	position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.primary-nav {
		flex-basis: 100%; max-height: 0; overflow: hidden;
		transition: max-height .28s ease;
	}
	.primary-nav.is-open { max-height: 70vh; overflow: auto; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding-block: 0.5rem; }
	.primary-nav .menu li { border-top: 1px solid var(--border); }
	.primary-nav a { display: block; padding: 0.8em 0.2em; }
	.primary-nav a::after { display: none; }
}

/* -------------------------------------------------------------------------
   8. Hero
   ---------------------------------------------------------------------- */
.hero {
	position: relative;
	color: #fff;
	background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 45%, var(--dark) 100%);
	overflow: hidden;
	isolation: isolate;
}
.hero__texture {
	position: absolute; inset: 0; z-index: -1; opacity: 0.5; mix-blend-mode: soft-light;
	background-image:
		radial-gradient(circle at 18% 22%, rgba(200,144,42,.5), transparent 38%),
		repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}
.hero__inner {
	padding-block: clamp(3rem, 8vw, 6rem);
	max-width: 820px;
}
.hero__title {
	color: #fff; margin: 0 0 0.3rem;
	font-size: clamp(2.6rem, 1.6rem + 5vw, 4.6rem);
	line-height: 1.02;
}
.hero__subtitle {
	color: var(--gold); font-family: var(--font-head); font-style: italic;
	font-size: clamp(1.2rem, 1rem + 1.2vw, 1.7rem); margin: 0 0 1rem; font-weight: 400;
}
.hero__intro { color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 1rem + 0.3vw, 1.18rem); max-width: 60ch; }
.hero__intro p:last-child { margin-bottom: 0; }
.hero__divider {
	margin-top: 1.8rem; height: 12px; width: 180px;
	background:
		repeating-linear-gradient(135deg, var(--gold) 0 10px, transparent 10px 20px),
		repeating-linear-gradient(45deg, var(--gold) 0 10px, transparent 10px 20px);
	-webkit-mask: linear-gradient(90deg, #000, #000);
	opacity: .9;
}

/* -------------------------------------------------------------------------
   9. Cuadrícula de tarjetas
   ---------------------------------------------------------------------- */
.home-latest, .home-about, .pillars { padding-block: clamp(2.5rem, 6vw, 4rem); }
.home-latest .container, .pillars .container { max-width: var(--maxw); }

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--gap);
}
.cards-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--border); }
.card__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s ease; }
.card:hover .card__img { transform: scale(1.04); }

/* Marcador de posición cuando no hay imagen destacada */
.card__placeholder {
	width: 100%; height: 100%; display: grid; place-items: center;
	background-color: var(--cat-color); /* respaldo si no hay color-mix */
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--cat-color) 85%, #000) 0%, var(--cat-color) 100%);
	position: relative; overflow: hidden;
}
.card__placeholder::before {
	content: ""; position: absolute; inset: 0; opacity: .25;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 2px, transparent 2px 16px);
}
.card__placeholder-mark {
	width: 46px; height: 46px; border: 3px solid rgba(255,255,255,.85);
	transform: rotate(45deg); border-radius: 6px;
}

.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__title { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--wine); }
.card__excerpt { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card__meta { margin-top: auto; color: var(--ink-soft); font-size: 0.85rem; }

/* -------------------------------------------------------------------------
   10. Etiqueta de categoría coloreada (con contraste automático)
   ---------------------------------------------------------------------- */
.cat-label {
	display: inline-block; align-self: flex-start;
	background: var(--cat-color); color: #fff;
	font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
	padding: 0.28em 0.7em; border-radius: 999px; text-decoration: none; line-height: 1.3;
}
.cat-label:hover { color: #fff; filter: brightness(1.08); }
/* Oro y terracota: texto oscuro para cumplir contraste AA */
.cat-label[data-slug="penas-jarana"] { color: var(--ink); }
.cat-label[data-slug="penas-jarana"]:hover { color: var(--ink); }

/* -------------------------------------------------------------------------
   11. Tarjetas de pilares
   ---------------------------------------------------------------------- */
.pillars { background: linear-gradient(180deg, transparent, rgba(200,144,42,.06)); }
.pillars__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.pillar-card {
	border-radius: var(--radius);
	background-color: var(--cat-color); /* respaldo si no hay color-mix */
	background: linear-gradient(160deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 70%, #000));
	color: #fff; overflow: hidden; position: relative;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.pillar-card::before {
	content: ""; position: absolute; inset: 0; opacity: .18;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 2px, transparent 2px 18px);
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pillar-card__link {
	position: relative; display: flex; flex-direction: column; gap: 0.5rem;
	padding: 1.4rem 1.3rem 1.5rem; height: 100%; color: inherit; text-decoration: none;
}
.pillar-card__mark {
	width: 30px; height: 30px; border: 3px solid currentColor; transform: rotate(45deg);
	border-radius: 5px; opacity: .9; margin-bottom: 0.3rem;
}
.pillar-card__title { color: #fff; margin: 0; font-size: 1.2rem; }
.pillar-card__desc { margin: 0; font-size: 0.92rem; color: rgba(255,255,255,.9); flex: 1; }
.pillar-card__cta { font-weight: 600; font-size: 0.9rem; color: #fff; }
/* Oro: texto oscuro para contraste */
.pillar-card[data-slug="penas-jarana"] .pillar-card__title,
.pillar-card[data-slug="penas-jarana"] .pillar-card__cta { color: var(--ink); }
.pillar-card[data-slug="penas-jarana"] .pillar-card__desc { color: rgba(30,26,23,.82); }
.pillar-card[data-slug="penas-jarana"] { color: var(--ink); }

/* -------------------------------------------------------------------------
   12. Sección «Quiénes somos» en portada
   ---------------------------------------------------------------------- */
.home-about__inner {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.home-about__body { color: var(--ink-soft); font-size: 1.05rem; }
.home-about__deco {
	min-height: 220px; border-radius: var(--radius);
	background: linear-gradient(135deg, var(--dark), var(--wine));
	position: relative; overflow: hidden;
}
.home-about__deco::before {
	content: ""; position: absolute; inset: 0; opacity: .3;
	background-image:
		repeating-linear-gradient(0deg, rgba(200,144,42,.5) 0 2px, transparent 2px 22px),
		repeating-linear-gradient(90deg, rgba(200,144,42,.3) 0 2px, transparent 2px 22px);
}
@media (max-width: 720px) { .home-about__inner { grid-template-columns: 1fr; } .home-about__deco { min-height: 140px; } }

.home-latest__more { margin-top: 2rem; text-align: center; }

/* -------------------------------------------------------------------------
   13. Encabezados de página / archivo / breadcrumb
   ---------------------------------------------------------------------- */
.page-header { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.page-title { margin-top: 0.4rem; }
.archive-description { color: var(--ink-soft); max-width: 60ch; }

.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4em; align-items: center; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--wine); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.breadcrumb__sep { color: var(--border-strong); }

/* -------------------------------------------------------------------------
   14. Entrada individual (columna de lectura)
   ---------------------------------------------------------------------- */
.single-post, .page-article { max-width: var(--maxw-read); margin-inline: auto; }
.single-post__header { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0.5rem; }
.single-post__cat { margin-bottom: 0.8rem; }
.single-post__title { font-size: clamp(2rem, 1.3rem + 3.2vw, 3rem); }
.entry-meta { color: var(--ink-soft); font-size: 0.92rem; display: flex; gap: 0.5em; align-items: center; flex-wrap: wrap; }
.entry-meta__sep { opacity: .6; }

.single-post__featured { margin: 1.4rem 0 1.8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.single-post__featured-img { width: 100%; }
.single-post__featured-caption { font-size: 0.85rem; color: var(--ink-soft); padding: 0.5rem 0.2rem 0; text-align: center; }

.entry-content { font-size: 1.075rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content a { color: var(--wine); }
.entry-content img, .entry-content figure { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 0.4rem; }
.entry-content blockquote {
	margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.3rem;
	border-left: 4px solid var(--gold); font-family: var(--font-head); font-size: 1.2rem; font-style: italic; color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre {
	background: var(--dark); color: #f3ead9; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
	overflow: auto; font-size: 0.92rem;
}
.entry-content code { background: rgba(122,31,43,.08); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.96rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border-strong); padding: 0.5em 0.7em; text-align: left; }
.entry-content th { background: rgba(200,144,42,.12); }

/* Decorador textil opcional (solo CSS) */
.criollo-divider {
	height: 14px; margin: 2rem auto; max-width: 200px;
	background:
		repeating-linear-gradient(135deg, var(--gold) 0 8px, transparent 8px 16px),
		repeating-linear-gradient(45deg, var(--wine) 0 8px, transparent 8px 16px);
}

/* Pie de la entrada: etiquetas + compartir */
.single-post__footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.entry-tags-wrap { margin-bottom: 1.2rem; font-size: 0.9rem; }
.entry-tags__label { font-weight: 600; margin-right: 0.4rem; }
.entry-tags { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.entry-tags a { background: rgba(122,31,43,.07); color: var(--wine); padding: 0.2em 0.7em; border-radius: 999px; text-decoration: none; font-size: 0.85rem; }
.entry-tags a:hover { background: var(--wine); color: #fff; }

/* -------------------------------------------------------------------------
   15. Compartir / iconos
   ---------------------------------------------------------------------- */
.social-icon { width: 20px; height: 20px; fill: currentColor; }
.share { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.share__title { font-weight: 600; }
.share__list { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--surface); border: 1px solid var(--border-strong); color: var(--wine);
	cursor: pointer; text-decoration: none; transition: background .18s, color .18s, transform .18s;
}
.share__btn:hover { background: var(--wine); color: #fff; border-color: var(--wine); transform: translateY(-2px); }
.share__copy.is-copied { background: var(--gold-dark); color: #fff; border-color: var(--gold-dark); }

/* -------------------------------------------------------------------------
   16. Entradas relacionadas + navegación
   ---------------------------------------------------------------------- */
.related { max-width: var(--maxw-read); margin: 3rem auto 0; }
.post-nav {
	max-width: var(--maxw-read); margin: 2.5rem auto 0; display: grid;
	grid-template-columns: 1fr 1fr; gap: 1rem;
}
.post-nav__link {
	display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem;
	border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; background: var(--surface);
	transition: border-color .18s, box-shadow .18s;
}
.post-nav__link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.post-nav__next { text-align: right; }
.post-nav__dir { font-size: 0.8rem; color: var(--wine); font-weight: 600; }
.post-nav__title { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { text-align: left; } }

/* -------------------------------------------------------------------------
   17. Barra lateral / widgets
   ---------------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 1.6rem; }
.widget {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 1.2rem 1.3rem;
}
.widget__title { font-size: 1.1rem; margin: 0 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; color: var(--ink); }
.widget a:hover { color: var(--wine); }
@media (max-width: 880px) { .content-area { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   18. Búsqueda
   ---------------------------------------------------------------------- */
.search-form { display: flex; gap: 0.5rem; max-width: 420px; }
.search-form__field {
	flex: 1; padding: 0.6em 0.9em; border: 1px solid var(--border-strong); border-radius: 999px;
	font: inherit; background: var(--surface); color: var(--ink);
}
.search-form__submit {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; border: 0; border-radius: 50%; background: var(--wine); color: #fff; cursor: pointer;
}
.search-form__submit:hover { background: var(--wine-dark); }
.search-query { color: var(--wine); }
.search-again { margin-top: 1rem; }

/* -------------------------------------------------------------------------
   19. Estados vacíos / 404
   ---------------------------------------------------------------------- */
.empty-state {
	background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
	padding: clamp(1.5rem, 5vw, 3rem); text-align: center; color: var(--ink-soft);
}
.empty-state .search-form { margin-inline: auto; }
.error-404__search { margin-top: 1.2rem; }
.error-404__search .search-form { margin-inline: auto; }

/* -------------------------------------------------------------------------
   20. Paginación
   ---------------------------------------------------------------------- */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 0.6em; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--wine); color: var(--wine); }
.pagination .page-numbers.current { background: var(--wine); color: #fff; border-color: var(--wine); }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* -------------------------------------------------------------------------
   21. Comentarios
   ---------------------------------------------------------------------- */
.comments-area { max-width: var(--maxw-read); margin: 3rem auto 0; }
.comments-title { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 600; }
.comment-author img { border-radius: 50%; margin-right: 0.6rem; vertical-align: middle; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 0.6em 0.8em; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	font: inherit; background: var(--surface); margin-top: 0.3rem;
}
.comment-form label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 0.8rem; }
.comment-form .form-submit input, .comment-form #submit {
	background: var(--wine); color: #fff; border: 0; padding: 0.7em 1.4em; border-radius: 999px; font-weight: 600; cursor: pointer;
}
.comment-notes { color: var(--ink-soft); font-size: 0.9rem; }

/* -------------------------------------------------------------------------
   22. Pie de página
   ---------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #e9ddc8; margin-top: 3rem; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
	display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; padding-block: clamp(2rem, 5vw, 3rem);
}
.site-footer .wordmark__text { color: var(--gold); }
.site-footer__desc { color: rgba(233,221,200,.8); max-width: 42ch; margin-top: 0.4rem; }
.footer-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.1rem; font-size: 0.85rem; color: rgba(233,221,200,.7); }
@media (max-width: 680px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Iconos sociales en el pie */
.social-nav { list-style: none; display: flex; gap: 0.6rem; margin: 1rem 0 0; padding: 0; }
.social-nav a {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; background: rgba(255,255,255,.08); color: var(--gold);
	transition: background .18s, color .18s, transform .18s;
}
.social-nav a:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   23. Misceláneos / WP core
   ---------------------------------------------------------------------- */
.alignwide { width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0.4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.4rem; }
.wp-caption { max-width: 100%; }
.sticky .card { outline: 2px solid var(--gold); }
.page-links { margin: 1.5rem 0; font-weight: 600; display: flex; gap: 0.4rem; align-items: center; }
.page-links__num { display: inline-flex; min-width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }

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