/* =========================================================
   Menú digital El Alebrije — estilos (estilo v3 aprobado)
   Colores de marca en :root. Diseño móvil primero (max 640px).
   ========================================================= */
/* ===== Fuentes (archivos en fonts/) ===== */
@font-face {
  font-family: 'Chango';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(fonts/chango-latin-400-normal.woff2) format('woff2')
}

@font-face {
  font-family: 'Figtree';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(fonts/figtree-latin-500-normal.woff2) format('woff2')
}

@font-face {
  font-family: 'Figtree';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(fonts/figtree-latin-700-normal.woff2) format('woff2')
}

@font-face {
  font-family: 'Figtree';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url(fonts/figtree-latin-800-normal.woff2) format('woff2')
}

@font-face {
  font-family: 'Figtree';
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url(fonts/figtree-latin-500-italic.woff2) format('woff2')
}

:root {
  --mora: #5B1A7A;
  --ama: #FFB400;
  --amas: #FFE7A3;
  --rosa: #E6007E;
  --turq: #00A99D;
  --crema: #FFF7E8;
  --tinta: #2B1A22;
  --gris: #5E4B52
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font: 500 16px/1.45 'Figtree', system-ui, sans-serif
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  overflow-x: clip;
  border-left: 6px solid var(--mora);
  border-right: 6px solid var(--mora)
}

@media (min-width:700px) {
  body {
    background: linear-gradient(90deg, var(--mora) 0 calc(50% - 326px), var(--crema) 0 calc(50% + 326px), var(--mora) 0)
  }

  .wrap {
    border: 0
  }
}

.picado {
  height: 74px;
  overflow: hidden;
  position: relative;
  margin: 0 -16px
}

.picado .hilo {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 2px;
  background: #bbb
}

.picado .flags {
  display: flex;
  justify-content: space-around;
  gap: 4px;
  padding: 0 4px
}

.picado .flag {
  width: 9%;
  height: auto;
  max-width: 56px
}

.hero {
  text-align: center;
  padding: 4px 0 6px
}

.hero .logo {
  width: min(78%, 330px);
  height: auto;
  margin: 0 auto
}

/* Celular acostado: que el logo no se coma toda la pantalla */
@media (orientation:landscape) and (max-height:500px) {
  .hero .logo {
    width: auto;
    max-height: 46vh
  }
}

.hero h1 {
  font: 400 clamp(38px, 12vw, 46px)/1 'Chango';
  color: var(--mora);
  margin: 8px 0 4px
}

.hero .voz {
  margin: 0 auto 14px;
  max-width: 30ch
}

.voz {
  font-style: italic;
  color: var(--rosa);
  font-weight: 500;
  margin: 2px 0 0
}

.abierto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  border: 2px solid var(--amas);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
  text-align: left
}

.abierto span {
  min-width: 0
}

.abierto i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #999
}

.abierto.si i {
  background: #1aa34a
}

.abierto.no i {
  background: var(--rosa)
}

.acc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 6px
}

.acc a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  justify-content: center;
  border-radius: 14px;
  background: var(--mora);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  padding: 6px 4px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, filter .12s
}

.acc a:active {
  transform: scale(.96)
}

/* Pantallas angostas (Android chico, iPhone SE 1a gen): 2 x 2 con ícono al lado */
@media (max-width:359px) {
  .acc {
    grid-template-columns: 1fr 1fr
  }

  .acc a {
    flex-direction: row;
    min-height: 50px;
    gap: 8px;
    font-size: 14px
  }

  .acc svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0
  }
}

.acc a.wa {
  background: #1f8f4e
}

.acc svg {
  width: 24px;
  height: 24px
}

.acc a:focus-visible,
.cats a:focus-visible {
  outline: 3px solid var(--ama);
  outline-offset: 2px
}

nav.cats {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--crema);
  margin: 10px -16px 0;
  border-bottom: 3px solid var(--ama);
  box-shadow: 0 4px 10px -6px rgba(43, 26, 34, .25)
}

nav.cats .in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  /* Desvanecido en las orillas: indica que la barra se desliza */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent)
}

nav.cats .in::-webkit-scrollbar {
  display: none
}

nav.cats a {
  flex: 0 0 auto;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--mora);
  color: var(--mora);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent
}

nav.cats a.on {
  background: var(--mora);
  color: var(--ama)
}

.sec {
  padding: 26px 0 8px
}

.sec+.sec {
  border-top: 0
}

.tit {
  border-bottom: 3px solid var(--ama);
  padding-bottom: 6px;
  margin-bottom: 14px
}

.tit h2 {
  font: 400 clamp(24px, 8vw, 30px)/1.05 'Chango';
  overflow-wrap: break-word;
  color: var(--mora);
  margin: 0;
  letter-spacing: .01em
}

h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mora);
  margin: 20px 0 6px
}

h3 i {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  flex-shrink: 0
}

.lst {
  list-style: none;
  margin: 0;
  padding: 0
}

.it {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(91, 26, 122, .18)
}

.it:last-child {
  border-bottom: 0
}

.r {
  display: flex;
  align-items: baseline;
  gap: 8px
}

.r h4 {
  margin: 0;
  text-wrap: pretty;
  font-weight: 800;
  font-size: 17px;
  color: var(--tinta)
}

.dl {
  flex: 1;
  border-bottom: 2px dotted rgba(91, 26, 122, .35);
  transform: translateY(-4px);
  min-width: 12px
}

.p {
  font-weight: 800;
  font-size: 17px;
  color: var(--mora);
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.it p,
.casa p {
  margin: 3px 0 0;
  color: var(--gris);
  font-size: 15px
}

@media (min-width:480px) {
  .lst.dos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px
  }

  .lst.dos .it {
    border-bottom: 1px dashed rgba(91, 26, 122, .18)
  }
}

.foto {
  margin: 6px 0 10px;
  position: relative
}

.foto img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 16px
}

.foto figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--mora);
  color: var(--ama);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  max-width: calc(100% - 20px)
}

.casa {
  background: var(--amas);
  border: 2px solid var(--ama);
  border-radius: 18px;
  padding: 12px;
  margin: 14px 0 4px
}

.casa .foto {
  margin: 0 0 10px
}

.casa .tag {
  display: inline-block;
  background: var(--rosa);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 4px
}

.casa h4 {
  font: 400 19px/1.15 'Chango';
  color: var(--mora)
}

.salsas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px
}

.salsas li {
  background: #fff;
  border-left: 5px solid var(--turq);
  border-radius: 10px;
  padding: 8px 12px
}

.salsas b {
  display: block;
  color: var(--mora)
}

.salsas span {
  font-size: 15px;
  color: var(--gris)
}

.promo {
  background: var(--mora);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  margin: 28px 0 6px
}

.pc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.pk {
  color: var(--ama);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase
}

.promo h2 {
  font: 400 clamp(22px, 7vw, 26px)/1.05 'Chango';
  color: var(--ama);
  margin: 2px 0 0
}

.p99 {
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--rosa);
  border: 4px solid var(--ama);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg)
}

.p99 span {
  font: 400 28px/1 'Chango'
}

.p99 small {
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase
}

.dias {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.dias li {
  background: var(--crema);
  color: var(--tinta);
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 8px
}

.dias img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover
}

.dias b {
  display: block;
  font: 400 clamp(15px, 4.6vw, 17px) 'Chango';
  color: var(--rosa);
  padding: 6px 10px 0
}

.dias span {
  display: block;
  padding: 0 10px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3
}

.pr {
  font-size: 12px;
  font-style: italic;
  opacity: .85;
  margin: 8px 0 0
}

.chip79 {
  display: inline-block;
  background: var(--mora);
  color: var(--ama);
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0 0 8px
}

.nom {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px
}

.nom li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(91, 26, 122, .25);
  font-weight: 800
}

.nota {
  background: var(--amas);
  border-left: 6px solid var(--ama);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 6px
}

.mini {
  font-size: 14px;
  color: var(--gris);
  margin: 4px 0 0
}

.tb table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed
}

.tb thead th {
  font-size: 12px;
  color: var(--gris);
  text-align: right;
  font-weight: 700;
  padding: 0 4px 2px;
  width: 76px
}

.tb thead td {
  border: 0
}

.tb tbody th {
  text-align: left;
  font-weight: 800;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(91, 26, 122, .2)
}

.tb td {
  text-align: right;
  font-weight: 800;
  color: var(--mora);
  padding: 8px 4px 8px 18px;
  border-bottom: 1px dashed rgba(91, 26, 122, .2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums
}

@media (max-width:359px) {
  .tb thead th {
    width: 62px
  }

  .tb td {
    padding: 8px 2px 8px 10px
  }

  .tb tbody th {
    padding: 8px 2px
  }

  .yr {
    flex-direction: column;
    gap: 4px
  }
}

.aviso {
  background: #fff;
  border: 2px solid var(--ama);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 18px 0 0
}

.hist .retrato {
  width: 62%;
  max-width: 240px;
  margin: 6px auto 14px;
  background: #fff;
  padding: 8px 8px 6px;
  border: 3px solid var(--mora);
  border-radius: 8px;
  transform: rotate(-2.5deg);
  box-shadow: 6px 6px 0 var(--ama)
}

.hist .retrato img {
  width: 100%;
  aspect-ratio: 6/7;
  object-fit: cover
}

.hist .retrato figcaption {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--mora);
  padding-top: 5px
}

.hist .tit {
  text-align: center
}

.hist .lead {
  color: var(--gris);
  font-style: italic;
  margin: 4px 0 0
}

.yr {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0
}

.yr b {
  flex-shrink: 0;
  font: 400 16px 'Chango';
  color: #fff;
  background: var(--mora);
  border-radius: 999px;
  padding: 3px 12px
}

.yr p {
  margin: 0
}

.grito {
  text-align: center;
  font: 400 clamp(26px, 8vw, 38px)/1.05 'Chango';
  color: var(--rosa);
  margin: 18px 0 6px
}

.alebs {
  margin: 0 0 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap
}

.alebs img {
  width: 31%;
  height: auto;
  filter: drop-shadow(0 6px 5px rgba(43, 26, 34, .25))
}

.alebs img:first-child {
  width: 38%
}

.alebs img:nth-child(2) {
  width: 20%
}

.alebs figcaption {
  flex-basis: 100%;
  text-align: center
}

.alebs figcaption {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 8px auto 0;
  background: var(--mora);
  color: var(--ama);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px
}

.honor {
  text-align: center;
  font-weight: 700;
  border-top: 3px solid var(--ama);
  padding-top: 12px
}

footer.pie {
  background: var(--mora);
  color: #fff;
  margin: 24px -16px 0;
  padding: 22px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  text-align: center
}

footer.pie h2 {
  font: 400 20px 'Chango';
  color: var(--ama);
  margin: 14px 0 4px
}

footer.pie p {
  margin: 0
}

footer.pie a {
  color: var(--ama);
  font-weight: 800;
  display: inline-block;
  padding: 8px 2px;
  overflow-wrap: anywhere
}

footer.pie .cred {
  margin-top: 18px;
  font-size: 12px;
  opacity: .75
}

.flota {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f8f4e;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  min-height: 48px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s, opacity .25s
}

/* Se esconde mientras se ven los botones de arriba (ya incluyen WhatsApp) */
.flota.oculto {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none
}

.flota:focus-visible {
  outline: 3px solid var(--ama);
  outline-offset: 3px
}

@media (min-width:700px) {
  .flota {
    right: max(16px, calc(50% - 326px - 150px))
  }
}

/* Mouse (computadora): efectos al pasar el cursor */
@media (hover:hover) and (pointer:fine) {
  .acc a:hover {
    filter: brightness(1.15)
  }

  nav.cats a:hover {
    background: var(--amas)
  }

  nav.cats a.on:hover {
    background: var(--mora)
  }

  .flota:hover {
    filter: brightness(1.1)
  }
}

@media (prefers-reduced-motion:reduce) {

  .acc a,
  .flota {
    transition: none
  }
}

.flota svg {
  width: 24px;
  height: 24px
}
