:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --gold: #ffc51c;
  --gold-light: #ffdf4d;
  --orange: #ff9010;
  --cream: #ffffff;
  --muted: #ccc8bd;
  --intro-in: 500ms;
  --intro-out: 500ms;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--black);
  color: var(--cream);
  scroll-behavior: smooth;
  scrollbar-color: #c89619 #141414;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--black); }
body.has-dialog, body.has-intro { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
button, a, dialog { outline-offset: 5px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); }
/* Conserva el foco accesible sin mostrar un anillo al abrir con el dedo. */
body.pointer-input dialog [data-close-dialog]:focus { outline: none; box-shadow: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; z-index: 200; left: 18px; top: 18px; padding: 14px 20px; color: #000; background: var(--gold); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.content-width { width: min(1740px, 94.8%); margin-inline: auto; }
[id] { scroll-margin-top: 88px; }
#inicio { scroll-margin-top: 0; }

/* La intro conserva los 2 s de la versión aprobada: 0.5 + 1 + 0.5. */
.intro { display: none; position: fixed; z-index: 80; inset: 0; place-items: center; background: #ffb70d url('./assets/fondo.jpg') center top / 100% 150% no-repeat; opacity: 1; transition: opacity var(--intro-out) ease; }
.js .intro:not([hidden]) { display: grid; }
.intro-logo { width: clamp(230px, 27vw, 358px); max-width: 82vw; max-height: 58svh; object-fit: contain; opacity: 0; filter: drop-shadow(0 18px 24px #6e370033); }
.intro.is-started .intro-logo { animation: logo-appear var(--intro-in) cubic-bezier(.2,.7,.2,1) both; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
@keyframes logo-appear { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* El logo de la esquina aparece al desplazar la página; el menú siempre está accesible. */
.site-header { position: fixed; z-index: 90; inset: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 30px; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.corner-brand { display: block; width: 110px; filter: drop-shadow(0 3px 10px #0008); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity .25s, transform .25s, visibility .25s; }
body.is-scrolled:not(.has-intro):not(.navigation-open) .corner-brand { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.menu-toggle, .dialog-menu-close { width: 50px; height: 50px; border: 1px solid #ffc51c35; border-radius: 6px; background: #0a0a0acb; color: var(--gold); display: flex; align-items: center; justify-content: center; transition: background .25s, border-color .25s; }
.menu-toggle { flex-direction: column; gap: 6px; }
.menu-toggle span { display: block; width: 28px; height: 3px; border-radius: 3px; background: currentColor; transition: width .2s; }
.menu-toggle:hover, .dialog-menu-close:hover { background: #211b0d; border-color: var(--gold); }
.menu-toggle:hover span:nth-child(2) { width: 21px; }
.dialog-menu-close svg { width: 28px; height: 28px; }

/* Proporciones aprobadas: 2:1 en escritorio y 3:2 en móvil. */
.hero { position: relative; width: 100%; background: #090909; }
.slides { position: relative; aspect-ratio: 2 / 1; overflow: hidden; touch-action: pan-y pinch-zoom; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .75s ease; pointer-events: none; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; }
.carousel-controls { display: contents; }
.slider-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #ffc51c38; border-radius: 50%; color: var(--gold); background: #09090966; backdrop-filter: blur(4px); transition: background .2s, border-color .2s, scale .2s; }
.slider-arrow svg { stroke-width: 2.6; }
.slider-arrow:hover { border-color: var(--gold); background: #211600cf; scale: 1.05; }
.slider-arrow.previous { left: 24px; }
.slider-arrow.previous svg { rotate: 180deg; }
.slider-arrow.next { right: 24px; }
.slider-controls { position: absolute; z-index: 2; bottom: 70px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 0 5px 0 12px; border-radius: 32px; background: #090909b3; }
.slider-dots { display: flex; align-items: center; gap: 0; }
.slider-dot { border: 0; background: none; width: 38px; height: 40px; padding: 0; display: grid; place-items: center; }
.slider-dot span { width: 6px; height: 6px; background: #bbb39a; border-radius: 20px; transition: width .3s, background .3s; }
.slider-dot.is-active span { width: 25px; background: var(--gold); }
.slider-playback { width: 36px; height: 36px; padding: 6px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--gold-light); }
.slider-playback:hover { background: #ffc51c20; }
.slider-playback svg { width: 19px; height: 19px; stroke-width: 2; }
.play-icon { display: none; }
.slider-playback.is-paused .pause-icon { display: none; }
.slider-playback.is-paused .play-icon { display: block; fill: currentColor; stroke: none; }

/* Fondo original dividido por CSS: naranja, onda y textura negra, sin deformar las tarjetas. */
.page-background { position: relative; z-index: 1; background: var(--orange); }
.menu-section { display: flow-root; padding-bottom: clamp(72px, 5.7vw, 108px); background: #ff9010 url('./assets/fondo.jpg') center 65% / 100% 300% no-repeat; }
.menu-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.12vw, 22px); margin-top: -35px; }
.menu-card { position: relative; display: block; width: 100%; margin: 0; border: 0; padding: 0; background: #0a0a0a; isolation: isolate; transition: transform .32s cubic-bezier(.2,.8,.2,1), filter .32s, box-shadow .32s; }
.menu-card::after { content: ''; position: absolute; inset: 0; z-index: 1; border: 2px solid transparent; pointer-events: none; transition: border-color .3s; }
.menu-card img { width: 100%; aspect-ratio: 439 / 782; object-fit: contain; }
.card-cue { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ffd33e9c; border-radius: 50%; color: var(--gold); background: #0a0a0aca; transition: background .3s, color .3s, transform .3s; }
.card-cue svg { width: 16px; height: 16px; }
.menu-card:focus-visible { outline-color: #fff4be; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .menu-card:hover { transform: translateY(-8px); filter: brightness(1.07); box-shadow: 0 15px 28px #52230042; }
  .menu-card:hover::after { border-color: var(--gold-light); }
  .menu-card:hover .card-cue { color: #0a0a0a; background: var(--gold); transform: translate(2px, -2px); }
}
.menu-card:active { transform: scale(.985); }
/* Se muestra únicamente la franja y=1592..1678 del fondo adjunto. */
.wave-divider { position: relative; height: 5.4vw; overflow: hidden; background: #ff9510; margin-top: -1px; pointer-events: none; }
.wave-divider img { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: auto; transform: translateY(-77.734375%); }
/* Repite la franja negra original sin estirar su textura en pantallas altas. */
.dark-surface { position: relative; isolation: isolate; display: flow-root; background: #0a0a0a; }
.surface-texture { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; stroke: none; }
.quick-links { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(26px, 2.4vw, 39px); padding-top: clamp(40px, 4.5vw, 72px); }
/* Recorta el margen transparente del original: x=51, y=12, ancho=324, alto=77. */
.order-button { --order-width: clamp(210px, 17vw, 270px); position: relative; z-index: 2; width: var(--order-width); aspect-ratio: 324 / 77; display: block; overflow: hidden; margin-top: 0; border-radius: 16px; transition: transform .25s, filter .25s; }
.order-button img { position: absolute; max-width: none; width: 121.60494%; height: auto; left: -15.74074%; top: -15.58442%; }
.order-button:hover { transform: translateY(-3px); filter: brightness(1.08) drop-shadow(0 5px 14px #ffc51c30); }
.order-button:active { transform: scale(.97); }
.social-links { display: flex; align-items: center; justify-content: center; gap: 20px; }
.social-links a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; transition: transform .25s, filter .25s; }
.social-links img { width: 48px; height: 48px; object-fit: contain; }
.social-links a:hover { transform: translateY(-3px); filter: drop-shadow(0 4px 9px #ffc51c4a); }

.about { width: min(1080px, 78%); text-align: center; padding-top: clamp(38px, 3.2vw, 55px); }
.about-description { max-width: 1010px; margin: 0 auto; font-size: clamp(18px, 1.72vw, 27px); font-weight: 400; color: var(--gold); line-height: 1.5; text-wrap: balance; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); margin-bottom: 28px; }
.ornament span { width: 62px; height: 1px; background: linear-gradient(90deg, transparent, #ffc51c85); }
.ornament span:last-child { rotate: 180deg; }
.ornament i { font-size: 8px; font-style: normal; }
.branches { max-width: 1100px; text-align: center; padding-top: 64px; padding-bottom: 25px; }
.branches h2, .navigation-branches h2 { margin: 0 0 23px; color: var(--gold); font-size: clamp(20px, 1.8vw, 27px); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; }
.branch-links { display: flex; justify-content: center; }
.branch-links > a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 650px; padding: 0 12px; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; color: #fff; transition: color .25s; }
.branch-links svg { width: 23px; height: 28px; color: var(--gold); transition: transform .25s; }
.branch-links small { color: #e2c47d; font-size: 11px; letter-spacing: .055em; }
.branch-links small svg { display: inline-block; margin-left: 4px; width: 12px; height: 12px; vertical-align: middle; }
.branch-links > a:hover { color: var(--gold-light); }
.branch-links > a:hover > span { text-decoration: underline; text-decoration-color: #ffc51c8c; text-underline-offset: 5px; }
.branch-links > a:hover svg { transform: translateY(-3px); }
.footer-note { margin: 48px 0 0; padding-top: 22px; border-top: 1px solid #ffc51c27; color: #b6ab8c; font-size: 9px; line-height: 1.9; letter-spacing: .12em; }
.footer-note span { padding: 0 8px; color: var(--gold); }

/* Menú a pantalla completa: el fondo conserva visibles los productos de la referencia. */
dialog { color: var(--cream); border: 0; padding: 0; }
dialog::backdrop { background: #000c; backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-appear .28s ease both; }
@keyframes dialog-appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.navigation-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; overflow: hidden; background-image: linear-gradient(180deg, #0000000d 0%, #00000026 62%, #000000b3 100%), url('./assets/fondomenu.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat; }
.navigation-dialog[open] { display: block; }
.navigation-dialog, .navigation-content { touch-action: pan-y; }
.dialog-menu-close { position: fixed; top: 24px; right: 30px; z-index: 3; }
.navigation-content { width: 100%; height: 100%; padding: clamp(28px, 3dvh, 42px) 4vw 35px; display: grid; grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr); justify-items: center; row-gap: clamp(22px, 3.2dvh, 38px); overflow-y: auto; overscroll-behavior: contain; }
.navigation-logo { width: clamp(185px, 19vw, 330px); align-self: start; margin: 0; filter: drop-shadow(0 7px 14px #0005); }
.navigation-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.main-navigation { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.main-navigation a { width: 100%; min-width: clamp(260px, 26vw, 440px); padding: 10px 20px; border: 1px solid transparent; border-radius: 18px; font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: clamp(26px, 2.4vw, 42px); line-height: 1.15; letter-spacing: -.025em; -webkit-text-stroke: .3px currentColor; text-align: center; text-transform: uppercase; white-space: nowrap; color: #ffd622; transition: color .2s, border-color .2s, background .2s; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: #ffe868; border-color: #ffc51cba; background: #09090944; }
.navigation-socials { margin: 25px 0 0; }
.navigation-socials a, .navigation-socials img { width: 43px; height: 43px; }
.navigation-branches { width: min(650px, 80%); align-self: end; text-align: center; }
.navigation-branches h2 { margin-bottom: 13px; font-size: 20px; }
.navigation-branches .branch-links small { display: none; }
.navigation-branches .branch-links > a { gap: 8px; font-size: 15px; text-shadow: 0 1px 8px #000; }
.navigation-branches .branch-links svg { width: 20px; height: 25px; }

/* Ventanas de categorías ampliadas y de información. */
.category-dialog, .promotions-dialog { width: min(540px, 94vw); max-width: 94vw; max-height: 92dvh; overflow: auto; background: #0c0c0c; border: 1px solid #ffc51c70; border-radius: 7px; overscroll-behavior: contain; scrollbar-width: thin; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 8px 14px 8px 22px; border-bottom: 1px solid #ffc51c40; background: #101010f5; backdrop-filter: blur(10px); }
.dialog-toolbar h2 { margin: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .09em; font-size: 14px; font-weight: 800; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; background: none; color: var(--gold-light); border-radius: 50%; }
@media (hover: hover) and (pointer: fine) {
  .icon-button:hover { background: #ffc51c18; border-color: #ffc51c70; }
}
.category-image img, img.category-image, .promotions-image img { width: 100%; height: auto; }
.category-actions { display: flex; justify-content: center; padding: 19px 20px 22px; border-top: 1px solid #ffc51c38; background: #111; }
.category-actions .text-button { margin-top: 0; }
.information-dialog { width: min(490px, 92vw); max-width: 92vw; max-height: 90dvh; padding: 42px 32px 38px; overflow-y: auto; border: 1px solid #ffc51c70; background: #101010; text-align: center; border-radius: 12px; }
.information-close { position: absolute; right: 8px; top: 8px; }
.information-logo { width: 150px; margin: 0 auto 25px; }
.eyebrow { color: var(--gold); font-size: 10px; letter-spacing: .17em; margin: 0 0 12px; }
.information-dialog h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: 31px; color: var(--gold); margin: 0 0 16px; }
.information-dialog > p:not(.eyebrow) { color: #e1ded6; font-size: 15px; line-height: 1.8; margin: 0; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; padding: 13px 22px; margin-top: 27px; color: #101010; background: var(--gold); border: 1px solid var(--gold); border-radius: 10px; font-size: 13px; font-weight: 800; transition: background .2s; }
.text-button svg { width: 17px; height: 17px; }
.text-button:hover { background: var(--gold-light); }
.noscript-note { padding: 20px; text-align: center; color: var(--gold-light); }

@media (max-width: 900px) {
  .site-header { padding: 18px; }
  .corner-brand { width: 95px; }
  .dialog-menu-close { right: 18px; top: 18px; }
  .navigation-content { padding-top: 30px; }
  .navigation-logo { width: 190px; }
  .main-navigation a { min-width: 290px; }
  .about { width: 84%; }
}
@media (max-width: 680px) {
  [id] { scroll-margin-top: 68px; }
  .site-header { padding: 12px; }
  .corner-brand { width: 79px; }
  .menu-toggle, .dialog-menu-close { width: 40px; height: 40px; border-radius: 5px; }
  .menu-toggle { position: relative; gap: 5px; }
  .menu-toggle span { width: 24px; height: 2px; }
  .menu-toggle:hover span:nth-child(2) { width: 18px; }
  .menu-toggle::before, .dialog-menu-close::before { content: ''; position: absolute; inset: -3px; }
  .dialog-menu-close svg { width: 24px; height: 24px; }
  .dialog-menu-close { top: 12px; right: 12px; }
  .slides { aspect-ratio: 3 / 2; }
  .carousel-controls { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
  .slider-arrow { position: relative; width: 32px; height: 32px; top: auto; transform: none; background: none; border-color: transparent; backdrop-filter: none; }
  .slider-arrow::before { content: ''; position: absolute; inset: -6px; }
  .slider-arrow svg { width: 15px; height: 15px; }
  .slider-arrow.previous { left: auto; }
  .slider-arrow.next { right: auto; }
  .slider-controls { position: static; bottom: auto; left: auto; transform: none; padding: 0; gap: 4px; background: none; }
  .slider-playback { width: 42px; height: 42px; }
  .slider-dot { height: 42px; }
  .menu-section { padding-top: 20px; padding-bottom: 58px; }
  .menu-grid { width: 92%; margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .card-cue { right: 9px; bottom: 9px; width: 28px; height: 28px; }
  .card-cue svg { width: 13px; height: 13px; }
  .quick-links { gap: 28px; padding-top: 28px; }
  .order-button { --order-width: 200px; border-radius: 13px; }
  .social-links { gap: 19px; }
  .social-links a, .social-links img { width: 44px; height: 44px; }
  .about { width: 88%; padding-top: 40px; }
  .about-description { font-size: 17px; line-height: 1.65; }
  .branches { padding-top: 50px; width: 88%; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .branches h2 { font-size: 22px; margin-bottom: 21px; }
  .branch-links > a { font-size: 15px; gap: 10px; padding: 0; }
  .branch-links svg { width: 22px; height: 26px; }
  .branch-links small { font-size: 10px; }
  .footer-note { font-size: 8px; letter-spacing: .07em; margin-top: 37px; }
  .footer-note span { padding-inline: 4px; }
  /* En móvil, la comida se encuadra por ancho junto a los enlaces. */
  .navigation-dialog { background: #080808; }
  .navigation-dialog::before {
    content: ''; position: absolute; inset: auto 0 0; height: 22%; pointer-events: none;
    background-image: linear-gradient(180deg, #080808 0%, #00000099 38%, #000000b3 100%), url('./assets/fondomenu.jpg');
    background-size: 100% 100%, auto 100dvh;
    background-position: center bottom; background-repeat: no-repeat;
  }
  .navigation-content { position: relative; isolation: isolate; padding: 28px 5vw max(26px, env(safe-area-inset-bottom)); row-gap: 24px; overflow-x: hidden; }
  .navigation-center { position: relative; isolation: isolate; width: 100%; }
  .navigation-center::before {
    content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 100vw; height: 101.25vw;
    transform: translate(-50%, -50%); pointer-events: none;
    background-image: linear-gradient(#08080833, #08080866), url('./assets/fondomenu.jpg');
    background-size: 100% 100%, 180vw auto; background-position: center; background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 72%, transparent 88%);
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 72%, transparent 88%);
  }
  .navigation-logo { width: 165px; margin: 0; }
  .main-navigation { gap: 6px; }
  .main-navigation a { min-width: min(280px, 82vw); padding: 10px 14px; border-radius: 14px; font-size: clamp(23px, 6.4vw, 32px); text-shadow: 0 2px 5px #000, 0 0 18px #000d; }
  .navigation-socials { margin: 22px 0 0; }
  .navigation-socials a, .navigation-socials img { width: 40px; height: 40px; }
  .navigation-branches { width: 100%; max-width: 340px; }
  .navigation-branches h2 { font-size: 19px; margin-bottom: 12px; }
  .navigation-branches .branch-links > a { flex-direction: row; justify-content: center; gap: 8px; font-size: 13px; }
  .navigation-branches .branch-links svg { width: 17px; height: 21px; flex-shrink: 0; }
  .category-dialog, .promotions-dialog { width: 94vw; max-width: 94vw; max-height: 94dvh; }
  .dialog-toolbar { padding: 5px 8px 5px 16px; }
  .information-dialog { padding-inline: 25px; }
}
@media (max-height: 720px) and (min-width: 681px) {
  .navigation-content { padding-top: 22px; padding-bottom: 24px; row-gap: 18px; }
  .navigation-logo { width: 175px; }
  .main-navigation a { font-size: 27px; padding-block: 8px; }
  .main-navigation { gap: 4px; }
  .navigation-socials { margin-top: 17px; }
  .navigation-socials a, .navigation-socials img { width: 36px; height: 36px; }
  .navigation-branches h2 { font-size: 18px; margin-bottom: 10px; }
  .navigation-branches .branch-links > a { font-size: 13px; }
}
@media (max-height: 640px) and (max-width: 680px) {
  .navigation-content { padding-top: 22px; row-gap: 18px; }
  .navigation-logo { width: 140px; }
  .main-navigation a { font-size: 24px; padding-block: 8px; }
  .navigation-socials { margin-top: 17px; }
  .navigation-socials a, .navigation-socials img { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
