/*
Theme Name: NuffleZone
Theme URI: https://nufflezone.com/
Author: NuffleZone
Description: Tema ligero a medida para NuffleZone.com. Rojo, azul y blanco, sin constructores, trilingüe con Polylang.
Version: 1.0.28
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: nufflezone
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
/* Fuente de títulos "bloodbowl" (antes la cargaba el plugin Use Any Font) — v1.0.23 */
@font-face {
	font-family: "bloodbowl";
	src: url("../../uploads/nz-fonts/bloodbowl.woff2") format("woff2"),
	     url("../../uploads/nz-fonts/bloodbowl.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: optional; /* sin salto de diseño: si la fuente no llega a tiempo se usa la de respaldo */
}
/* Clase que daba el plugin Use Any Font: se conserva por si algún contenido la usa */
.bloodbowl { font-family: "bloodbowl", "Arial Black", Impact, sans-serif !important; }

:root {
	--nz-red: #d0021b;
	--nz-red-dark: #a00115;
	--nz-blue: #0a2463;
	--nz-blue-dark: #061638;
	--nz-white: #ffffff;
	--nz-ink: #14171f;
	--nz-muted: #5b6475;
	--nz-bg: #ffffff;
	--nz-soft: #f2f4f8;
	--nz-line: #dfe3ec;

	--nz-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--nz-font-head: "bloodbowl", "Arial Black", "Segoe UI Black", Impact, sans-serif;

	--nz-wrap: 1200px;
	--nz-radius: 10px;
	--nz-shadow: 0 6px 20px rgba(10, 36, 99, .12);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--nz-bg);
	color: var(--nz-ink);
	font-family: var(--nz-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--nz-red); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--nz-blue); }

h1, h2, h3, h4, h5, h6 {
	color: var(--nz-blue);
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 1.6em 0 .6em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p, ul, ol, table, figure, blockquote { margin: 0 0 1.2em; }

hr { border: 0; border-top: 3px solid var(--nz-red); margin: 2em 0; }

blockquote {
	border-left: 6px solid var(--nz-red);
	background: var(--nz-soft);
	padding: 1em 1.2em;
	font-style: italic;
}

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

.nz-wrap { width: 100%; max-width: var(--nz-wrap); margin: 0 auto; padding: 0 20px; }

.nz-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--nz-red); color: #fff; padding: .6em 1em; font-weight: 700;
}
.nz-skip:focus { left: 10px; top: 10px; color: #fff; }

/* ==========================================================================
   3. Cabecera y menú
   ========================================================================== */
.nz-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--nz-blue);
	color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.admin-bar .nz-header { top: 32px; }

.nz-header__inner {
	display: flex; align-items: center; gap: 20px;
	min-height: 72px;
}

/* Franja roja-blanca-roja tipo campo de juego */
.nz-stripe {
	height: 6px;
	background: linear-gradient(to bottom, var(--nz-red) 0 2px, #fff 2px 4px, var(--nz-red) 4px 6px);
}

.nz-brand {
	display: flex; align-items: center; gap: 10px;
	color: #fff; text-decoration: none; flex-shrink: 0;
}
.nz-brand:hover, .nz-brand:focus { color: #fff; }
.nz-brand__logo { width: auto; height: 56px; }
.nz-brand__name {
	font-family: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.55rem; font-weight: 900; font-style: italic; text-transform: uppercase;
	letter-spacing: .01em; line-height: 1; color: #fff; white-space: nowrap;
	text-shadow: 2px 2px 0 var(--nz-blue-dark);
}
.nz-brand__accent { color: var(--nz-red); text-shadow: 2px 2px 0 #fff; }

.nz-nav { margin-left: auto; }

.nz-menu, .nz-menu ul { list-style: none; margin: 0; padding: 0; }

.nz-menu { display: flex; flex-wrap: nowrap; align-items: center; }
.nz-menu > li { position: relative; }
.nz-menu > li:hover, .nz-menu > li:focus-within { z-index: 20; }

.nz-menu a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	white-space: nowrap;
	padding: 26px 9px;
}
.nz-menu > li > a:hover,
.nz-menu > li > a:focus,
.nz-menu > .current-menu-item > a,
.nz-menu > .current-menu-ancestor > a {
	color: #fff;
	box-shadow: inset 0 -4px 0 var(--nz-red);
}

/* Selector de idioma de Polylang dentro del menú */
.nz-menu .lang-item img { vertical-align: middle; }

/* Submenús (escritorio) */
.nz-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff;
	border-top: 4px solid var(--nz-red);
	border-radius: 0 0 var(--nz-radius) var(--nz-radius);
	box-shadow: var(--nz-shadow);
	padding: 8px 0;
	z-index: 200;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nz-menu li:hover > .sub-menu,
.nz-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.nz-menu .sub-menu a {
	color: var(--nz-blue);
	padding: 8px 18px;
	font-size: .85rem;
	white-space: normal;
}
.nz-menu .sub-menu a:hover,
.nz-menu .sub-menu a:focus { background: var(--nz-soft); color: var(--nz-red); }

.nz-menu .sub-menu .sub-menu { top: 0; left: 100%; border-radius: var(--nz-radius); }

/* Menú grande en columnas (Equipos) */
.nz-menu .nz-mega > .sub-menu {
	display: grid;
	grid-template-columns: repeat(4, minmax(170px, 1fr));
	width: min(860px, 90vw);
	left: 50%; transform: translate(-50%, 6px);
}
.nz-menu .nz-mega:hover > .sub-menu,
.nz-menu .nz-mega:focus-within > .sub-menu { transform: translate(-50%, 0); }

.nz-burger, .nz-sub-toggle { display: none; }

/* ==========================================================================
   4. Contenido
   ========================================================================== */
.nz-main { padding: 32px 0 56px; min-height: 60vh; }

.nz-entry__header { margin-bottom: 1.5em; }
.nz-entry__title { margin-top: 0; }
.nz-entry__title::after {
	content: ""; display: block; width: 80px; height: 6px; margin-top: 12px;
	background: var(--nz-red);
}

.nz-meta { color: var(--nz-muted); font-size: .9rem; font-weight: 600; text-transform: uppercase; }
.nz-meta a { color: var(--nz-muted); }

.entry-content > * { max-width: 1150px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1200px; }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }

/* Tablas (rosters, habilidades…) */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
	display: block;
	overflow-x: auto;
}
.entry-content table th,
.entry-content table thead td {
	background: var(--nz-blue); color: #fff;
	text-transform: uppercase; font-weight: 800; font-size: .85rem;
}
.entry-content table th,
.entry-content table td { padding: 8px 10px; border: 1px solid var(--nz-line); text-align: left; }
.entry-content table tbody tr:nth-child(even) td { background: var(--nz-soft); }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { display: table; }

/* ==========================================================================
   Fichas de equipo (roster + estrellas) — v1.0.2
   ========================================================================== */
.nz-team-title {
	font-family: var(--nz-font-head);
	text-align: center;
	color: var(--nz-blue);
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	margin: .6em 0 .4em;
}
.nz-team-title::after {
	content: ""; display: block; width: 120px; height: 6px; margin: .35em auto 0;
	background: linear-gradient(to bottom, var(--nz-red) 0 2px, #fff 2px 4px, var(--nz-red) 4px 6px);
}
.nz-roster, .nz-stars {
	overflow-x: auto;
	margin: 1.5em 0;
	border-radius: var(--nz-radius);
	box-shadow: var(--nz-shadow);
	border-top: 4px solid var(--nz-red);
}
.entry-content .nz-roster table, .entry-content .nz-stars table {
	display: table; width: 100%; margin: 0; border: 0;
	border-collapse: separate; border-spacing: 0; font-size: .95rem;
}
.entry-content .nz-roster th, .entry-content .nz-stars th {
	background: var(--nz-blue) !important; color: #fff !important;
	border: 0 !important; border-bottom: 3px solid var(--nz-red) !important;
	padding: 12px 10px !important; font-size: .78rem !important;
	letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-align: center !important;
}
.entry-content .nz-roster td, .entry-content .nz-stars td {
	border: 0 !important; border-bottom: 1px solid var(--nz-line) !important;
	padding: 10px !important; vertical-align: middle; text-align: center !important;
	background: #fff !important; color: var(--nz-ink) !important; font-weight: 600;
}
.entry-content .nz-roster tbody tr:nth-child(even) td,
.entry-content .nz-stars tbody tr:nth-child(even) td { background: var(--nz-soft) !important; }
.entry-content .nz-roster tbody tr:hover td,
.entry-content .nz-stars tbody tr:hover td { background: #e6ebf5 !important; }
/* Columna Posición / Estrella y columna Habilidades a la izquierda */
.entry-content .nz-roster td:nth-child(2), .entry-content .nz-roster th:nth-child(2),
.entry-content .nz-roster td:nth-child(9), .entry-content .nz-roster th:nth-child(9),
.entry-content .nz-stars td:first-child, .entry-content .nz-stars th:first-child,
.entry-content .nz-stars td:last-child, .entry-content .nz-stars th:last-child { text-align: left !important; }
.entry-content .nz-roster td:nth-child(2),
.entry-content .nz-stars td:first-child { font-weight: 800; color: var(--nz-blue) !important; white-space: nowrap; }
.entry-content .nz-stars td:first-child a { color: var(--nz-blue); text-decoration: none; }
.entry-content .nz-stars td:first-child a:hover { color: var(--nz-red); }
.entry-content .nz-roster td:nth-child(3),
.entry-content .nz-stars td:nth-child(2) { color: var(--nz-red) !important; font-weight: 800; white-space: nowrap; }
.nz-roster .qty-badge {
	display: inline-block; min-width: 44px; padding: 2px 8px; border-radius: 4px;
	background: var(--nz-red) !important; color: #fff !important; font-weight: 800;
	white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
}
/* Habilidades como etiquetas */
.nz-roster td a, .nz-stars td:last-child a {
	display: inline-block; margin: 2px 3px 2px 0; padding: 1px 7px;
	border: 1px solid var(--nz-line); border-radius: 4px; background: #fff;
	color: var(--nz-blue) !important; font-size: .85rem; font-weight: 600;
	text-decoration: none; white-space: nowrap;
}
.nz-roster td a:hover, .nz-stars td:last-child a:hover {
	border-color: var(--nz-red); color: var(--nz-red) !important;
}
/* Caja de datos del equipo (relanzamientos, reglas, ligas) */
.nz-team-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
	margin: 0 0 1.6em; padding: 0; list-style: none;
}
.nz-team-facts li {
	margin: 0; padding: 12px 14px; background: var(--nz-soft);
	border-left: 5px solid var(--nz-red); border-radius: 0 var(--nz-radius) var(--nz-radius) 0;
}
.nz-team-facts strong { display: block; color: var(--nz-blue); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.nz-team-note { color: var(--nz-muted); font-size: .92rem; }
.entry-content h3.nz-strengths, .entry-content h3.nz-weaknesses { padding-left: 12px; }
.entry-content h3.nz-strengths { border-left: 6px solid var(--nz-blue); }
.entry-content h3.nz-weaknesses { border-left: 6px solid var(--nz-red); }

/* Botones */
.nz-btn,
.wp-block-button__link,
.entry-content input[type="submit"],
.entry-content button {
	display: inline-block;
	background: var(--nz-blue); color: #fff;
	border: 0; border-radius: 999px;
	padding: .7em 1.4em;
	font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
	text-decoration: none; cursor: pointer;
	transition: background .15s, transform .15s;
}
.nz-btn:hover, .nz-btn:focus,
.wp-block-button__link:hover, .wp-block-button__link:focus { background: var(--nz-red); color: #fff; transform: translateY(-1px); }
.nz-btn--red { background: var(--nz-red); }
.nz-btn--red:hover { background: var(--nz-blue); }

/* Formularios */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="number"], select, textarea {
	width: 100%; max-width: 100%;
	padding: .65em .8em;
	border: 2px solid var(--nz-line); border-radius: 8px;
	font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--nz-blue); outline: none; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-submit { background: var(--nz-red); color: #fff; border: 0; border-radius: 8px; padding: 0 1.2em; font-weight: 800; cursor: pointer; }

/* ==========================================================================
   5. Listados / tarjetas
   ========================================================================== */
.nz-archive__header { margin-bottom: 1.5em; }

.nz-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 0 0 2em;
}
.nz-card {
	background: #fff;
	border: 1px solid var(--nz-line);
	border-top: 5px solid var(--nz-red);
	border-radius: var(--nz-radius);
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.nz-card:hover { transform: translateY(-3px); box-shadow: var(--nz-shadow); }
.nz-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.nz-card__link:hover { color: inherit; }
.nz-card__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nz-card__body { padding: 16px 18px 20px; }
.nz-card__title { font-size: 1.1rem; margin: 0 0 .3em; }
.nz-card__date { color: var(--nz-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; margin: 0 0 .6em; }
.nz-card__excerpt { font-size: .95rem; margin: 0 0 .8em; }
.nz-card__more { color: var(--nz-red); font-weight: 800; font-size: .85rem; text-transform: uppercase; }

.nz-pagination .nav-links,
.nz-postnav .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 2em 0; }
.nz-pagination .page-numbers {
	display: inline-block; min-width: 42px; padding: .4em .8em; text-align: center;
	border: 2px solid var(--nz-blue); border-radius: 8px; font-weight: 800; text-decoration: none; color: var(--nz-blue);
}
.nz-pagination .page-numbers.current,
.nz-pagination .page-numbers:hover { background: var(--nz-blue); color: #fff; }

.nz-postnav .nav-links { justify-content: space-between; }
.nz-postnav a { font-weight: 700; text-decoration: none; }

.nz-empty { text-align: center; padding: 40px 0; }
.nz-empty .search-form { margin: 1.5em auto; }
.nz-empty .nz-entry__title::after { margin-left: auto; margin-right: auto; }

/* Comentarios */
.nz-comments { max-width: 900px; margin: 3em auto 0; padding-top: 2em; border-top: 3px solid var(--nz-soft); }
.nz-comments__list { list-style: none; padding: 0; }
.nz-comments__list .comment-body { background: var(--nz-soft); border-radius: var(--nz-radius); padding: 14px 18px; margin-bottom: 14px; }
.nz-comments__list .children { list-style: none; padding-left: 24px; }

/* ==========================================================================
   6. Contenido antiguo de Divi (temporal, ver inc/divi-fallback.php)
   ========================================================================== */
.nz-dv-section { margin: 0 0 2em; }
.nz-dv-row { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 1.5em; }
.nz-dv-col { flex: 1 1 100%; min-width: 0; }
.nz-dv-col-1_2 { flex-basis: calc(50% - 12px); }
.nz-dv-col-1_3 { flex-basis: calc(33.333% - 16px); }
.nz-dv-col-2_3 { flex-basis: calc(66.666% - 8px); }
.nz-dv-col-1_4 { flex-basis: calc(25% - 18px); }
.nz-dv-col-3_4 { flex-basis: calc(75% - 6px); }
.nz-dv-image { text-align: center; }
.nz-dv-image img { max-height: 300px; width: auto; }

/* ==========================================================================
   7. Pie
   ========================================================================== */
.nz-footer {
	background: var(--nz-blue-dark);
	color: #cfd6e6;
	border-top: 6px solid var(--nz-red);
	padding: 40px 0 24px;
	font-size: .9rem;
}
.nz-footer a { color: #fff; }
.nz-footer__support { text-align: center; margin-bottom: 28px; }
.nz-footer__title {
	font-family: var(--nz-font-head);
	color: #fff; font-size: 1.3rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
}
.nz-footer__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nz-footer .nz-btn { background: var(--nz-red); }
.nz-footer .nz-btn:hover { background: #fff; color: var(--nz-blue); }

.nz-footer__menu { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; margin: 0 0 24px; }
.nz-footer__menu a { text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.nz-footer__menu a:hover { color: var(--nz-red); }

.nz-footer__legal { text-align: center; max-width: 900px; margin: 0 auto; font-size: .78rem; line-height: 1.5; }
.nz-footer__copy { margin-top: 1em; font-weight: 700; color: #fff; }
.nz-footer__links { margin: 0 0 1em; font-size: .85rem; }
.nz-footer__links a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   8. Móvil
   ========================================================================== */
@media (max-width: 1024px) {
	.nz-header__inner { min-height: 64px; flex-wrap: wrap; }
	.nz-brand__logo { height: 46px; }
	.nz-brand__name { font-size: 1.2rem; }

	.nz-burger {
		display: inline-flex; align-items: center; gap: 8px;
		margin-left: auto;
		background: var(--nz-red); color: #fff; border: 0; border-radius: 8px;
		padding: 10px 14px; font-weight: 800; text-transform: uppercase; cursor: pointer;
	}
	.nz-burger__bars,
	.nz-burger__bars::before,
	.nz-burger__bars::after {
		display: block; width: 20px; height: 3px; background: #fff; border-radius: 2px; position: relative;
	}
	.nz-burger__bars::before, .nz-burger__bars::after { content: ""; position: absolute; left: 0; }
	.nz-burger__bars::before { top: -6px; }
	.nz-burger__bars::after { top: 6px; }

	.nz-nav {
		display: none;
		flex: 0 0 calc(100% + 40px);
		margin: 0 -20px;
		background: var(--nz-blue-dark);
		max-height: calc(100vh - 70px);
		overflow-y: auto;
	}
	.nz-nav.is-open { display: block; }

	.nz-menu { display: block; }
	.nz-menu > li { display: block; border-top: 1px solid rgba(255, 255, 255, .1); }
	.nz-menu li { position: relative; }
	.nz-menu a { padding: 14px 56px 14px 20px; }
	.nz-menu > li > a:hover, .nz-menu > li > a:focus { box-shadow: inset 4px 0 0 var(--nz-red); }

	.nz-sub-toggle {
		display: flex; align-items: center; justify-content: center;
		position: absolute; right: 0; top: 0; width: 52px; height: 50px;
		background: transparent; color: #fff; border: 0; font-size: 1.1rem; cursor: pointer;
	}
	.is-open > .nz-sub-toggle span { display: inline-block; transform: rotate(180deg); }

	.nz-menu .sub-menu,
	.nz-menu .nz-mega > .sub-menu {
		position: static; display: none; width: auto; min-width: 0;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 0;
		background: rgba(255, 255, 255, .05);
		padding: 0;
	}
	.nz-menu li:hover > .sub-menu,
	.nz-menu li:focus-within > .sub-menu { display: none; }
	.nz-menu li.is-open > .sub-menu { display: block; }
	.nz-menu .nz-mega.is-open > .sub-menu { display: grid; grid-template-columns: 1fr 1fr; }
	/* El desplazamiento -50% del menú grande de escritorio lo sacaba de la pantalla al tocarlo (v1.0.21) */
	.nz-menu .nz-mega:hover > .sub-menu,
	.nz-menu .nz-mega:focus-within > .sub-menu { transform: none; left: auto; }
	.nz-menu .sub-menu a { color: #fff; padding-left: 32px; }
	.nz-menu .sub-menu a:hover, .nz-menu .sub-menu a:focus { background: rgba(255, 255, 255, .08); color: #fff; }

	.nz-dv-col { flex-basis: 100% !important; }
}

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

@media (max-width: 600px) {
	body { font-size: 16px; }
	.nz-main { padding-top: 20px; }
	.nz-menu .nz-mega.is-open > .sub-menu { grid-template-columns: 1fr; }
	.admin-bar .nz-header { position: relative; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
.entry-content .nz-roster tr.nz-extra td:nth-child(2) {
	text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; padding-left: 24px !important;
}
.entry-content .nz-roster tr.nz-extra td { font-weight: 600; }

/* ==========================================================================
   Portada — v1.0.3
   ========================================================================== */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.nz-home { padding-top: 28px; }
.nz-hero {
	background: var(--nz-blue); border-radius: var(--nz-radius); overflow: hidden;
	box-shadow: var(--nz-shadow); border-top: 6px solid var(--nz-red); margin-bottom: 28px;
}
.nz-hero__link {
	display: grid; grid-template-columns: 1.3fr 1fr; color: #fff; text-decoration: none; min-height: 340px;
}
.nz-hero__link:hover { color: #fff; }
.nz-hero__img { background: var(--nz-blue-dark); }
.nz-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nz-hero__body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.nz-hero__label {
	align-self: flex-start; background: var(--nz-red); color: #fff; font-weight: 800;
	font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 4px;
}
.nz-hero__title {
	color: #fff; margin: .5em 0 .3em; font-family: var(--nz-font);
	font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.2;
}
.nz-hero .nz-card__date { color: #b9c4dc; }
.nz-hero__excerpt { color: #e6ebf5; margin: 0 0 1.2em; }
.nz-hero .nz-btn { align-self: flex-start; }
.nz-hero__link:hover .nz-btn { background: #fff; color: var(--nz-blue); }

.nz-ad { margin: 0 0 28px; text-align: center; }

.nz-home__section { margin: 0 0 36px; }
.nz-home__heading {
	margin: 0 0 18px; padding-left: 12px; border-left: 6px solid var(--nz-red);
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}
.nz-cards--3 { grid-template-columns: repeat(3, 1fr); }
.nz-cards .nz-card { display: flex; }
.nz-card__link { display: flex; flex-direction: column; width: 100%; }
.nz-card__body { display: flex; flex-direction: column; flex: 1; }
.nz-card__title { font-family: var(--nz-font); text-transform: none; letter-spacing: 0; line-height: 1.3; }
.nz-card__excerpt { flex: 1; }
.nz-home__more { text-align: center; margin: 0; }
.nz-btn--blue { background: var(--nz-blue); }
.nz-btn--blue:hover { background: var(--nz-red); }

.nz-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nz-quick__item {
	display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none;
	background: var(--nz-soft); border-radius: var(--nz-radius); border-bottom: 5px solid var(--nz-blue);
	color: var(--nz-ink); transition: transform .15s, border-color .15s;
}
.nz-quick__item:hover { transform: translateY(-3px); border-color: var(--nz-red); color: var(--nz-ink); }
.nz-quick__icon { font-size: 1.6rem; line-height: 1; }
.nz-quick__item strong { color: var(--nz-blue); text-transform: uppercase; font-size: 1rem; }
.nz-quick__item span:last-child { color: var(--nz-muted); font-size: .9rem; }

@media (max-width: 1024px) {
	.nz-cards--3 { grid-template-columns: repeat(2, 1fr); }
	.nz-quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
	.nz-hero__link { grid-template-columns: 1fr; }
	.nz-hero__img img { aspect-ratio: 16 / 9; height: auto; }
	.nz-hero__body { padding: 22px; }
	.nz-cards--3, .nz-quick { grid-template-columns: 1fr; }
	.nz-brand__name { font-size: 1.15rem; }
}

/* ==========================================================================
   Fichas de equipo en móvil: cada fila se convierte en tarjeta — v1.0.5
   ========================================================================== */
@media (max-width: 700px) {
	.nz-roster, .nz-stars { overflow: visible; box-shadow: none; border-top: 0; border-radius: 0; }
	.entry-content .nz-roster table, .entry-content .nz-stars table,
	.entry-content .nz-roster tbody, .entry-content .nz-stars tbody { display: block; width: 100%; }
	.entry-content .nz-roster thead, .entry-content .nz-stars thead { display: none; }
	.entry-content .nz-roster tr, .entry-content .nz-stars tr {
		display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
		margin: 0 0 14px; background: #fff; border: 1px solid var(--nz-line);
		border-top: 4px solid var(--nz-red); border-radius: var(--nz-radius);
		box-shadow: 0 3px 10px rgba(10, 36, 99, .08); overflow: hidden;
	}
	.entry-content .nz-roster td, .entry-content .nz-stars td {
		display: block; border: 0 !important; padding: 6px 8px !important;
		background: transparent !important; text-align: center !important; font-size: .95rem;
	}
	.entry-content .nz-roster tbody tr:nth-child(even) td,
	.entry-content .nz-stars tbody tr:nth-child(even) td,
	.entry-content .nz-roster tbody tr:hover td,
	.entry-content .nz-stars tbody tr:hover td { background: transparent !important; }

	/* Etiquetas pequeñas encima de los atributos */
	.entry-content .nz-roster td:nth-child(n+4):nth-child(-n+8)::before,
	.entry-content .nz-roster td:nth-child(10)::before,
	.entry-content .nz-roster td:nth-child(11)::before,
	.entry-content .nz-stars td:nth-child(n+3):nth-child(-n+7)::before {
		content: attr(data-label); display: block; font-size: .68rem; font-weight: 800;
		letter-spacing: .06em; text-transform: uppercase; color: var(--nz-muted);
	}
	/* Atributos como casillas */
	.entry-content .nz-roster td:nth-child(n+4):nth-child(-n+8),
	.entry-content .nz-stars td:nth-child(n+3):nth-child(-n+7) {
		background: var(--nz-soft) !important; border-right: 1px solid #fff !important; font-weight: 800;
	}

	/* Plantilla: CTD | Posición | Coste / atributos / habilidades / Pri-Sec */
	.entry-content .nz-roster td:nth-child(1) { grid-column: 1 / 2; align-self: center; }
	.entry-content .nz-roster td:nth-child(2) { grid-column: 2 / 4; text-align: left !important; align-self: center; white-space: normal; font-size: 1rem; }
	.entry-content .nz-roster td:nth-child(3) { grid-column: 4 / 6; text-align: right !important; align-self: center; }
	.entry-content .nz-roster td:nth-child(9) { grid-column: 1 / -1; text-align: left !important; padding-top: 10px !important; }
	.entry-content .nz-roster td:nth-child(10) { grid-column: 1 / 3; }
	.entry-content .nz-roster td:nth-child(11) { grid-column: 3 / 6; }
	.nz-roster .qty-badge { min-width: 0; padding: 2px 6px; font-size: .85rem; }

	/* Filas extra (rerolls, reglas, ligas, Big Guy) */
	.entry-content .nz-roster tr.nz-extra { border-top-color: var(--nz-blue); }
	.entry-content .nz-roster tr.nz-extra td:empty,
	.entry-content .nz-roster tr.nz-extra td:nth-child(1),
	.entry-content .nz-roster tr.nz-extra td:nth-child(10),
	.entry-content .nz-roster tr.nz-extra td:nth-child(11) { display: none; }
	.entry-content .nz-roster tr.nz-extra td:nth-child(2) { grid-column: 1 / 4; padding-left: 8px !important; }
	.entry-content .nz-roster tr.nz-extra td:nth-child(3) { grid-column: 4 / 6; }
	.entry-content .nz-roster tr.nz-extra td:nth-child(9) { grid-column: 1 / -1; padding-top: 0 !important; }

	/* Estrellas: Nombre | Coste / atributos / habilidades */
	.entry-content .nz-stars td:nth-child(1) { grid-column: 1 / 4; text-align: left !important; white-space: normal; align-self: center; }
	.entry-content .nz-stars td:nth-child(2) { grid-column: 4 / 6; text-align: right !important; align-self: center; font-size: .9rem; }
	.entry-content .nz-stars td:nth-child(8) { grid-column: 1 / -1; text-align: left !important; padding-top: 10px !important; }

	.nz-roster td a, .nz-stars td:last-child a { font-size: .8rem; padding: 1px 6px; white-space: normal; }
	.nz-team-title { font-size: 1.5rem; }
}

/* ---------- Página de Jugadores Estrella (1.0.6) ---------- */
.nz-star-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.nz-star-index a { display: inline-block; padding: 4px 10px; border: 1px solid var(--nz-blue, #0b2a6f); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--nz-blue, #0b2a6f); background: #fff; }
.nz-star-index a:hover, .nz-star-index a:focus { background: var(--nz-red, #c8102e); border-color: var(--nz-red, #c8102e); color: #fff; }
.nz-star { margin: 0 0 28px; padding-top: 12px; border-top: 3px solid var(--nz-red, #c8102e); scroll-margin-top: 90px; }
.nz-star__name { margin: 0 0 10px; color: var(--nz-blue, #0b2a6f); }
.nz-star__plays, .nz-star__rule { margin: 8px 0 0; }
.nz-star__rule strong { color: var(--nz-red, #c8102e); }

/* ---------- AdSense sin huecos (1.0.7) ---------- */
/* Si Google no sirve anuncio (p. ej. en el dominio de pruebas o sin inventario), el bloque desaparece */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.nz-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ---------- Índice de equipos [nz_teams] (1.0.8) ---------- */
.nz-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 0 0 28px; }
.nz-team-card { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none;
	border-top: 4px solid var(--nz-red); box-shadow: 0 2px 8px rgba(10, 36, 99, .12); transition: transform .15s, box-shadow .15s; }
.nz-team-card:hover, .nz-team-card:focus { transform: translateY(-3px); box-shadow: var(--nz-shadow); }
.nz-team-card__img { aspect-ratio: 4 / 3; background: var(--nz-blue); display: block; overflow: hidden; }
.nz-team-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nz-team-card__name { padding: 10px 12px; font-weight: 800; color: var(--nz-blue); text-transform: uppercase; font-size: .9rem; line-height: 1.2; }
.nz-team-card:hover .nz-team-card__name { color: var(--nz-red); }
@media (max-width: 480px) { .nz-teams { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Página de habilidades (1.0.8) ---------- */
.nz-skill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.nz-skill-nav a { padding: 6px 14px; border-radius: 999px; background: var(--nz-blue); color: #fff; font-weight: 700; text-decoration: none; font-size: .9rem; }
.nz-skill-nav a:hover, .nz-skill-nav a:focus { background: var(--nz-red); }
.nz-skill-cat { margin: 32px 0 14px; padding-left: 12px; border-left: 6px solid var(--nz-red); scroll-margin-top: 90px; }
.nz-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.nz-skill { background: #fff; border-radius: 10px; padding: 14px 16px; border-left: 4px solid var(--nz-blue); box-shadow: 0 2px 8px rgba(10, 36, 99, .1); scroll-margin-top: 90px; }
.nz-skill:target { border-left-color: var(--nz-red); box-shadow: 0 0 0 3px var(--nz-red); }
.nz-skill h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--nz-blue); }
.nz-skill h3 small { font-weight: 600; color: #6b7a99; font-size: .8rem; margin-left: 4px; }
.nz-skill p { margin: 0; font-size: .95rem; }
.nz-skill__anchor { position: relative; top: -90px; display: block; height: 0; }

/* ===== Tarjetas de Jugadores Estrella (1.0.9) ===== */
.bb-star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 24px 0 32px; align-items: start; }
.bb-star-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(10, 36, 99, .18); scroll-margin-top: 90px; display: flex; flex-direction: column; }
.bb-star-header { background: var(--nz-blue); color: #fff; font-family: var(--nz-font-head); font-size: 1.25rem; letter-spacing: .06em; text-align: center; padding: 12px 10px; border-bottom: 3px solid #e7c66a; line-height: 1.2; }
.bb-star-main { display: grid; grid-template-columns: 96px 1fr; flex: 1; }
.bb-stat:last-child .bb-stat-value { font-size: 1.05rem; }
.bb-star-stats { background: #c0272d; display: flex; flex-direction: column; }
.bb-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-bottom: 1px solid rgba(0, 0, 0, .28); }
.bb-stat:last-child { border-bottom: 0; }
.bb-stat-label { background: var(--nz-blue); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: 5px 8px; min-width: 42px; text-align: center; letter-spacing: .04em; }
.bb-stat-value { color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.bb-star-content { display: flex; flex-direction: column; min-width: 0; }
.bb-star-portrait { padding: 10px 12px 0; text-align: center; }
.bb-star-portrait img { max-width: 100%; max-height: 180px; width: auto; height: auto; object-fit: contain; display: inline-block; }
.bb-star-textbox { padding: 6px 14px 14px; font-size: .9rem; line-height: 1.45; flex: 1; }
.entry-content .bb-star-textbox h4 { color: #a3181e; font-size: .9rem; font-weight: 800; text-transform: uppercase; margin: 14px 0 6px; letter-spacing: .02em; }
.entry-content .bb-star-textbox p { margin: 0; }
.bb-star-textbox a { color: #2a7de1; text-decoration: none; }
.bb-star-textbox a:hover { text-decoration: underline; color: var(--nz-red); }
.bb-star-footer { background: #f2f2f2; font-style: italic; text-align: center; padding: 8px 10px; font-size: .85rem; }
@media (max-width: 420px) { .bb-star-main { grid-template-columns: 74px 1fr; } .bb-stat-value { font-size: 1.1rem; } }

/* ===== 1.0.10: foto de equipo arriba + Patrocinadores ===== */
.entry-content .nz-team-title + .wp-block-image { margin: 0 0 24px; text-align: center; }
.entry-content .nz-team-title + .wp-block-image img { max-height: 460px; width: auto; max-width: 100%; border-radius: 12px; box-shadow: var(--nz-shadow); }
.nz-dialogue { background: var(--nz-soft); border-left: 5px solid var(--nz-red); border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; }
.nz-dialogue p { margin: 4px 0; }
.nz-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 16px 0 10px; }
.nz-sponsors--real { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.entry-content .nz-sponsor { margin: 0; background: #fff; border: 1px solid var(--nz-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(10, 36, 99, .08); transition: transform .15s, box-shadow .15s; }
.entry-content .nz-sponsor:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--nz-shadow); }
.entry-content .nz-sponsor img { width: 100%; height: 120px; object-fit: contain; }
.entry-content .nz-sponsor figcaption { margin-top: 8px; font-weight: 800; color: var(--nz-blue); font-size: .85rem; text-align: center; }
.nz-sponsor-cta { margin: 28px 0 10px; padding: 18px; border-radius: 12px; background: var(--nz-blue); color: #fff; text-align: center; }
.nz-sponsor-cta p { margin: 0 0 12px; font-weight: 700; }

/* ==========================================================================
   Fichas de equipo: plantillas iniciales recomendadas y cita final — v1.0.18
   ========================================================================== */
.nz-builds {
	overflow-x: auto; margin: 1.5em 0;
	border-radius: var(--nz-radius); box-shadow: var(--nz-shadow); border-top: 4px solid var(--nz-red);
}
.entry-content .nz-builds table { display: table; width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.entry-content .nz-builds th {
	background: var(--nz-blue) !important; color: #fff !important; border: 0 !important;
	border-bottom: 3px solid var(--nz-red) !important; padding: 12px 10px !important;
	font-size: .78rem !important; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-align: center !important;
}
.entry-content .nz-builds td {
	border: 0 !important; border-bottom: 1px solid var(--nz-line) !important; padding: 10px !important;
	vertical-align: middle; text-align: center !important; background: #fff !important; color: var(--nz-ink) !important; font-weight: 600;
}
.entry-content .nz-builds tbody tr:nth-child(even) td { background: var(--nz-soft) !important; }
.entry-content .nz-builds td:nth-child(1) { color: var(--nz-blue) !important; text-align: left !important; white-space: nowrap; }
.entry-content .nz-builds td:nth-child(3), .entry-content .nz-builds th:nth-child(3) { text-align: left !important; font-weight: 500; }
.entry-content .nz-builds td:nth-child(5) { color: var(--nz-red) !important; font-weight: 800; white-space: nowrap; }
@media (max-width: 700px) {
	.nz-builds { overflow: visible; box-shadow: none; border-top: 0; }
	.entry-content .nz-builds table, .entry-content .nz-builds tbody { display: block; }
	.entry-content .nz-builds thead { display: none; }
	.entry-content .nz-builds tr {
		display: grid; grid-template-columns: 1fr auto; margin: 0 0 14px; background: #fff;
		border: 1px solid var(--nz-line); border-top: 4px solid var(--nz-red); border-radius: var(--nz-radius); overflow: hidden;
	}
	.entry-content .nz-builds td { display: block; border: 0 !important; background: transparent !important; padding: 6px 10px !important; }
	.entry-content .nz-builds td:nth-child(1) { grid-column: 1 / 2; font-size: 1.05rem; }
	.entry-content .nz-builds td:nth-child(5) { grid-column: 2 / 3; grid-row: 1; text-align: right !important; }
	.entry-content .nz-builds td:nth-child(3) { grid-column: 1 / -1; }
	.entry-content .nz-builds td:nth-child(2), .entry-content .nz-builds td:nth-child(4) { text-align: left !important; color: var(--nz-muted) !important; font-size: .85rem; }
	.entry-content .nz-builds td:nth-child(2)::before { content: "👥 "; }
	.entry-content .nz-builds td:nth-child(4)::before { content: "🎲 "; }
}
.entry-content .nz-quote {
	margin: 1.5em 0; padding: 1em 1.2em; border-left: 6px solid var(--nz-red);
	background: var(--nz-soft); border-radius: 0 var(--nz-radius) var(--nz-radius) 0; font-style: italic;
}
.entry-content .nz-quote p { margin: 0 0 .4em; font-size: 1.1rem; }
.entry-content .nz-quote cite { font-style: normal; font-weight: 800; color: var(--nz-blue); font-size: .9rem; }
.entry-content .nz-quote cite::before { content: "— "; }

/* Patrocinador ficticio al final de las fichas de equipo — v1.0.19 */
.entry-content .nz-sponsor, .nz-sponsor {
	display: flex; flex-direction: column; align-items: center; gap: .35em; text-align: center;
	margin: 2.5em auto 1em; padding: 1.4em 1.2em 1.1em; max-width: 640px;
	background: var(--nz-blue); color: #fff; border-radius: var(--nz-radius);
	border-top: 6px solid var(--nz-red); box-shadow: var(--nz-shadow);
}
.nz-sponsor__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nz-sponsor__name { font-family: var(--nz-font-head, inherit); font-size: 1.9rem; line-height: 1.1; color: #fff; }
.nz-sponsor__img { display: block; max-width: 100%; height: auto; max-height: 220px; width: auto; border-radius: 6px; background: #fff; }
.nz-sponsor__note { margin-top: .6em; font-size: .72rem; opacity: .7; }

/* Página de Patrocinadores: rejilla, ampliar y descargar — v1.0.26 */
.nz-spg-host { display: block; width: 100%; max-width: none; }
.nz-spg__hint { text-align: center; color: var(--nz-muted); margin: 0 0 1em; }
.nz-spg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 1em 0 2em; }
.nz-spg__card {
	margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nz-line);
	border-top: 4px solid var(--nz-red); border-radius: var(--nz-radius); box-shadow: var(--nz-shadow); overflow: hidden;
}
.entry-content .nz-spg .nz-spg__img, .nz-spg .nz-spg__img { display: flex; width: 100%; border-radius: 0; color: inherit; text-transform: none; letter-spacing: 0; transition: none; align-items: center; justify-content: center; height: 190px; padding: 14px; background: #fff; border: 0; cursor: zoom-in; }
.nz-spg__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .2s; }
.nz-spg__img:hover img, .nz-spg__img:focus img { transform: scale(1.05); }
.nz-spg__card figcaption { padding: 8px 12px 0; font-weight: 800; color: var(--nz-blue); text-align: center; font-size: .95rem; }
.nz-spg__actions { display: flex; gap: 8px; justify-content: center; padding: 10px 12px 14px; flex-wrap: wrap; }
.nz-spg__actions a, .entry-content .nz-spg__actions button, .nz-spg__actions button {
	text-transform: none; letter-spacing: 0;
	display: inline-block; padding: 7px 12px; border-radius: 999px; border: 2px solid var(--nz-blue); background: #fff;
	color: var(--nz-blue); font-weight: 700; font-size: .82rem; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.nz-spg__actions .nz-spg__dl, .entry-content .nz-spg__actions .nz-spg__dl { background: var(--nz-red); border-color: var(--nz-red); color: #fff; }
.nz-spg__actions a:hover, .nz-spg__actions button:hover { filter: brightness(1.08); }
.nz-spg__lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(5, 12, 30, .88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.nz-spg__lightbox[hidden] { display: none; }
.nz-spg__lb-inner { background: #fff; border-radius: var(--nz-radius); padding: 18px; max-width: min(1100px, 96vw); max-height: 94vh; display: flex; flex-direction: column; align-items: center; }
.nz-spg__lb-inner img { max-width: 100%; max-height: 72vh; object-fit: contain; }
.nz-spg__lb-name { margin: .6em 0 0; font-weight: 800; color: var(--nz-blue); }
body.nz-spg-open { overflow: hidden; }
@media (max-width: 480px) { .nz-spg { grid-template-columns: 1fr 1fr; gap: 10px; } .nz-spg__img { height: 120px; } .nz-spg__actions a, .nz-spg__actions button { padding: 6px 9px; font-size: .75rem; } }
/* Patrocinadores: anula el hover global de .entry-content button (v1.0.28) */
.entry-content .nz-spg .nz-spg__img:hover, .entry-content .nz-spg .nz-spg__img:focus { background: #fff; transform: none; }
.entry-content .nz-spg__actions button:hover, .entry-content .nz-spg__actions button:focus { background: #fff; color: var(--nz-blue); transform: none; }
