/* Home "Galeria nocturna": negro calido de base, salas de color en la tienda.
   Texto principal crema casi puro; nada por debajo de #bdb4a9 para informacion importante. */
.noche { --n0: #12100e; --n1: #1a1613; --n2: #221c18; --cr: #f3f0eb; --cr2: #d9d2c9; --cr3: #bdb4a9; --raya: rgba(243, 240, 235, 0.16);
  background: var(--n0); color: var(--cr); }
.noche :focus-visible { outline-color: var(--cr); }
.sr-link { position: absolute; left: 8px; top: -80px; background: var(--cr); color: var(--n0); padding: 10px 14px; z-index: 400; border-radius: 6px; }
.sr-link:focus { top: 8px; }
section[id], div[id] { scroll-margin-top: 84px; }
.it { font-family: "Fraunces", Georgia, serif; font-style: normal; font-weight: 600; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; letter-spacing: -0.012em; word-spacing: 0.06em; line-height: 1; }
.it em { font-style: normal; color: var(--cempa); }

/* Cabecera */
.noche .top { background: rgba(18, 16, 14, 0.92); border-bottom: 1px solid var(--raya); }
/* El logo conserva sus colores de marca: va sobre una placa crema, nunca en blanco */
.noche .brand { background: var(--cr); border-radius: 999px; padding: 5px 16px 5px 10px; gap: 10px; }
.noche .brand img.firma { width: auto; height: 20px; }
.noche .brand img:first-child { width: 34px; }
.noche .lang span { color: var(--cr3); }
.noche .cart { border-color: var(--cr); }
.noche .cart:hover { background: var(--cr); color: var(--n0); }
.noche .nav a:hover, .noche .nav a[aria-current="page"] { border-color: var(--rojo); }
@media (max-width: 1023px) {
  .noche .nav.open { background: var(--n0); border-bottom: 1px solid var(--raya); }
  .noche .nav.open a { border-bottom-color: var(--raya); }
}
.noche .lead { color: var(--cr2); }
.noche .btn-line { border-color: var(--cr); color: var(--cr); }
.noche .btn-line:hover { background: var(--cr); color: var(--n0); }
.noche .btn-teal { background: var(--turq); color: #0f1a19; }
.noche .btn-teal:hover { background: #3cc6b8; }
.lnk { align-self: flex-start; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--cr); padding-bottom: 5px; }
.lnk:hover { color: var(--cempa); border-color: var(--cempa); }

/* Preloader oscuro */
.pre { position: fixed; inset: 0; z-index: 300; background: #f3f0eb; display: grid; place-items: center; transition: transform 0.9s var(--ease); }
.pre.out { transform: translateY(-100%); }
.pre-logo { display: grid; gap: 14px; justify-items: center; }
.pre-saco { position: relative; width: min(46vw, 300px); aspect-ratio: 1100 / 1066; animation: preIn 0.8s var(--ease) both; }
.pre-saco img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pre-saco .lis { animation: preLis 0.9s 0.8s var(--ease) forwards; transform-origin: 50% 50%; }
.pre-txt { width: min(66vw, 320px); height: auto; animation: preIn 0.8s 0.25s var(--ease) both; }
@keyframes preIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes preLis { to { opacity: 0; transform: scaleX(1.4) scaleY(0.8); } }
.pre-lock { overflow: hidden; }

/* Portada */
.hn { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto;
  min-height: min(calc(100dvh - 102px), 860px); padding: clamp(24px, 4vw, 56px) var(--gut) clamp(24px, 3vw, 44px); }
.hn > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(1.3) saturate(1.05); }
.hn::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 16, 14, 0.86), rgba(18, 16, 14, 0.25) 62%, rgba(18, 16, 14, 0.6)), linear-gradient(0deg, rgba(18, 16, 14, 0.92), transparent 50%); }
.hn-info { justify-self: end; max-width: 32ch; font-size: 1.05rem; line-height: 1.55; color: var(--cr); text-shadow: 0 1px 14px rgba(18, 16, 14, 0.9), 0 0 3px rgba(18, 16, 14, 0.8); border-left: 1px solid rgba(243, 240, 235, 0.5); padding-left: 16px; }
.hn-big { align-self: end; }
.hn h1 { display: flex; flex-direction: column-reverse; font-family: "Fraunces", Georgia, serif; font-style: normal; font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  letter-spacing: -0.03em; line-height: 0.8; font-size: clamp(5rem, 24vw, 22rem); margin: 0 0 -0.06em -0.04em; max-width: none; text-wrap: nowrap; }
.hn h1 small { font-family: var(--f-body); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: 0.34em;
  font-size: clamp(0.75rem, 1.2vw, 1rem); margin: 0 0 clamp(12px, 2vw, 24px) 0.4em; line-height: 1.2; }
.hn-nav ul { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(26px, 4vw, 52px); }
.hn-nav a { font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--cr2); padding: 8px 0; border-bottom: 1px solid transparent; }
.hn-nav a:hover { color: var(--cr); border-color: var(--rojo); }
@media (prefers-reduced-motion: no-preference) {
  .hn > img.bg { animation: kb 16s var(--ease) both; }
  .hn h1 { animation: subeT 1.3s 0.1s var(--ease) both; }
  .hn-info { animation: subeT 1.1s 0.5s var(--ease) both; }
  @keyframes kb { from { scale: 1.1; } to { scale: 1; } }
  @keyframes subeT { from { opacity: 0; translate: 0 42px; } to { opacity: 1; translate: 0 0; } }
}

/* El proyecto: "Entrar al lugar". Escenario fijo con la foto a todo el cuadro; el scroll acerca la fachada
   a la puerta y cruza al interior. El texto va pequeño, como comentario al pie.
   Sin JS o con "reducir movimiento" queda como lista de cuatro bloques (foto y texto). */
section.ent[id] { scroll-margin-top: var(--head); }
.ent { background: var(--n0); }
.ent-h { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); max-width: none; }
.ent-n { display: flex; align-items: center; gap: 12px; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cr2); margin-bottom: 10px; }
.ent-n::before { content: ""; width: 34px; height: 2px; background: var(--rojo); }
.ent-n i { font-style: normal; color: var(--cr3); }
.ent-cap h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
.ent-cap p { color: var(--cr2); font-size: 0.98rem; line-height: 1.5; max-width: 38ch; margin-top: 8px; }
.ent-cap .link-arrow { margin-top: 14px; display: inline-flex; font-size: 0.9rem; }
.ent-win { margin: 0; overflow: hidden; background: var(--n2); }
.ent-win img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ent-prog { display: none; }

/* Paso 4: collage de tiras verticales */
.ent-strips { display: flex; gap: 6px; }
.ent-strips .st { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--n2); }
.ent-strips .st img { position: absolute; inset: 0; }

/* Modo lista (sin JS o con reducir movimiento) */
.ent:not(.ent-live) .ent-stage { max-width: var(--max); margin-inline: auto; padding: var(--sec) var(--gut); display: grid; gap: clamp(40px, 6vw, 80px); }
.ent:not(.ent-live) .ent-s { display: grid; gap: 16px; }
.ent:not(.ent-live) .ent-win { aspect-ratio: 16 / 9; }

/* Modo escenario */
.ent-live .ent-track { height: 470dvh; }
.ent-live .ent-stage { position: sticky; top: var(--head); height: calc(100dvh - var(--head)); overflow: hidden; isolation: isolate; background: var(--n0); }
.ent-live .ent-h { position: absolute; left: var(--gut); top: 20px; z-index: 6; text-shadow: 0 1px 14px rgba(18, 16, 14, 0.85); }
.ent-live .ent-s { --e: 1; --o: 0; --c: 1; --k: 0; --ws: 1; --z: 1; position: absolute; inset: 0; opacity: var(--e); pointer-events: none; }
.ent-live .ent-s + .ent-s { --e: 0; --c: 0; }
.ent-live .ent-s.gone .ent-win { visibility: hidden; }
.ent-live .ent-win { position: absolute; inset: 0; background: var(--n0); }
.ent-live .ent-win img { scale: var(--ws); will-change: scale; }
.ent-live .ent-full .ent-win img { object-position: 50% 50%; transform-origin: 58% 76%; scale: var(--z); }
.ent-live .ent-strips { display: block; }
.ent-live .ent-strips .st { position: absolute; top: 0; bottom: 0; width: 25%; border-left: 6px solid var(--n0); background: var(--n0); }
.ent-live .ent-strips .st:nth-child(1) { left: 0; }
.ent-live .ent-strips .st:nth-child(2) { left: 25%; top: 90px; bottom: -30px; }
.ent-live .ent-strips .st:nth-child(3) { left: 50%; top: -40px; bottom: 90px; }
.ent-live .ent-strips .st:nth-child(4) { left: 75%; top: 50px; bottom: 0; }
.ent-live .ent-s[data-i="3"]::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18, 16, 14, 0.82), rgba(18, 16, 14, 0) 46%); opacity: calc(1 - var(--k) * 0.85); pointer-events: none; }
.ent-live .ent-s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 16, 14, 0.88), rgba(18, 16, 14, 0.25) 34%, transparent 52%), linear-gradient(180deg, rgba(18, 16, 14, 0.5), transparent 20%); opacity: calc(1 - var(--k) * 0.85); }
.ent-live .ent-cap { position: absolute; z-index: 3; left: var(--gut); bottom: 104px; width: min(40ch, 46vw); opacity: calc(var(--c) * (1 - var(--k))); translate: 0 calc((1 - var(--c)) * 24px - var(--k) * 24px); pointer-events: none; }
.ent-live .ent-cap.on { pointer-events: auto; }
.ent-live .ent-cap p { text-shadow: 0 1px 12px rgba(18, 16, 14, 0.8); }
.ent-live .ent-prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: absolute; z-index: 6; left: var(--gut); right: var(--gut); bottom: 22px; padding-top: 12px; border-top: 1px solid rgba(243, 240, 235, 0.3); --p: 0; }
.ent-live .ent-prog::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--p) * 100%); background: var(--rojo); }
.ent-prog button { background: none; border: 0; padding: 6px 0; text-align: left; color: var(--cr2); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(18, 16, 14, 0.9); transition: color 0.3s var(--ease); }
.ent-prog button b { font-weight: 600; margin-right: 8px; }
.ent-prog button:hover, .ent-prog button[aria-current="step"] { color: var(--cr); }

/* Tienda */
.t-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.t-intro h2 { font-size: clamp(3rem, 6vw, 5.4rem); max-width: none; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }


/* Visitanos */
.vis { padding-block: var(--sec); background: var(--n0); }
.vis h2 { font-size: clamp(3rem, 6vw, 5.4rem); max-width: none; margin-bottom: clamp(20px, 3vw, 40px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.b { background: var(--n1); border: 1px solid var(--raya); padding: clamp(18px, 2vw, 30px); display: flex; flex-direction: column; gap: 14px; margin: 0; }
.b h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.b p { color: var(--cr2); }
.b-a { grid-column: 1 / 8; grid-row: 1 / 3; padding: 0; border: 0; background: none; }
.b-a img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
/* Mosaico de "Pasa a vernos": una foto grande y dos chicas */
.mosaico { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1.25fr 1fr; gap: clamp(8px, 1vw, 12px); min-height: 560px; }
.mosaico .mo { display: block; overflow: hidden; min-height: 0; }
.mosaico .m1 { grid-row: 1 / 3; }
.mosaico img { min-height: 0; display: block; }
/* Entrada: solo con JS y sin "reducir movimiento"; cada pieza se abre una vez */
.vis-live .mosaico .mo { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease); transition-delay: var(--d, 0s); }
.vis-live .mosaico .mo img { transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.vis-live .mosaico:not(.in) .m1 { clip-path: inset(0 100% 0 0); --d: 0s; }
.vis-live .mosaico:not(.in) .m2 { clip-path: inset(0 0 100% 0); }
.vis-live .mosaico:not(.in) .m3 { clip-path: inset(100% 0 0 0); }
.vis-live .mosaico .m2 { --d: .2s; }
.vis-live .mosaico .m3 { --d: .38s; }
.vis-live .mosaico:not(.in) .mo img { transform: scale(1.18); }
.b-b { grid-column: 8 / 13; }
.b-c { grid-column: 8 / 13; }
.b-f { grid-column: 1 / 13; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--cr); color: var(--n0); border: 0; }
.b-f p { color: #3a2f2c; margin-top: 8px; }
.b-f .btn-line { border-color: var(--n0); color: var(--n0); }
.b-f .btn-line:hover { background: var(--n0); color: var(--cr); }
.mapa { aspect-ratio: 16 / 9; border: 1.5px dashed rgba(243, 240, 235, 0.45); display: grid; place-items: center; color: var(--cr2); font: 600 0.78rem ui-monospace, "Cascadia Mono", Consolas, monospace; }

.noche .pie { border-top: 1px solid var(--raya); }
.noche .pie .brand { width: fit-content; }
.noche .pie .brand img { background: none; padding: 0; }

.noche .cart { white-space: nowrap; }
@media (max-width: 480px) {
  .noche .brand { padding: 4px 12px 4px 8px; gap: 8px; }
  .noche .brand img.firma { height: 16px; }
  .noche .brand img:first-child { width: 28px; }
  .noche .top-r { gap: 8px; }
  .noche .cart { padding: 7px 12px; }
}
@media (max-width: 900px) {
  .hn-info { justify-self: start; max-width: none; margin-bottom: 18px; }
  .hn-nav ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 14px; }
  .hn-nav a { display: inline-block; padding: 14px 0; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--cr); }
  .ent-live .ent-track { height: 420dvh; }
  .ent-live .ent-cap { left: var(--gut); right: var(--gut); width: auto; bottom: 90px; }
  .ent-cap h3 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .ent-cap p { font-size: 0.92rem; }
  .ent-live .ent-prog { gap: 6px; bottom: 14px; }
  .ent-prog button { font-size: 0.75rem; letter-spacing: 0.08em; padding: 8px 0; min-height: 44px; }
  .ent-prog button b { display: block; margin: 0 0 2px; }
  .ent-n { font-size: 0.8rem; color: var(--cr); }
  .ent-n i { color: var(--cr2); }
  .ent-live .ent-s::after { background: linear-gradient(0deg, rgba(18, 16, 14, 0.96), rgba(18, 16, 14, 0.78) 30%, rgba(18, 16, 14, 0.2) 52%, transparent 64%), linear-gradient(180deg, rgba(18, 16, 14, 0.5), transparent 20%); }
  .ent-cap p { color: var(--cr); text-shadow: 0 1px 12px rgba(18, 16, 14, 0.85); }
  .ent:not(.ent-live) .ent-win { aspect-ratio: 4 / 3; }
  .ent-strips .st:not(:nth-child(2)) { display: none; }
  .ent-live .ent-strips .st:nth-child(2) { left: 0; top: 0; bottom: 0; width: 100%; border-left: 0; }
  .ent-live .ent-s[data-i="3"]::before { display: none; }
  .b-a, .b-b, .b-c, .b-f { grid-column: 1 / -1; grid-row: auto; }
  .b-a img { min-height: 0; }
  .mosaico { min-height: 0; aspect-ratio: 4 / 3.4; grid-template-columns: 1.3fr 1fr; }
}

/* Celular: zonas de toque de 44 px sin mover el diseno */
@media (max-width: 900px) {
  .noche .brand, .noche .cart, .link-arrow, .lnk { position: relative; }
  .noche .brand::after, .link-arrow::after, .lnk::after { content: ""; position: absolute; inset: -9px 0; }
  .noche .cart { min-height: 44px; }
  .burger { min-height: 44px; min-width: 44px; }
  .pie li { margin-bottom: 0; }
  .pie li a { display: inline-block; padding: 12px 0; min-width: 44px; }
  .cart-q button { width: 44px; height: 44px; }
  .cart-d { padding: 14px 0; }
}
