:root {
  --bg: #f3f7f8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --panel-dark: #0e3552;
  --text: #163042;
  --muted: #537186;
  --line: rgba(22, 48, 66, 0.12);
  --brand: #0078b8;
  --brand-deep: #0a4f7c;
  --brand-soft: #d8f0ff;
  --accent: #f3b24b;
  --shadow: 0 20px 60px rgba(7, 39, 62, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1140px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 0 0 12px 0;
  font-weight: 800;
}

.skip-link:focus {
  left: 0;
}

html {
  scroll-behavior: smooth;
  /* clip evita scroll horizontal SIN romper position:sticky (a diferencia de hidden) */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 120, 184, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(243, 178, 75, 0.16), transparent 24%),
    linear-gradient(180deg, #eef8ff 0%, #f7f3ea 45%, #eef7fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 253, 0.82);
  border-bottom: 1px solid rgba(22, 48, 66, 0.08);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand strong,
.brand small,
.main-nav a,
.btn,
.chip,
.menu-anchor-nav a {
  transition: 180ms ease;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
}

.brand-logo {
  display: block;
  width: 96px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.menu-anchor-nav a:hover,
.menu-anchor-nav a:focus-visible {
  color: var(--brand-deep);
  background: rgba(0, 120, 184, 0.08);
}

.nav-cta {
  background: var(--panel-strong);
  box-shadow: 0 10px 30px rgba(10, 79, 124, 0.12);
}

.hero,
.menu-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
}

.hero::after,
.menu-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 178, 75, 0.4), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-deep);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.lead,
.section-heading p,
.feature-card p,
.info-panel p,
.faq-card p,
.menu-category-intro p,
.menu-item p,
.menu-result-text {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy,
.hero-card,
.feature-card,
.info-panel,
.faq-card,
.menu-category,
.menu-item,
.menu-summary {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.info-panel,
.menu-summary {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #16a6d7 100%);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(10, 79, 124, 0.14);
  color: var(--brand-deep);
}

.hero-highlights,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-highlights li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
}

.hero-highlights li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7f50);
  box-shadow: 0 0 0 6px rgba(243, 178, 75, 0.18);
}

.hero-card {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(14, 53, 82, 0.96), rgba(8, 83, 126, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%);
  color: white;
}

.hero-card-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-list {
  display: grid;
  gap: 16px;
}

.hero-list article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-list p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.section {
  padding: 28px 0 72px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(0, 120, 184, 0.04));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid,
.faq-list,
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.faq-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-panel {
  padding: 28px;
}

.info-panel-dark {
  background: linear-gradient(180deg, rgba(10, 79, 124, 0.96), rgba(9, 52, 82, 0.98));
  color: white;
}

.info-panel-dark .eyebrow,
.info-panel-dark .check-list li {
  color: white;
}

.site-footer {
  padding: 0 0 28px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background: rgba(10, 31, 47, 0.94);
  color: white;
}

.footer-row p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.menu-anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(247, 252, 255, 0.86);
  box-shadow: 0 18px 44px rgba(10, 79, 124, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-anchor-nav a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.menu-anchor-nav a.active {
  background: linear-gradient(135deg, var(--brand), #16a6d7);
  color: white;
}

.menu-section {
  padding-top: 22px;
}

.menu-images-section {
  padding-top: 22px;
}

.menu-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.menu-summary p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.menu-sections {
  display: grid;
  gap: 22px;
}

.menu-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.menu-image-card {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.menu-image-caption {
  margin-bottom: 14px;
}

.menu-image-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.menu-image-link {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.menu-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
}

.menu-category {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.menu-category-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.menu-category-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.menu-items-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-item {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.menu-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.menu-item h3 {
  line-height: 1;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  white-space: nowrap;
}

.price-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 120, 184, 0.06);
  color: var(--text);
  font-weight: 700;
}

.price-row span:last-child {
  color: var(--brand-deep);
}

.note-tag {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(243, 178, 75, 0.18);
  color: #845115;
  font-size: 0.92rem;
  font-weight: 700;
}

.empty-state {
  padding: 34px;
  border-radius: var(--radius-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed rgba(10, 79, 124, 0.18);
  color: var(--muted);
}

/* ---- Rappi / nav extras ---- */
.nav-rappi {
  color: #ff441f !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(10, 79, 124, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--brand-deep);
  transition: 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn-rappi {
  background: linear-gradient(135deg, #ff6b2c 0%, #ff441f 100%);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--brand-deep);
}

.btn-light-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.05rem;
}

.inline-highlights {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---- Menu CTA on home ---- */
.menu-cta-grid {
  align-items: stretch;
}

.menu-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.menu-thumb img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
}

.menu-thumb-tag {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, #16a6d7 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(10, 79, 124, 0.32);
}

/* ---- Location data ---- */
.info-data {
  margin: 22px 0 0;
  display: grid;
  gap: 16px;
}

.info-data div {
  display: grid;
  gap: 4px;
}

.info-data dt {
  font-weight: 800;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.info-data dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.info-data a {
  color: var(--brand-deep);
  font-weight: 700;
}

.dark-lead {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.stack-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

/* ---- Mapa incrustado (visible, iframe lazy) ---- */
.map-embed {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  background: #e7f3fb;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

.map-facade-link {
  display: block;
  padding: 14px 22px;
  text-align: center;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.25s ease;
}

.map-facade-link:hover,
.map-facade-link:focus-visible {
  background: rgba(0, 120, 184, 0.1);
}

@media (max-width: 640px) {
  .map-embed iframe {
    height: 320px;
  }
}

/* ---- CTA band ---- */
.section-cta {
  padding-bottom: 72px;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(10, 79, 124, 0.97), rgba(9, 52, 82, 0.97));
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr;
  gap: 28px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(10, 31, 47, 0.96);
  color: #fff;
}

.footer-brand strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.footer-col address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.footer-col a:hover,
.footer-col a:focus-visible,
.footer-col address a:hover {
  color: #fff;
}

.footer-legal {
  margin-top: 14px;
  text-align: center;
}

.footer-legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--brand-deep);
  font-weight: 700;
}

.footer-credit {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-credit a {
  color: var(--brand-deep);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

/* ---- Menu page extras ---- */
.menu-hero-section {
  padding-top: 42px;
  padding-bottom: 24px;
}

.menu-hero-section h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: none;
}

.menu-image-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--brand-deep);
  background: rgba(0, 120, 184, 0.08);
  border: 1px solid rgba(10, 79, 124, 0.16);
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.menu-image-open::before {
  content: "⤢";
  font-size: 1.05rem;
  line-height: 1;
}

.menu-image-open:hover,
.menu-image-open:focus-visible {
  transform: translateY(-2px);
  background: rgba(0, 120, 184, 0.14);
  box-shadow: 0 10px 24px rgba(10, 79, 124, 0.16);
}

.menu-image {
  transition: transform 0.5s var(--ease);
}

.menu-image-link:hover .menu-image {
  transform: scale(1.03);
}

.menu-help {
  margin-top: 22px;
}

/* ---- Floating Rappi ---- */
.rappi-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b2c 0%, #ff441f 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 68, 31, 0.42);
}

.rappi-float:hover,
.rappi-float:focus-visible {
  transform: translateY(-2px) scale(1.06);
}

/* =====================================================================
   MEJORAS FRONTEND / UX — microinteracciones, reveal, premium, ambiente
   ===================================================================== */
:root {
  --brand-cyan: #16c8d6;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-hover: 0 34px 80px rgba(7, 39, 62, 0.22);
}

/* ---- Header con scroll (glassmorphism + compacto) ---- */
.site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(247, 251, 253, 0.93);
  box-shadow: 0 12px 34px rgba(7, 39, 62, 0.12);
  border-bottom-color: rgba(22, 48, 66, 0.12);
}

.topbar {
  transition: min-height 0.3s ease;
}

.site-header.scrolled .topbar {
  min-height: 66px;
}

.brand {
  transition: transform 0.3s var(--ease);
}

.site-header.scrolled .brand {
  transform: scale(0.94);
}

/* ---- Links del nav con subrayado animado + estado activo ---- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: transparent;
  color: var(--brand-deep);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--brand-deep);
}

/* ---- Botón de menú PREMIUM ---- */
.btn-menu-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 48%, var(--brand-cyan) 100%);
  box-shadow: 0 14px 30px rgba(10, 79, 124, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.btn-menu-premium > span {
  position: relative;
  z-index: 2;
}

.btn-menu-premium::after {
  content: "→";
  position: relative;
  z-index: 2;
  font-weight: 800;
  transition: transform 0.28s var(--ease);
}

.btn-menu-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}

.btn-menu-premium:hover,
.btn-menu-premium:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(10, 79, 124, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-menu-premium:hover::after,
.btn-menu-premium:focus-visible::after {
  transform: translateX(5px);
}

.btn-menu-premium:hover::before,
.btn-menu-premium:focus-visible::before {
  transform: translateX(130%);
}

.btn-menu-premium:active {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(10, 79, 124, 0.32);
}

.nav-menu-btn,
.nav-rappi-btn {
  min-height: 46px;
  padding: 0 18px;
}

/* Asegurar texto blanco en los CTA del nav (vence a .main-nav a) */
.main-nav .btn-menu-premium,
.main-nav .nav-rappi-btn {
  color: #fff;
}

.nav-rappi-mobile {
  display: none;
}

/* ---- Keyframes ligeros ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- Entrada del hero (escalonada) ---- */
.hero-copy > *,
.hero-card {
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.33s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.40s; }
.hero-card { animation-delay: 0.34s; }

.hero::after {
  animation: floatSoft 7s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  left: -70px;
  top: 30px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(22, 200, 214, 0.18), transparent 70%);
  animation: floatSoft 9s ease-in-out infinite;
}

/* ---- Scroll reveal (solo con JS activo, sin parpadeo) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal:nth-child(2) { --delay: 80ms; }
.js .reveal:nth-child(3) { --delay: 160ms; }
.js .reveal:nth-child(4) { --delay: 240ms; }
.js .reveal:nth-child(5) { --delay: 120ms; }
.js .reveal:nth-child(6) { --delay: 200ms; }
.js .reveal:nth-child(7) { --delay: 280ms; }

/* ---- Hover en cards (microinteracciones) ---- */
.feature-card,
.menu-image-card,
.info-panel {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover,
.menu-image-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 120, 184, 0.25);
}

.info-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ---- Miniatura del menú (home) con hover premium ---- */
.menu-thumb {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.menu-thumb img {
  transition: transform 0.5s var(--ease);
}

.menu-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 79, 124, 0) 45%, rgba(10, 79, 124, 0.5) 100%);
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

.menu-thumb:hover {
  box-shadow: var(--shadow-hover);
}

.menu-thumb:hover img {
  transform: scale(1.05);
}

.menu-thumb:hover::after {
  opacity: 0.85;
}

.menu-thumb-tag {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.menu-thumb-tag::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s var(--ease);
}

.menu-thumb:hover .menu-thumb-tag {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 79, 124, 0.5);
}

.menu-thumb:hover .menu-thumb-tag::after {
  transform: translateX(4px);
}

/* ---- FAQ acordeón (details/summary) ---- */
.faq-list {
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 840px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 56px 18px 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  transition: color 0.2s ease;
}

.faq-item summary:hover h3 {
  color: var(--brand-deep);
}

/* Icono +/- dibujado con pseudo-elementos del summary */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-deep);
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] summary::after {
  transform: translateY(-50%);
  opacity: 0;
}

.faq-body {
  padding: 0 22px 20px;
}

.faq-item[open] {
  border-color: rgba(0, 120, 184, 0.28);
}

.faq-item[open] .faq-body {
  animation: fadeUp 0.35s var(--ease);
}

/* ---- Botón flotante Rappi: pulso sutil + tooltip ---- */
.rappi-float {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}

.rappi-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #ff5a33;
  animation: pulseRing 2.6s ease-out infinite;
}

.rappi-float::after {
  content: "Pedir en Rappi";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0e3552;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.rappi-float:hover::after,
.rappi-float:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 880px) {
  .rappi-float::after {
    display: none;
  }
}

/* Robustez del header: la marca encoge y trunca para no empujar el botón
   hamburguesa fuera de pantalla en celulares estrechos */
.brand {
  min-width: 0;
  flex: 0 1 auto;
}

.brand > span {
  min-width: 0;
}

.brand strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  flex: 0 0 auto;
}

/* En celulares se oculta el subtítulo para dejar aire al hamburguesa */
@media (max-width: 480px) {
  .brand small {
    display: none;
  }
}

/* Laptops pequeñas / tablets horizontales */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }
}

/* Tablet vertical y abajo: apilar bloques de 2 columnas */
@media (max-width: 960px) {
  .hero-grid,
  .info-grid,
  .faq-list,
  .menu-summary,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 22px;
    padding: 24px;
  }

  .inline-highlights {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .menu-hero {
    padding-top: 42px;
  }

  .menu-anchor-nav {
    flex-wrap: nowrap;
    padding: 14px;
  }
}

/* Tablet vertical: imágenes del menú a 1 columna (se ven más grandes) */
@media (max-width: 768px) {
  .menu-image-grid,
  .menu-items-grid {
    grid-template-columns: 1fr;
  }
}

/* Celulares: tarjetas a 1 columna y acciones a ancho completo */
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .stack-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---- Mobile navigation ---- */
@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(247, 251, 253, 0.98);
    border-bottom: 1px solid rgba(22, 48, 66, 0.1);
    box-shadow: 0 24px 40px rgba(7, 39, 62, 0.16);
  }

  .main-nav.open {
    display: flex;
    animation: fadeUp 0.26s var(--ease);
  }

  .main-nav a {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-menu-btn,
  .nav-rappi-btn {
    width: 100%;
    min-height: 52px;
  }

  .nav-rappi-mobile {
    display: block;
    text-align: center;
    color: #fff !important;
    background: linear-gradient(135deg, #ff6b2c 0%, #ff441f 100%);
    box-shadow: 0 12px 26px rgba(255, 68, 31, 0.32);
  }

  .topbar {
    position: relative;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 20px, 100vw - 20px);
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-copy,
  .hero-card,
  .feature-card,
  .info-panel,
  .faq-card,
  .menu-image-card,
  .menu-category,
  .menu-item,
  .menu-summary,
  .footer-row {
    padding: 20px;
  }

  .menu-category-header,
  .menu-item-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-anchor-nav a,
  .price-badge,
  .price-row {
    width: 100%;
  }

  .menu-image-link,
  .menu-image {
    border-radius: 18px;
  }

  .brand-logo {
    width: 78px;
  }

  .price-badge {
    white-space: normal;
    justify-content: flex-start;
  }

  .price-row {
    flex-wrap: wrap;
  }
}

/* Celulares pequeños */
@media (max-width: 390px) {
  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .hero-card,
  .feature-card,
  .info-panel,
  .menu-image-card,
  .faq-item summary,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-item summary {
    padding-right: 48px;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .rappi-float {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }
}

/* Monitores grandes / ultra wide: un poco más de ancho útil sin estirar de más */
@media (min-width: 1280px) {
  :root {
    --container: min(1200px, calc(100vw - 48px));
  }
}

/* ---- Accesibilidad: respetar reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
