/*
Theme Name: Servicial Theme
Theme URI: https://lusanmon.com
Author: Lusanmon
Author URI: https://lusanmon.com
Description: Theme clásico y ligero para negocios locales. Header y footer configurables desde el Personalizador, botón de contacto con modal, loop de contenido por página y soporte completo de Yoast SEO.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: servicial-theme
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   0. Fuentes (self-hosted, subset latin)
   ========================================================================== */

@font-face {
	font-family: "Roboto";
	src: url("assets/fonts/roboto-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Lora";
	src: url("assets/fonts/lora-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto Slab";
	src: url("assets/fonts/roboto-slab-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   1. Variables y reset
   ========================================================================== */

:root {
	--font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-ui: "Inter", "Roboto", system-ui, sans-serif;
	--font-display: "Lora", Georgia, "Times New Roman", serif;
	--font-serif: "Roboto Slab", Georgia, serif;

	--color-text: #2b2b2b;
	--color-heading: #242424;
	--color-muted: #54595f;
	--color-light: #727272;
	--color-border: #e6e6e6;
	--color-bg: #fff;
	--color-bg-soft: #f5f5f5;

	--container: 1140px;
	--container-wide: 1400px;
	--content: 1100px;
	--prose: 900px;
	--logo-height: 72px;

	--radius-pill: 60px;
	--header-height: calc(var(--logo-height) + 28px);
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}

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

figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--color-heading);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* Títulos de display: Lora para H1/H2, Roboto para el resto. */
h1,
h2 {
	font-family: var(--font-display);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: auto;
}

h3,
h4 {
	letter-spacing: -0.005em;
}

h5,
h6 {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h6 {
	font-size: 11px;
	letter-spacing: 0.16em;
	color: var(--color-muted);
}

p {
	margin: 0 0 1.2em;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

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

::selection {
	background: var(--color-heading);
	color: #fff;
}

/* ==========================================================================
   2. Layout
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.container--narrow {
	max-width: calc(var(--content) + 48px);
}

/* Ancho único del área principal (entre header y footer).
   El footer conserva .container a 1140px. */
.site-main .container {
	max-width: calc(var(--content) + 48px);
}

.site-main {
	display: block;
	padding: 32px 0 96px;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid rgba(114, 114, 114, 0.38);
}

.has-sticky-header .site-header {
	position: sticky;
	top: 0;
}

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

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: 0 24px;
}

.site-branding {
	order: 1;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 14px 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	height: auto;
	max-height: var(--logo-height);
}

/* Logo ultrapequeño para pantallas muy pequeñas: oculto por defecto. */
.custom-logo-link--small {
	display: none;
}

.custom-logo-link--small .custom-logo {
	max-height: 40px;
}

.site-branding .site-title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-branding .site-description {
	margin: 0;
	font-size: 12px;
	color: var(--color-light);
}

/* --- Menú principal --- */

.site-nav {
	order: 3;
}

.menu {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu > li {
	position: relative;
}

.menu > li > a {
	position: relative;
	display: block;
	padding: 10px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--color-heading);
}

.menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3px;
	background: #111;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.2s ease;
}

.menu > li > a:hover::after,
.menu > li.current-menu-item > a::after,
.menu > li.current-menu-ancestor > a::after,
.menu > li.current_page_parent > a::after {
	transform: scaleX(1);
}

.menu > li.menu-item-has-children > a {
	padding-right: 18px;
}

.menu > li.menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 2px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.menu > li.menu-item-has-children:hover > a::before {
	transform: translateY(-30%) rotate(225deg);
}

/* --- Submenú --- */

.menu .sub-menu {
	position: absolute;
	top: calc(100% + 15px);
	left: 50%;
	z-index: 50;
	min-width: 320px;
	max-width: 380px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--color-border);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Solo en escritorio: el submenú se abre al pasar el cursor o al enfocar.
   En móvil se abre con .is-open y este translate rompe el layout, así que
   se queda fuera de la vista en pantallas pequeñas. */
@media (min-width: 1367px) {
	.menu li:hover > .sub-menu,
	.menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}
}

.menu .sub-menu a {
	display: block;
	padding: 9px 22px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-text);
}

.menu .sub-menu li.current-menu-item > a,
.menu .sub-menu a:hover {
	background: var(--color-bg-soft);
}

/* --- Botones del menú móvil --- */

.menu-toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.menu-toggle__box {
	display: block;
	position: relative;
	width: 24px;
	height: 16px;
}

.menu-toggle__box span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #111;
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-toggle__box span:nth-child(1) {
	top: 0;
}

.menu-toggle__box span:nth-child(2) {
	top: 7px;
}

.menu-toggle__box span:nth-child(3) {
	top: 14px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(3) {
	top: 7px;
	transform: rotate(-45deg);
}

.submenu-toggle {
	display: none;
}

/* ==========================================================================
   3b. Contacto del header (botón + modal)
   ========================================================================== */

.header-contact {
	order: 2;
	display: flex;
	align-items: center;
	margin-left: auto;
}

.header-contact__toggle {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	padding: 0 22px;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--color-heading);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-contact__toggle:hover {
	background: var(--color-bg-soft);
	border-color: #d6d6d6;
}

.header-contact__toggle:active {
	transform: scale(0.98);
}

.header-contact__emoji {
	display: inline-block;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 20px;
	line-height: 1;
	transform-origin: 72% 72%;
	-webkit-user-select: none;
	user-select: none;
	animation: hc-wave 3s ease-in-out infinite;
}

@keyframes hc-wave {
	0%, 70%, 100% { transform: rotate(0deg); }
	6%  { transform: rotate(16deg); }
	12% { transform: rotate(-8deg); }
	18% { transform: rotate(14deg); }
	24% { transform: rotate(-6deg); }
	30% { transform: rotate(10deg); }
	36% { transform: rotate(0deg); }
}

/* --- Modal (heredado del antiguo plugin, sin el botón flotante) --- */

.header-contact__overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(15, 23, 42, 0.34);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.header-contact.is-open .header-contact__overlay {
	opacity: 1;
	visibility: visible;
}

.header-contact__panel {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: min(360px, calc(100vw - 40px));
	padding: 20px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 20px;
	box-shadow: 0 30px 60px -34px rgba(15, 23, 42, 0.5), 0 8px 22px -16px rgba(15, 23, 42, 0.22);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.94);
	transform-origin: center center;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	overscroll-behavior: contain;
	transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0.22s;
	-webkit-overflow-scrolling: touch;
}

@supports (height: 100dvh) {
	.header-contact__panel {
		max-height: calc(100dvh - 80px);
	}
}

.header-contact.is-open .header-contact__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

.header-contact__panel:focus {
	outline: none;
}

.header-contact__logo-wrap {
	max-width: 72%;
	margin: 0 auto 18px;
	text-align: center;
}

.header-contact__logo {
	display: inline-block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 56px;
}

.header-contact__title {
	margin: 0 0 14px;
	padding: 0 34px;
	color: var(--color-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-align: center;
}

.header-contact__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: var(--color-muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.header-contact__close:hover {
	background: #e2e8f0;
	color: var(--color-heading);
}

.header-contact__close:focus-visible,
.header-contact__action:focus-visible {
	outline: 2px solid var(--color-heading);
	outline-offset: 2px;
}

.header-contact__actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.header-contact__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 6px 12px;
	border-radius: 14px;
	background: #f8fafc;
	color: var(--color-heading);
	text-decoration: none;
	line-height: 1.2;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-contact__action:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -12px rgba(15, 23, 42, 0.35);
}

.header-contact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.header-contact__icon .icon {
	width: 22px;
	height: 22px;
}

.header-contact__action .header-contact__label {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	color: var(--color-heading);
}

.header-contact__action--phone {
	background: #eff6ff;
}

.header-contact__action--phone .header-contact__icon {
	background: #dbeafe;
	color: #1d4ed8;
}

.header-contact__action--whatsapp {
	background: #ecfdf3;
}

.header-contact__action--whatsapp .header-contact__icon {
	background: #d1fae5;
	color: #128c4a;
}

.header-contact__action--email {
	background: #f8fafc;
}

.header-contact__action--email .header-contact__icon {
	background: #e2e8f0;
	color: #334155;
}

@media (max-width: 640px) {
	.header-contact__toggle {
		height: 40px;
		padding: 0 16px;
		font-size: 13px;
	}

	.header-contact__panel {
		width: calc(100vw - 32px);
		padding: 18px;
		border-radius: 18px;
		max-height: calc(100vh - 60px);
	}

	@supports (height: 100dvh) {
		.header-contact__panel {
			max-height: calc(100dvh - 60px);
		}
	}

	.header-contact__title {
		padding: 0 36px;
		font-size: 16px;
	}

	.header-contact__close {
		top: 14px;
		right: 14px;
		width: 32px;
		height: 32px;
	}

	.header-contact__actions {
		gap: 10px;
	}

	.header-contact__action {
		padding: 16px 6px 14px;
		border-radius: 16px;
	}

	.header-contact__icon {
		width: 48px;
		height: 48px;
	}
}

/* ==========================================================================
   4. Botones
   ========================================================================== */

.btn,
.search-submit,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 34px;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-muted);
	background: transparent;
	border: 2px solid var(--color-muted);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.search-submit:hover,
.entry-content .wp-block-button__link:hover {
	color: #fff;
	background: var(--color-muted);
	border-color: var(--color-muted);
}

/* ==========================================================================
   5. Migas de pan
   ========================================================================== */

.breadcrumbs {
	max-width: var(--content);
	margin: 0 auto;
	padding: 40px 0 12px;
	font-family: var(--font-ui);
	font-size: 13px;
	line-height: 1.6;
	text-align: left;
	color: var(--color-light);
}

.breadcrumbs a {
	color: var(--color-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumbs a:hover {
	color: var(--color-heading);
}

.breadcrumbs__list {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs__item {
	display: inline;
	margin: 0;
}

.breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin: 0 8px;
	color: #c9c9c9;
}

.breadcrumbs .breadcrumb_last,
.breadcrumbs strong {
	color: var(--color-heading);
	font-weight: 400;
}

.breadcrumbs .breadcrumb_last a {
	color: inherit;
}

/* ==========================================================================
   6. Títulos y contenido
   ========================================================================== */

.page-header,
.archive-header {
	padding-top: 0;
}

.page-title {
	max-width: var(--prose);
	margin: 0 auto 28px;
	padding-top: 30px;
	font-size: clamp(32px, 4.2vw, 46px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-align: center;
	text-wrap: balance;
}

/* Cabecera del H1: barra corta bajo el titular. */
.page-title::after,
.entry-content h1::after {
	content: "";
	display: block;
	width: 64px;
	height: 2px;
	margin: 18px auto 0;
	background: var(--color-heading);
}

.archive-header {
	text-align: center;
	margin-bottom: 8px;
}

.archive-description {
	max-width: 760px;
	margin: 0 auto 32px;
	color: var(--color-muted);
}

.entry-content {
	max-width: var(--content);
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.78;
	counter-reset: seccion;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h1 {
	margin: 0 0 0.6em;
	padding-top: 30px;
	font-size: clamp(30px, 3.6vw, 40px);
	line-height: 1.12;
	text-align: center;
	text-wrap: balance;
}

.entry-content h2 {
	margin: 1.8em 0 0.7em;
	font-size: clamp(24px, 2.8vw, 32px);
}

.entry-content h3 {
	margin: 1.5em 0 0.5em;
	font-size: clamp(19px, 2.2vw, 22px);
}

.entry-content h4 {
	margin: 1.2em 0 0.4em;
	font-size: 18px;
}

.entry-content h5,
.entry-content h6 {
	margin: 1.4em 0 0.5em;
}

/*
 * Índice numerado: chips solo en los H2 del contenido.
 * El contador se reinicia en cada `.entry-content`, así que la numeración
 * no salta de una página a otra. Los números son decorativos (::before).
 */
.entry-content h2 {
	counter-increment: seccion;
}

.entry-content h2::before {
	content: counter(seccion, decimal-leading-zero);
	display: inline-block;
	margin-right: 10px;
	padding: 2px 7px;
	border-radius: 4px;
	background: rgb(24 61 99 / 16%);
	color: var(--color-heading);
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
	vertical-align: 0.18em;
}

/* Solo el H1 se centra; del H2 en adelante, todos a la izquierda. */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	text-align: left;
}

/*
 * Enlaces del contenido: chip discreto, sin subrayado.
 *
 * El padding se compensa con margen negativo para que el chip no desplace
 * el texto, y `box-decoration-break` lo repite en cada fragmento cuando el
 * enlace parte de línea.
 */
.entry-content a {
	font-weight: 500;
	text-decoration: none;
}

.entry-content p a:not(.btn):not(.wp-block-button__link),
.entry-content li a:not(.btn):not(.wp-block-button__link),
.entry-content blockquote a,
.entry-content figcaption a,
.entry-content td a {
	font-weight: 435;
	color: var(--color-heading);
	background-color: rgb(24 61 99 / 16%);
	border-radius: 4px;
	padding: 0.08em 3px;
	margin: 0 -3px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-color 0.18s ease;
}

.entry-content p a:not(.btn):not(.wp-block-button__link):hover,
.entry-content li a:not(.btn):not(.wp-block-button__link):hover,
.entry-content blockquote a:hover,
.entry-content figcaption a:hover,
.entry-content td a:hover {
	background-color: rgb(24 61 99 / 28%);
}

/* Títulos con enlace: sin chip, se quedan planos. */
.entry-content h1 a,
.entry-content h2 a,
.entry-content h3 a,
.entry-content h4 a,
.entry-content h5 a,
.entry-content h6 a {
	background: none;
	padding: 0;
	margin: 0;
	color: inherit;
	font-weight: inherit;
}

.entry-content h1 a:hover,
.entry-content h2 a:hover,
.entry-content h3 a:hover,
.entry-content h4 a:hover,
.entry-content h5 a:hover,
.entry-content h6 a:hover {
	color: var(--color-muted);
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

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

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 0 0 0 22px;
	border-left: 3px solid #ddd;
	color: var(--color-muted);
	font-style: italic;
}

.entry-content table {
	width: 100%;
	margin: 1.2em 0;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	padding: 8px 12px;
	border: 1px solid var(--color-border);
	text-align: left;
}

.entry-content img {
	max-width: min(100%, var(--prose));
	margin: 1.2em auto;
	height: auto;
	border-radius: 4px;
}

/* Las figuras/captions del editor clásico pueden traer un width inline enorme
   (p. ej. width:2560px). El max-width las recorta al ancho real de la columna;
   la imagen de dentro sigue limitada a --prose por la regla general. */
.entry-content figure,
.entry-content .wp-caption {
	max-width: 100%;
}

/* Componentes propios dentro del contenido (comparador antes/después):
   que el margen genérico de las imágenes no descuadre sus capas. */
.entry-content .mc-container img {
	margin: 0;
}

/* Integración con Widgets for Google Reviews: el plugin no resetea el margen
   ni el radio que .entry-content img aplica a sus avatares y fotos. */
.entry-content .wp-gr img {
	margin: 0;
	border-radius: 0;
}

.entry-content .wp-gr .grw-img {
	border-radius: 50%;
}

/* Imagen ancha a propósito: 1100. */
.entry-content .alignwide img {
	max-width: 100%;
}

.entry-content img.alignwide {
	max-width: var(--content);
}

.entry-content iframe,
.entry-content video {
	max-width: 100%;
}

.entry-content .alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.entry-content .alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

.entry-content .alignwide {
	max-width: 100%;
	margin-inline: auto;
}

/*
 * Prosa a 900 px dentro del contenedor de 1100.
 * Va al final de la sección de contenido para que `margin-inline: auto`
 * no lo pisen las reglas de blockquote, listas y tablas, que fijan
 * márgenes horizontales a 0.
 * Imágenes y bloques anchos siguen usando los 1100 completos.
 */
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content pre,
.entry-content dl,
.entry-content address,
.entry-content figcaption {
	max-width: var(--prose);
	margin-inline: auto;
}

/* ==========================================================================
   Formulario de contacto (tarjeta postal)
   ========================================================================== */

/* La plantilla de contacto muestra el formulario a todo el ancho de la prosa. */
.contact-form {
	max-width: var(--prose);
	margin: 0 auto;
}

/* Campos en 2 columnas cuando el formulario tiene ancho (nombre/email y
   teléfono/servicio); en móvil se mantiene 1 columna. */
@media (min-width: 641px) {
	.contact-form .postcard__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Espacio entre el formulario y el contenido adicional. */
.contact-extra {
	margin-top: 50px;
}

.postcard {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: 28px 32px 32px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.postcard__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
	padding-bottom: 18px;
	border-bottom: 1px dashed #cfcfcf;
}

.postcard__to {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.postcard__stamp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border: 1px dashed #b9b9b9;
	border-radius: 2px;
	transform: rotate(-2deg);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	color: var(--color-heading);
}

.postcard__stamp img {
	width: auto;
	height: auto;
	max-width: 30px;
	max-height: 30px;
	object-fit: contain;
}

.postcard__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px 20px;
	margin-bottom: 18px;
}

.field {
	margin-bottom: 18px;
}

.postcard__grid .field {
	margin-bottom: 0;
}

.field label {
	display: block;
	margin-bottom: 7px;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 11px 12px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-text);
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
	min-height: 130px;
	resize: vertical;
}

.field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2354595f' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.field--captcha input[type="text"] {
	max-width: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--color-heading);
	box-shadow: 0 0 0 2px rgba(36, 36, 36, 0.12);
}

.field--error input,
.field--error select,
.field--error textarea {
	border-color: var(--color-heading);
}

.field__error {
	margin: 7px 0 0;
	padding-left: 8px;
	border-left: 2px solid var(--color-heading);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--color-muted);
}

.postcard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px dashed #cfcfcf;
}

.consent-wrap {
	max-width: 430px;
}

.consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	cursor: pointer;
}

.consent input {
	margin-top: 3px;
	accent-color: var(--color-heading);
}

.consent span {
	font-size: 13px;
	line-height: 1.55;
	color: var(--color-text);
}

.consent a {
	color: var(--color-heading);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.consent--error span {
	color: var(--color-heading);
}

.postcard__submit {
	flex: 0 0 auto;
}

.postcard__notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-left: 3px solid var(--color-heading);
	background: var(--color-bg-soft);
	font-size: 14px;
	line-height: 1.55;
}

.postcard__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.postcard__sent {
	padding: 10px 0 4px;
	text-align: center;
}

.postcard__sent-title {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 600;
}

.postcard__sent p {
	max-width: 420px;
	margin: 0 auto 22px;
	color: var(--color-muted);
}

/* ==========================================================================
   7. Tarjetas y grid
   ========================================================================== */

.cards {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 44px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cards__item {
	display: flex;
	margin: 0;
	padding: 0;
}

.card {
	width: 100%;
	margin: 0;
}

.card__media-wrap {
	position: relative;
	display: block;
}

.card__media-link {
	display: block;
}

.card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--color-bg-soft);
	border-radius: 4px;
}

.card__type {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	max-width: calc(100% - 20px);
	padding: 4px 8px;
	overflow: hidden;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background: rgba(36, 36, 36, 0.88);
	border-radius: 4px;
	pointer-events: none;
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.card:hover .card__img {
	transform: scale(1.04);
}

.card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 48px;
	font-weight: 700;
	color: #c9c9c9;
}

.card__title {
	margin: 16px 0 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	color: var(--color-heading);
}

.card__title a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.card:hover .card__title {
	color: #000;
}

/* --- Loop de contenido en páginas --- */

.page-loop {
	margin-top: 72px;
}

.page-loop__title {
	margin: 0 0 40px;
	font-size: clamp(24px, 2.8vw, 32px);
	text-align: center;
	text-wrap: balance;
}

/* ==========================================================================
   8. Entradas
   ========================================================================== */

.single-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 12px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.single-tags a {
	display: inline-block;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-muted);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
}

.single-tags a:hover {
	border-color: var(--color-muted);
	color: var(--color-heading);
}

/* ==========================================================================
   9. Buscador
   ========================================================================== */

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 0 auto;
}

.search-field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 13px 18px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--color-text);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 0;
}

.search-field:focus {
	outline: 2px solid var(--color-heading);
	outline-offset: -1px;
}

.search-submit {
	flex: 0 0 auto;
	padding: 13px 26px;
}

.no-results {
	text-align: center;
}

/* ==========================================================================
   10. Paginación
   ========================================================================== */

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 56px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-heading);
	border: 1px solid var(--color-border);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pagination .page-numbers:hover {
	background: var(--color-bg-soft);
	border-color: #d6d6d6;
}

.pagination .page-numbers.current {
	background: var(--color-heading);
	border-color: var(--color-heading);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--color-border);
	background: #fff;
}

/* --- CTA --- */

.footer-cta {
	padding: 74px 0 46px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 18px;
	font-family: var(--font-ui);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.44em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.footer-cta__title {
	max-width: 900px;
	margin: 0 auto 18px;
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.05em;
	color: var(--color-heading);
	text-wrap: balance;
}

.footer-cta__text {
	max-width: 860px;
	margin: 0 auto 30px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
}

/* --- Marca --- */

.footer-main {
	padding: 8px 0 40px;
	text-align: center;
}

.footer-brand__logo {
	display: inline-block;
}

.footer-brand__logo img {
	width: auto;
	max-width: 230px;
	max-height: 84px;
	margin: 0 auto;
}

.footer-brand__title {
	display: inline-block;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.footer-brand__tagline {
	margin: 18px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--color-heading);
}

/* --- Enlaces del pie --- */

.footer-links {
	margin-top: 14px;
}

.menu-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-footer a {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-heading);
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.menu-footer a:hover {
	color: var(--color-muted);
	border-bottom-color: currentColor;
}

/* --- Redes --- */

.footer-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #111;
	transition: opacity 0.15s ease;
}

.social-link:hover {
	opacity: 0.6;
}

.social-link .icon {
	width: 22px;
	height: 22px;
}

/* --- Contacto --- */

.footer-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 42px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
}

.footer-contact a {
	transition: color 0.2s ease;
}

.footer-contact a:hover {
	color: #000;
}

/* --- Menú legal --- */

.footer-legal {
	margin-top: 34px;
}

.menu-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-legal a {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-heading);
	transition: color 0.2s ease;
}

.menu-legal a:hover {
	color: var(--color-muted);
}

/* --- Servicios del pie --- */

.footer-services {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
}

.menu-services {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-services a {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.menu-services a:hover {
	color: var(--color-heading);
}

/* --- Nube de etiquetas --- */

.footer-tags {
	max-width: 1100px;
	margin: 44px auto 0;
	padding: 0 8px;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.4;
}

.tag-cloud li {
	margin: 0;
	padding: 0;
}

.tag-cloud__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
	background: var(--color-bg-soft);
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.tag-cloud__icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	color: var(--color-light);
}

.tag-cloud__chip:hover {
	background: #ececec;
	color: var(--color-heading);
}

.tag-cloud__count {
	color: var(--color-light);
	font-size: 12px;
}

/* --- Copyright --- */

.footer-bottom {
	padding: 26px 0 34px;
	text-align: center;
}

.footer-copy {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 13px;
	line-height: 1.6;
	color: var(--color-light);
}

.footer-copy a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-copy a:hover {
	color: var(--color-heading);
}

/* ==========================================================================
   12. 404
   ========================================================================== */

.error-404 {
	padding: 40px 0 20px;
	text-align: center;
}

.error-404 .page-title {
	margin-bottom: 16px;
}

.error-404 p {
	max-width: 620px;
	margin: 0 auto 32px;
	color: var(--color-muted);
}

/* ==========================================================================
   13. Utilidades
   ========================================================================== */

.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 {
	position: absolute;
	top: 0;
	left: -9999px;
	z-index: 9999;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #111;
}

.skip-link:focus {
	left: 0;
}

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

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1366px) {
	:root {
		--header-height: calc(52px + 20px);
	}

	.site-header__inner {
		align-items: center;
		padding: 10px 20px;
		gap: 16px;
	}

	.site-branding {
		order: 1;
		padding: 0;
	}

	/* Logo un pelín más pequeño en móvil para dejar hueco al botón y a la burger. */
	.custom-logo {
		max-height: 52px;
	}

	.header-contact {
		order: 2;
		margin-left: auto;
	}

	.menu-toggle {
		order: 3;
	}

	.site-nav {
		padding-bottom: 0;
	}

	.menu-toggle {
		display: inline-flex;
		margin-left: 0;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: 0;
		margin: 0;
		overflow: hidden;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
		transition: max-height 0.3s ease;
	}

	.site-nav.is-open {
		max-height: calc(100vh - var(--header-height));
		overflow-y: auto;
	}

	body.menu-open {
		overflow: hidden;
	}

	.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 20px 24px;
	}

	.menu > li > a {
		padding: 15px 48px 15px 0;
		border-bottom: 1px solid #eee;
	}

	.menu > li > a::after {
		display: none;
	}

	.menu > li.menu-item-has-children > a::before {
		display: none;
	}

	.menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		max-width: none;
		padding: 4px 0 8px 16px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.menu li.is-open > .sub-menu {
		display: block;
	}

	.menu .sub-menu a {
		padding: 10px 0;
		border-bottom: 1px dotted #eee;
		background: none;
	}

	.submenu-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		width: 48px;
		height: 51px;
		padding: 0;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.submenu-toggle::before {
		content: "";
		display: block;
		width: 9px;
		height: 9px;
		margin: 0 auto;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-3px) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.menu li.is-open > .submenu-toggle::before {
		transform: translateY(2px) rotate(225deg);
	}
}

/* La rejilla de tarjetas mantiene su corte en 1024 px: en tablet horizontal
   (1025-1366) el menú ya es burger, pero las tarjetas siguen a 3 columnas. */
@media (max-width: 1024px) {
	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 1.2em auto;
	}
}

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

@media (max-width: 640px) {
	.cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.site-main {
		padding-bottom: 64px;
	}

	.breadcrumbs {
		padding-top: 14px;
		font-size: 12px;
	}

	.page-title {
		margin-bottom: 24px;
	}

	.footer-cta {
		padding: 56px 0 34px;
	}

	.eyebrow {
		font-size: 12px;
		letter-spacing: 0.33em;
	}

	.footer-cta__text {
		font-size: 15px;
	}

	.footer-contact {
		flex-direction: column;
		gap: 8px;
	}

	.menu-legal {
		gap: 10px 28px;
	}

	.footer-tags {
		margin-top: 34px;
	}

	.footer-copy {
		font-size: 12px;
	}

	.page-loop {
		margin-top: 48px;
	}

	.postcard {
		padding: 22px 20px 24px;
	}

	.postcard__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.postcard__stamp {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}

	.postcard__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.postcard__submit {
		width: 100%;
	}
}

/* Pantallas muy pequeñas: si hay logo ultrapequeño, se usa en su lugar.
   Por debajo de 390 px (móviles compactos); por encima se ve el normal. */
@media (max-width: 390px) {
	.site-header.has-small-logo .site-branding .custom-logo-link:not(.custom-logo-link--small) {
		display: none;
	}

	.site-header.has-small-logo .custom-logo-link--small {
		display: inline-flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   Banner de consentimiento de cookies
   ========================================================================== */
.consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	padding: 18px 0;
	color: var(--consent-text, #1d2a22);
	background: var(--consent-bg, #dcebdf);
	border-top: 3px solid var(--consent-border, #e8b86b);
	box-shadow: 0 -10px 30px rgba(20, 33, 26, 0.18);
}

.consent-banner--top {
	top: 0;
	bottom: auto;
	border-top: 0;
	border-bottom: 3px solid var(--consent-border, #e8b86b);
	box-shadow: 0 10px 30px rgba(20, 33, 26, 0.18);
}

.consent-banner--center {
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 20, 15, 0.55);
	border: 0;
	box-shadow: none;
}

.consent-banner--center .consent-banner__inner {
	width: min(100%, 760px);
	padding: 24px;
	background: var(--consent-bg, #dcebdf);
	border: 1px solid var(--consent-border, #e8b86b);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.consent-banner a {
	color: var(--consent-text, #2f6b4f);
	text-decoration: underline;
}

.consent-banner a:hover {
	color: var(--consent-accent, #14211a);
}

.consent-banner[hidden] {
	display: none;
}

.consent-banner__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
}

.consent-banner__text {
	max-width: 760px;
	font-size: 14px;
	line-height: 1.55;
}

.consent-banner__text p {
	margin: 0 0 6px;
}

.consent-banner__title {
	margin: 0 0 4px;
	color: var(--consent-text, #14211a);
}

.consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	flex: 0 0 auto;
	gap: 10px;
}

.consent-banner .btn,
.consent-modal .btn {
	padding: 10px 20px;
	font-size: 12px;
	color: var(--consent-text, #1d2a22);
	background: transparent;
	border-color: var(--consent-border, rgba(20, 33, 26, 0.45));
}

.consent-banner .btn:hover,
.consent-modal .btn:hover {
	color: var(--consent-text, #14211a);
	background: rgba(255, 255, 255, 0.35);
	border-color: var(--consent-text, #2f5d45);
}

.consent-banner .consent-banner__accept,
.consent-modal .consent-banner__accept {
	color: var(--consent-button-text, #14211a);
	background: var(--consent-accent, #f2c879);
	border-color: var(--consent-accent, #f2c879);
}

.consent-banner .consent-banner__accept:hover,
.consent-modal .consent-banner__accept:hover {
	color: var(--consent-button-text, #14211a);
	background: var(--consent-accent, #eebc63);
	border-color: var(--consent-accent, #eebc63);
	filter: brightness(0.95);
}

.footer-consent {
	display: inline-block;
	margin-top: 10px;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

.consent-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.consent-modal[hidden] {
	display: none;
}

.consent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 15, 0.55);
}

.consent-modal__panel {
	position: relative;
	width: min(100%, 620px);
	max-height: 90vh;
	overflow: auto;
	color: var(--consent-text, #1d2a22);
	background: var(--consent-bg, #fff);
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.consent-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(20, 33, 26, 0.15);
}

.consent-modal__header h2 {
	margin: 0;
	font-size: 1.25rem;
}

.consent-modal__close {
	padding: 0 4px;
	font-size: 28px;
	line-height: 1;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.consent-modal__body {
	padding: 20px 24px;
}

.consent-modal__actions {
	display: flex;
	justify-content: flex-end;
	padding: 0 24px 24px;
}

.consent-category {
	padding: 12px 0;
	border-bottom: 1px solid rgba(20, 33, 26, 0.1);
}

.consent-category:last-child {
	border-bottom: 0;
}

.consent-category label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
}

.consent-category p {
	margin: 6px 0 0 26px;
	font-size: 14px;
	opacity: 0.8;
}

.consent-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.consent-banner__inner {
		align-items: flex-start;
	}

	.consent-banner__actions {
		width: 100%;
	}

	.consent-banner__actions .btn {
		flex: 1 1 0;
	}
}

/* ==========================================================================
   Entrada individual
   ========================================================================== */
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1.5;
	color: var(--color-light);
}

.single-meta {
	justify-content: center;
	max-width: var(--prose);
	margin: 18px auto 0;
	padding-bottom: 20px;
	text-align: center;
}

.card__meta {
	justify-content: flex-start;
	margin: 12px 0 0;
	text-align: left;
}

.post-meta__date {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-light);
}

.post-meta__terms {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.single-meta .post-meta__terms {
	justify-content: center;
}

.post-meta .post-meta__term {
	display: inline-block;
	padding: 0 0 2px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-heading);
	background: none;
	border: 0;
	border-bottom: 1px solid rgba(36, 36, 36, 0.22);
	border-radius: 0;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.post-meta .post-meta__term:hover {
	color: var(--color-heading);
	border-bottom-color: var(--color-heading);
}

.post-meta__sep {
	width: 3px;
	height: 3px;
	background: var(--color-light);
	border-radius: 50%;
	opacity: 0.55;
}

.post-meta a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.post-meta a:hover {
	color: var(--color-heading);
}

.post-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 24px 0 0;
	font-family: var(--font-ui);
	font-size: 14px;
}

.page-links__label {
	margin-right: 4px;
	color: var(--color-muted);
}

.page-links a,
.page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 8px;
	color: var(--color-heading);
	text-decoration: none;
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: 4px;
}

.page-links a:hover {
	border-color: var(--color-muted);
}

.page-links .current {
	color: var(--color-bg);
	background: var(--color-heading);
	border-color: var(--color-heading);
}

.post-navigation {
	margin-top: 36px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	min-width: 0;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	display: block;
	padding: 14px 16px;
	color: var(--color-heading);
	text-decoration: none;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.post-navigation a:hover {
	background: var(--color-bg-soft);
	border-color: var(--color-muted);
}

.post-nav__label {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.post-nav__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

@media (max-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}
}

/* ==========================================================================
   Buscador
   ========================================================================== */
.header-search {
	order: 2;
	position: relative;
	display: flex;
	align-items: center;
}

.header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--color-heading);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.header-search__toggle:hover {
	background: var(--color-bg-soft);
	border-color: #d6d6d6;
}

.header-search__toggle:focus-visible {
	outline: 2px solid var(--color-heading);
	outline-offset: 2px;
}

.header-search__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 1000;
	width: min(420px, calc(100vw - 32px));
	padding: 16px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.header-search__panel[hidden] {
	display: none;
}

.header-search__inner {
	position: relative;
}

.header-search__panel .search-form {
	max-width: none;
	margin: 0;
}

.header-search__close {
	position: absolute;
	top: -28px;
	right: -28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: var(--color-heading);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.header-search__close:hover {
	background: var(--color-bg-soft);
}

.search-results__form {
	max-width: 620px;
	margin: 0 auto 28px;
}

.search-results__count {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--color-muted);
	text-align: center;
}

.no-results .search-form {
	margin-top: 18px;
}

.error-404__search {
	max-width: 520px;
	margin: 24px auto 0;
}

@media (max-width: 640px) {
	.header-search {
		position: static;
	}

	.header-search__panel {
		position: absolute;
		top: calc(100% + 1px);
		left: 16px;
		right: 16px;
		width: auto;
	}

	.header-search__panel .search-form {
		flex-direction: column;
	}

	.header-search__panel .search-submit {
		width: 100%;
	}

	.header-search__toggle {
		width: 40px;
		height: 40px;
	}

	.header-search__inner {
		padding-top: 24px;
	}

	.header-search__close {
		top: 8px;
		right: 8px;
	}
}

/* ==========================================================================
   Header móvil: etiqueta de contacto visible
   ========================================================================== */
@media (max-width: 640px) {
	:root {
		--header-height: calc(44px + 20px + 1px);
	}

	.site-header__inner {
		gap: 10px;
		padding: 10px 16px;
	}

	.custom-logo {
		max-height: 44px;
	}

	.header-contact {
		min-width: 0;
	}

	.header-contact__toggle {
		height: 40px;
		padding: 0 12px;
		gap: 6px;
		font-size: 13px;
		min-width: 0;
	}

	.header-contact__emoji {
		flex-shrink: 0;
		font-size: 18px;
	}

	.header-contact__toggle .header-contact__label {
		min-width: 0;
		max-width: 150px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.header-search__toggle {
		width: 38px;
		height: 38px;
	}

	.menu-toggle {
		width: 42px;
		height: 42px;
	}
}

@media (max-width: 390px) {
	:root {
		--header-height: calc(42px + 20px + 1px);
	}

	.custom-logo {
		max-height: 36px;
	}

	.custom-logo-link--small .custom-logo {
		max-height: 36px;
	}
}

@media (max-width: 360px) {
	:root {
		--header-height: calc(40px + 16px + 1px);
	}

	.site-header__inner {
		gap: 8px;
		padding: 8px 12px;
	}

	.custom-logo {
		max-height: 32px;
	}

	.custom-logo-link--small .custom-logo {
		max-height: 32px;
	}

	.header-contact__toggle {
		padding: 0 10px;
		gap: 5px;
		font-size: 12px;
	}

	.header-contact__emoji {
		font-size: 16px;
	}

	.header-contact__toggle .header-contact__label {
		max-width: 110px;
	}

	.header-search__toggle {
		width: 36px;
		height: 36px;
	}

	.menu-toggle {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 340px) {
	.site-header:not(.has-small-logo) .header-contact__emoji {
		display: none;
	}
}

@media (max-width: 340px) {
	.site-header:not(.has-small-logo) .custom-logo {
		max-height: 28px;
	}
}

/* ==========================================================================
   Política de cookies: tarjetas responsive
   ========================================================================== */

.entry-content .cookie-policy-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 32px;
}

.entry-content .cookie-card {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.entry-content .cookie-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.entry-content .cookie-card__name {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-heading);
}

.entry-content .cookie-card__name code {
	padding: 0;
	font-size: 13px;
	color: inherit;
	background: none;
	overflow-wrap: anywhere;
}

.entry-content .cookie-card__type {
	flex: 0 0 auto;
	padding: 4px 8px;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: 999px;
}

.entry-content .cookie-card__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 0;
}

.entry-content .cookie-card__meta > div {
	min-width: 0;
}

.entry-content .cookie-card__meta dt {
	margin: 0 0 2px;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-light);
}

.entry-content .cookie-card__meta dd {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--color-text);
	overflow-wrap: anywhere;
}

.entry-content .cookie-card__purpose,
.entry-content .cookie-card__transfer {
	grid-column: 1 / -1;
}

@media (max-width: 782px) {
	.entry-content .cookie-policy-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.entry-content .cookie-card__meta {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */

.wa-fab {
	position: fixed;
	right: 20px;
	bottom: var(--fab-bottom, 20px);
	z-index: 900;
	display: inline-flex;
	align-items: center;
	height: 56px;
	border-radius: 28px;
	background: #25d366;
	color: #fff;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(20, 33, 26, 0.24);
	transition: box-shadow 0.2s ease;
}

.wa-fab:hover,
.wa-fab:focus-visible {
	box-shadow: 0 12px 28px rgba(20, 33, 26, 0.3);
}

.wa-fab__label {
	display: block;
	max-width: 0;
	padding: 0;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	transition: max-width 0.35s ease, padding 0.35s ease, opacity 0.2s ease;
}

.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label {
	max-width: min(360px, calc(100vw - 100px));
	padding: 0 8px 0 22px;
	opacity: 1;
}

.wa-fab__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 56px;
	height: 56px;
}

.wa-fab__icon svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

@media (max-width: 1024px) {
	.wa-fab__label {
		display: none;
	}
}

@media (max-width: 640px) {
	.wa-fab {
		right: 16px;
		bottom: var(--fab-bottom, 16px);
		height: 52px;
		border-radius: 26px;
	}

	.wa-fab__icon {
		width: 52px;
		height: 52px;
	}

	.wa-fab__icon svg {
		width: 28px;
		height: 28px;
	}

	.wa-fab__label {
		font-size: 14px;
	}

	.wa-fab:hover .wa-fab__label,
	.wa-fab:focus-visible .wa-fab__label {
		max-width: calc(100vw - 90px);
		padding: 0 6px 0 16px;
	}
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section {
	padding: 64px 0;
	background: #fafafa;
	border-top: 1px solid var(--color-border);
}

.faq-section__title {
	margin: 0 0 32px;
	font-size: clamp(24px, 3vw, 32px);
	text-align: center;
}

.faq-list {
	display: grid;
	gap: 0;
}

.faq-item {
	padding: 22px 0;
	border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
	padding-top: 0;
}

.faq-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.faq-item__question {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.35;
}

.faq-item__answer {
	color: var(--color-text);
	line-height: 1.7;
}

.faq-item__answer p {
	margin: 0 0 12px;
}

.faq-item__answer p:last-child {
	margin-bottom: 0;
}

.faq-item__answer ul,
.faq-item__answer ol {
	margin: 0 0 12px;
	padding-left: 22px;
}

.faq-item__answer li {
	margin: 0 0 6px;
}

.faq-item__answer a {
	color: var(--color-heading);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 640px) {
	.faq-section {
		padding: 48px 0;
	}

	.faq-item__question {
		font-size: 18px;
	}
}
