/*
Theme Name: Liñán y Díaz arquitectos
Theme URI: https://linandiaz.com/
Description: Tema hijo de Twenty Twenty-Five para linandiaz.com. Portada oscura con foto grande, listado de proyectos con filtros y ficha de proyecto.
Author: Liñán y Díaz arquitectos
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linandiaz
*/

/* ================================================================
   Base
   ================================================================ */

:root {
	--lz-navy: #1b2547;
	--lz-ink: #141414;
	--lz-grey: #5e5e5e;
	--lz-line: #e6e6e6;
	--lz-soft: #f4f4f2;
	--lz-dark: #151515;
	--lz-pad: clamp(20px, 4vw, 48px);
	--lz-wide: var(--wp--style--global--wide-size, 1360px);
}

/* Cabecera, contenido y pie van pegados: cada bloque lleva su propio espacio. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
}

/* ================================================================
   Cabecera
   ================================================================ */

.lz-header {
	padding-block: 20px;
	border-bottom: 1px solid var(--lz-line);
	background: #fff;
}

.lz-header__bar {
	align-items: center;
	gap: 20px;
}

.lz-brand {
	gap: 14px;
	align-items: center;
}

.lz-brand .wp-block-site-logo img {
	mix-blend-mode: multiply;
}

.lz-brand__name {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.lz-brand__name a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.lz-brand__name span {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lz-grey);
}

.lz-header__nav {
	gap: 4px;
	align-items: center;
}

.lz-header__link {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
}

.lz-header__link a {
	display: inline-block;
	padding: 12px 14px;
}

.lz-menu .wp-block-navigation__responsive-container-open {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lz-menu .wp-block-navigation__responsive-container-open svg {
	width: 28px;
	height: 28px;
}

/* Menú a pantalla completa */
.lz-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 26px var(--lz-pad);
}

.lz-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 72px;
	align-items: flex-start;
}

.lz-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 10px;
	align-items: flex-start;
}

.lz-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.lz-menu .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

/* Cabecera de la portada: transparente, encima de la foto */
.lz-header--portada {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 20;
	background: transparent;
	border-bottom: 0;
	color: #fff;
	padding-block: 26px;
}

.lz-header--portada a,
.lz-header--portada .wp-block-navigation__responsive-container-open {
	color: #fff;
}

.lz-header--portada .lz-brand__name span {
	color: #e2e2e2;
}

.lz-header--portada .wp-block-site-logo img {
	filter: grayscale(1) invert(1) brightness(1.6);
	mix-blend-mode: screen;
}

/* ================================================================
   Portada (fondo oscuro)
   ================================================================ */

.lz-dark {
	padding-bottom: clamp(70px, 9vw, 120px);
}

.lz-hero-wrap {
	margin-top: 0 !important;
}

.lz-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	max-height: 1000px;
	overflow: hidden;
	background: #000;
	color: #fff;
}

.lz-hero__slides,
.lz-hero__slide {
	position: absolute;
	inset: 0;
}

.lz-hero__slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s ease, visibility 1.2s ease;
}

.lz-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.lz-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lz-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.72) 100%);
}

.lz-hero__caption {
	position: absolute;
	z-index: 2;
	left: max(var(--lz-pad), calc((100% - var(--lz-wide)) / 2));
	right: calc(max(var(--lz-pad), calc((100% - var(--lz-wide)) / 2)) + 280px);
	bottom: 52px;
	max-width: 820px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.lz-hero__label {
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e2e2e2;
}

.lz-hero__title {
	margin: 0;
	font-size: clamp(32px, 4.2vw, 56px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.lz-hero__link {
	margin-top: 6px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid #fff;
	padding-bottom: 4px;
}

.lz-hero__link:hover {
	color: #d4d4d4;
	border-color: #d4d4d4;
	text-decoration: none;
}

.lz-hero__controls {
	position: absolute;
	z-index: 3;
	right: max(var(--lz-pad), calc((100% - var(--lz-wide)) / 2));
	bottom: 52px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.lz-hero__arrow {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lz-hero__arrow:hover {
	background: rgba(255, 255, 255, 0.12);
}

.lz-hero__dot {
	width: 28px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lz-hero__dot span {
	display: block;
	width: 20px;
	height: 2px;
	background: rgba(255, 255, 255, 0.45);
	transition: background 0.3s;
}

.lz-hero__dot.is-active span {
	background: #fff;
}

.lz-hero button:focus-visible,
.lz-hero a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 781px) {
	.lz-hero {
		min-height: 520px;
		max-height: 720px;
	}

	.lz-hero__caption {
		right: var(--lz-pad);
		bottom: 96px;
	}

	.lz-hero__controls {
		left: calc(var(--lz-pad) - 10px);
		right: auto;
		bottom: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lz-hero__slide {
		transition: none;
	}
}

/* Secciones de la portada */
.lz-dark .lz-section {
	padding-top: clamp(64px, 8vw, 110px);
}

.lz-section__title {
	margin: 0 0 28px;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0;
}

.lz-section__head {
	align-items: baseline;
	margin-bottom: 28px;
}

.lz-section__head .lz-section__title,
.lz-section__head p {
	margin: 0;
}

.lz-section__head p {
	font-size: 15px;
	font-weight: 500;
}

.lz-intro__text {
	margin: 0 0 28px;
	max-width: 960px;
	font-size: clamp(24px, 3vw, 40px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.lz-textlink {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
}

.lz-textlink a {
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
	text-decoration: none;
}

.lz-dark .wp-block-query .wp-block-post-template,
.lz-grid {
	gap: 20px;
}

.lz-news__item {
	border-top: 1px solid #3a3a3a;
	padding-top: 40px;
	gap: 40px 64px;
}

.lz-news__title {
	margin: 10px 0 14px;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.2;
}

.lz-news .wp-block-post-excerpt {
	color: #d4d4d4;
}

.lz-news .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 10px;
	color: #fff;
	font-weight: 500;
	font-size: 15px;
	border-bottom: 1px solid #fff;
	padding-bottom: 4px;
}

/* ================================================================
   Tarjetas
   ================================================================ */

.lz-card {
	position: relative;
}

.lz-card .wp-block-post-featured-image {
	margin: 0 0 14px;
}

.lz-card .wp-block-post-featured-image img {
	background: var(--lz-soft);
}

.lz-card__title {
	margin: 0 0 5px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
}

.lz-card__title a {
	text-decoration: none;
}

.lz-card__title a:hover {
	text-decoration: underline;
}

.lz-meta {
	gap: 0;
	font-size: 14px;
	color: var(--lz-grey);
}

.lz-meta > * {
	margin: 0 !important;
}

.lz-meta .wp-block-post-excerpt::before {
	content: "·";
	margin: 0 0.45em;
}

.lz-meta .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.lz-meta .wp-block-post-excerpt__more-text,
.lz-meta .wp-block-post-excerpt__more-link {
	display: none;
}

/* Tarjeta con el texto sobre la foto (portada) */
.lz-card--overlay {
	display: grid;
	overflow: hidden;
	background: #262626;
}

.lz-card--overlay > * {
	grid-area: 1 / 1;
	margin: 0 !important;
}

.lz-card--overlay .wp-block-post-featured-image,
.lz-card--overlay .wp-block-image {
	margin: 0;
}

.lz-card--overlay .wp-block-post-featured-image,
.lz-card--overlay .wp-block-image {
	height: 100%;
}

.lz-card--overlay img {
	display: block;
	width: 100%;
	height: 100% !important;
	min-height: clamp(260px, 26vw, 360px);
	aspect-ratio: auto !important;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.lz-card--wide img {
	min-height: 300px;
}

.lz-card--overlay:hover img {
	transform: scale(1.03);
}

.lz-card__text {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 22px 24px;
	color: #fff;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.78) 100%);
}

.lz-card--wide .lz-card__text {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.lz-card--overlay .lz-card__title {
	margin: 0;
	font-size: clamp(19px, 1.6vw, 22px);
	color: #fff;
}

.lz-card--overlay .lz-card__title a {
	color: #fff;
}

/* Toda la tarjeta es clicable */
.lz-card--overlay .lz-card__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.lz-card--overlay .lz-card__title a:focus-visible {
	outline: none;
}

.lz-card--overlay:focus-within {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lz-card--overlay .lz-meta,
.lz-card__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #e2e2e2;
}

/* ================================================================
   Listado de proyectos
   ================================================================ */

.lz-listing {
	padding-bottom: clamp(70px, 8vw, 110px);
}

.lz-listhead {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 48px 0 28px;
	margin-bottom: 48px !important;
	border-bottom: 1px solid var(--lz-line);
}

.lz-listhead__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.lz-listhead__title {
	margin: 0;
	font-size: clamp(36px, 5vw, 48px);
	letter-spacing: -0.025em;
}

.lz-listhead__count {
	margin: 0;
	font-size: 17px;
	color: var(--lz-grey);
}

.lz-listhead__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.lz-search {
	flex: 1 1 280px;
	max-width: 420px;
	height: 46px;
	padding: 0 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 23px;
	background: var(--lz-soft);
	color: var(--lz-grey);
}

.lz-search:focus-within {
	outline: 2px solid var(--lz-navy);
	outline-offset: 2px;
}

.lz-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	color: var(--lz-ink);
}

.lz-search input:focus {
	outline: none;
}

.lz-sort {
	margin-left: auto;
	display: flex;
	gap: 4px;
	font-size: 14px;
}

.lz-sort a {
	padding: 12px 14px;
	color: var(--lz-grey);
	text-decoration: none;
}

.lz-sort a[aria-current] {
	color: var(--lz-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 6px;
}

.lz-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lz-filters a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid #cfcfcf;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.lz-filters a span {
	opacity: 0.6;
	font-weight: 400;
}

.lz-filters a:hover {
	border-color: var(--lz-ink);
	text-decoration: none;
}

.lz-filters a[aria-current] {
	background: var(--lz-navy);
	border-color: var(--lz-navy);
	color: #fff;
}

.lz-list .wp-block-post-template {
	gap: 48px 28px;
}

.lz-empty {
	padding: 60px 0;
	text-align: center;
	font-size: 18px;
}

.lz-empty a {
	text-decoration: underline;
}

/* ================================================================
   Ficha de proyecto
   ================================================================ */

.lz-single {
	padding-top: clamp(36px, 5vw, 56px);
	padding-bottom: clamp(70px, 8vw, 100px);
}

.lz-kicker {
	margin: 0 0 18px;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lz-grey);
}

.lz-kicker a {
	color: inherit;
	text-decoration: none;
}

.lz-single__title {
	margin: 0 0 14px;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.lz-meta--big {
	font-size: 20px;
	color: #3a3a3a;
}

.lz-single__image {
	margin-top: 40px !important;
}

.lz-single__content {
	margin-top: clamp(40px, 6vw, 72px) !important;
	font-size: 17px;
	line-height: 1.7;
}

/* Galerías NextGEN en cuadrícula, al ancho amplio */
.lz-single__content > div:has(.ngg-galleryoverview),
.lz-single__content .ngg-galleryoverview {
	max-width: var(--lz-wide) !important;
}

.lz-single__content .ngg-galleryoverview {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	margin: 0 auto 48px !important;
	overflow: visible !important;
}

.lz-single__content .ngg-gallery-thumbnail-box {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.lz-single__content .ngg-gallery-thumbnail {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.lz-single__content .ngg-gallery-thumbnail a {
	display: block;
	margin: 0 !important;
}

.lz-single__content .ngg-gallery-thumbnail img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: var(--lz-soft);
}

.lz-single__content .ngg-clear,
.lz-single__content .slideshowlink {
	display: none;
}

.lz-single__content .ngg-navigation {
	grid-column: 1 / -1;
}

.lz-postnav {
	margin-top: clamp(56px, 7vw, 88px) !important;
	padding-top: 40px;
	border-top: 1px solid var(--lz-line);
	gap: 24px;
}

.lz-postnav .post-navigation-link-previous,
.lz-postnav .post-navigation-link-next {
	font-size: 18px;
	font-weight: 500;
	max-width: 48%;
}

.lz-postnav .post-navigation-link-next {
	margin-left: auto;
	text-align: right;
}

/* ================================================================
   Pie
   ================================================================ */

.lz-contact {
	padding-block: clamp(60px, 7vw, 96px);
}

.lz-contact__title {
	margin: 0 0 24px;
	font-size: clamp(28px, 3.4vw, 40px);
}

.lz-contact .wp-block-columns {
	gap: 40px 80px;
}

.lz-btn-white .wp-block-button__link {
	background: #fff;
	color: var(--lz-navy);
	padding: 14px 24px;
}

.lz-btn-white .wp-block-button__link:hover {
	background: #e8e9ef;
	color: var(--lz-navy);
}

.lz-contact__address {
	margin: 0;
	line-height: 1.7;
	color: #e8e9ef;
}

.lz-contact__address a {
	color: #fff;
}

.lz-footer__bottom {
	padding-block: 26px;
	font-size: 13px;
	color: var(--lz-grey);
}

.lz-footer__bottom p {
	margin: 0;
}

.home .lz-footer__bottom {
	background: var(--lz-dark);
	color: #b4b4b4;
}
