/* MAGRA Meat Market — página de enlaces
   Colores tomados del brandboard. */

:root {
  --negro: #1D1D1B;
  --crema: #F2E6D7;
  --crema-clara: #FAF4EA;
  --crema-oscura: #E7D9C5;
  --caqui: #C5AE86;
  --verde: #004F38;
  --arena: #E2B67A;
  --rojo: #AD0F30;

  --f-display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-texto: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--crema);
  /* grano de papel, como en las piezas de la marca */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .11 0 0 0 0 .1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--negro);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1 { margin: 0; }

:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }

/* ───────── Estructura ───────── */

.pagina {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* el logo gigante, girado, en un tono apenas más oscuro que el fondo */
.fondo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fondo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: max(150vw, 1500px);
  aspect-ratio: 1400 / 358;
  transform: translate(-50%, -50%) rotate(-36deg);
  background: var(--crema-oscura);
  opacity: .7;
  -webkit-mask: url(img/logo.png) center / contain no-repeat;
          mask: url(img/logo.png) center / contain no-repeat;
}

.columna {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  padding-top: max(28px, env(safe-area-inset-top));
}

/* ───────── Marca ───────── */

.marca { text-align: center; }

.sello {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 14px;
}
.sello__aro {
  width: 100%;
  height: 100%;
  animation: girar 26s linear infinite;
}
.sello__aro text {
  font-family: var(--f-texto);
  font-weight: 700;
  font-size: 9.6px;
  fill: var(--negro);
}
.sello__bife {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  transform: translate(-50%, -50%);
}

.marca__logo img { width: 100%; }

.lema {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
  margin-top: 16px;
  padding: 9px 2px;
  border-block: 1.5px solid var(--negro);
  font-weight: 700;
  font-size: clamp(9.5px, 2.75vw, 12px);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lema__centro { color: var(--verde); }

/* ───────── Redes ───────── */

.redes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 24px;
}
.redes a {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--negro);
  color: var(--crema);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.redes svg { width: 24px; height: 24px; }
.redes a:hover { background: var(--arena); color: var(--negro); transform: translateY(-3px) rotate(-6deg); }
.redes a:active { transform: translateY(0) scale(.94); }

/* ───────── Botones ───────── */

.enlaces { display: grid; gap: 15px; }

.boton {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 13px 13px;
  border: 2.5px solid var(--negro);
  border-radius: 20px;
  background: var(--crema-clara);
  box-shadow: 0 5px 0 var(--negro);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.boton:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--negro); background: #fff; }
.boton:active { transform: translateY(5px); box-shadow: 0 0 0 var(--negro); }

.boton__icono {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--negro);
  border-radius: 50%;
  background: var(--crema);
  color: var(--negro);
}
.boton__icono svg { width: 24px; height: 24px; }
.boton__icono--rojo  { background: var(--rojo);  color: var(--crema); }
.boton__icono--arena { background: var(--arena); }
.boton__icono--negro { background: var(--negro); color: var(--crema); }
.boton__icono--caqui { background: var(--caqui); }

.boton__texto { display: grid; gap: 3px; min-width: 0; }
.boton__titulo {
  font-family: var(--f-display);
  font-size: 1.15rem;
  line-height: 1.08;
  letter-spacing: .005em;
}
.boton__nota {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.1;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .72;
}

.boton__flecha { width: 26px; height: 26px; transition: transform .15s ease; }
.boton:hover .boton__flecha { transform: translateX(4px); }

/* el principal: verde de la marca, más grande */
.boton--principal {
  grid-template-columns: 1fr auto;
  padding: 20px 18px 20px 20px;
  background: var(--verde);
  color: var(--crema);
}
.boton--principal:hover { background: #00664a; }
.boton--principal .boton__texto { gap: 6px; }
.boton--principal .boton__titulo { font-size: clamp(1.2rem, 6.4vw, 1.75rem); }
.boton--principal .boton__nota { opacity: 1; color: var(--arena); font-size: clamp(.78rem, 3.7vw, 1rem); letter-spacing: .05em; }
.boton--principal .boton__flecha { width: 30px; height: 30px; }

/* celulares muy angostos */
@media (max-width: 359px) {
  .columna { padding-inline: 16px; }
  .boton { gap: 10px; padding-left: 10px; padding-right: 11px; }
  .boton__icono { width: 40px; height: 40px; }
  .boton__icono svg { width: 21px; height: 21px; }
  .boton__titulo { font-size: 1.05rem; }
  .boton__nota { font-size: .9rem; }
  .boton__flecha { width: 22px; height: 22px; }
  .boton--principal { padding-left: 16px; padding-right: 14px; }
  .boton--principal .boton__flecha { width: 26px; height: 26px; }
}

/* aviso de enlace sin completar */
.boton[href="#pendiente"]::after {
  content: "Falta el link";
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--rojo);
  color: #fff;
  font: 700 .62rem/1.3 var(--f-texto);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(3deg);
}
.redes a[href="#pendiente"]::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--crema);
  border-radius: 50%;
  background: var(--rojo);
}

/* ───────── Stickers ───────── */

.stickers-fila {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 34px 0 6px;
}
.stickers-fila img {
  width: 31%;
  max-width: 132px;
  filter: drop-shadow(0 4px 5px rgba(29, 29, 27, .2));
}
.stickers-fila img:nth-child(1) { transform: rotate(-9deg); margin-right: -3%; }
.stickers-fila img:nth-child(2) { transform: rotate(6deg) translateY(8px); z-index: 1; }
.stickers-fila img:nth-child(3) { transform: rotate(8deg); margin-left: -2%; width: 26%; max-width: 108px; }

.stickers-lados { display: none; }

@media (min-width: 1000px) {
  .stickers-fila { display: none; }

  .stickers-lados {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
  }
  .st {
    position: absolute;
    filter: drop-shadow(0 5px 7px rgba(29, 29, 27, .22));
    transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
    animation: pegar .45s cubic-bezier(.3, 1.5, .5, 1) backwards;
  }
  .st--1 { width: 168px; top: 70px;  left: 6%;   --giro: -10deg; animation-delay: .15s; }
  .st--2 { width: 150px; top: 345px; left: 13%;  --giro: 7deg;   animation-delay: .3s; }
  .st--3 { width: 176px; top: 610px; left: 4%;   --giro: -5deg;  animation-delay: .45s; }
  .st--4 { width: 158px; top: 60px;  right: 9%;  --giro: 9deg;   animation-delay: .22s; }
  .st--5 { width: 132px; top: 320px; right: 4%;  --giro: -7deg;  animation-delay: .37s; }
  .st--6 { width: 184px; top: 615px; right: 10%; --giro: 6deg;   animation-delay: .52s; }
  .st { transform: rotate(var(--giro)); }
  .st:hover { transform: rotate(calc(var(--giro) * -1)) scale(1.08); }
}

/* ───────── Pie ───────── */

.pie { margin-top: 26px; text-align: center; }
.pie__horarios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pie__firma {
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .7;
}

/* ───────── Cinta ───────── */

.cinta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 11px 0;
  padding-bottom: max(11px, env(safe-area-inset-bottom));
  background: var(--negro);
  color: var(--crema);
  overflow: hidden;
}
.cinta__pista {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding-left: 18px;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: correr 34s linear infinite;
}
.cinta__pista i { font-style: normal; color: var(--arena); }

/* ───────── Movimiento ───────── */

/* solo se mueven: nunca arrancan invisibles, por si un navegador frena la animación */
.enlaces li { animation: subir .5s cubic-bezier(.2, .8, .3, 1) backwards; }
.enlaces li:nth-child(1) { animation-delay: .05s; }
.enlaces li:nth-child(2) { animation-delay: .12s; }
.enlaces li:nth-child(3) { animation-delay: .19s; }
.enlaces li:nth-child(4) { animation-delay: .26s; }
.enlaces li:nth-child(5) { animation-delay: .33s; }

@keyframes subir  { from { transform: translateY(16px); } }
@keyframes pegar  { from { transform: rotate(var(--giro)) scale(1.3); } }
@keyframes girar  { to { transform: rotate(360deg); } }
@keyframes correr { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
