/*
Theme Name: LAAB7 Minimalista
Theme URI: https://laab7.com
Author: LAAB7
Description: Skin minimalista para laab7.com (portafolio + tienda WooCommerce con carrito). Basado en el handoff "Rediseño LAAB7 minimalista".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Todos los derechos reservados
Text Domain: laab7
*/

/* ---------- Tokens ---------- */
:root {
	--fg: #000;
	--bg: #fff;
	--muted: #767676;
	--line: #e2e2e2;
	--tile: #f2f2f2;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--gutter: 24px;
}

:root[data-theme="dark"] {
	--fg: #fff;
	--bg: #000;
	--muted: #8c8c8c;
	--line: #2a2a2a;
	--tile: #141414;
}

/* Cursor LAAB7: isotipo blanco con efecto diferencia (el elemento .l7-cursor lo sigue con JS). */
.l7-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 27px;
	height: 27px;
	margin: -13.5px 0 0 -13.5px;
	color: #fff;
	mix-blend-mode: difference;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: opacity .2s;
}

.l7-cursor.is-on { opacity: 1; }

.l7-cursor svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Con el cursor propio activo se oculta el nativo, menos en campos de texto. */
.l7-cursor-on *:not(input):not(textarea) { cursor: none !important; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--fg);
	-webkit-font-smoothing: antialiased;
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: -0.005em;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.l7-wrap {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.l7-btn-reset {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
	text-align: left;
}

.l7-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.l7-muted { color: var(--muted); }
.l7-strong { font-weight: 700; }

/* ---------- Header ---------- */
.l7-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--bg);
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	padding: 18px var(--gutter);
	align-items: baseline;
	border-bottom: 1px solid var(--line);
}

.l7-brand {
	grid-column: span 3;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.l7-tagline {
	grid-column: span 5;
	color: var(--muted);
}

.l7-nav {
	grid-column: span 4;
	display: flex;
	gap: 24px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.l7-nav a.is-current { text-decoration: underline; text-underline-offset: 3px; }

.l7-cart-count {
	display: inline-block;
	min-width: 1.4em;
	text-align: center;
}

/* ---------- Hero ---------- */
.l7-hero {
	padding: 12vh var(--gutter) 10vh;
}

.l7-hero h1 {
	grid-column: 1 / -1;
	margin: 0;
	font-weight: 700;
	font-size: clamp(88px, 22vw, 360px);
	line-height: 0.8;
	letter-spacing: -0.06em;
	margin-left: -0.04em;
	display: flex;
}

.l7-hero h1 span { display: inline-block; }

.l7-lead,
.l7-statement {
	margin: 0;
	font-size: clamp(24px, 3vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.025em;
	font-weight: 400;
	text-wrap: pretty;
}

.l7-hero .l7-lead { grid-column: 1 / span 8; margin-top: 56px; }

/* ---------- Reveal (entrada suave al hacer scroll) ---------- */
.l7-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.l7-reveal.is-in { opacity: 1; transform: none; }

.l7-reveal--fade { transform: translateY(8px); }

.l7-hero h1 .l7-reveal { transform: translateY(35%); transition-duration: 1.1s; }
.l7-hero h1 .l7-reveal.is-in { transform: none; }

/* ---------- Toolbar de proyectos ---------- */
.l7-projects { padding: 0 var(--gutter); }

.l7-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: baseline;
	justify-content: space-between;
	padding: 14px 0;
	border-top: 1px solid var(--fg);
	border-bottom: 1px solid var(--line);
}

.l7-toolbar__group {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	align-items: baseline;
}

.l7-filter { color: var(--muted); }
.l7-filter.is-active { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.l7-view.is-active { color: var(--fg); }
.l7-view { color: var(--muted); }

.l7-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 48px 16px;
	padding: 32px 0 96px;
}

.l7-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.l7-card[hidden] { display: none; }

.l7-card__tile {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	background: var(--tile);
	overflow: hidden;
}

.l7-card__tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.l7-card:hover .l7-card__tile img { transform: scale(1.04); }

.l7-card__meta {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 8px;
	align-items: baseline;
}

.l7-card__num { color: var(--muted); }
.l7-card__name { font-weight: 700; }
.l7-card__cat { grid-column: 2; color: var(--muted); }

/* Índice con efecto de scroll: la fila del centro queda nítida y las demás se desvanecen. */
.l7-index { padding: 30vh 0; }
.l7-index[hidden] { display: none; }
.l7-grid[hidden] { display: none; }

.l7-index__head,
.l7-index__row {
	display: grid;
	grid-template-columns: 48px minmax(0, 4fr) minmax(0, 3fr) 90px;
	gap: 16px;
	align-items: baseline;
}

.l7-index__head {
	padding: 12px 0;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
}

.l7-index__row {
	width: 100%;
	border-bottom: 1px solid var(--line);
	text-align: left;
	cursor: pointer;
	padding: 16px 0;
	font-size: clamp(17px, 1.6vw, 24px);
	letter-spacing: -0.015em;
	transition: padding .4s var(--ease), background .3s;
}

.l7-index__row:hover { background: var(--tile); padding-left: 16px; }
.l7-index__row[hidden] { display: none; }
.l7-index__row .l7-index__num { color: var(--muted); font-size: 15px; }

.l7-index__row {
	padding: 18px 0;
	will-change: opacity;
}

.l7-index__row .l7-strong {
	font-size: clamp(36px, 6.5vw, 104px);
	line-height: 1;
	letter-spacing: -0.04em;
}

.l7-index__row .l7-index__cat,
.l7-index__row .l7-index__count { color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
	.l7-index__row { opacity: 1 !important; }
}
.l7-index__row .l7-index__count { text-align: right; }

/* ---------- Secciones ---------- */
.l7-section {
	padding: 96px var(--gutter);
	border-top: 1px solid var(--fg);
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 48px 16px;
}

.l7-section__label {
	grid-column: span 3;
	min-width: 160px;
	font-weight: 700;
}

.l7-section__body {
	grid-column: span 9;
	min-width: min(100%, 320px);
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.l7-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px 16px;
	border-top: 1px solid var(--line);
	padding-top: 16px;
}

.l7-facts > div { display: flex; flex-direction: column; gap: 4px; }
.l7-facts .l7-muted { color: var(--muted); }

/* ---------- About: jerarquía tipográfica (referencia Telha Clarke) ---------- */
.l7-about {
	gap: 96px;
}

.l7-about__titulo {
	margin: 0;
	font-weight: 400;
	font-size: clamp(40px, 6vw, 88px);
	line-height: 1;
	letter-spacing: -.035em;
}

.l7-about__lead {
	margin: 32px 0 0;
	max-width: 42ch;
	font-size: clamp(18px, 1.8vw, 24px);
	line-height: 1.4;
	letter-spacing: -.015em;
}

.l7-about__label {
	display: block;
	padding-top: 12px;
	margin-bottom: 24px;
	border-top: 1px solid var(--fg);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
}

.l7-points-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.l7-points-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: clamp(24px, 3vw, 40px);
	line-height: 1.1;
	letter-spacing: -.025em;
}

/* Equipo: nombres grandes; el que está en el centro se ve completo, los demás se atenúan con el scroll */
.l7-team {
	list-style: none;
	margin: 0;
	padding: 20vh 0;
}

.l7-team li {
	font-size: clamp(40px, 6vw, 88px);
	line-height: 1.05;
	letter-spacing: -.035em;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	transition: padding .4s var(--ease), background .3s;
}

.l7-team li:hover {
	background: var(--tile);
	padding-left: 16px;
}

.l7-team__nombre {
	display: block;
}

.l7-team__role {
	display: block;
	font-family: inherit;
	margin-top: 8px;
	font-size: 16px;
	letter-spacing: 0;
	color: var(--muted);
}

.l7-team__role a { color: var(--fg); }

@media (max-width: 900px) {
	.l7-about { gap: 64px; }
}

/* ---------- Tienda (bloque en home) ---------- */
.l7-shop-teaser { display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; justify-content: space-between; }

/* ---------- Detalle de proyecto (overlay) ---------- */
.l7-detail-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: var(--bg);
	overflow: auto;
}

.l7-detail-overlay[hidden] { display: none; }

.l7-detail-bar {
	position: sticky;
	top: 0;
	background: var(--bg);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 18px var(--gutter);
	border-bottom: 1px solid var(--line);
}

.l7-detail-bar__actions { display: flex; gap: 24px; }

.l7-detail { display: none; }
.l7-detail.is-open {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px 16px;
	padding: 48px var(--gutter) 96px;
}

.l7-detail__title {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	gap: 24px;
	flex-wrap: wrap;
}

.l7-detail__title h2 {
	margin: 0;
	font-weight: 700;
	font-size: clamp(56px, 10vw, 160px);
	line-height: 0.85;
	letter-spacing: -0.05em;
}

.l7-detail__num { color: var(--muted); font-size: clamp(24px, 3vw, 44px); }

.l7-detail__hero { grid-column: 1 / -1; width: 100%; background: var(--tile); }

.l7-detail__facts {
	grid-column: 1 / -1;
	margin: 0;
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 8px 16px;
	align-content: start;
	border-top: 1px solid var(--line);
	padding-top: 16px;
}

.l7-detail__facts dt { color: var(--muted); }
.l7-detail__facts dd { margin: 0; }

.l7-figure {
	grid-column: 1 / -1;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.l7-figure__frame { background: #fff; border: 1px solid var(--line); }
.l7-figure figcaption { color: var(--muted); }

/* ---------- Footer ---------- */
.l7-footer {
	padding: 96px var(--gutter) 24px;
	border-top: 1px solid var(--fg);
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 48px 16px;
}

.l7-footer__label { grid-column: span 3; min-width: 160px; font-weight: 700; }

.l7-footer__cols {
	grid-column: span 9;
	min-width: min(100%, 320px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px 16px;
}

.l7-footer__cols > div { display: flex; flex-direction: column; gap: 4px; }
.l7-footer__bottom {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 96px;
	color: var(--muted);
}
.l7-footer__bottom a { color: var(--muted); }

/* ---------- WooCommerce ---------- */
.l7-shop {
	padding: 48px var(--gutter) 96px;
	display: block;
}

.l7-shop .page-title,
.l7-shop .woocommerce-products-header__title {
	font-weight: 700;
	font-size: clamp(56px, 10vw, 160px);
	line-height: 0.85;
	letter-spacing: -0.05em;
	margin: 0 0 32px;
}

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 56px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	float: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
}

.woocommerce ul.products li.product a img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--tile);
	width: 100%;
	height: auto;
	margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-weight: 700;
	font-size: 15px;
	padding: 0;
	margin: 0;
	color: var(--fg);
}

.woocommerce ul.products li.product .price {
	color: var(--muted);
	font-weight: 400;
	margin: 0;
}

.woocommerce ul.products li.product .price del { opacity: .6; }

.woocommerce ul.products li.product .onsale { display: none; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.checkout-button,
.button,
button.button {
	background: none;
	border: 1px solid var(--fg);
	border-radius: 0;
	color: var(--fg);
	padding: 10px 16px;
	font: inherit;
	font-size: 14px;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.checkout-button:hover {
	background: var(--fg);
	color: var(--bg);
	text-decoration: none;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.woocommerce a.checkout-button.button.alt {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover {
	background: none;
	color: var(--fg);
}

.woocommerce table.shop_table,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
	border: 0;
	border-collapse: collapse;
	border-top: 1px solid var(--fg);
	border-bottom: 1px solid var(--line);
	width: 100%;
	color: var(--fg);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-top: 1px solid var(--line);
	border-bottom: 0;
	padding: 16px 8px;
	background: none;
	color: var(--fg);
}

.woocommerce table.shop_table th { color: var(--muted); font-weight: 400; }

.woocommerce .cart-collaterals .cart_totals { width: 100%; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 1px solid var(--fg) !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 1px solid var(--line) !important;
	background: none !important;
	color: var(--fg) !important;
	padding: 16px 0 16px 0 !important;
	margin: 0 0 24px !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: var(--fg); }

.woocommerce .quantity .qty,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce select,
.woocommerce textarea,
.woocommerce-checkout input.input-text {
	background: none;
	border: 1px solid var(--line);
	border-radius: 0;
	color: var(--fg);
	padding: 10px;
}

.woocommerce div.product .product_title {
	font-weight: 700;
	font-size: clamp(40px, 6vw, 96px);
	line-height: .9;
	letter-spacing: -0.04em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--muted); font-size: 20px; }

.woocommerce div.product div.images img { background: var(--tile); }

/* ---------- Carruseles tipo Instagram (deslizar con el dedo o con flechas) ---------- */
.l7-carousel {
	position: relative;
	min-width: 0;
}

.l7-carousel__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.l7-carousel__track::-webkit-scrollbar { display: none; }
.l7-carousel__track:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

/* Arrastre con mouse: sin ajuste ni suavizado mientras se arrastra; sin seleccionar fotos. */
.l7-carousel__track { user-select: none; -webkit-user-select: none; }
.l7-carousel__track.is-drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.l7-carousel__track img { -webkit-user-drag: none; }

.l7-carousel__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--tile);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	cursor: pointer;
}

.l7-carousel__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.l7-carousel__dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.l7-carousel__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	opacity: .5;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
	transition: opacity .3s;
}

.l7-carousel__dot.is-active { opacity: 1; }

/* Tarjetas del portafolio: puntos sobre la foto */
.l7-card .l7-carousel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	margin: 0;
	pointer-events: none;
}

.l7-card__meta-btn {
	display: block;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	cursor: pointer;
	color: var(--fg);
}

/* Detalle: fotos a tamaño completo, sin recorte */
.l7-detail > .l7-carousel {
	grid-column: 1 / -1;
}

.l7-carousel--detail .l7-carousel__slide--plan {
	aspect-ratio: auto;
	background: var(--tile);
	cursor: default;
}

.l7-carousel--detail .l7-carousel__slide--plan img {
	position: static;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.l7-carousel--detail .l7-carousel__slide--plan figcaption {
	padding: 12px 0 0;
	background: transparent;
	text-align: center;
}

.l7-carousel__nav {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
}

.l7-carousel__nav > .l7-btn-reset { font-size: 20px; line-height: 1; padding: 6px 10px; }

.l7-carousel--detail .l7-carousel__dots { flex-wrap: wrap; }
.l7-carousel--detail .l7-carousel__dot { background: var(--line); box-shadow: none; opacity: 1; }
.l7-carousel--detail .l7-carousel__dot.is-active { background: var(--fg); }

/* Carrusel de productos (inicio) */
.l7-carousel--shelf .l7-carousel__track { gap: 16px; }

.l7-shelf__item {
	flex: 0 0 min(72%, 260px);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--fg);
	text-decoration: none;
}

.l7-shelf__item:hover { color: var(--fg); text-decoration: none; }

.l7-shelf__img img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--tile);
	display: block;
}

.l7-shelf__name { font-weight: 700; }
.l7-shelf__price { font-weight: 400; }
.l7-shelf__price .woocommerce-Price-amount { color: var(--muted); }

/* Contador de fotos sobre la tarjeta: 1/n */
.l7-carousel__count {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	padding: 3px 9px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0;
	pointer-events: none;
}

/* Descripción del proyecto, debajo del título (como en la referencia) */
.l7-detail__texto {
	grid-column: 1 / -1;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.4;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

.l7-detail__texto p { margin: 0; }

/* ---------- Detalle de proyecto (referencia: Telha Clarke) ---------- */
.l7-detail-overlay .l7-detail.is-open {
	display: block;
	padding: 64px var(--gutter) 120px;
}

/* Cabecera: número, título grande y datos en pares etiqueta / valor */
.l7-detail__num {
	display: block;
	color: var(--muted);
	font-size: 14px;
	margin-bottom: 20px;
}

.l7-detail__title {
	margin: 0 0 56px;
	font-weight: 400;
	font-size: clamp(44px, 7.5vw, 112px);
	line-height: 1;
	letter-spacing: -.035em;
	max-width: 14ch;
	color: var(--fg);
}

.l7-detail__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px 32px;
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.l7-detail__fact dt {
	color: var(--muted);
	font-size: 15px;
}

.l7-detail__fact dd {
	margin: 4px 0 0;
	font-size: 17px;
}

/* Fotos */
.l7-detail-overlay .l7-detail__portada { margin: 56px 0 0; }

.l7-foto { margin: 0; }
.l7-foto img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--tile);
}

.l7-fotos {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	margin-top: 56px;
}

.l7-fotos .l7-foto--full { grid-column: 1 / -1; }
.l7-fotos .l7-foto--half { grid-column: span 6; }

/* Secciones numeradas: etiqueta a la izquierda, texto a la derecha */
.l7-sec {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 16px;
	margin-top: 120px;
}

.l7-sec__head {
	grid-column: 1 / 4;
	display: flex;
	gap: 16px;
	align-items: baseline;
	border-top: 1px solid var(--fg);
	padding-top: 12px;
}

.l7-sec__num { color: var(--muted); font-size: 14px; }
.l7-sec__label { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

.l7-sec__lead {
	grid-column: 4 / 13;
	margin: 0;
	font-size: clamp(24px, 2.8vw, 40px);
	line-height: 1.2;
	letter-spacing: -.02em;
}

.l7-sec__texto {
	grid-column: 4 / 12;
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}

@media (max-width: 640px) {
	.l7-detail__title { font-size: 44px; }
	.l7-sec__head,
	.l7-sec__lead,
	.l7-sec__texto { grid-column: 1 / -1; }
	.l7-sec__head { margin-bottom: 20px; }
	.l7-fotos .l7-foto--half { grid-column: 1 / -1; }
	.l7-sec { margin-top: 80px; }
}

/* ---------- Tienda: cuadrícula de dos columnas (referencia Kalstore) ---------- */
.l7-shop .woocommerce-products-header__title,
.l7-shop .page-title {
	font-size: clamp(40px, 6vw, 80px);
	letter-spacing: -.04em;
	line-height: 1;
	margin: 0 0 32px;
}

.l7-shop__filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0 0 40px;
	font-size: 15px;
}

.l7-shop__filtros a { color: var(--muted); text-decoration: none; }
.l7-shop__filtros a:hover { color: var(--fg); text-decoration: none; }
.l7-shop__filtros a.is-active { color: var(--fg); }

.woocommerce ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 24px;
}

.woocommerce ul.products li.product {
	gap: 12px;
	text-align: left;
}

.woocommerce ul.products li.product a img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	padding: 0;
	background: var(--tile);
	transition: opacity .4s var(--ease);
}

.woocommerce ul.products li.product:hover a img { opacity: .88; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 400;
	letter-spacing: -.01em;
	line-height: 1.3;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title::after {
	content: " \2197";
}

.woocommerce ul.products li.product .price {
	font-size: 14px;
	color: var(--muted);
}

.l7-reserva { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
	.woocommerce ul.products { grid-template-columns: 1fr; }
}

/* ---------- Ficha de producto: fotos a la izquierda, panel de compra fijo a la derecha (referencia Kalstore) ---------- */
.l7-shop div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 0 64px;
	align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
	grid-column: 1;
	width: 100% !important;
	margin: 0;
}

.woocommerce div.product div.summary {
	grid-column: 2;
	position: sticky;
	top: 96px;
	width: 100% !important;
	float: none;
	padding-top: 0;
}

.woocommerce div.product .product_title {
	font-size: clamp(32px, 3.4vw, 48px);
	font-weight: 400;
	letter-spacing: -.03em;
	line-height: 1.05;
	text-transform: none;
	margin: 0 0 16px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-size: 18px;
	color: var(--fg);
	margin: 0 0 24px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	font-size: 15px;
	color: var(--muted);
	line-height: 1.5;
	margin-bottom: 24px;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.woocommerce div.product form.cart .quantity { margin: 0; }

.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1 1 100%;
	padding: 16px 20px;
	font-size: 15px;
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
	background: none;
	color: var(--fg);
}

.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 64px; }

/* Sin SKU ni categoría visibles, como en la referencia */
.woocommerce div.product .product_meta { display: none; }

@media (max-width: 900px) {
	.l7-shop div.product { grid-template-columns: 1fr; gap: 32px; }
	.woocommerce div.product .woocommerce-product-gallery,
	.woocommerce div.product div.summary { grid-column: 1; position: static; }
}

/* ---------- Encabezado al bajar (referencia Telha Clarke): sin fondo, "Menu" a la derecha, panel a pantalla completa ---------- */
.l7-header { transition: padding .3s var(--ease); }
.l7-header .l7-tagline { transition: opacity .3s; }

.l7-menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--fg);
	font: inherit;
	justify-self: end;
	position: relative;
	z-index: 11;
}

.l7-header--compact {
	background: transparent;
	border-bottom-color: transparent;
	padding-top: 14px;
	padding-bottom: 14px;
}

.l7-header--compact .l7-brand { grid-column: span 4; position: relative; z-index: 11; }
.l7-header--compact .l7-tagline { display: none; }
.l7-header--compact .l7-menu-toggle { display: block; grid-column: 9 / -1; }
.l7-header--compact .l7-nav { display: none; }

/* Panel abierto: pantalla completa con los enlaces en grande */
.l7-header--compact.l7-header--open .l7-nav {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 9;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 6px;
	padding: 0 var(--gutter);
	background: var(--tile);
	grid-column: auto;
}

.l7-header--compact.l7-header--open .l7-nav a {
	font-size: clamp(44px, 8vw, 96px);
	line-height: 1.05;
	letter-spacing: -.035em;
	color: var(--fg);
}

.l7-header--compact.l7-header--open .l7-nav button { font-size: 16px; }

@media (max-width: 900px) {
	.l7-header--compact .l7-brand { grid-column: span 6; }
	.l7-header--compact .l7-menu-toggle { grid-column: 7 / -1; }
}

/* ---------- Contacto (referencia: título grande con flecha, foto en blanco y negro, filas, redes) ---------- */
.l7-contacto {
	padding: 48px var(--gutter) 56px;
	border-top: 1px solid var(--fg);
}

.l7-contacto__cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.l7-contacto__titulo {
	margin: 0;
	font-weight: 400;
	font-size: clamp(40px, 15vw, 230px);
	line-height: .85;
	letter-spacing: -.045em;
	text-transform: uppercase;
}

.l7-contacto__flecha {
	width: clamp(64px, 11vw, 170px);
	height: auto;
	flex-shrink: 0;
	fill: var(--fg);
	stroke: none;
}

.l7-contacto__cuerpo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 40px;
	align-items: end;
	margin-top: 64px;
}

.l7-contacto__foto { margin: 0; }

.l7-contacto__foto img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: grayscale(1);
}

.l7-contacto__filas {
	margin: 0;
	border-top: 1px solid var(--fg);
}

.l7-contacto__fila {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--fg);
	font-size: clamp(16px, 1.6vw, 22px);
	text-transform: uppercase;
}

.l7-contacto__fila dt { flex-shrink: 0; }

.l7-contacto__fila dd {
	margin: 0;
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.l7-contacto__pie {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-top: 56px;
	font-size: clamp(16px, 1.6vw, 22px);
	text-transform: uppercase;
}

.l7-contacto__redes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 6px 48px;
}

.l7-contacto__redes a { color: var(--fg); }
.l7-contacto__redes li::before { content: "/ "; }

@media (max-width: 900px) {
	.l7-contacto__cuerpo { grid-template-columns: 1fr; }
	.l7-contacto__foto { display: none; }
	.l7-contacto__fila { flex-direction: column; gap: 6px; }
	.l7-contacto__fila dd { text-align: left; }
}

.l7-footer--simple {
	padding-top: 48px;
	padding-bottom: 24px;
}

@media (max-width: 900px) {
	.l7-contacto__titulo { grid-column: 1 / -1; }
	.l7-contacto__fila dt,
	.l7-contacto__fila dd { grid-column: 1 / -1; }
	.l7-contacto__fila dd { margin-top: 8px; }
}

/* Productos en el inicio: misma tarjeta que los proyectos */
.l7-card__link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--fg);
	text-decoration: none;
}

.l7-card__link:hover { color: var(--fg); text-decoration: none; }

.l7-card__link .l7-card__tile img {
	object-fit: cover;
}

.l7-grid--tienda {
	padding: 32px 0 0;
}

/* Botones: al pasar el mouse o presionar se invierten (negativo), sin subrayado */
a.button,
a.button:visited {
	text-decoration: none;
	color: var(--fg);
}

a.button:hover,
a.button:active {
	background: var(--fg);
	color: var(--bg);
	text-decoration: none;
}

/* Interruptor de tema (tipo alarma de iPhone): tocar o arrastrar la bolita */
.l7-switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 15px;
	background: var(--line);
	cursor: pointer;
	touch-action: none;
	flex-shrink: 0;
	vertical-align: middle;
	transition: background .3s var(--ease);
}

.l7-switch[aria-checked="true"] { background: var(--fg); }

.l7-switch__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .3s var(--ease);
}

.l7-switch[aria-checked="true"] .l7-switch__knob { transform: translateX(22px); }

.l7-switch.is-dragging,
.l7-switch.is-dragging .l7-switch__knob { transition: none; }

.l7-switch:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

/* Equipo: lista a la izquierda y la foto de quien está en el centro a la derecha (sticky) */
.l7-equipo {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 16px;
	align-items: start;
	position: relative;
}

.l7-equipo__lista { grid-column: 1 / 9; min-width: 0; }

.l7-team-fotos {
	position: absolute;
	left: 68%;
	top: 0;
	height: 300px;
	aspect-ratio: 3 / 4;
	pointer-events: none;
}

.l7-team-foto {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .5s var(--ease);
}

.l7-team-foto.is-active { opacity: 1; }

.l7-team-foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}

.l7-team-fotos:not(:has(img)) { display: none; }

@media (max-width: 900px) {
	.l7-equipo__lista { grid-column: 1 / -1; }
	.l7-team-fotos { display: none; }
}

/* Contacto en móvil: título y flecha caben en el ancho de la pantalla */
@media (max-width: 640px) {
	.l7-contacto__titulo { font-size: clamp(40px, 14vw, 120px); }
	.l7-contacto__flecha { width: 40px; }
	.l7-contacto__cabecera { gap: 12px; }
}

/* ---------- Carrito y pago: estilo de la tienda (blanco y negro, mucho aire) ---------- */
.l7-shop .woocommerce-cart-form { margin: 0; }

.l7-shop table.shop_table.cart {
	border: 0;
	border-top: 1px solid var(--fg);
	border-bottom: 1px solid var(--fg);
	width: 100%;
	margin: 0 0 40px;
}

.l7-shop table.shop_table.cart th,
.l7-shop table.shop_table.cart td {
	padding: 22px 8px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	font-size: 16px;
}

.l7-shop table.shop_table.cart thead th {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	border-top: 0;
}

.l7-shop td.product-thumbnail { width: 110px; }

.l7-shop table.cart td.product-thumbnail img {
	width: 96px;
	height: 120px;
	object-fit: cover;
	background: var(--tile);
	border: 0;
	padding: 0;
	margin: 0;
}

.l7-shop td.product-name a { color: var(--fg); font-size: 17px; letter-spacing: -.01em; }

.l7-shop td.product-remove a.remove {
	color: var(--muted);
	border: 0;
	font-size: 22px;
	line-height: 1;
}

.l7-shop td.product-remove a.remove:hover { background: var(--fg); color: var(--bg); }

.l7-shop td.product-quantity .quantity input.qty {
	width: 70px;
	height: 40px;
	text-align: center;
}

.l7-shop td.actions { padding: 0; border: 0; }

.l7-shop td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	padding: 0;
	margin: 0;
	float: none;
}

.l7-shop td.actions .coupon input.input-text { min-width: 220px; }

.l7-shop .cart_totals {
	float: none;
	width: min(100%, 460px);
	margin: 0 0 0 auto;
}

.l7-shop .cart_totals h2 {
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 400;
	letter-spacing: -.02em;
	margin: 0 0 16px;
}

.l7-shop .cart_totals table.shop_table {
	border-top: 1px solid var(--fg);
	border-bottom: 0;
	margin: 0 0 28px;
}

.l7-shop .cart_totals table.shop_table th,
.l7-shop .cart_totals table.shop_table td {
	font-size: 17px;
	padding: 16px 0;
}

.l7-shop .cart_totals table.shop_table td { text-align: right; }

.l7-shop .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	padding: 18px 20px;
	font-size: 16px;
	text-align: center;
	background: var(--fg);
	color: var(--bg);
	border: 1px solid var(--fg);
	margin: 0;
}

.l7-shop .wc-proceed-to-checkout .checkout-button:hover {
	background: var(--bg);
	color: var(--fg);
}

.l7-shop .woocommerce-message,
.l7-shop .woocommerce-info { margin-bottom: 32px; }

@media (max-width: 640px) {
	.l7-shop table.shop_table.cart thead { display: none; }
	.l7-shop table.shop_table.cart tr.cart_item td { padding: 14px 0; }
	.l7-shop td.product-thumbnail { width: 84px; }
	.l7-shop table.cart td.product-thumbnail img { width: 72px; height: 90px; }
	.l7-shop .cart_totals { width: 100%; }
}

/* Textos de la tienda en el color del tema (claro u oscuro) */
.l7-shop h1,
.l7-shop h2,
.l7-shop h3,
.l7-shop .product_title,
.l7-shop td,
.l7-shop th,
.l7-shop label,
.l7-shop .woocommerce-breadcrumb,
.l7-shop .woocommerce-product-details__short-description,
.l7-shop .stock,
.l7-shop .woocommerce-tabs a {
	color: var(--fg);
}

.l7-shop .woocommerce-breadcrumb a { color: var(--muted); }

/* Ficha de producto con el estilo editorial del inicio: título grande, filas con filete, párrafo de entrada */
.l7-shop div.product div.summary {
	position: sticky;
	top: 120px;
	padding-top: 8px;
}

.l7-shop div.product .product_title {
	font-size: clamp(48px, 6.4vw, 104px);
	font-weight: 400;
	letter-spacing: -.04em;
	line-height: .95;
	margin: 0 0 40px;
}

.l7-shop div.product p.price {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--fg);
	border-bottom: 1px solid var(--line);
	font-size: 18px;
	color: var(--fg);
}

.l7-shop div.product p.price::before {
	content: "Precio";
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
}

.l7-shop div.product p.price .tax_label,
.l7-shop div.product .woocommerce-product-details__short-description .tax_label {
	display: block;
	font-size: 14px;
	color: var(--muted);
}

.l7-shop div.product .woocommerce-product-details__short-description {
	margin: 32px 0 0;
	font-size: clamp(22px, 2.4vw, 32px);
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--fg);
}

.l7-shop div.product .woocommerce-product-details__short-description p { margin: 0 0 18px; }

.l7-shop div.product .woocommerce-product-details__short-description img {
	background: transparent;
	width: auto;
	max-height: 34px;
	padding: 0;
	margin: 8px 0 24px;
	border: 0;
}

.l7-shop div.product form.cart {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--fg);
	align-items: stretch;
}

.l7-shop div.product form.cart .quantity input.qty {
	height: 56px;
	width: 84px;
	font-size: 18px;
}

.l7-shop div.product form.cart .single_add_to_cart_button.button.alt,
.l7-shop div.product form.cart .single_add_to_cart_button {
	background: var(--fg) !important;
	color: var(--bg) !important;
	border: 1px solid var(--fg) !important;
	min-height: 56px;
	font-size: 17px;
	letter-spacing: -.01em;
	text-transform: none;
}

.l7-shop div.product form.cart .single_add_to_cart_button:hover {
	background: var(--bg) !important;
	color: var(--fg) !important;
}

@media (max-width: 900px) {
	.l7-shop div.product div.summary { position: static; }
	.l7-shop div.product .product_title { font-size: clamp(44px, 12vw, 64px); }
}

/* Iconos de la descripción: en modo oscuro se invierten para no dejar un recuadro blanco */
[data-theme="dark"] .l7-shop div.product .woocommerce-product-details__short-description img {
	filter: invert(1);
}

/* Descripción del producto en el bloque editorial: párrafo de entrada grande, el resto en texto normal */
.l7-shop div.product .l7-producto-texto {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 32px 0 0;
}

.l7-shop div.product .l7-producto-texto p {
	margin: 0;
	color: var(--fg);
	font-size: 17px;
	line-height: 1.5;
}

.l7-shop div.product .l7-producto-texto__lead {
	font-size: clamp(24px, 2.6vw, 36px);
	line-height: 1.2;
	letter-spacing: -.02em;
}

/* Visor de fotos del proyecto: pantalla completa, con los colores del tema (blanco en claro, negro en oscuro) */
.l7-detail .l7-foto img { cursor: zoom-in; }

.l7-visor {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	color: var(--fg);
}

.l7-visor[hidden] { display: none; }

.l7-visor__figura {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 160px);
}

.l7-visor__figura img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.l7-visor__contador {
	font-size: 14px;
	color: var(--muted);
}

.l7-visor__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	padding: 16px;
	background: none;
	border: 0;
	color: var(--fg);
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

.l7-visor__prev { left: 8px; }
.l7-visor__next { right: 8px; }

.l7-visor__cerrar {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 8px;
	background: none;
	border: 0;
	color: var(--fg);
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}

@media (max-width: 640px) {
	.l7-visor__figura { max-width: 100vw; }
	.l7-visor__nav { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.l7-brand { grid-column: 1 / -1; }
	.l7-tagline { grid-column: 1 / -1; }
	.l7-nav { grid-column: 1 / -1; justify-content: flex-start; gap: 16px 24px; }
	.l7-hero .l7-lead { grid-column: 1 / -1; }
	.l7-section__label,
	.l7-section__body,
	.l7-footer__label,
	.l7-footer__cols { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	:root { --gutter: 16px; }
	.l7-index__head,
	.l7-index__row { grid-template-columns: 36px minmax(0, 1fr) 60px; }
	.l7-index__head span:nth-child(3),
	.l7-index__row .l7-index__cat { display: none; }
	.l7-detail__facts { grid-template-columns: 90px 1fr; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.l7-reveal { opacity: 1; transform: none; transition: none; }
	.l7-card__tile img, .l7-index__row { transition: none; }
}
