:root {
	--f-head: 'Raleway', sans-serif;
	--f-body: 'Overpass', sans-serif;
	--c-deep: #2e2e30;
	--c-btn: #47474a;
	--gut: clamp(16px, 4vw, 56px);
	--wrap: 1240px;
	--side: max(var(--gut), calc((100% - var(--wrap)) / 2));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-variant-numeric: lining-nums; font-family: var(--f-body); color: #fff; background: var(--c-deep); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Header: tres piezas flotantes (logo · links · CTA) ── */
.nv {
	position: fixed; inset: 0 0 auto; z-index: 50;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: 20px var(--gut);
	transition: background .4s ease, padding .4s ease, backdrop-filter .4s ease;
}
.admin-bar .nv { top: 32px; }
.nv.is-solid { background: rgba(46,46,48,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.nv-logo img { width: 132px; transition: width .4s ease; }
.nv.is-solid .nv-logo img { width: 112px; }
.nv-links { display: flex; gap: 32px; }
.nv-links a { font-size: 14px; letter-spacing: .02em; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.nv-links a:hover { border-color: currentColor; }
.nv-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nv-cta {
	font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 999px;
	background: #fff; color: var(--c-deep); transition: transform .25s ease;
}
.nv-cta:hover { transform: translateY(-1px); }
.nv-burger {
	display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
	background: rgba(255,255,255,.08); cursor: pointer; place-content: center; gap: 6px;
}
.nv-burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .3s ease; }
.nv-open .nv-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nv-open .nv-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nv-sheet {
	position: fixed; inset: 0; z-index: 40; padding: 110px var(--gut) 32px;
	background: var(--c-deep); display: flex; flex-direction: column; justify-content: space-between;
}
.nv-sheet[hidden] { display: none; }
.nv-sheet nav { display: grid; }
.nv-sheet nav a {
	font-family: var(--f-head); font-weight: 300; font-size: 34px; padding: 14px 0;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.nv-open { overflow: hidden; }
.nv-open .nv-cta { visibility: hidden; }

/* ── Hero: video a pantalla completa, texto abajo a la izquierda ── */
.hr { position: relative; min-height: 100svh; display: grid; overflow: hidden; }
.hr-media { position: absolute; inset: 0 0 auto; width: 100%; height: 122%; object-fit: cover; object-position: center top; }
.hr-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(20,20,22,.45) 0%, rgba(20,20,22,0) 22%),
		linear-gradient(0deg, rgba(20,20,22,.82) 0%, rgba(20,20,22,.35) 45%, rgba(20,20,22,0) 70%);
}
.hr-in { position: relative; align-self: end; padding: 140px var(--gut) clamp(48px, 8vh, 96px); }
.hr-in > * { max-width: 640px; }
.hr-h1 {
	margin: 0; font-family: var(--f-head); font-weight: 400;
	font-size: clamp(36px, 3.4vw, 62px); line-height: 1.1; letter-spacing: -.015em;
}
.hr-p { margin: 26px 0 0; max-width: 460px; font-size: 18px; line-height: 1.55; font-weight: 300; opacity: .9; }
.hr-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.hr-btn {
	display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
	border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em;
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.hr-btn--solid { background: #fff; color: var(--c-deep); }
.hr-btn--solid:hover { transform: translateY(-2px); }
.hr-link { font-size: 15px; font-weight: 600; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.6); transition: border-color .25s ease; }
.hr-link:hover { border-color: #fff; }


/* ── Lightbox del video con sonido ── */
.hr-lb { width: min(1200px, 92vw); padding: 0; border: 0; background: #000; border-radius: 8px; overflow: visible; }
.hr-lb::backdrop { background: rgba(10,10,12,.88); }
.hr-lb video { display: block; width: 100%; border-radius: 8px; }
.hr-lb-x { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 34px; cursor: pointer; }

/* ── Tablet ── */
@media (max-width: 999px) {
	.nv { grid-template-columns: 1fr auto; }
	.nv-links { display: none; }
	.nv-burger { display: grid; }
}

/* ── Celular ── */
@media (max-width: 690px) {
	.nv-logo img { width: 104px; }
	.nv-cta { padding: 11px 16px; font-size: 13px; }
	.hr-in { padding-bottom: 32px; }
	.hr-p { font-size: 16px; }
	.hr-btns .hr-btn { width: 100%; justify-content: center; }
}
@media (max-width: 782px) { .admin-bar .nv { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	.hr-media { display: none; }
	.hr { background: url('https://endetalleinteriores.com/wp-content/uploads/2025/11/3.jpg') center / cover; }
}
