/* Tacos El Mois de la H — sistema del Manual de identidad v1.0 (404 Studio) */
:root {
  --carbon: #161211;
  --carbon-2: #211a18;
  --carbon-3: #2d2421;
  --rojo: #ED1C24;
  --amarillo: #FFF200;
  --estrella: #FF6501;
  --harina: #F6F0E6;
  --harina-2: #ece3d4;
  --tinta: #2a2220;
  --gris: #6f625b;
  --gris-claro: #c9bdb2;
  --display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --label: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--carbon); color: var(--harina); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; }
.band { padding-left: var(--gutter); padding-right: var(--gutter-r); padding-block: clamp(64px, 10vw, 120px); position: relative; }
.band-dark { background: var(--carbon); }
.band-paper { background: var(--harina); color: var(--tinta); }
.band-red { background: var(--rojo); color: var(--harina); }
.band-grill { background: var(--carbon-2) repeating-linear-gradient(-35deg, transparent 0 46px, rgba(255, 242, 0, .045) 46px 52px); }

.kicker { font-family: var(--label); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amarillo); }
.band-paper .kicker { color: var(--rojo); }
.head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-top: 10px; }
.head .sub { margin-top: 12px; color: var(--gris); }

/* ---------- Sello (logo recortado en círculo) ---------- */
.seal { display: block; position: relative; border-radius: 50%; overflow: hidden; background: #000; aspect-ratio: 1; flex: none; }
.seal img { position: absolute; width: 129.03%; max-width: none; height: auto; left: -14.11%; top: -9.98%; }
.seal-sm { width: 44px; }
.seal-xl { width: min(100%, 440px); box-shadow: 0 0 0 6px var(--carbon), 0 30px 60px rgba(0, 0, 0, .6); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--amarillo); color: var(--carbon); border: 2px solid var(--amarillo); box-shadow: 4px 4px 0 var(--rojo); transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rojo); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--rojo); }
.btn-line { background: transparent; color: var(--harina); border-color: var(--harina); box-shadow: 4px 4px 0 var(--estrella); }
.btn-line:hover { box-shadow: 6px 6px 0 var(--estrella); }
.btn-dark { background: var(--carbon); color: var(--harina); border-color: var(--carbon); box-shadow: 4px 4px 0 var(--rojo); }
.btn-sm { padding: 9px 18px; font-size: .9rem; box-shadow: 3px 3px 0 var(--rojo); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter-r) 14px var(--gutter); transition: background .3s ease, box-shadow .3s ease; }
.nav.is-solid { background: rgba(22, 18, 17, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(246, 240, 230, .08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 1.15rem; color: var(--amarillo); }
.brand-name em { font-style: normal; color: var(--harina); }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { font: inherit; font-family: var(--label); font-weight: 700; font-size: .85rem; letter-spacing: .08em; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: transparent; color: var(--gris-claro); border: 1.5px solid rgba(246, 240, 230, .3); transition: border-color .2s ease; }
.lang:hover { border-color: var(--amarillo); }
.lang .sep { opacity: .5; }
html[lang="es"] .lang [data-l="es"], html[lang="en"] .lang [data-l="en"] { color: var(--amarillo); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter-r) 0 var(--gutter); background:
  radial-gradient(ellipse 70% 50% at 70% 110%, rgba(237, 28, 36, .45), transparent 70%),
  radial-gradient(ellipse 50% 40% at 75% 95%, rgba(255, 101, 1, .35), transparent 70%),
  repeating-linear-gradient(-35deg, transparent 0 46px, rgba(255, 242, 0, .04) 46px 52px),
  var(--carbon); }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-bottom: 110px; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.8rem); line-height: .95; margin: 16px 0 22px; }
.hero h1 .y { display: block; color: var(--amarillo); }
.lead { font-size: 1.15rem; color: var(--gris-claro); max-width: 46ch; margin-bottom: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; font-size: .95rem; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--gris-claro); }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--gris-claro); flex: none; }
.status b { color: var(--harina); }
.status.open i { background: #4ade80; animation: pulse 1.8s infinite; }
.status.closed i { background: var(--rojo); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.rating { text-decoration: none; color: var(--gris-claro); }
.rating b { color: var(--harina); }
.stars { color: var(--amarillo); letter-spacing: 2px; }
.hero-seal { position: relative; display: grid; place-items: center; }
.glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 101, 1, .55), rgba(237, 28, 36, .2) 45%, transparent 70%); filter: blur(30px); animation: ember 4s ease-in-out infinite; }
@keyframes ember { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
.hero-video { position: relative; width: min(100%, 330px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 26px; overflow: hidden; background: #000; border: 4px solid var(--carbon-3); box-shadow: 10px 10px 0 var(--rojo), 0 30px 60px rgba(0, 0, 0, .55); transform: rotate(2.5deg); animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.seal-md { position: absolute; width: 130px; left: calc(50% - 230px); bottom: 6%; box-shadow: 0 0 0 5px var(--carbon), 0 16px 30px rgba(0, 0, 0, .5); transform: rotate(-8deg); }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; background: var(--amarillo); color: var(--carbon); padding: 12px 0; overflow: hidden; transform: rotate(-1.2deg) scale(1.03); }
.ticker-track { display: flex; width: max-content; will-change: transform; -webkit-animation: ticker 32s linear infinite; animation: ticker 32s linear infinite; }
.ticker-track span { font-family: var(--display); font-size: 1.35rem; white-space: nowrap; padding-right: 10px; flex: none; }
@-webkit-keyframes ticker { from { -webkit-transform: translate3d(0, 0, 0); } to { -webkit-transform: translate3d(-50%, 0, 0); } }
@keyframes ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 560px) { .ticker-track { -webkit-animation-duration: 20s; animation-duration: 20s; } }

/* ---------- Especialidades ---------- */
.specials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.special { position: relative; background: var(--carbon-2); border: 1px solid rgba(246, 240, 230, .08); border-radius: 16px; padding: 36px 28px 30px; transition: transform .25s ease, border-color .25s ease; }
.special:hover { transform: translateY(-6px); border-color: var(--estrella); }
.special h3 { font-size: 1.9rem; margin: 6px 0 12px; color: var(--harina); }
.special p:not(.tag) { color: var(--gris-claro); }
.special .tag { font-family: var(--label); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--estrella); }
.price-tag { position: absolute; top: -22px; right: 22px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--amarillo); color: var(--carbon); font-family: var(--display); font-size: 1.35rem; transform: rotate(10deg); box-shadow: 0 0 0 5px var(--carbon); }

/* ---------- Menú ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px; }
.menu-col { min-width: 0; }
.menu-cat { font-size: 1.05rem; letter-spacing: .06em; color: var(--harina); background: var(--carbon); display: inline-block; padding: 8px 18px 6px; border-radius: 4px; margin: 0 0 8px; box-shadow: 3px 3px 0 var(--rojo); }
.menu-cat:not(:first-child) { margin-top: 36px; }
.dish { position: relative; padding: 18px 0; border-bottom: 1px dashed #cdbfa9; }
.dish-row { display: flex; align-items: baseline; gap: 10px; }
.dish h4 { font-size: 1.35rem; color: var(--carbon); }
.lead-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #bba98f; transform: translateY(-5px); }
.price { font-family: var(--display); font-size: 1.45rem; color: var(--rojo); }
.dish p { color: var(--gris); margin-top: 6px; max-width: 46ch; }
.flag { display: inline-block; margin-top: 10px; font-family: var(--label); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--rojo); color: var(--harina); padding: 3px 10px; border-radius: 999px; }
.drinks { list-style: none; padding: 0; margin: 8px 0 0; }
.drinks li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #cdbfa9; font-weight: 500; }
.drinks b { font-family: var(--display); font-weight: 400; color: var(--rojo); font-size: 1.2rem; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; }
.gallery figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--carbon-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--label); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(22, 18, 17, .85); color: var(--amarillo); padding: 5px 12px; border-radius: 999px; }
.g-a { grid-column: span 2; grid-row: span 2; }
.g-b, .g-c { grid-column: span 2; }
.g-b img { object-position: 30% 60%; }
.g-d, .g-e { grid-row: span 2; }
.g-f { grid-column: span 2; grid-row: span 2; }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { border-top: 3px solid var(--rojo); padding-top: 22px; }
.steps li:nth-child(2) { border-color: var(--estrella); }
.steps li:nth-child(3) { border-color: var(--amarillo); }
.steps li:nth-child(4) { border-color: var(--harina); }
.step-n { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--amarillo); }
.steps h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.steps p { color: var(--gris-claro); font-size: .97rem; }

/* ---------- Opiniones ---------- */
.reviews { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.score-num { font-family: var(--display); font-size: clamp(5rem, 13vw, 9rem); line-height: .85; }
.score-stars { color: var(--amarillo); font-size: 1.7rem; letter-spacing: 4px; margin-top: 8px; }
.score-txt { font-family: var(--label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.quotes { display: grid; gap: 16px; }
.quotes blockquote { margin: 0; background: var(--carbon); border-radius: 14px; padding: 22px 26px; }
.quotes blockquote:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.quotes p { font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.25; }
.quotes cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--label); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amarillo); }

/* ---------- Visítanos ---------- */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.hours-card, .place-card { border-radius: 16px; padding: clamp(24px, 4vw, 40px); min-width: 0; }
.hours-card { background: var(--carbon); color: var(--harina); }
.place-card { background: #fff; border: 1px solid #e2d7c6; }
.visit h3 { font-size: 1.6rem; margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid rgba(246, 240, 230, .12); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--gris-claro); }
.hours tr.closed th, .hours tr.closed td { color: #8d8079; }
.hours tr.today th, .hours tr.today td { color: var(--amarillo); font-weight: 700; }
html[lang="en"] .hours tr.today th::after { content: "Today"; }
.hours tr.today th::after { content: "Hoy"; margin-left: 10px; font-family: var(--label); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: var(--amarillo); color: var(--carbon); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.fine { margin-top: 16px; font-size: .88rem; color: var(--gris-claro); }
.addr { font-size: 1.15rem; font-weight: 700; color: var(--carbon); }
.ref { color: var(--gris); margin-top: 8px; }
.contact { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 26px 0 30px; padding: 20px 0; border-top: 1px solid #e2d7c6; border-bottom: 1px solid #e2d7c6; }
.contact .lbl { display: block; font-family: var(--label); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rojo); }
.contact a { font-weight: 700; color: var(--carbon); text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }
.phone { font-family: var(--display); font-weight: 400 !important; font-size: 1.35rem; }

/* ---------- Footer ---------- */
.footer { padding: 72px var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: var(--carbon); border-top: 1px solid rgba(246, 240, 230, .08); }
.footer-big { font-family: var(--display); font-size: clamp(3.2rem, 13vw, 10rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px rgba(255, 242, 0, .55); transition: color .4s ease; }
.footer-big:hover { color: var(--amarillo); }
.footer-row { display: flex; align-items: center; gap: 14px; margin: 32px 0 24px; font-size: 1.05rem; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; color: #8d8079; border-top: 1px solid rgba(246, 240, 230, .08); padding-top: 20px; }
.footer-meta b { color: var(--amarillo); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 100px; }
  .hero-seal { justify-self: center; width: min(100%, 300px); }
  .hero-video { width: min(78%, 250px); }
  .seal-md { width: 96px; left: 0; bottom: 4%; }
  .specials { grid-template-columns: 1fr; gap: 36px; }
  .menu-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: 1fr; }
  .quotes blockquote:nth-child(2) { margin-left: 0; }
  .visit { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .steps { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .dish h4 { font-size: 1.2rem; }
  .ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .glow, .status.open i { animation: none; }
  .hero-copy > *, .hero-video { animation: none; }
}
