/* MERCOPAN — amarillo y azul del cartel, desde 1991. Fredoka + Figtree */
:root {
  --yellow: #f5b915;
  --yellow-l: #ffe28a;
  --blue: #1b4f9c;
  --navy: #0f2c5c;
  --choco: #2b1b14;
  --white: #ffffff;
  --round: "Fredoka", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 1.0625rem/1.55 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; font: 600 .95rem/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.h2 { margin: 0; font: 700 clamp(2.6rem, 6.4vw, 5.6rem)/.95 var(--round); letter-spacing: -.02em; color: var(--blue); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 1.05rem/1 var(--round); text-decoration: none; border: 2.5px solid transparent; transition: translate .2s, background-color .2s, color .2s, box-shadow .2s; }
.btn:hover { translate: 0 -3px; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--navy); }
.btn--blue:hover { box-shadow: 0 8px 0 var(--navy); }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 5px 0 #b98400; }
.btn--line { border-color: var(--blue); color: var(--blue); background: rgba(255,255,255,.6); }
.btn--line:hover { background: #fff; }
.btn--link { color: var(--navy); padding-inline: 6px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }

/* nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 16px var(--gut); }
.nav__brand img { border-radius: 14px; box-shadow: 0 4px 0 rgba(15,44,92,.25); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font: 600 1rem/1 var(--round); text-decoration: none; color: var(--navy); padding: 6px 0; }
.nav__links a:hover { color: var(--blue); text-decoration: underline wavy; text-underline-offset: 6px; }

/* HERO collage */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 110px var(--gut) 60px;
  background: radial-gradient(60% 50% at 50% 50%, #ffd34d 0%, var(--yellow) 70%); }
.col { position: absolute; inset: 0; pointer-events: none; }
.c { position: absolute; object-fit: cover; border: 8px solid #fff; border-radius: 26px; box-shadow: 0 22px 40px rgba(15,44,92,.28); }
.c1 { left: 3%; top: 15%; width: 17vw; aspect-ratio: 4 / 5; rotate: -8deg; }
.c2 { left: 9%; bottom: 6%; width: 14vw; aspect-ratio: 4 / 5; rotate: 6deg; }
.c3 { right: 5%; top: 13%; width: 15vw; aspect-ratio: 3 / 4; rotate: 7deg; }
.c4 { right: 3%; bottom: 8%; width: 17vw; aspect-ratio: 1; rotate: -5deg; }
.c5 { left: 20%; bottom: 2%; width: 9vw; aspect-ratio: 1; rotate: -4deg; }
.c6 { right: 22%; top: 7%; width: 9vw; aspect-ratio: 4 / 5; rotate: 5deg; }
.hero__in { position: relative; z-index: 2; max-width: 680px; }
.hero__k { margin: 0 0 6px; font: 600 1.05rem/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.hero__t { margin: 0; font: 700 clamp(5.4rem, 15vw, 14rem)/.8 var(--round); letter-spacing: -.03em; color: var(--blue);
  -webkit-text-stroke: .045em #fff; paint-order: stroke fill; text-shadow: 0 .07em 0 var(--navy); }
.hero__t span { display: block; }
.hero__t span + span { font-size: 1.15em; margin-top: -.05em; }
.hero__since { display: inline-block; margin: 10px 0 18px; padding: 8px 20px; background: var(--navy); color: var(--yellow); border-radius: 999px; font: 700 1.6rem/1 var(--round); rotate: -3deg; }
.hero__since b { font-weight: 500; color: #fff; font-size: .7em; vertical-align: .12em; margin-right: 6px; }
.hero__lead { margin: 0 auto 22px; max-width: 42ch; font-size: 1.15rem; font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* ticker */
.ticker { background: var(--blue); color: #fff; overflow: hidden; }
.ticker__t { display: flex; width: max-content; gap: 22px; padding: 16px 0; font: 600 clamp(1.2rem, 2vw, 1.6rem)/1 var(--round); animation: tick 40s linear infinite; }
.ticker i { font-style: normal; color: var(--yellow); font-size: .6em; align-self: center; }
@keyframes tick { to { transform: translateX(-50%); } }

/* 1991 */
.since { padding: clamp(80px, 11vw, 150px) 0; background: #fff; overflow: hidden; }
.since__in { display: grid; grid-template-columns: auto 1fr; gap: 24px clamp(32px, 5vw, 80px); align-items: center; }
.since__n { margin: 0; font: 700 clamp(7rem, 22vw, 20rem)/.8 var(--round); letter-spacing: -.05em; color: var(--yellow); -webkit-text-stroke: 3px var(--blue); paint-order: stroke fill; font-variant-numeric: tabular-nums; }
.since .h2 { max-width: 12ch; }
.since p:not(.since__n) { max-width: 44ch; font-size: 1.15rem; margin: 20px 0 0; }

/* vitrina */
.vitrina { padding: clamp(80px, 10vw, 140px) 0; background: var(--yellow-l); }
.vitrina__h { margin-bottom: 40px; }
.vg { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 70px; gap: 20px; }
.vg__i { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 16px 30px rgba(15,44,92,.15); }
.vg__i img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.vg__i:hover img { scale: 1.05; }
.vg__i figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; padding: 10px 16px; background: #fff; border-radius: 16px; font-size: 1rem; box-shadow: 0 6px 0 rgba(15,44,92,.15); }
.vg__i figcaption b { font: 700 1.25rem/1 var(--round); color: var(--blue); }
.vg--a { grid-column: 1 / span 5; grid-row: 1 / span 7; }
.vg--b { grid-column: 6 / span 4; grid-row: 2 / span 5; }
.vg--c { grid-column: 10 / span 3; grid-row: 1 / span 4; }
.vg--d { grid-column: 10 / span 3; grid-row: 5 / span 5; }
.vg--e { grid-column: 6 / span 4; grid-row: 7 / span 3; }
.vg__tag { background: var(--blue); color: #fff; border-radius: 28px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.vg__tag p { margin: 0; font: 600 1.45rem/1.1 var(--round); }
.vg__tag b { color: var(--yellow); }
.vg__tag a { font: 600 1rem/1 var(--round); color: var(--yellow); text-underline-offset: 4px; }

/* juanita */
.juanita { padding: clamp(80px, 11vw, 150px) 0; background: var(--choco); color: #f6e8d8; }
.ju__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.ju__img { margin: 0; }
.ju__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 300px 300px 28px 28px; }
.juanita .eyebrow { color: #e9b98a; }
.ju__t { margin: 0; font: 600 clamp(4.4rem, 11vw, 9.6rem)/.85 var(--round); letter-spacing: -.03em; color: #fff; }
.ju__s { margin: 10px 0 26px; font: 500 1.5rem/1.2 var(--round); color: #e9b98a; }
.ju__l { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 0; }
.ju__l li { padding: 14px 0; border-bottom: 1px solid rgba(246,232,216,.2); font-size: 1.2rem; }
.ju__l b { font-family: var(--round); font-weight: 600; color: var(--yellow); }
.ju__txt > p:not(.ju__s):not(.eyebrow) { max-width: 40ch; margin: 0 0 28px; }
.ju__txt b { color: #fff; }

/* encargo (momento firma) */
.encargo { padding: clamp(80px, 11vw, 150px) 0; background: #fff;
  background-image: radial-gradient(var(--yellow-l) 2px, transparent 2.5px); background-size: 26px 26px; }
.encargo__h { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; align-items: end; margin-bottom: 44px; }
.encargo__h .eyebrow { grid-column: 1 / -1; }
.encargo__h p:last-child { margin: 0; max-width: 44ch; font-size: 1.12rem; }
.encargo__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cake { position: relative; padding: 0; border: 4px solid transparent; border-radius: 24px; overflow: hidden; cursor: pointer; background: var(--yellow-l); font: inherit; transition: border-color .2s, scale .2s; }
.cake:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 521px) { .cake:last-child { grid-column: span 2; } .cake:last-child img { aspect-ratio: 2.1; object-position: 50% 40%; } }
.cake img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.cake span { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; background: #fff; color: var(--navy); border-radius: 99px; font: 600 .95rem/1 var(--round); }
.cake:hover { scale: 1.02; }
.cake[aria-checked="true"] { border-color: var(--blue); }
.cake[aria-checked="true"] span { background: var(--blue); color: #fff; }
.cake[aria-checked="true"]::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.ord { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); background: var(--yellow); border-radius: 28px; box-shadow: 0 8px 0 #c99500; position: sticky; top: 24px; }
.ord__f { display: grid; gap: 6px; font: 600 .95rem/1.2 var(--round); color: var(--navy); }
.ord__f input, .ord__f select { font: 500 1rem/1.2 var(--body); color: var(--navy); background: #fff; border: 2.5px solid var(--navy); border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%; }
.ord__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ord__ref { margin: 0; padding: 12px 14px; border: 2.5px dashed var(--navy); border-radius: 14px; font-size: .98rem; }
.ord__go { width: 100%; }
.ord__go[aria-disabled="true"] { opacity: .55; }
.ord__fine { margin: 0; font-size: .88rem; text-align: center; }

/* local */
.local { padding: clamp(80px, 11vw, 150px) 0; background: var(--blue); color: #fff; }
.local .eyebrow { color: var(--yellow); }
.local__t { margin: 0; font: 700 clamp(4rem, 13vw, 12rem)/.85 var(--round); letter-spacing: -.03em; }
.local__t span { color: var(--yellow); }
.local__s { margin: 16px 0 44px; font: 500 1.2rem/1.3 var(--round); }
.local__s span { color: var(--yellow); }
.local__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.local__c { background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); border-radius: 24px; padding: 22px 24px; }
.local__c h3 { margin: 0 0 6px; font: 600 1.1rem/1 var(--round); color: var(--yellow); }
.local__c p { margin: 0; font-size: 1.1rem; }
.local__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.local .btn--blue { background: var(--yellow); color: var(--navy); box-shadow: 0 5px 0 #b98400; }
.local .btn--line { border-color: #fff; color: #fff; background: transparent; }
.local .btn--line:hover { background: #fff; color: var(--blue); }
.local .btn--link { color: #fff; }

.foot { background: var(--navy); color: #cdd8ec; padding: 36px 0; }
.foot__in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__in img { border-radius: 16px; }
.foot__in p { margin: 0; }
.dock { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { display: block; place-items: normal; padding: 0 0 48px; }
  .col { position: relative; height: 320px; margin-bottom: 0; }
  .c1 { left: 4%; top: 78px; width: 38vw; }
  .c3 { right: 5%; top: 92px; width: 33vw; }
  .c4, .c5, .c6 { display: none; }
  .c2 { left: 34%; top: 118px; bottom: auto; width: 31vw; }
  .hero__in { padding: 0 var(--gut); margin-inline: auto; }
  .since__in, .ju__grid, .encargo__h, .encargo__grid { grid-template-columns: 1fr; }
  .vg { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .vg > * { grid-column: auto !important; grid-row: auto !important; }
  .vg__i { aspect-ratio: 4 / 5; }
  .vg--a { grid-column: 1 / -1 !important; aspect-ratio: 1; }
  .vg--e { grid-column: 1 / -1 !important; gap: 16px; }
  .ord { position: static; }
  .local__grid { grid-template-columns: 1fr; }
  .dock { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr 1fr; background: var(--navy); color: #fff; padding-bottom: env(safe-area-inset-bottom); }
  .dock a { min-height: 56px; display: grid; place-items: center; font: 600 1rem/1 var(--round); text-decoration: none; }
  .dock a.is-main { background: var(--yellow); color: var(--navy); }
  body { padding-bottom: 56px; }
}
@media (max-width: 520px) {
  .hero__t { font-size: 25vw; }
  .hero__cta .btn--blue, .hero__cta .btn--line { flex: 1 1 100%; }
  .cakes { grid-template-columns: 1fr 1fr; }
  .cake:first-child { grid-column: span 2; grid-row: auto; }
  .ord__row { grid-template-columns: 1fr; }
  .vg__i figcaption { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: .88rem; }
  .vg__i figcaption b { font-size: 1.05rem; }
}

.js .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__t { animation: none; }
  .js .reveal { opacity: 1; }
  .btn, .cake, .vg__i img { transition: none; }
}
