/*
 * CSS de la web pública (Fase 7, .agents/08_fase7_plan_visual.md). Móvil primero; sin compilar, sin dependencias.
 * Capas: reset · tokens · base · layout · components · pages · utilities.
 * Puntos de corte: 640 (tablet pequeña) · 768 · 1024 (escritorio) · 1280 (escritorio ancho).
 */

@font-face {
	font-family: "Cinzel";
	src: url("/fonts/cinzel-latin.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EB Garamond";
	src: url("/fonts/garamond-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	src: url("/fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@layer reset, tokens, base, layout, components, pages, utilities;

/* Transición entre páginas: fundido corto del navegador (View Transitions, sin JavaScript; si no las admite, navegación normal).
   La cabecera tiene nombre propio para que no parpadee: se queda quieta y solo cambia el contenido. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .28s ease both; }
::view-transition-old(cabecera) { display: none; }
::view-transition-new(cabecera) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ------------------------------------------------------------------ reset */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
	ul, ol { padding: 0; list-style: none; }
	img, picture, svg, video { display: block; max-width: 100%; }
	img, video { height: auto; }
	/* Fotos diferidas: aparecen con un fundido al cargar (site.js). El hueco ya está reservado por width/height o aspect-ratio, así que no hay saltos (CLS) */
	img.is-loading { opacity: 0; }
	img[loading="lazy"] { transition: opacity .35s ease; }
	button, input, select, textarea { font: inherit; color: inherit; }
	button { cursor: pointer; }
	a { color: inherit; }
}

/* ------------------------------------------------------------------ tokens */
@layer tokens {
	:root {
		--verde: #153D2D;
		--verde-900: #0F2D21;
		--marfil: #FFFDF6;
		--superficie: #FFFFFF;
		--burdeos: #791A32;
		--burdeos-700: #5F1427;
		--dorado: #B49A62;
		--ambar: #FFB400;
		--texto: #26352C;
		--texto-suave: #55615A;
		--linea: #E6DCC0;
		--oro: #C9AE6B;
		--ok: #1F5A38;
		--error: #8A1F2C;

		--display: "Cinzel", "Trajan Pro", Georgia, serif;
		--serif: "EB Garamond", Georgia, "Times New Roman", serif;
		--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

		--gutter: 16px;
		--max: 1440px;
		--radius: 6px;
		--shadow-sm: 0 2px 8px rgba(38, 53, 44, .08);
		--shadow-md: 0 10px 24px -12px rgba(38, 53, 44, .35);
		--header-h: 68px;
	}

	@media (max-width: 359px) { :root { --gutter: 12px; } }
	@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 96px; } }
}

/* ------------------------------------------------------------------ base */
@layer base {
	html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

	body {
		background: var(--marfil) radial-gradient(1100px 520px at 50% 0, #FFFFFF, rgba(255, 255, 255, 0)) no-repeat;
		color: var(--texto);
		font: 400 1rem/1.6 var(--sans);
		-webkit-font-smoothing: antialiased;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
	}

	main { flex: 1 0 auto; }

	p, li, blockquote { text-wrap: pretty; }
	h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--verde); text-wrap: balance; }
	h1, h2 { font-family: var(--display); letter-spacing: .02em; line-height: 1.25; }
	h1 { font-size: clamp(1.45rem, 5.2vw, 2.1rem); }
	h2 { font-size: clamp(1.25rem, 4vw, 1.7rem); }
	h3 { font-size: 1.25rem; }

	a { text-underline-offset: 3px; }
	a:hover { color: var(--burdeos); }

	:focus-visible { outline: 3px solid var(--burdeos); outline-offset: 2px; border-radius: 2px; }
	.site-footer :focus-visible, .hero :focus-visible, .cat-card :focus-visible { outline-color: var(--ambar); }

	::selection { background: var(--dorado); color: var(--verde-900); }

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

/* ------------------------------------------------------------------ layout */
@layer layout {
	.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

	.section { padding-block: clamp(40px, 9vw, 72px); }
	.section--tight { padding-block: clamp(24px, 6vw, 40px); }

	/* Ramas del sprite de hojas (imgs/web/hojas) pegadas a los bordes, muy tenues y nunca detrás de tarjetas ni de texto.
	   Por defecto, ramas verticales; .leaves--top, en las esquinas de arriba; .leaves--low, en las de abajo */
	.leaves { position: relative; isolation: isolate; overflow: clip; --hoja-l: url("/imgs/web/hojas/vl.webp"); --hoja-r: url("/imgs/web/hojas/vr.webp"); --hoja-w: 40px; --hoja-h: 112px; --hoja-top: 6px; --hoja-bottom: auto; }
	.leaves--top { --hoja-l: url("/imgs/web/hojas/tl.webp"); --hoja-r: url("/imgs/web/hojas/tr.webp"); --hoja-w: 96px; --hoja-h: 86px; --hoja-top: 0px; }
	.leaves--low { --hoja-l: url("/imgs/web/hojas/ml.webp"); --hoja-r: url("/imgs/web/hojas/mr.webp"); --hoja-w: 96px; --hoja-h: 78px; --hoja-top: auto; --hoja-bottom: 0px; }
	.leaves::before, .leaves::after {
		content: "";
		position: absolute;
		top: var(--hoja-top);
		bottom: var(--hoja-bottom);
		width: var(--hoja-w);
		height: var(--hoja-h);
		background: center / contain no-repeat;
		opacity: .8;
		z-index: -1;
		pointer-events: none;
	}
	.leaves::before { left: 0; background-image: var(--hoja-l); background-position: left center; }
	.leaves::after { right: 0; background-image: var(--hoja-r); background-position: right center; }
	/* .leaves--right: una sola rama de esquina, a la derecha (cabeceras de las páginas interiores) */
	.leaves--right { --hoja-r: url("/imgs/web/hojas/tr.webp"); }
	.leaves--right::before { display: none; }
	.leaves--right::after { width: 130px; height: 117px; top: 0; opacity: .6; }
	@media (max-width: 639px) { .leaves--right::after { display: none; } }
	@media (min-width: 1024px) { .leaves--right::after { width: 180px; height: 162px; opacity: .75; } }
	/* .leaves--margins: ramas verticales en los márgenes de la página; solo si sobra sitio a los lados del contenido */
	.leaves--margins::before, .leaves--margins::after { display: none; }
	@media (min-width: 1560px) {
		.leaves--margins { --hoja-w: 96px; --hoja-h: 268px; --hoja-top: 150px; }
		.leaves--margins::before, .leaves--margins::after { display: block; opacity: .8; }
	}
	@media (min-width: 768px) {
		.leaves { --hoja-w: 44px; --hoja-h: 122px; }
		.leaves--top { --hoja-w: 150px; --hoja-h: 134px; }
		.leaves--low { --hoja-w: 160px; --hoja-h: 130px; }
	}
	@media (min-width: 1280px) {
		.leaves { --hoja-w: 46px; --hoja-h: 128px; }
		.leaves--top { --hoja-w: 190px; --hoja-h: 170px; }
		.leaves--low { --hoja-w: 200px; --hoja-h: 162px; }
	}

	/* Cabecera */
	.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--burdeos); color: #fff; border-radius: var(--radius); }
	.skip-link:focus { top: 8px; }

	.site-header { view-transition-name: cabecera; position: sticky; top: 0; z-index: 50; background: var(--superficie); border-top: 2px solid var(--verde); box-shadow: 0 1px 0 var(--linea); }
	.header-bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: var(--header-h); gap: 8px; padding-inline: 8px; }
	.logo { justify-self: center; display: block; flex: none; }
	.logo img { height: 52px; width: auto; max-width: none; }
	.main-nav, .header-search { display: none; }
	.header-tools { display: flex; justify-content: flex-end; }

	.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--verde); }
	.icon-btn:hover { background: rgba(21, 61, 45, .08); }
	.icon-btn .icon { width: 24px; height: 24px; }

	.nojs-nav { padding-block: 8px; font-size: .9rem; }
	.nojs-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }

	@media (min-width: 1024px) {
		.header-bar { display: flex; gap: 28px; padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
		.header-menu-btn { display: none; }
		.logo img { height: 78px; }
		.main-nav { display: block; flex: 1; }
		.main-nav > ul { display: flex; justify-content: center; align-items: center; gap: clamp(0px, 1.6vw, 28px); }
		.header-tools { gap: 6px; align-items: center; }
	}
	@media (min-width: 1024px) {
		.header-search { display: flex; }
		.header-search-btn { display: none; }
	}

	.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 11px; font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; text-decoration: none; color: var(--verde); }
	.main-nav a > .icon { width: 14px; height: 14px; color: var(--dorado); }
	.main-nav > ul > li > a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 2px; background: var(--dorado); transform: scaleX(0); transition: transform .2s; }
	.main-nav a:hover, .main-nav a[aria-current] { color: var(--burdeos); }
	.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a[aria-current]::after { transform: scaleX(1); }
	.main-nav .has-sub { position: relative; }
	.main-nav .sub { position: absolute; left: 50%; top: 100%; min-width: 230px; margin-left: -115px; padding: 8px; background: var(--superficie); border: 1px solid var(--oro); border-radius: var(--radius); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
	.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
	.main-nav .sub a { display: flex; width: 100%; padding: 10px 12px; font-size: .82rem; letter-spacing: .06em; }
	.main-nav .sub a > .icon { width: 20px; height: 20px; }
	.main-nav .sub a::after { display: none; }
	.main-nav .sub a:hover { background: rgba(180, 154, 98, .14); }

	.header-search { align-items: center; border: 1.5px solid var(--verde); border-radius: 999px; background: var(--superficie); padding-left: 14px; }
	.header-search input { width: 150px; min-height: 40px; border: 0; background: none; font-size: .9rem; outline: none; }
	.header-search:focus-within { border-color: var(--burdeos); }
	.header-search input::placeholder { color: var(--verde); opacity: .75; }
	.header-search button { width: 40px; height: 40px; border: 0; background: none; color: var(--verde); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
	.header-search .icon { width: 20px; height: 20px; }

	/* Menú móvil y buscador (diálogos nativos) */
	dialog { color: var(--texto); }
	dialog::backdrop { background: rgba(15, 45, 33, .55); }
	/* Con una ventana abierta la página no se desplaza: así la barra del navegador del móvil no se recoge y el fondo no deja ver el corte */
	html:has(dialog[open]) { overflow: hidden; }

	.drawer { margin: 0; inset: 0 auto 0 0; width: min(88vw, 380px); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; background: var(--marfil); overflow-y: auto; }
	.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .22s ease-out; }
	@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } }
	.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 20px; border-top: 2px solid var(--verde); border-bottom: 1px solid var(--linea); }
	.drawer__title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: .08em; color: var(--verde); }
	.drawer__list > li { border-bottom: 1px solid var(--linea); }
	.drawer__list > li > a, .drawer__list summary { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 20px; font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--verde); cursor: pointer; list-style: none; }
	.drawer__list summary::-webkit-details-marker { display: none; }
	.drawer__list .drawer__icon { width: 26px; height: 26px; flex: none; color: var(--dorado); }
	.drawer__list .drawer__chev { width: 20px; height: 20px; margin-left: auto; color: var(--dorado); transition: transform .2s; }
	.drawer__list details[open] .drawer__chev { transform: rotate(180deg); }
	.drawer__list [aria-current] { color: var(--burdeos); }
	.drawer__list details ul { padding-bottom: 8px; background: rgba(201, 174, 107, .1); }
	.drawer__list details ul a { display: flex; gap: 14px; min-height: 48px; align-items: center; padding: 6px 20px 6px 24px; font-size: 1.05rem; text-decoration: none; color: var(--texto); }
	.drawer__list details ul .icon { width: 22px; height: 22px; flex: none; color: var(--dorado); }
	.drawer__list details ul a[aria-current] { color: var(--burdeos); font-weight: 600; }
	.drawer__contact { display: grid; gap: 10px; padding: 20px; margin-top: auto; }

	.search-dialog { margin: 0 auto; inset-block-start: 0; width: 100%; max-width: 680px; padding: 14px var(--gutter) 18px; border: 0; border-radius: 0 0 14px 14px; background: var(--marfil); border-top: 2px solid var(--verde); }
	.search-dialog form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
	.search-dialog input { min-height: 48px; padding: 0 16px; border: 1px solid #cfc6b4; border-radius: 999px; background: #fff; min-width: 0; }
	.search-dialog .btn { min-height: 48px; padding-inline: 16px; }
	/* Ventana «Cómo es el encargo» (ficha) */
	.how-dialog { position: fixed; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); max-height: calc(100dvh - 32px); overscroll-behavior: contain; margin: auto; padding: 28px 24px 24px; border: 1px solid var(--linea); border-radius: 14px; background: var(--marfil); box-shadow: 0 20px 50px rgba(15, 45, 33, .25); }
	.how-dialog h2 { margin: 0 32px 18px; text-align: center; font-family: var(--serif); font-size: 1.45rem; color: var(--verde); }
	.how-dialog__close { position: absolute; top: 12px; right: 12px; }
	.how-dialog h2:focus { outline: none; }
	.how-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
	.how-steps li { display: flex; align-items: center; gap: 14px; font-size: .92rem; line-height: 1.35; color: var(--texto); }
	.how-steps small { display: block; margin-top: 2px; font-size: .85rem; color: var(--texto-suave); }
	.how-steps__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--oro); border-radius: 50%; color: var(--dorado); }
	.how-steps__icon .icon { width: 22px; height: 22px; }
	.how-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
	.how-dialog__actions .btn { flex: 1 1 auto; justify-content: center; }

	/* Pie: compacto, con dorado en los detalles */
	.site-footer { position: relative; margin-top: 28px; padding: 22px 0 0; background: var(--verde-900); color: var(--marfil); border-bottom: 4px solid var(--burdeos); }
	.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; background: linear-gradient(to bottom, rgba(15, 45, 33, 0), var(--verde-900)); pointer-events: none; }
	main:has(.runway-section) + .site-footer { margin-top: 0; }
	main:has(.runway-section) + .site-footer::before { display: none; }
	.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--dorado), transparent); }
	.site-footer a { text-decoration: none; }
	.site-footer a:hover { color: #fff; text-decoration: underline; }
	.footer-grid { display: grid; gap: 10px; justify-items: center; }
	.footer-social { order: -1; display: flex; justify-content: center; gap: 16px; width: 100%; padding-bottom: 12px; border-bottom: 1px solid rgba(180, 154, 98, .4); }
	.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; }
	.footer-social__icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--dorado); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #DCC58C, var(--dorado) 70%); color: var(--verde-900); transition: transform .15s, box-shadow .15s; }
	.footer-social a:hover .footer-social__icon { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
	.footer-social__icon .icon { width: 19px; height: 19px; }
	.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; width: 100%; justify-items: center; }
	.footer-contact li:last-child { grid-column: 1 / -1; }
	.footer-contact li { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: .95rem; }
	.footer-contact .icon { width: 20px; height: 20px; flex: none; color: var(--dorado); }
	.footer-legal { margin-top: 6px; padding-block: 0 8px; border-top: 1px solid rgba(180, 154, 98, .4); font-size: .85rem; color: rgba(253, 244, 220, .8); text-align: center; }
	.footer-legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
	.footer-legal a { display: inline-flex; align-items: center; min-height: 36px; }
	.footer-legal p { margin-top: 0; }
	@media (min-width: 768px) {
		.footer-grid { grid-template-columns: 1fr auto; align-items: center; gap: 32px; justify-items: stretch; }
		.footer-social { order: 0; width: auto; padding: 0; border: 0; gap: 10px; justify-content: flex-end; }
		.footer-social a { width: 36px; }
		.footer-contact { grid-template-columns: none; grid-auto-flow: column; gap: 0 40px; width: auto; justify-items: start; justify-content: start; }
		.footer-contact li:last-child { grid-column: auto; }
		.footer-legal { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; text-align: left; }
		.footer-legal p { margin: 0; }
	}
	@media (min-width: 768px) and (max-width: 1100px) { .footer-contact { grid-auto-flow: row; gap: 0; } }

	/* Aviso de cookies */
	.cookie-bar { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; gap: 12px; padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linea); box-shadow: 0 -8px 24px rgba(0, 0, 0, .14); font-size: .9rem; }
	.cookie-bar[hidden] { display: none; }
	.cookie-bar__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	@media (min-width: 768px) {
		.cookie-bar { grid-template-columns: 1fr auto; align-items: center; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
		.cookie-bar__actions { grid-template-columns: auto auto; }
	}
}

/* ------------------------------------------------------------------ components */
@layer components {
	.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	picture { display: block; }
	/* Marcador de carga: mientras una foto diferida llega (img.is-loading, site.js), su hueco muestra un brillo marfil que se desliza despacio */
	picture:has(> img.is-loading) { background: linear-gradient(100deg, #EFE8D4 35%, #FBF7EA 50%, #EFE8D4 65%) 100% 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
	@keyframes shimmer { to { background-position: 0 0; } }
	@media (prefers-reduced-motion: reduce) { picture:has(> img.is-loading) { animation: none; background: #F4EEDD; } }

	/* Botones */
	.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--radius); font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; background: none; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
	.btn .icon { width: 20px; height: 20px; flex: none; }
	.btn--primary { background: var(--burdeos); color: #fff; border-color: var(--burdeos); }
	.btn--primary:hover { background: var(--burdeos-700); border-color: var(--burdeos-700); color: #fff; }
	.btn--outline { color: var(--burdeos); border-color: var(--burdeos); background: transparent; }
	.btn--outline:hover { background: var(--burdeos); color: #fff; }
	/* variant="ghost" de <x-contact-cta> (se compone como 'btn--'.$variant: no se ve buscando el nombre completo); lo usa el hero de la portada */
	.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .9); }
	.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
	.btn--block { width: 100%; }
	.btn[disabled] { opacity: .6; cursor: wait; }

	/* Título de sección con filetes dorados */
	.section-title { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(20px, 5vw, 34px); text-align: center; font-size: clamp(1.2rem, 4.4vw, 1.75rem); font-weight: 600; letter-spacing: .06em; color: var(--texto); }
	.section-title::before, .section-title::after { content: ""; flex: 1 1 24px; min-width: 24px; height: 1px; background: linear-gradient(90deg, rgba(180, 154, 98, 0), var(--dorado)); }
	.section-title::after { transform: scaleX(-1); }

	.eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

	/* Migas de pan */
	.crumbs { display: flex; align-items: center; max-width: var(--max); margin-inline: auto; padding: 12px var(--gutter) 0; font-size: .82rem; color: var(--texto-suave); }
	/* Flecha de volver, en un círculo y separada de las migas por una raya (solo en ordenador; en móvil la miga «‹ Vestidos Medievales» hace lo mismo) */
	.crumbs__back { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-right: 12px; border: 1px solid var(--oro); border-radius: 50%; color: var(--verde); background: var(--superficie); transition: background-color .15s, color .15s; }
	.crumbs__back:hover { background: var(--verde); color: #fff; text-decoration: none; }
	.crumbs__back .icon { width: 16px; height: 16px; }
	.crumbs__back + ol { padding-left: 12px; border-left: 1px solid var(--linea); }
	.crumbs ol { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
	.crumbs ol::-webkit-scrollbar { display: none; }
	.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
	.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--dorado); }
	.crumbs a { text-decoration: none; }
	.crumbs a:hover { text-decoration: underline; }
	.crumbs [aria-current] { color: var(--texto); }
	/* Móvil: una sola miga, la de volver («‹ Vestidos Medievales», que vuelve atrás: site.js, 10); las completas siguen en el JSON-LD */
	@media (max-width: 767px) {
		.crumbs li { display: none; }
		.crumbs li:nth-last-child(2) { display: inline-flex; }
		.crumbs__back { display: none; }
		.crumbs__back + ol { padding-left: 0; border-left: 0; }
		.crumbs li:nth-last-child(2)::before { content: "‹"; margin: 0 8px 0 0; font-size: 1.1rem; }
	}

	/* Precio y etiquetas */
	.price { font-weight: 700; color: var(--texto); font-variant-numeric: tabular-nums; }
	.price--offer { display: inline-flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
	.price__old { font-weight: 400; color: var(--texto-suave); text-decoration: line-through; }
	.price__now { color: var(--burdeos); }

	.badge { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 3px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
	.badge--offer { background: var(--burdeos); }
	/* «Nuevo» (últimos subidos): verde de la marca; con oferta, las dos etiquetas en columna */
	/* Selector de colores de los listados (?color=…): muestras redondas en fila; en móvil se desliza de lado */
	.badge--new { background: color-mix(in srgb, var(--verde) 78%, transparent); }
	.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
	.badges .badge { position: static; }
	
	/* Tarjeta de categoría: imagen con transparencia + pie HTML con el mismo borde amarillo */
	.cat-card { display: block; container-type: inline-size; color: var(--marfil); text-decoration: none; transition: transform .25s ease; }
	.cat-card:hover, .cat-card:focus-visible { color: var(--marfil); transform: translateY(-4px); }
	.cat-card__media img { width: 100%; aspect-ratio: 470 / 501; object-fit: cover; transition: filter .25s ease, opacity .35s ease; }
	.cat-card:hover .cat-card__media img, .cat-card:focus-visible .cat-card__media img { filter: saturate(1.28) contrast(1.04) brightness(1.03); }
	.cat-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 62px; padding: 8px 8px 8px 12px; background: linear-gradient(var(--verde), var(--verde-900)); border: max(1px, .64cqw) solid var(--ambar); border-radius: 0 0 14px 14px; box-shadow: var(--shadow-md); transition: box-shadow .25s ease; }
	.cat-card:hover .cat-card__foot { box-shadow: 0 14px 28px -12px rgba(38, 53, 44, .55); }
	.cat-card__name { font-family: var(--serif); font-size: .98rem; font-weight: 500; line-height: 1.15; }
	.cat-card__arrow { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--ambar); border-radius: 50%; color: var(--ambar); transition: transform .2s, background-color .2s, color .2s; }
	.cat-card__arrow .icon { width: 14px; height: 14px; }
	.cat-card:hover .cat-card__arrow { transform: translateX(3px); background: var(--ambar); color: var(--verde-900); }
	@media (min-width: 768px) { .cat-card__name { font-size: 1.25rem; } .cat-card__foot { min-height: 62px; padding-left: 18px; } }

	/* Rejilla y tarjeta de producto */
	.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; margin-inline: calc(var(--gutter) * -1 + 8px); }
	@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 14px; } }
	@media (min-width: 768px) { .pgrid { margin-inline: 0; } }
	@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 14px; } }

	/* Tarjeta: foto 3:4 con borde dorado y sombra (sin paspartú en móvil, 2 px en escritorio); al pasar el cursor sube, gana sombra y saturación */
	.pcard { --tile-pad: 0px; }
	@media (min-width: 768px) { .pcard { --tile-pad: 2px; } }
	.pcard__link { display: block; text-decoration: none; }
	.pcard__photo { position: relative; display: block; overflow: hidden; padding: var(--tile-pad); background: var(--superficie); border: 1.5px solid var(--oro); border-radius: var(--radius); box-shadow: 0 5px 12px -3px rgba(38, 53, 44, .5), 0 1px 3px rgba(38, 53, 44, .25); transition: box-shadow .2s, transform .2s; }
	.pcard__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; border-radius: 3px; background: var(--linea); transition: filter .25s ease, opacity .35s ease; }
	.pcard__link:hover .pcard__photo { transform: translateY(-2px); }
	.pcard__body { display: flex; align-items: center; gap: 0 6px; padding: 12px .5em 0; }
	@media (min-width: 768px) { .pcard__body { padding-inline: .9em; } }
	.pcard__info { flex: 1; display: flex; align-items: baseline; justify-content: flex-start; gap: 0 10px; min-width: 0; }
	.pcard__body .price { font-size: 1.1rem; font-weight: 600; line-height: 1.15; color: var(--verde); }
	.pcard__info:has(.price--offer) { align-items: center; }
	.pcard__body .price--offer { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0; }
	.pcard__body .price__now { color: var(--burdeos); }
	.pcard__body .price__old { font-size: .82rem; font-weight: 400; }
	.pcard__ref { display: inline-flex; align-items: center; gap: 9px; font-size: .68rem; font-style: italic; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #7A8C82; }
	.pcard__ref::before { content: ""; width: 1px; height: 12px; background: var(--oro); }
	.pcard__arrow { flex: none; width: 30px; height: 30px; padding: 7px; border: 1px solid var(--dorado); border-radius: 50%; color: var(--dorado); transition: transform .2s, background-color .2s, color .2s; }
	.pcard__link:hover .pcard__arrow { transform: translateX(3px); background: var(--burdeos); border-color: var(--burdeos); color: #fff; }
	.pcard__link:hover .pcard__ref { color: #4F6558; }
	@media (max-width: 399px) { .pcard__info { gap: 0 7px; } .pcard__body .price { font-size: 1.02rem; } .pcard__ref { gap: 7px; font-size: .64rem; } .pcard__arrow { width: 26px; height: 26px; padding: 6px; } }

	@media (hover: hover) {
		.pcard__link:hover .pcard__photo { box-shadow: 0 10px 20px -4px rgba(38, 53, 44, .55), 0 2px 4px rgba(38, 53, 44, .25); }
		.pcard__link:hover img, .pcard__link:focus-visible img { filter: saturate(1.18); }
	}

	/* Formularios */
	.field { margin-bottom: 14px; }
	.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
	.field .opt { font-weight: 400; color: var(--texto-suave); }
	.input { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfc6b4; border-radius: var(--radius); background: #fff; }
	textarea.input { min-height: 130px; resize: vertical; }
	.input:focus { outline: 2px solid var(--burdeos); outline-offset: 0; border-color: var(--burdeos); }
	.input[readonly] { background: #f1ede2; color: var(--texto-suave); }
	/* Resultado del envío: icono y mensaje, separados del formulario por un filete dorado */
	.form-status { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(180, 154, 98, .55); font-size: .98rem; }
	.form-status[data-state] { display: flex; align-items: center; gap: 12px; }
	.form-status .icon { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: #fff; }
	.form-status[data-state="ok"] { color: var(--ok); }
	.form-status[data-state="ok"] .icon { background: var(--ok); }
	.form-status[data-state="error"] { color: var(--error); }
	.form-status[data-state="error"] .icon { background: var(--error); }

	/* Texto corrido */
	.prose { max-width: 68ch; }
	.prose > * + * { margin-top: 1em; }
	.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; color: var(--verde); }
	.prose h2 { font-size: 1.35rem; }
	.prose h3 { font-size: 1.15rem; }
	.prose h4 { font-size: 1.05rem; }
	.prose ul { list-style: disc; padding-left: 1.3em; }
	.prose ol { list-style: decimal; padding-left: 1.3em; }
	.prose a { color: var(--burdeos); }

	/* Galería de la ficha: carrusel con scroll-snap (deslizar con el dedo) + visor a pantalla completa */
	.gallery { display: grid; gap: 10px; }
	.gallery__viewport { position: relative; border: 1.5px solid var(--oro); border-radius: var(--radius); background: var(--superficie); box-shadow: 0 6px 16px -4px rgba(38, 53, 44, .4), 0 1px 3px rgba(38, 53, 44, .25); padding: 2px; }
	.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 3px; overscroll-behavior-x: contain; }
	.gallery__track::-webkit-scrollbar { display: none; }
	.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; display: block; }
	.gallery__slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; background: var(--linea); }
	.gallery__slide.is-odd img { object-fit: contain; background: var(--superficie); }
	.gallery__count { position: absolute; right: 14px; top: 14px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 45, 33, .75); color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums; pointer-events: none; }
	.gallery__hint { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 253, 248, .92); font-size: .78rem; color: var(--texto); pointer-events: none; }
	.gallery__hint .icon { width: 16px; height: 16px; }
	.gallery__nav { display: none; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 253, 248, .92); color: var(--verde); box-shadow: var(--shadow-sm); align-items: center; justify-content: center; }
	.gallery__nav--prev { left: 12px; }
	.gallery__nav--next { right: 12px; }
	.gallery__nav .icon { width: 22px; height: 22px; }
	.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
	.gallery__thumb { flex: 0 0 60px; padding: 3px; border: 2px solid transparent; border-radius: var(--radius); background: var(--superficie); box-shadow: 0 0 0 1px var(--oro); opacity: .75; }
	.gallery__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
	.gallery__thumb[aria-current="true"] { border-color: var(--burdeos); opacity: 1; }
	@media (min-width: 768px) {
		.gallery__nav { display: inline-flex; }
		.gallery__thumb { flex-basis: 72px; }
	}
	@media (min-width: 1024px) {
		.gallery { grid-template-columns: 84px 1fr; align-items: start; }
		.gallery__thumbs { order: -1; flex-direction: column; overflow: visible; }
		.gallery__thumb { flex-basis: auto; }
		/* Una sola foto: no hay miniaturas y la foto ocupa las dos columnas (si no, cabía en la de 84 px) */
		.gallery__viewport:only-child { grid-column: 1 / -1; }
	}

	/* Visor: PhotoSwipe (js/site.js lo carga al tocar una foto); ajustes de color */
	.pswp { --pswp-bg: #0F2D21; }

	/* Pregunta desplegable (<details>) */
	.faq details { border-bottom: 1px solid var(--oro); }
	.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 0; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--verde); cursor: pointer; list-style: none; }
	.faq summary::-webkit-details-marker { display: none; }
	.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--dorado); transition: transform .2s; }
	.faq details[open] summary::after { transform: rotate(45deg); }
	.faq details > div { padding: 0 0 18px; font-style: italic; text-align: justify; hyphens: auto; }
	/* Ficha de producto: tres preguntas de «A medida» debajo del formulario */
	.faq--product { padding-top: 40px; }
	.faq__list { max-width: 760px; margin-inline: auto; }
	.faq__more { margin-top: 24px; text-align: center; }

	/* Tarjeta genérica */
	.card { background: var(--superficie); border: 1px solid var(--oro); border-radius: 10px; box-shadow: 0 5px 14px -4px rgba(38, 53, 44, .3); padding: 20px; }
	@media (min-width: 768px) { .card { padding: 28px; } }
}

/* ------------------------------------------------------------------ pages */
@layer pages {

	/* ---- Portada: redes (móvil y tablet), entre la cabecera y la foto */
	.social-strip { display: flex; justify-content: center; gap: 4px 6px; padding: 2px var(--gutter); background: var(--verde-900); border-bottom: 1px solid rgba(180, 154, 98, .45); }
	.social-strip a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: .9rem; color: var(--marfil); text-decoration: none; }
	.social-strip a:hover { color: #fff; }
	.social-strip .icon { width: 22px; height: 22px; color: var(--oro); }
	@media (min-width: 1024px) { .social-strip { display: none; } }

	/* ---- Portada: hero */
	.hero { position: relative; background: var(--verde-900); color: #fff; overflow: clip; }
	.hero__media { position: relative; }
	.hero__media img { width: 100%; aspect-ratio: 753 / 700; object-fit: cover; filter: saturate(.8) brightness(.88); }
	.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to bottom, rgba(15, 45, 33, 0), rgba(15, 45, 33, .82) 55%, var(--verde-900)); pointer-events: none; }
	.hero__body { position: relative; margin-top: -176px; padding-block: 0 26px; }
	.hero .eyebrow { color: #F0E3BC; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
	.hero h1 { margin-top: 6px; color: #fff; font-size: clamp(1.85rem, 8.2vw, 2.9rem); font-weight: 600; line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
	.hero h1::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 14px; background: var(--oro); }
	.hero__lead { margin-top: 12px; font-style: italic; max-width: 34em; font-size: 1.05rem; line-height: 1.5; color: rgba(255, 255, 255, .94); }
	.hero__row { margin-top: 18px; }
	.hero__social { display: none; }
	.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.hero__actions .btn { padding-inline: 10px; font-size: .92rem; }
	.hero .btn--primary { border-color: rgba(255, 255, 255, .92); }
	.hero .btn--primary:hover { border-color: #fff; }
	@media (min-width: 480px) { .hero__actions { grid-template-columns: repeat(2, auto); justify-content: start; } .hero__actions .btn { padding-inline: 22px; font-size: 1rem; } }
	@media (min-width: 768px) {
		.hero { display: grid; align-items: center; width: 100%; height: clamp(380px, 31vw, 520px); }
		.hero__media { position: absolute; inset: 0; }
		.hero__media picture { height: 100%; }
		.hero__media img { height: 100%; aspect-ratio: auto; object-position: 80% 0; }
		@media (min-width: 1100px) { .hero__media img { object-position: 50% 8%; } }
		.hero__media::after { inset: 0; height: auto; background: linear-gradient(90deg, rgba(10, 38, 27, .97) 0%, rgba(12, 42, 30, .93) 34%, rgba(15, 45, 33, .7) 52%, rgba(15, 45, 33, .3) 72%, rgba(15, 45, 33, .22) 100%); }
		.hero__body { margin-top: 0; padding-block: 28px; }
		.hero__body > * { max-width: min(760px, 58%); }
		.hero__body > .hero__row { max-width: none; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
		/* Redes sobre la foto: botones opacos verde oscuro con borde dorado, para que destaquen sobre cualquier zona de la imagen */
		.hero__social { display: flex; gap: 14px; position: absolute; z-index: 2; bottom: 28px; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); margin: 0; padding: 0; list-style: none; }
		.hero__social a { display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid #D4A017; border-radius: 14px; background: var(--verde-900); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background-color .15s, transform .15s, border-color .15s, box-shadow .15s; }
		.hero__social a:hover { background: #163D2D; border-color: var(--ambar); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .16); }
		.hero__social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
		.hero__social .icon { width: 26px; height: 26px; }
		.hero h1 { font-size: clamp(2.1rem, 3.9vw, 4rem); line-height: 1.12; max-width: min(760px, 60%); }
		.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); }
	}

	/* ---- Portada: categorías y pasos */
	.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 22px; } }

	.home-latest .wrap { padding-inline: 6px; }
	.home-latest .section-title { margin-inline: 10px; }
	.home-latest .pgrid { gap: 8px; margin-inline: 0; }
	@media (min-width: 640px) { .home-latest .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
	@media (min-width: 768px) { .home-latest .wrap { padding-inline: var(--gutter); } .home-latest .pgrid { gap: 10px; } .home-latest .section-title { margin-inline: 0; } }
	@media (min-width: 1024px) { .home-latest .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
	.section-cta { margin-top: 32px; text-align: center; }

	.steps__list { display: grid; gap: 4px; }
	.steps__list li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(180, 154, 98, .5); }
	.steps__list li:last-child { border-bottom: 0; }
	.steps__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; color: var(--dorado); }
	.steps__icon .icon { width: 44px; height: 44px; }
	.steps__list h3 { font-size: 1.3rem; color: var(--texto); }
	.steps__list h3 span { color: var(--burdeos); }
	.steps__list p { font-size: 1.02rem; font-style: italic; color: var(--texto-suave); }
	@media (min-width: 768px) {
		.steps__list { grid-template-columns: repeat(3, 1fr); gap: 0; }
		.steps__list li { padding: 4px 28px; border-bottom: 0; border-left: 1px solid rgba(180, 154, 98, .5); }
		.steps__list li:first-child { border-left: 0; padding-left: 0; }
	}
	.cta-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 44px; padding-top: 34px; }
	.cta-row::before { content: ""; position: absolute; top: 0; left: 50%; width: min(100%, 560px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(180, 154, 98, 0), var(--dorado), rgba(180, 154, 98, 0)); }
	@media (max-width: 479px) { .cta-row { display: grid; margin-top: 36px; padding-top: 28px; } }

	/* ---- Portada: del taller a la pasarela (banda verde propia, con un carrusel de fotos) */
	.runway-section { position: relative; margin-top: 8px; background: var(--verde-900); color: #fff; border-block: 1px solid var(--dorado); }
	.runway { display: grid; gap: 16px; padding-block: 30px 34px; }
	.runway__text { display: contents; }
	.runway__text .eyebrow { order: 0; padding-inline: var(--gutter); text-align: center; color: var(--oro); font-size: .7rem; }
	.runway__text h2 { order: 1; padding-inline: var(--gutter); text-align: center; color: #fff; font-size: clamp(1.4rem, 6vw, 1.9rem); }
	.runway__text h2::after { content: ""; display: block; width: 64px; height: 2px; margin: 12px auto 0; background: var(--oro); }
	.runway__scroller { order: 2; position: relative; }
	.runway__lead { order: 3; font-style: italic; padding-inline: var(--gutter); text-align: center; font-family: var(--serif); font-size: 1.15rem; color: rgba(255, 255, 255, .9); }
	.runway__text .btn { order: 4; justify-self: center; }
	.runway__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); cursor: grab; }
	.runway__track::-webkit-scrollbar { display: none; }
	.runway__track a { flex: 0 0 58%; max-width: 280px; scroll-snap-align: start; border: 1.5px solid var(--oro); border-radius: var(--radius); overflow: hidden; }
	.runway__track img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .4s, opacity .35s ease; -webkit-user-drag: none; user-select: none; }
	.runway__track a:hover img { transform: scale(1.03); }
	.runway__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
	.runway__track.is-dragging a { pointer-events: none; }
	@media (min-width: 1024px) {
		.runway { display: block; position: relative; padding-block: 40px; }
		.runway__text { position: absolute; z-index: 2; inset: 0 0 0 auto; width: min(58%, 820px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0 clamp(150px, 16vw, 260px); background: linear-gradient(270deg, var(--verde-900) 58%, rgba(15, 45, 33, .92) 74%, rgba(15, 45, 33, 0)); pointer-events: none; }
		.runway__text > * { pointer-events: auto; }
		.runway__text .eyebrow, .runway__text h2, .runway__lead { padding-inline: 0; text-align: left; }
		.runway__text .eyebrow { font-size: .78rem; }
		.runway__text h2 { font-size: clamp(1.8rem, 2.7vw, 2.7rem); }
		.runway__text h2::after { margin-inline: 0; }
		.runway__lead { margin: 14px 0 24px; font-size: clamp(1.15rem, 1.5vw, 1.45rem); max-width: 22em; }
		.runway__track { gap: 14px; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-inline: var(--gutter); }
		.runway__track a { flex-basis: clamp(230px, 20vw, 320px); max-width: none; }
	}

	/* ---- Listados */
	.page-head { padding-block: 12px 4px; }
	@media (min-width: 1024px) { .page-head { padding-bottom: 30px; } }
	.page-head h1 { color: var(--texto); }
	.page-head h1, .event-head h1, .legal h1, .not-found h1 { width: fit-content; max-width: 100%; }
	.page-head h1::after, .event-head h1::after, .legal h1::after, .not-found h1::after { content: ""; display: block; width: 100%; height: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--oro), rgba(201, 174, 107, .35)); }
	.page-head__lead { margin-top: 8px; max-width: 60ch; font-style: italic; color: var(--texto-suave); }

	/* Ilustraciones de fondo (/a-medida, /contactar, /bodas-medievales y /eventos): dibujos decorativos sin texto. Solo se pintan donde sobra sitio, así que en móvil
	   no se descargan. .deco--head: a la derecha de la cabecera (desde 768 px); .deco--left / .deco--right: en el margen de una sección
	   estrecha (desde 1200 px), con el ancho que sobra a cada lado del contenido. */
	.deco { position: relative; isolation: isolate; }
	@media (min-width: 768px) {
		.deco--head { --deco-head: clamp(210px, 26vw, 300px); min-height: var(--deco-head); }
		.deco--head.deco--sm { --deco-head: clamp(120px, 13vw, 165px); } /* listados: dibujo pequeño para no empujar los productos */
		.deco--head h1 { max-width: calc(100% - var(--deco-head) - 12px); }
		.deco--head .page-head__lead { max-width: min(60ch, calc(100% - var(--deco-head) - 12px)); }
		.deco--head::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: var(--deco-head); aspect-ratio: 1; background: var(--deco-img) no-repeat center / contain; opacity: .75; pointer-events: none; }
	}
	@media (min-width: 1200px) {
		.deco--left::before, .deco--right::before { content: ""; position: absolute; z-index: -1; top: calc(50% + 24px); transform: translateY(-50%); width: clamp(160px, calc((100vw - var(--deco-content, 760px)) / 2 - 40px), 210px); aspect-ratio: 1; background: var(--deco-img) no-repeat center / contain; opacity: .75; pointer-events: none; }
		.deco--left::before { left: 0; }
		.deco--right::before { right: 0; }
	}
	.deco--vestido { --deco-img: url("/imgs/web/ilustraciones/vestido-420.webp"); }
	.deco--carta { --deco-img: url("/imgs/web/ilustraciones/carta-420.webp"); }
	.deco--paquete { --deco-img: url("/imgs/web/ilustraciones/paquete-420.webp"); }
	.deco--estandarte { --deco-img: url("/imgs/web/ilustraciones/estandarte-420.webp"); }
	.deco--anillos { --deco-img: url("/imgs/web/ilustraciones/anillos-420.webp"); }
	@media (min-resolution: 1.5dppx) {
		.deco--vestido { --deco-img: url("/imgs/web/ilustraciones/vestido-840.webp"); }
		.deco--carta { --deco-img: url("/imgs/web/ilustraciones/carta-840.webp"); }
		.deco--paquete { --deco-img: url("/imgs/web/ilustraciones/paquete-840.webp"); }
		.deco--estandarte { --deco-img: url("/imgs/web/ilustraciones/estandarte-840.webp"); }
		.deco--anillos { --deco-img: url("/imgs/web/ilustraciones/anillos-840.webp"); }
	}

	.list-bar { display: grid; gap: 12px; margin-block: 18px 22px; }
	.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--oro); border-radius: 999px; background: var(--superficie); font-size: .92rem; text-decoration: none; white-space: nowrap; }
	.chip:hover { border-color: var(--verde); background: rgba(201, 174, 107, .16); }
	.chip .icon { width: 20px; height: 20px; margin-left: -4px; color: var(--dorado); }
	.chip[aria-current] { background: var(--verde); border-color: var(--verde); color: #fff; }
	.chip[aria-current] .icon { color: var(--oro); }

	/* Filtrar: un botón a todo el ancho (en escritorio, a la derecha) que despliega las ordenaciones y el rango de precio */
	.filters { position: relative; }
	.sort summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--oro); border-radius: 999px; background: var(--superficie); box-shadow: 0 3px 8px -3px rgba(38, 53, 44, .35); font-size: .95rem; list-style: none; cursor: pointer; }
	.sort summary::-webkit-details-marker { display: none; }
	.sort summary > span { flex: 1; }
	.sort summary strong { font-weight: 600; color: var(--verde); }
	.sort summary .icon { width: 20px; height: 20px; flex: none; color: var(--dorado); }
	.sort__chev { transition: transform .2s; }
	.sort[open] .sort__chev { transform: rotate(180deg); }
	.sort[open] summary { border-color: var(--verde); }
	.sort__panel { position: absolute; z-index: 5; inset: calc(100% + 6px) 0 auto 0; padding: 8px; border: 1.5px solid var(--oro); border-radius: 16px; background: var(--superficie); box-shadow: 0 14px 28px -10px rgba(38, 53, 44, .5); }
	.sort__title { margin: 6px 14px 10px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--verde); }
	.range .sort__title { margin: 0 4px 8px; }
	.sort ul { margin: 0; padding: 0; list-style: none; }
	.sort li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 10px; text-decoration: none; }
	.sort li a:hover { background: rgba(201, 174, 107, .16); }
	.sort li a[aria-current] { background: var(--verde); color: #fff; font-weight: 600; }
	.sort li a .icon { width: 18px; height: 18px; flex: none; color: var(--dorado); }
	.sort li a[aria-current] .icon { color: var(--oro); }
	.sort__item { display: flex; align-items: center; gap: 12px; }
	.range { margin: 8px 6px 4px; padding-top: 12px; border-top: 1px solid var(--linea); }
	.range__value { display: flex; justify-content: space-between; margin: 0 4px; font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
	.range__bar { position: relative; height: 34px; margin: 8px 8px 0; --a: 0%; --b: 100%; }
	.range__bar::before { content: ""; position: absolute; inset: 15px 0 auto; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--linea) var(--a), var(--verde) var(--a) var(--b), var(--linea) var(--b)); }
	.range__bar input { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
	.range__bar input::-webkit-slider-runnable-track { background: none; border: 0; }
	.range__bar input::-moz-range-track { background: none; border: 0; }
	.range__bar input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border: 3px solid var(--oro); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: grab; }
	.range__bar input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border: 3px solid var(--oro); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: grab; }
	.range__actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
	.range__actions .btn { min-height: 44px; padding-inline: 22px; }
	.range__reset { font-size: .85rem; color: var(--texto-suave); text-decoration: underline; text-underline-offset: 3px; }
	.range__reset:hover { color: var(--burdeos); }
	@media (min-width: 768px) {
		.list-bar { grid-template-columns: 1fr auto; align-items: center; }
		.chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
		.filters { position: static; width: 260px; }
		.sort { position: relative; }
		.sort__panel { inset: calc(100% + 6px) 0 auto auto; width: 300px; }
	}

	.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
	.pager .btn { min-width: 120px; }
	/* Scroll infinito de los listados (site.js, 9) */
	.infinite__status { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 1.5em; margin-top: 28px; text-align: center; font-size: .95rem; font-style: italic; color: var(--texto-suave); }
	.infinite__prev { display: flex; margin: 0 auto 24px; }
	/* Mientras quedan modelos por cargar (site.js, 9) no se ven el pie ni «A tu medida» */
	.is-listing-more .site-footer, .is-listing-more .made-note { display: none; }
	/* Aro dorado con un tramo burdeos que gira; con «reducir movimiento», gira despacio */
	.infinite__status.is-loading::before, .infinite__prev.is-loading::before { content: ""; flex: none; width: 38px; height: 38px; border: 3px solid rgba(180, 154, 98, .25); border-top-color: var(--burdeos); border-radius: 50%; animation: spin .8s linear infinite; }
	.infinite__prev.is-loading::before { width: 16px; height: 16px; border-width: 2px; border-color: rgba(180, 154, 98, .35); border-top-color: currentColor; }
	@keyframes spin { to { transform: rotate(360deg); } }
	@media (prefers-reduced-motion: reduce) { .infinite__status.is-loading::before, .infinite__prev.is-loading::before { animation-duration: 2.4s; } }
	.pager__info { font-size: .95rem; color: var(--texto-suave); }

	.empty { margin-top: 24px; padding: 32px 20px; text-align: center; background: var(--superficie); border: 1px dashed var(--dorado); border-radius: 10px; }
	.empty h2 { margin-bottom: 8px; color: var(--texto); }
	.empty p { max-width: 46ch; margin: 0 auto 18px; color: var(--texto-suave); }
	.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

	.made-note { display: grid; justify-items: center; margin-top: 56px; padding-block: 28px 44px; text-align: center; }
	.made-note .section-title { width: 100%; max-width: 760px; margin-bottom: 14px; }
	.made-note p { max-width: 54ch; font-style: italic; color: var(--texto-suave); }
	.made-note__lead { margin-bottom: 4px; }
	.made-note__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
	@media (max-width: 479px) { .made-note__actions { display: grid; width: 100%; } }

	/* ---- Ficha de producto: foto | título, ref y compartir, precio · descripción · complementos · a medida · contacto · envío */
	.product { display: grid; gap: 24px; padding-block: 12px 8px; }
	@media (min-width: 768px) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
	@media (min-width: 1024px) { .product { gap: 56px; } }
	.product__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--linea); }
	/* Columna derecha: escala título > precio > subtítulo > texto (título y precio dominan; el subtítulo queda claramente por debajo del precio) */
	.product__title { font-size: clamp(1.55rem, 5.2vw, 2.1rem); line-height: 1.15; color: var(--verde-900); }
	@media (min-width: 768px) { .product__title { font-size: clamp(1.7rem, 2.6vw, 2.25rem); } }
	.product__share { display: inline-flex; flex: none; align-items: center; gap: 7px; min-width: 44px; min-height: 44px; justify-content: center; padding: 0 2px; border: 0; background: none; color: var(--texto-suave); font-size: .88rem; }
	.product__share .icon { width: 20px; height: 20px; color: var(--dorado); }
	.product__share:hover { color: var(--burdeos); }
	@media (max-width: 767px) { .product__share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
	.product__desc { margin-top: 4px; }
	.product__desc h2 { margin-top: 0; font-size: clamp(1.2rem, 3.6vw, 1.45rem); line-height: 1.25; color: var(--verde-900); }
	.product__desc h2 + .product__text { margin-top: .45em; }
	.product__text { font-size: 1rem; line-height: 1.6; color: var(--texto); }
	.product__desc h3 { font-size: 1.05rem; }
	.extras { margin-top: 14px; font-size: .95rem; }
	/* Los complementos van justo debajo de la descripción, sin línea de separación */
	.product__desc + .extras { margin-top: 18px; }
	.extras h2 { margin-bottom: 2px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--verde); }
	.extras__list { list-style: disc; padding-left: 2.2em; line-height: 1.55; }
	.extras__list li::marker { color: var(--dorado); }
	.extras__price { color: var(--verde); white-space: nowrap; }
	.extras__price::before { content: "·"; margin-right: .35em; color: var(--dorado); font-weight: 700; }
	.extras__note { margin-top: 2px; font-size: .88rem; font-style: italic; color: var(--texto-suave); }
	/* «Confeccionado a tu medida»: ficha informativa en su propia línea (no es un botón) */
	.product__made { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 16px; border: 1px solid var(--linea); border-radius: 10px; background: var(--superficie); box-shadow: 0 1px 2px rgba(15, 45, 33, .05); }
	.product__made .icon { flex: none; width: 24px; height: 24px; color: var(--dorado); }
	.product__made p { margin: 0; font-size: .95rem; font-style: italic; color: var(--texto); }
	.product__made small { display: block; margin-top: 2px; font-size: .85rem; font-style: normal; color: var(--texto-suave); }
	/* «Cómo es el encargo» (abre la ventana) y «Guía de medidas»: caja marfil con dos mitades separadas por una línea vertical */
	.product__help { display: flex; align-items: stretch; margin-top: 10px; border: 1px solid var(--linea); border-radius: 10px; background: var(--superficie); box-shadow: 0 1px 2px rgba(15, 45, 33, .05); }
	.product__help > * { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; background: none; font: inherit; font-size: .95rem; font-style: italic; color: var(--texto); text-align: left; text-decoration: none; cursor: pointer; }
	.product__help > :first-child { border-radius: 9px 0 0 9px; }
	.product__help > :last-child { border-left: 1px solid var(--linea); border-radius: 0 9px 9px 0; }
	.product__help > *:hover { background: rgba(180, 154, 98, .1); }
	.product__help > *:focus-visible { outline: 2px solid var(--burdeos); outline-offset: -2px; }
	.product__help > * > span { flex: 1 1 auto; }
	.product__help .icon { flex: none; width: 22px; height: 22px; color: var(--dorado); }
	.product__help .product__help-arrow { width: 14px; height: 14px; margin-left: -4px; color: var(--burdeos); transition: transform .15s; }
	.product__help > *:hover .product__help-arrow { transform: translateX(2px); }
	/* Móvil: sin «Personalizado ·», que no cabe en la ficha */
	@media (max-width: 767px) { .product__made-extra { display: none; } }
	/* Muy estrecho: una mitad encima de la otra */
	@media (max-width: 419px) { .product__help { flex-direction: column; } .product__help > :first-child { border-radius: 9px 9px 0 0; } .product__help > :last-child { border-left: 0; border-top: 1px solid var(--linea); border-radius: 0 0 9px 9px; } }
	/* Precio bajo el título */
	.product__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-block: 16px .5em; font-size: clamp(1.6rem, 4.5vw, 2rem); line-height: 1.1; }
	.product__price .badge { position: static; align-self: center; }
	.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
	.product__actions .btn--primary { grid-column: 1 / -1; }
	.product__ship { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .82rem; color: var(--texto-suave); }
	.product__ship .icon { width: 20px; height: 20px; color: var(--dorado); }

	/* Consulta: panel marfil a todo el ancho, debajo de foto + información */
	.request-wrap { padding-block: 40px 8px; }
	.request { padding: 16px; background: #FBF7EC; border: 1px solid rgba(180, 154, 98, .55); border-radius: var(--radius); }
	@media (min-width: 768px) { .request { max-width: 86%; margin-inline: auto; padding: 22px 24px; } }
	.request h2 { margin-bottom: 12px; font-size: 1.3rem; color: var(--texto); }
	.request .field { margin-bottom: 10px; }
	.request .input::placeholder { color: #7A8C82; opacity: 1; }
	.request textarea.input { min-height: 96px; }
	@media (min-width: 768px) { .request__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
	.request__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
	.request__hint { font-size: .82rem; font-style: italic; color: var(--texto-suave); }
	.request__legal { margin: 2px 0 0; font-size: .78rem; }
	.request__legal a { color: var(--texto-suave); }
	@media (max-width: 479px) { .request .btn { width: 100%; } }
	/* En /contactar va en su columna, a todo su ancho */
	.request.request--page { max-width: none; margin: 0; }
	.request--page h3 { margin-bottom: 12px; font-size: 1.2rem; color: var(--texto); }
	@media (min-width: 768px) { .request__row--2 { grid-template-columns: 1fr 1fr; } }
	@media (min-width: 1024px) { .request--page { padding: 26px 28px; } }

	.related { padding-block: 48px 48px; }
	/* Vistos recientemente (js/site.js, apartado 11): solo filas completas (2 en móvil, 3 en tablet, hasta 4 en ordenador) */
	.recent[hidden] { display: none; }
	.related.recent { padding-top: 0; }
	@media (max-width: 639px) { .recent .pgrid > :nth-child(3):last-child { display: none; } }
	@media (min-width: 640px) and (max-width: 1023px) { .recent .pgrid > :nth-child(4) { display: none; } }

	.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linea); box-shadow: 0 -6px 18px rgba(0, 0, 0, .1); transform: translateY(110%); transition: transform .25s ease; }
	.sticky-cta.is-visible { transform: none; }
	.sticky-cta.is-visible.is-off { transform: translateY(110%); }
	.sticky-cta__text { flex: 1; min-width: 0; line-height: 1.25; }
	.sticky-cta__text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: .95rem; }
	.sticky-cta .btn { flex: none; padding-inline: 16px; }
	@media (min-width: 768px) { .sticky-cta { display: none; } }
	body:has(.sticky-cta.is-visible) .site-footer { padding-bottom: 72px; }
	@media (min-width: 768px) { body:has(.sticky-cta.is-visible) .site-footer { padding-bottom: 0; } }

	/* ---- A medida */
	.measure-tabs { display: grid; gap: 32px; max-width: 900px; margin-inline: auto; }
	.measure-tabs.is-tabbed { gap: 24px; }
	.tabs { display: flex; justify-content: center; gap: 4px; justify-self: center; padding: 4px; border: 1.5px solid var(--oro); border-radius: 999px; background: var(--superficie); }
	.tabs [role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; padding: 9px 22px; border: 0; border-radius: 999px; background: none; color: var(--verde); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
	.tabs [role="tab"] .icon { width: 18px; height: 18px; margin-left: -4px; color: var(--dorado); }
	.tabs [role="tab"]:hover { background: var(--marfil); }
	.tabs [role="tab"][aria-selected="true"] { background: var(--verde); color: #fff; }
	.tabs [role="tab"][aria-selected="true"] .icon { color: var(--oro); }
	.tabs [role="tab"]:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
	.measure { display: grid; gap: 16px; align-items: start; }
	.measure h3 { font-size: 1.3rem; color: var(--texto); }
	.is-tabbed .measure h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	@media (min-width: 640px) {
		.measure { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: 40px; }
		.measure h3 { grid-column: 1 / -1; }
	}
	.measure__img { border-radius: var(--radius); border: 1.5px solid var(--oro); background: #fff; box-shadow: 0 5px 12px -4px rgba(38, 53, 44, .35); }
	.measure__img img { width: 100%; max-width: 380px; margin-inline: auto; }
	.measure ol { display: grid; gap: 0; counter-reset: m; }
	.measure li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linea); font-size: .95rem; }
	.measure li::before { counter-increment: m; content: counter(m); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--verde); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; padding-top: .09em; box-sizing: border-box; }
	/* padding-top: las cifras de Inter quedan por encima del centro de la línea; así se ven centradas en el círculo */
	.steps--long .steps__list p { font-size: 1rem; }
	/* «A medida»: seis pasos en dos filas de tres */
	@media (min-width: 768px) {
		.steps--long .steps__list { row-gap: 28px; }
		.steps--long .steps__list li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
	}
	.custom-list { display: grid; gap: 10px; max-width: 60ch; }
	.custom-list li { display: flex; gap: 10px; }
	.custom-list .icon { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--dorado); }

	/* ---- Eventos */
	.events-grid { display: grid; gap: 28px; margin-bottom: 48px; }
	.event-back { margin-bottom: 48px; }
	.event-card { display: grid; text-decoration: none; background: var(--superficie); border: 1.5px solid var(--oro); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 16px -4px rgba(38, 53, 44, .4); transition: box-shadow .2s, transform .2s; }
	.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
	.event-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
	.event-card__body { padding: 18px 20px 22px; }
	.event-card__meta, .event-meta { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--burdeos); }
	.event-card h2 { margin: 4px 0 8px; font-size: 1.3rem; color: var(--texto); }
	.event-card p { color: var(--texto-suave); }
	/* Las fotos de eventos miden 540 px de ancho: a partir de 640 px la tarjeta es horizontal (foto vertical de 300 px y el texto al lado) para no ampliarlas */
	@media (min-width: 640px) { .events-grid { gap: 32px; } .event-card { grid-template-columns: 300px 1fr; align-items: stretch; } .event-card img { height: auto; aspect-ratio: 2 / 3; } .event-card__body { align-self: center; } }
	@media (min-width: 1280px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
	.event-head { padding-block: 12px 8px; }
	.event-head h1 { margin: 6px 0 12px; color: var(--texto); }
	/* Título con Compartir al lado (ficha de evento; a la derecha del todo quedaría bajo la rama decorativa) */
	.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
	.title-row h1 { margin-bottom: 12px; }
	/* Móvil (sin rama decorativa): el icono a la derecha del título, en la misma línea */
	@media (max-width: 639px) { .title-row { flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; } }
	.event-head__actions { margin-top: 16px; }
	.album { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	@media (min-width: 640px) { .album { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
	@media (min-width: 1024px) { .album { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
	.album a { display: block; padding: 2px; background: var(--superficie); border: 1.5px solid var(--oro); border-radius: var(--radius); box-shadow: 0 5px 12px -4px rgba(38, 53, 44, .45); cursor: zoom-in; transition: box-shadow .2s, transform .2s; }
	.album a:hover { box-shadow: 0 10px 20px -4px rgba(38, 53, 44, .55); transform: translateY(-2px); }
	.album a:hover img { filter: saturate(1.18); }
	.album img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; transition: filter .25s ease, opacity .35s ease; }
	.videos { display: grid; gap: 20px; }
	@media (min-width: 768px) { .videos { grid-template-columns: repeat(2, 1fr); } .videos:has(> :only-child) { grid-template-columns: minmax(0, 1fr); } }
	.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--verde-900); }
	.video:has(> video) { aspect-ratio: 9 / 16; width: 100%; max-width: 360px; margin-inline: auto; }
	.video video, .video iframe, .video > button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
	.video > button { display: grid; place-items: center; padding: 0; background: center / cover no-repeat; }
	.video > button .icon { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--burdeos); color: #fff; }

	/* ---- Nosotros y contacto */
	.about { display: grid; gap: 20px; padding-block: 12px 8px; }
	.contact-section { padding-top: clamp(40px, 8vw, 72px); }
	.section--spaced { padding-bottom: clamp(48px, 9vw, 80px); }
	.about__sub { margin-bottom: .6em; font-size: 1.4rem; color: var(--verde); }
	.about__photo { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--oro); box-shadow: 0 8px 20px -6px rgba(38, 53, 44, .5); }
	@media (min-width: 768px) { .about { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } }
	.contact-grid { display: grid; gap: 20px; }
	@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; } }
	.contact-list { display: grid; gap: 4px 20px; }
	.contact-list .hours { display: block; }
	.contact-list .hours--sat::first-letter { text-transform: uppercase; }
	/* Móvil: el día y cada tramo en su propia línea (en una sola no caben) */
	@media (max-width: 559px) {
		.hours__day, .hours__time { display: block; }
		.hours__sep { display: none; }
		.hours + .hours { margin-top: 6px; }
	}
	/* Escritorio y tablet: «Dónde estamos» a la izquierda, teléfono y correo a la derecha y el horario debajo, a todo el ancho; en móvil, uno bajo otro */
	@media (min-width: 560px) {
		.contact-list { grid-template-columns: 1fr 1fr; grid-template-areas: "where phone" "where mail" "hours hours"; }
		.contact-list__where { grid-area: where; }
		.contact-list__phone { grid-area: phone; }
		.contact-list__mail { grid-area: mail; }
		.contact-list__hours { grid-area: hours; }
	}
	@media (min-width: 768px) and (max-width: 1023px) { .contact-list { grid-template-columns: 1fr; grid-template-areas: "where" "phone" "mail" "hours"; } }
	.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
	.contact-list .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--dorado); }
	.contact-list strong { display: block; font-family: var(--serif); color: var(--verde); }
	.contact-card .btn { margin-top: 12px; }
	.reviews { display: grid; gap: 16px; }
	@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
	@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
	.review { position: relative; display: grid; gap: 12px; align-content: space-between; }
	/* En móvil solo las primeras (business.reviews_limit.mobile); el resto, en tablet y ordenador */
	@media (max-width: 767px) { .review--extra { display: none; } }
	.review__source { position: absolute; top: 14px; right: 14px; color: var(--dorado); }
	.review__source .icon { width: 18px; height: 18px; }
	.review blockquote { padding-right: 22px; font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; color: var(--texto); }
	.review blockquote::before { content: "«"; color: var(--dorado); }
	.review blockquote::after { content: "»"; color: var(--dorado); }
	.review figcaption { font-size: .88rem; color: var(--texto-suave); }
	.review figcaption strong { display: block; color: var(--texto); }
	.reviews__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
	/* Reseñas al final de la portada: 3 en ordenador; 2 en tablet y móvil */
	@media (max-width: 1023px) { .home-reviews .review:nth-child(3) { display: none; } }
	.review footer strong { display: block; color: var(--texto); }
	.review a { color: var(--burdeos); }

	/* ---- Páginas legales y 404 */
	/* Adorno propio de cada página en la esquina de arriba a la derecha (imgs/web/hojas/legal-*.webp). En ordenador queda a la derecha
	   de la columna de lectura; en pantallas menores es más pequeño y la cabecera le reserva sitio para que no tape el texto */
	.legal { position: relative; isolation: isolate; padding-block: 12px 56px; --adorno: 104px; }
	.legal--compra { --legal-adorno: url("/imgs/web/hojas/legal-compra.webp"); }
	.legal--cookies { --legal-adorno: url("/imgs/web/hojas/legal-cookies.webp"); }
	.legal--privacidad { --legal-adorno: url("/imgs/web/hojas/legal-privacidad.webp"); }
	.legal::after { content: ""; position: absolute; z-index: -1; top: 0; right: var(--gutter); width: var(--adorno); aspect-ratio: 1; background: var(--legal-adorno) no-repeat right top / contain; opacity: .6; pointer-events: none; }
	.legal__head { min-height: var(--adorno); padding: 12px calc(var(--adorno) * .75) 0 0; }
	.legal h1 { margin-bottom: 28px; color: var(--texto); }
	.legal__body { font-size: 1.0625rem; line-height: 1.7; }
	.legal__body h2 { margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--linea); font-size: 1.3rem; }
	.legal__body .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
	.legal__body h3 { margin-top: 1.5em; font-size: 1.2rem; color: var(--texto); }
	.legal__body h3 + p, .legal__body h2 + p { margin-top: .4em; }
	.legal__body li + li { margin-top: .45em; }
	.legal__body li::marker { color: var(--oro); }
	.legal__body strong { color: var(--texto); font-weight: 600; }
	.legal__card { width: fit-content; padding: 14px 20px; background: var(--superficie); border: 1px solid var(--linea); border-left: 3px solid var(--oro); border-radius: var(--radius); line-height: 1.6; }
	.legal__lead { font-size: 1.15rem; color: var(--texto); }
	/* Política de cookies: recuadro para cambiar la elección y tabla (en móvil, cada fila es una tarjeta con sus etiquetas) */
	.consent-box { display: grid; gap: 12px; padding: 16px 20px; background: var(--superficie); border: 1px solid var(--linea); border-left: 3px solid var(--oro); border-radius: var(--radius); }
	.consent-box p { margin: 0; }
	.consent-box [data-consent-state] { color: var(--texto); font-weight: 600; }
	.consent-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
	.consent-box__note { font-size: .95rem; color: var(--texto-suave); }
	.cookie-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
	.cookie-table th, .cookie-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
	.cookie-table th { color: var(--texto); font-weight: 600; background: var(--superficie); }
	.cookie-table code { white-space: nowrap; }
	@media (max-width: 639px) {
		.cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
		.cookie-table tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--linea); }
		.cookie-table td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; padding: 4px 0; border: 0; }
		.cookie-table td::before { content: attr(data-label); color: var(--texto); font-weight: 600; }
	}
	/* Primer tramo: en ordenador, la rama de la esquina (la misma del ::after) pasa a su columna y acompaña al texto al bajar */
	.legal__fig--rama { display: none; }
	/* Segundo tramo: ilustración propia (legal-*-2.webp). En móvil, centrada entre los dos tramos; en ordenador, el texto pasa a la derecha
	   y la ilustración queda a la izquierda, fija mientras se lee ese tramo */
	.legal__part--b { margin-top: 44px; }
	.legal__fig { width: min(210px, 62%); margin: 0 auto 28px; }
	.legal__fig img { width: 100%; height: auto; }
	@media (min-width: 1024px) {
		.legal__part--b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch); gap: 56px; align-items: start; margin-top: 72px; }
		.legal__part--b .legal__fig { position: sticky; top: calc(var(--header-h) + 48px); width: min(360px, 100%); margin: 0 auto; }
		.legal::after { display: none; }
		.legal__part--a { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 1fr); gap: 56px; align-items: start; }
		.legal__fig--rama { display: block; position: sticky; top: calc(var(--header-h) + 48px); width: min(var(--adorno), 100%); margin: -110px 0 0 auto; opacity: .85; }
	}
	@media (min-width: 640px) { .legal { --adorno: 170px; } .legal::after { opacity: .7; } .legal__head { min-height: calc(var(--adorno) * .72); } }
	@media (min-width: 1024px) {
		.legal { --adorno: 300px; }
		.legal::after { opacity: .85; }
		.legal__head { min-height: 0; padding-right: 0; }
	}
	@media (min-width: 1280px) { .legal { --adorno: 360px; } }
	.not-found { padding-block: 32px 48px; text-align: center; }
	.not-found h1 { margin-inline: auto; color: var(--texto); }
	.not-found p { max-width: 46ch; margin: 12px auto 0; color: var(--texto-suave); }
	.not-found .header-search { display: flex; max-width: 420px; margin: 24px auto 0; }
	.not-found .header-search input { flex: 1; width: auto; min-width: 0; }
	.not-found .cat-grid { margin-top: 36px; text-align: left; }
	.not-found .section-cta { margin-top: 32px; }
}

/* ------------------------------------------------------------------ utilities */
@layer utilities {
	.text-center { text-align: center; }
	[hidden] { display: none !important; }
}
