/* ==========================================================================
   Samurai Base · estilos
   Diseño mixto: cabecera, bandas de título, portada y pie en tinta oscura;
   los textos se leen sobre papel washi. Acento: rojo laca.
   Los colores y las fuentes se cambian aquí arriba, en las variables.
   ========================================================================== */

/* ---------- Fuentes (alojadas en el tema; licencia OFL) ---------- */

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-700-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables ---------- */

:root {
	/* Papel (zonas de lectura) */
	--papel: #f5f0e6;
	--papel-2: #ebe3d3;
	--blanco: #fffdf8;
	--linea: #ddd3c1;
	/* Tinta (zonas oscuras) */
	--tinta: #161412;
	--tinta-2: #211e1b;
	--tinta-3: #2e2a26;
	/* Texto */
	--texto: #1d1a17;
	--texto-2: #4f4841;
	--gris: #6b6258; /* Contraste AA (4,5:1) sobre papel y blanco. */
	--claro: #f3ece0;
	--claro-2: #b9afa2;
	/* Acentos */
	--rojo: #a3241b;
	--rojo-2: #7d1a13;
	--rojo-claro: #e3998f;
	--oro: #c8a45c;

	--fuente-titulos: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--fuente-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fuente-jp: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS Mincho", serif;

	--ancho: 1200px;
	--ancho-texto: 720px;
	--radio: 6px;
	--hueco: clamp(1rem, 4vw, 2rem);
	--sombra: 0 10px 30px rgba(22, 20, 18, .08);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--papel);
	color: var(--texto);
	font-family: var(--fuente-texto);
	font-size: 1.0625rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rojo); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rojo-2); }
h1, h2, h3, h4 {
	font-family: var(--fuente-titulos);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 .5em;
	text-wrap: balance;
	letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rojo-claro); outline-offset: 2px; }
[lang="ja"] { font-family: var(--fuente-jp); }
.kanji { display: block; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.saltar { position: absolute; left: -999px; top: 0; background: var(--rojo); color: #fff; padding: .5rem 1rem; z-index: 100; }
.saltar:focus { left: 0; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--hueco); }

.antetitulo {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--rojo); margin-bottom: .75rem;
}
.antetitulo::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.japones { font-size: 1.35rem; color: var(--texto-2); margin: 0 0 1rem; letter-spacing: .08em; }
.seccion-titulo { font-family: var(--fuente-titulos); font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 0 0 .75rem; }

.boton {
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--rojo); color: #fff;
	font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; line-height: 1.2;
	padding: .9rem 1.5rem; border: 2px solid var(--rojo); border-radius: var(--radio); cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.boton:hover { background: var(--rojo-2); border-color: var(--rojo-2); color: #fff; }
.boton--secundario { background: transparent; color: var(--texto); border-color: var(--texto); }
.boton--secundario:hover { background: var(--texto); border-color: var(--texto); color: var(--blanco); }

/* ---------- Cabecera ---------- */

.cabecera { background: var(--tinta); color: var(--claro); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--tinta-3); }
.admin-bar .cabecera { top: 32px; }
@media (max-width: 782px) { .admin-bar .cabecera { top: 0; } }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.logo { color: inherit; text-decoration: none; display: inline-flex; align-items: center; flex-shrink: 0; }
.logo:hover { color: inherit; opacity: .9; }
.logo__img { width: 200px; height: auto; }
.logo__texto { font-family: var(--fuente-titulos); font-size: 1.6rem; font-weight: 700; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__lista, .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.nav a { color: var(--claro); text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .01em; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: var(--rojo); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: #fff; border-bottom-color: var(--rojo); }
.nav .sub-menu { display: none; }

.buscador input {
	font: inherit; font-size: .875rem; width: 10rem; padding: .5rem .8rem;
	border: 1px solid var(--tinta-3); border-radius: var(--radio); background: var(--tinta-2); color: var(--claro);
}
.buscador input::placeholder { color: var(--claro-2); }
.idiomas { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; text-transform: uppercase; font-size: .8rem; }

.menu-boton { display: none; background: none; border: 0; color: inherit; padding: .75rem .5rem; cursor: pointer; }
.menu-boton__icono, .menu-boton__icono::before, .menu-boton__icono::after {
	display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.menu-boton__icono::before, .menu-boton__icono::after { content: ""; position: absolute; }
.menu-boton__icono::before { top: -7px; }
.menu-boton__icono::after { top: 7px; }
.menu-boton[aria-expanded="true"] .menu-boton__icono { background: transparent; }
.menu-boton[aria-expanded="true"] .menu-boton__icono::before { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded="true"] .menu-boton__icono::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.menu-boton { display: block; }
	.logo__img { width: 170px; }
	.nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 1rem;
		background: var(--tinta); padding: .5rem var(--hueco) 1.5rem; border-top: 1px solid var(--tinta-3);
		box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
	}
	.nav.abierto { display: flex; }
	.nav__lista, .nav ul { flex-direction: column; gap: 0; }
	.nav a { display: block; padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--tinta-3); }
	.nav a:hover { border-bottom-color: var(--tinta-3); color: var(--rojo-claro); }
	.buscador input { width: 100%; padding: .75rem 1rem; }
}

/* ---------- Banda (cabecera oscura de cada página) ---------- */

.banda {
	position: relative; overflow: hidden;
	background: var(--tinta); color: var(--claro);
	border-bottom: 3px solid var(--rojo);
}
.banda__contenido { position: relative; padding-top: clamp(1.25rem, 3vw, 2rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.banda__kanji {
	position: absolute; right: max(-4rem, calc((100vw - var(--ancho)) / 2 - 4rem)); top: 50%; transform: translateY(-50%);
	width: clamp(16rem, 34vw, 26rem); color: var(--claro); opacity: .045; pointer-events: none;
}
.banda__titulo { color: #fff; max-width: 20ch; margin-bottom: .35rem; }
.banda .antetitulo { color: var(--rojo-claro); }
.banda .japones { color: var(--claro-2); }
.banda__intro { max-width: 62ch; font-size: 1.125rem; color: var(--claro-2); margin-top: 1rem; }
.banda__intro p:last-child { margin: 0; }
.banda__fecha { font-size: .875rem; color: var(--claro-2); margin: .75rem 0 0; }

/* ---------- Migas ---------- */

.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); padding: 0; font-size: .8rem; color: var(--claro-2); }
.migas li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.migas a { color: var(--claro-2); text-decoration: none; }
.migas a:hover { color: #fff; }
.migas [aria-current] { color: var(--claro); }

/* ---------- Portada ---------- */

.hero { position: relative; overflow: hidden; background: var(--tinta); color: var(--claro); border-bottom: 3px solid var(--rojo); }
.hero__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero__kanji {
	position: absolute; right: max(-3rem, calc((100vw - var(--ancho)) / 2 - 3rem)); top: 50%; transform: translateY(-50%);
	width: clamp(18rem, 44vw, 36rem); color: var(--claro); opacity: .06; pointer-events: none;
}
.hero__contenido { position: relative; padding-top: clamp(4rem, 12vw, 9rem); padding-bottom: clamp(4rem, 12vw, 9rem); }
.hero__titulo { color: #fff; max-width: 15ch; font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1.02; }
.hero__texto { max-width: 50ch; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--claro-2); margin-bottom: 2rem; }
.hero .antetitulo { color: var(--rojo-claro); }

.bloque { padding-top: clamp(3rem, 7vw, 5rem); }
.bloque:last-of-type { padding-bottom: clamp(3rem, 7vw, 5rem); }
.bloque > h2 { margin-bottom: 1.5rem; }

.secciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.seccion {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 1.1rem;
	padding: 1.5rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
	color: var(--texto); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.seccion:hover { color: var(--texto); transform: translateY(-2px); box-shadow: var(--sombra); border-color: var(--rojo); }
.seccion__sello {
	grid-row: 1 / 4; width: 3.25rem; height: 3.25rem; border-radius: 6px; background: var(--rojo); color: var(--blanco);
	display: grid; place-items: center; padding: .55rem; box-shadow: inset 0 0 0 3px var(--rojo), inset 0 0 0 4px rgba(255, 253, 248, .45);
}
.seccion__sello .kanji { width: 100%; height: 100%; }
.seccion__nombre { font-family: var(--fuente-titulos); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.seccion__texto { color: var(--texto-2); font-size: .925rem; line-height: 1.55; margin-top: .25rem; }
.seccion__total { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-top: .6rem; }

/* ---------- Tarjetas y rejillas ---------- */

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2rem 1.5rem; }
.rejilla--pequena { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1.25rem 1rem; }

.tarjeta { display: flex; flex-direction: column; }
.tarjeta__enlace { color: var(--texto); text-decoration: none; }
.tarjeta__enlace:hover { color: var(--rojo); }
.tarjeta__img {
	width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radio);
	margin-bottom: .9rem; background: var(--papel-2); transition: transform .3s;
}
.tarjeta__enlace:hover .tarjeta__img { transform: scale(1.015); }
.tarjeta__img--vacia { display: grid; place-items: center; background: var(--tinta); color: var(--claro); }
.tarjeta__img--vacia .kanji { width: 34%; opacity: .16; }
.tarjeta__enlace:hover .tarjeta__img--vacia .kanji { opacity: .3; color: var(--rojo-claro); }
.tarjeta__titulo { font-size: 1.35rem; margin: 0 0 .1rem; }
.tarjeta__japones { font-size: .95rem; color: var(--gris); margin: 0 0 .35rem; }
.tarjeta__resumen { font-size: .925rem; color: var(--texto-2); line-height: 1.6; margin: 0; }

/* ---------- Listados ---------- */

.listado { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.listado__vacio { color: var(--gris); font-style: italic; }
.listado .buscador { margin-bottom: 2rem; }
.listado .buscador input { width: 100%; max-width: 420px; background: var(--blanco); color: var(--texto); border-color: var(--linea); padding: .75rem 1rem; }

.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.nav-links .page-numbers {
	min-width: 2.75rem; padding: .55rem .9rem; text-align: center; border: 1px solid var(--linea); border-radius: var(--radio);
	text-decoration: none; color: var(--texto); background: var(--blanco); font-size: .9rem;
}
.nav-links .page-numbers:hover { border-color: var(--rojo); color: var(--rojo); }
.nav-links .current { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }

.glosario__indice {
	display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; position: sticky; top: 72px; z-index: 5;
	background: var(--papel); padding: .9rem 0; border-bottom: 1px solid var(--linea);
}
.admin-bar .glosario__indice { top: 104px; }
.glosario__indice a {
	display: grid; place-items: center; width: 2.4rem; height: 2.4rem; font-family: var(--fuente-titulos); font-size: 1.15rem;
	border: 1px solid var(--linea); border-radius: var(--radio); text-decoration: none; font-weight: 700; color: var(--texto); background: var(--blanco);
}
.glosario__indice a:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.glosario__letra { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; border-bottom: 1px solid var(--linea); padding: 1.75rem 0; scroll-margin-top: 150px; }
.glosario__marca { font-family: var(--fuente-titulos); font-size: 3rem; line-height: .9; color: var(--rojo); margin: 0; }
.glosario dl { margin: 0; display: grid; gap: 1.25rem; }
.glosario dt { font-family: var(--fuente-titulos); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.glosario dt a { color: var(--texto); text-decoration: none; }
.glosario dt a:hover { color: var(--rojo); }
.glosario dt span { font-family: var(--fuente-jp); font-size: 1rem; font-weight: 400; color: var(--gris); margin-left: .6rem; }
.glosario dd { margin: .2rem 0 0; color: var(--texto-2); font-size: .95rem; }

/* ---------- Fichas ---------- */

.ficha__cuerpo { max-width: calc(var(--ancho-texto) + 2 * var(--hueco)); padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.ficha__cuerpo--lateral {
	max-width: var(--ancho); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.ficha__cuerpo--lateral .ficha__principal { max-width: var(--ancho-texto); }
.ficha__lateral { position: sticky; top: 96px; margin-top: calc(-1 * clamp(4rem, 9vw, 6.5rem)); }
.admin-bar .ficha__lateral { top: 128px; }
.ficha__imagen { margin: 0 0 2rem; }
.ficha__imagen img { border-radius: var(--radio); }
/* Las imágenes verticales no deben empujar el texto fuera de la pantalla. */
.ficha__imagen img { display: block; width: auto; max-height: min(70vh, 640px); margin-inline: auto; }
.ficha__imagen figcaption { text-align: center; }

@media (max-width: 900px) {
	.ficha__cuerpo--lateral { grid-template-columns: 1fr; }
	.ficha__lateral { position: static; order: -1; margin-top: 0; }
}

.datos { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.datos__imagen { margin: 0; background: var(--tinta); }
.datos__imagen img { width: 100%; }
.datos__leyenda, .ficha__imagen figcaption { font-size: .72rem; line-height: 1.45; color: var(--gris); padding: .6rem 1.25rem 0; }
.datos__imagen .datos__leyenda { background: var(--blanco); }
.ficha__imagen figcaption { padding: .6rem 0 0; }
.datos__imagen--mon { padding: 2rem; background: var(--papel-2); }
.datos__imagen--mon img { max-width: 150px; margin: 0 auto; }
.datos__lista { margin: 0; padding: .5rem 1.25rem 1rem; }
.datos__fila { display: grid; grid-template-columns: 7rem 1fr; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--papel-2); font-size: .9rem; line-height: 1.5; }
.datos__fila:last-child { border-bottom: 0; }
.datos dt { color: var(--gris); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .15rem; }
.datos dd { margin: 0; }

.resumen { background: var(--blanco); border-left: 4px solid var(--rojo); padding: 1.35rem 1.6rem; margin-bottom: 2.25rem; border-radius: 0 var(--radio) var(--radio) 0; box-shadow: var(--sombra); }
.resumen__titulo { font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rojo); margin-bottom: .4rem; }
.resumen p:last-child { margin: 0; }

.cita { margin: 0 0 2.25rem; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--texto); }
.cita blockquote { margin: 0; font-family: var(--fuente-titulos); font-size: 1.6rem; font-style: italic; font-weight: 600; line-height: 1.35; }
.cita figcaption { font-size: .85rem; color: var(--gris); margin-top: .6rem; }
.cita figcaption::before { content: "— "; }

/* Texto largo escrito en el editor */
.texto { font-size: 1.0625rem; }
.texto > * + h2 { margin-top: 2.75rem; }
.texto > * + h3 { margin-top: 2rem; }
.texto h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.texto ul, .texto ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.texto li + li { margin-top: .4em; }
.texto li::marker { color: var(--rojo); }
.texto img { border-radius: var(--radio); }
.texto figure, .texto .wp-caption { margin: 2.25rem 0; max-width: 100%; }
.texto figcaption, .texto .wp-caption-text { font-size: .85rem; color: var(--gris); margin-top: .6rem; }
.texto blockquote { margin: 2.25rem 0; padding-left: 1.5rem; border-left: 2px solid var(--rojo); font-family: var(--fuente-titulos); font-size: 1.45rem; font-style: italic; font-weight: 600; line-height: 1.4; }
.texto table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .95rem; }
.texto th, .texto td { border-bottom: 1px solid var(--linea); padding: .65rem .5rem; text-align: left; }
.texto th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
/* En el móvil, las tablas anchas se desplazan en horizontal en vez de apretarse. */
@media (max-width: 640px) {
	.texto table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.texto th, .texto td { min-width: 8rem; }
	.texto td:first-child, .texto th:first-child { min-width: 6.5rem; }
}
.texto .alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.texto .alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.texto .aligncenter { margin-left: auto; margin-right: auto; }

.relacionados, .faq, .fuentes, .productos { margin-top: 3.5rem; }
.relacionados h2, .faq h2 { font-size: clamp(1.6rem, 3vw, 2rem); }

.faq__item { border-bottom: 1px solid var(--linea); }
.faq__item:first-of-type { border-top: 1px solid var(--linea); }
.faq__item summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.6rem; font-weight: 300; color: var(--rojo); }
.faq__item[open] summary::after { content: "−"; }
.faq__respuesta { padding-bottom: 1.1rem; color: var(--texto-2); }

.fuentes { padding-top: 1.5rem; border-top: 1px solid var(--linea); }
.fuentes .seccion-titulo { font-size: 1.15rem; }
.fuentes ol { font-size: .875rem; color: var(--texto-2); padding-left: 1.25rem; margin: 0; }

/* ---------- Afiliados y anuncios ---------- */

.productos__aviso { font-size: .8rem; color: var(--gris); }
.productos__lista { display: grid; gap: 1rem; }
.producto {
	display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding: 1.5rem;
	background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra);
}
.producto__img img { border-radius: var(--radio); }
.producto__titulo { font-family: var(--fuente-titulos); font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-bottom: .3rem; }
.producto__valoracion { color: var(--oro); font-size: .9rem; margin-bottom: .6rem; }
.producto__valoracion span { letter-spacing: .12em; margin-right: .35rem; }
.producto ul { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .925rem; }
.producto__pros li::before { content: "✓ "; color: #2f7a3b; font-weight: 700; }
.producto__contras li::before { content: "✗ "; color: var(--rojo); font-weight: 700; }
.producto__pie { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0; }
.producto__precio { font-weight: 700; }
@media (max-width: 600px) { .producto { grid-template-columns: 1fr; } }

.anuncio { margin: 2.5rem 0; min-height: 280px; text-align: center; }
.anuncio__etiqueta { display: block; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: .35rem; }

/* ---------- Páginas ---------- */

.pagina { max-width: calc(var(--ancho-texto) + 2 * var(--hueco)); padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.pagina--legal .texto { font-size: .95rem; }
.pagina--404 { text-align: center; padding-top: 5rem; }
.pagina--404 .japones { font-size: 4.5rem; color: var(--rojo); }
.pagina--404 .buscador input { width: 100%; max-width: 380px; margin: 0 auto 1.75rem; background: var(--blanco); color: var(--texto); border-color: var(--linea); padding: .8rem 1rem; display: block; }

/* ---------- Formulario ---------- */

.formulario { margin-top: 2rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: var(--sombra); }
.formulario label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.formulario input[type="text"], .formulario input[type="email"], .formulario textarea {
	width: 100%; font: inherit; padding: .8rem .95rem; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--papel);
}
.formulario input:focus, .formulario textarea:focus { outline: 2px solid var(--rojo); outline-offset: 0; border-color: var(--rojo); }
.formulario__check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.formulario__check input { margin-top: .4rem; accent-color: var(--rojo); }
.formulario__info { font-size: .85rem; color: var(--texto-2); margin-bottom: 1.25rem; }
.formulario__info summary { cursor: pointer; }
.formulario__info dl { display: grid; grid-template-columns: 8rem 1fr; gap: .25rem 1rem; margin: .75rem 0 0; }
.formulario__info dd { margin: 0; }
.formulario__trampa { position: absolute; left: -9999px; }
.formulario__aviso { padding: .9rem 1.1rem; border-radius: var(--radio); font-weight: 600; }
.formulario__aviso--ok { background: #e3f1e5; color: #1f5a2a; }
.formulario__aviso--error { background: #f8e1de; color: var(--rojo-2); }

/* ---------- Pie ---------- */

.pie { background: var(--tinta); color: var(--claro-2); font-size: .925rem; border-top: 3px solid var(--rojo); }
.pie a { color: var(--claro-2); text-decoration: none; }
.pie a:hover { color: #fff; }
.pie__rejilla { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
.pie .logo { margin-bottom: 1.25rem; }
.pie .logo__img { width: 180px; }
.pie__marca p { max-width: 38ch; }
.pie__titulo { color: #fff; font-family: var(--fuente-titulos); font-size: 1.25rem; font-weight: 700; margin-bottom: .9rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pie__redes { display: flex !important; flex-wrap: wrap; gap: 1rem !important; margin-top: 1rem !important; }
.pie__cookies { background: none; border: 0; padding: 0; margin-top: .5rem; font: inherit; color: var(--claro-2); cursor: pointer; text-align: left; }
.pie__cookies:hover { color: #fff; }
.pie__legal { border-top: 1px solid var(--tinta-3); padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .8rem; }
.pie__legal p { margin: 0; }
@media (max-width: 760px) { .pie__rejilla { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; } }

/* ---------- Aviso de cookies ---------- */

.cookies {
	position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 660px; margin: 0 auto;
	background: var(--tinta-2); color: var(--claro); border: 1px solid var(--tinta-3); border-top: 3px solid var(--rojo); border-radius: var(--radio);
	box-shadow: 0 16px 48px rgba(0, 0, 0, .35); padding: 1.25rem 1.5rem;
	display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookies[hidden] { display: none; }
.cookies a { color: var(--rojo-claro); }
.cookies__texto { margin: 0; font-size: .925rem; flex: 1 1 280px; }
.cookies__botones { display: flex; gap: .5rem; }
.cookies .boton { padding: .7rem 1.15rem; background: transparent; color: var(--claro); border-color: var(--claro-2); }
.cookies .boton:hover { background: var(--claro); color: var(--tinta); border-color: var(--claro); }

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