/*
 * Menú digital de Norte
 * Misma estructura que el menú de Cuerno NY (logo, menús, recuadro de texto y pie)
 * con los colores, tipografías y el carrusel de fondo de nortenyc.com.
 */

/* Tipografías del sitio: los archivos ya están en nortenyc.com/fonts/ */
@font-face { font-family: "Swiss 721"; src: url("/fonts/Swiss721-Regular.woff2") format("woff2"), url("/fonts/Swiss721-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Swiss 721 Black Condensed"; src: url("/fonts/Swiss721-BlackCondensed.woff2") format("woff2"), url("/fonts/Swiss721-BlackCondensed.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }

/* Colores del sitio (los mismos de /css/norte.css) */
:root {
  --carbon: #1a1a1a;
  --crema: #efe6dc;
  --font-cond: "Swiss 721 Black Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Swiss 721", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  display: flex;
  min-height: 100svh;
  background-color: var(--carbon);
  color: var(--crema);
  font-family: var(--font-body);
  text-align: center;
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  padding-top: 30px;
}

a, a:focus, a:hover { color: var(--crema); }


/*
 * Fondo: carrusel igual al de la página principal
 */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--carbon);
  overflow: hidden;
}

/* Velo arriba y abajo para que se lean el logo, los menús y el pie */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, .45) 0%,
    rgba(26, 26, 26, .10) 30%,
    rgba(26, 26, 26, .10) 60%,
    rgba(26, 26, 26, .60) 100%
  );
}

.shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1400ms;
}
.shot.is-active { opacity: 1; }

.shot picture { display: block; width: 100%; height: 100%; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;               /* igual que la portada: la foto se oscurece sobre el fondo carbón */
  transform: scale(1);
}

.shot.is-active img { animation: drift 9000ms linear forwards; }

@keyframes drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; }
  .shot.is-active img { animation: none; }
}


/*
 * Estructura (la de la página de Cuerno)
 */
.cover-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 52em;           /* en computadora caben los 4 menús en una sola fila */
  min-height: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.masthead { margin-bottom: auto; }

.logo {
  width: 70%;
  max-width: 340px;
  height: auto;
}

/* Menús en fila, centrados, y bajan de renglón si no caben (como en Cuerno) */
.nav-masthead {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin-top: 2rem;
}

.nav-masthead a {
  padding: .35rem 0;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 3.9px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--crema);
  border-bottom: .2rem solid transparent;
}

.nav-masthead a:hover,
.nav-masthead a:focus-visible {
  border-bottom-color: rgba(239, 230, 220, .6);
  outline: none;
}


/*
 * Recuadro de texto (el mismo de Cuerno)
 */
.cover { padding: 0 1rem; }

.norte-text {
  font-size: 15px;
  line-height: 1.45;
  background-color: rgba(26, 26, 26, .45);
  color: var(--crema);
  padding: 15px 20px;
  margin: 60px auto 20px;
  border-radius: 12px;
  max-width: 640px;          /* renglones cómodos de leer en computadora */
  text-wrap: pretty;         /* evita que quede una palabra sola al final */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .25);
}


/*
 * Flechas y marquitas del carrusel (las de la página principal)
 */
.reel-ui {
  margin-top: auto;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 320ms;
}
body:hover .reel-ui,
.reel-ui:focus-within { opacity: 1; }
@media (hover: none) { .reel-ui { opacity: .7; } }

.reel-nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, .8rem); }

.nav-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--crema);
  opacity: .55;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity 200ms;
}
.nav-btn:hover { opacity: 1; }
.nav-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.ticks { display: flex; gap: .45rem; align-items: center; }

.tick {
  width: 14px;
  height: 1px;
  padding: 0;
  border: none;
  background: var(--crema);
  opacity: .3;
  cursor: pointer;
  transition: opacity 300ms;
}
.tick.is-active { opacity: .9; }
.tick:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }


/*
 * Pie
 */
.mastfoot {
  margin-top: .5rem;
  font-size: 13px;
  color: rgba(239, 230, 220, .65);
}
.mastfoot p { margin: .5rem 0; }
