/* Ajustes de presentación, carta interactiva y redes de Emiliana. */
html {
  scrollbar-gutter: stable;
}

body:not(.home) #homeHero,
body:not(.home) #homeWelcome,
body:not(.home) #homeFeatures {
  display: none !important;
}

header,
.nav {
  height: 76px !important;
}

.nav > a:first-child {
  display: flex;
  width: 228px;
  height: 76px;
  flex: 0 0 228px;
  align-items: center;
  overflow: hidden;
}

/* Logotipo equilibrado y navegación con aire uniforme. */
.logo {
  width: 228px !important;
  height: 76px !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto;
  object-fit: cover !important;
  object-position: left center !important;
}

.links {
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
  gap: clamp(9px, 0.9vw, 15px) !important;
  margin-left: clamp(24px, 3.6vw, 58px);
  font-size: clamp(12px, 0.84vw, 14px) !important;
}

.links a {
  letter-spacing: 0.025em;
}

.links .reserve {
  margin-left: 2px;
  padding: 12px 15px !important;
  font-size: inherit !important;
}

/* Más aire a la derecha para que Reservar mesa nunca quede pegado al borde. */
@media (min-width: 901px) {
  .nav {
    width: min(1320px, calc(100% - 80px)) !important;
    position: relative;
  }

  .links {
    margin-right: 0;
  }

  /*
   * La cenefa ocupa espacio propio: conserva intactas las proporciones de la
   * portada y de las tres fotografías del bloque de bienvenida.
   */
  body.home main {
    height: calc(100dvh - 40px) !important;
    overflow: visible !important;
    grid-template-rows:
      calc(43dvh - 32.68px)
      calc(34dvh + 10.16px)
      calc(23dvh - 17.48px) !important;
  }
}

/*
 * Portada: se conserva la fotografía y todo el contenido original, pero la
 * imagen ahora ocupa el fondo completo y el texto se lee sobre un degradado.
 */
body.home #homeHero {
  position: relative;
  isolation: isolate;
  display: block !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #080503;
}

body.home #homeHero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, rgb(5 3 2 / 96%) 0%, rgb(8 5 3 / 91%) 23%, rgb(10 6 3 / 67%) 43%, rgb(8 5 3 / 18%) 70%, transparent 100%),
    linear-gradient(0deg, rgb(5 3 2 / 34%), transparent 45%);
  pointer-events: none;
}

body.home #homeHero::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  content: '';
  background: linear-gradient(90deg, #6f421d, #d1a457 28%, #7d4c20 64%, #d1a457);
  box-shadow: 0 -1px 0 rgb(255 228 169 / 32%);
  pointer-events: none;
}

body.home #homeWelcome,
body.home #homeFeatures {
  display: block !important;
  height: 100% !important;
  overflow: hidden !important;
}

/*
 * Cenefa de mosaico medieval: una composición geométrica de teselas en vino,
 * oro envejecido y nogal. Se dibuja íntegramente con CSS para no sumar peso ni
 * introducir una imagen artificial al diseño del restaurante.
 */
body.home #homeWelcome {
  position: relative;
  padding: 50px 0 12px !important;
  background-color: #fff6e7;
}

body.home #homeWelcome::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 36px;
  content: '';
  background-color: #2a1209;
  background-image:
    linear-gradient(90deg, rgb(255 230 171 / 8%), rgb(255 224 156 / 34%) 50%, rgb(255 230 171 / 8%)),
    radial-gradient(circle at 50% 50%, #f2d18b 0 1.5px, transparent 2.5px),
    conic-gradient(
      from 45deg at 50% 50%,
      #d0a14f 0 12.5%,
      #67261a 0 25%,
      #241006 0 37.5%,
      #9c662b 0 50%,
      #241006 0 62.5%,
      #67261a 0 75%,
      #d0a14f 0 87.5%,
      #241006 0
    );
  background-size: 100% 100%, 36px 36px, 36px 36px;
  border-top: 1px solid #e5bd70;
  border-bottom: 1px solid #6a3518;
  box-shadow:
    inset 0 2px 0 rgb(255 230 171 / 22%),
    inset 0 -3px 6px rgb(0 0 0 / 38%),
    0 5px 12px rgb(62 29 10 / 16%);
  pointer-events: none;
}

body.home #homeHero .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(49%, 720px);
  min-width: 0;
  height: 100%;
  align-items: center;
  background: transparent;
  text-shadow: 0 2px 15px rgb(0 0 0 / 72%);
}

body.home #homeHero .hero-copy::after {
  display: none;
}

body.home #homeHero .hero-in {
  width: min(430px, 88%);
  margin-left: max(28px, calc((100vw - 1500px) / 2));
  padding-top: 0;
}

body.home #homeHero .hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.home #homeHero .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(.79) contrast(.92) brightness(.94);
}

/* Fotografías más naturales, sin exceso de color ni contraste. */
.photo img,
.pic img,
.video img,
.dance-gallery-photo img {
  filter: saturate(.84) contrast(.94) brightness(.98);
}

.dish-media img {
  filter: saturate(.9) contrast(.96) brightness(1.01);
}

/* Danzas: al entrar se muestran directamente las fotografías existentes. */
body.dance-gallery-page {
  background: #080503;
}

body.dance-gallery-page main {
  min-height: calc(100dvh - 76px);
  background:
    radial-gradient(circle at 50% -20%, rgb(101 57 21 / 42%), transparent 42%),
    linear-gradient(145deg, #080503, #1b0d06 55%, #080503);
}

.dance-gallery-page main > .gal {
  padding: 22px 0 64px;
}

.dance-gallery-page main > .gal > .w {
  width: min(1500px, 96%);
}

.dance-gallery-page .gal .head {
  display: none !important;
}

.dance-gallery-page .grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.dance-gallery-page .dance-gallery-photo {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  outline: none;
  box-shadow: 0 12px 28px rgb(0 0 0 / 34%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dance-gallery-page .dance-gallery-photo.wide {
  aspect-ratio: 2 / 1;
}

.dance-gallery-page .dance-gallery-photo:hover,
.dance-gallery-page .dance-gallery-photo:focus-visible {
  border-color: #e2b45b;
  box-shadow: 0 16px 34px rgb(0 0 0 / 48%), 0 0 0 2px rgb(226 180 91 / 28%);
  transform: translateY(-2px);
}

.dance-gallery-page .dance-gallery-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  cursor: zoom-in;
}

/* Inicio: beneficios legibles, amplios y con una jerarquía visual clara. */
body.home #homeFeatures .feature-grid {
  gap: 0;
}

body.home #homeFeatures .feature {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 19px 16px;
  grid-template-rows: 50px minmax(44px, auto) minmax(22px, auto);
  align-content: center;
  justify-items: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 2%), rgb(0 0 0 / 8%));
  transition: background 180ms ease, transform 180ms ease;
}

body.home #homeFeatures .feature:hover {
  z-index: 1;
  background: linear-gradient(180deg, rgb(214 167 77 / 13%), rgb(0 0 0 / 5%));
  transform: translateY(-2px);
}

body.home #homeFeatures .feature i {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid rgb(230 183 92 / 55%);
  border-radius: 50%;
  background: rgb(5 3 2 / 36%);
  color: #e5b85d;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
}

body.home #homeFeatures .feature b {
  display: flex;
  width: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: #efc66f;
  font: 700 clamp(14px, 1vw, 17px)/1.25 Georgia, 'Times New Roman', serif;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

body.home #homeFeatures .feature p {
  display: flex;
  margin: 0;
  align-items: flex-start;
  justify-content: center;
  color: #f2dfc1;
  font: 400 clamp(12px, .84vw, 14px)/1.45 Arial, sans-serif;
  text-align: center;
}

/* Áreas: el mismo menú principal y retratos completos, sin recortes. */
.area-page .nav {
  width: min(1280px, 94%) !important;
}

.area-page .hamb {
  display: none;
}

.area-page .links a {
  padding-block: 28px;
}

.area-page .reserve {
  padding: 11px 15px !important;
  border: 1px solid #805a25;
}

.area-hub .portal {
  gap: 24px;
}

.area-hub .portal-card {
  display: grid;
  min-height: 0;
  grid-template-rows: 360px auto;
  border-radius: 18px;
  background: #160906;
  box-shadow: 0 20px 44px rgb(61 31 13 / 18%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.area-hub .portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgb(61 31 13 / 28%);
}

.area-hub .portal-card::after {
  display: none;
}

.area-hub .portal-card > img,
.area-hub .portal-card > .doc {
  width: 100%;
  height: 360px;
}

.area-hub .portal-card > img {
  object-fit: contain;
  object-position: center;
  background: radial-gradient(circle at 50% 42%, #71090c 0%, #330507 52%, #160605 100%);
}

.area-hub .portal-card > img.area-artwork {
  padding: 14px;
  border-bottom: 1px solid rgb(214 167 77 / 42%);
  object-fit: contain !important;
  box-sizing: border-box;
}

/* El PNG de Marketing trae un damero claro incrustado; se muestra solo su medallón. */
.area-hub .portal-card > img.area-artwork-marketing {
  padding: 0;
  clip-path: circle(42.2% at 50% 47.8%);
  border-bottom: 0;
}

/*
 * La vista de Áreas dentro de Inicio es una ruta distinta de /areas. Sus
 * tarjetas también muestran los tres iconos oficiales antes de ingresar.
 */
#areas .grid3:has(> .area-preview-card) {
  align-items: stretch;
}

#areas .card.area-preview-card {
  display: grid !important;
  min-height: 510px;
  overflow: hidden;
  grid-template-rows: 260px auto auto 1fr auto;
  padding: 0 !important;
  border: 1px solid rgb(151 99 38 / 55%);
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 20px 42px rgb(86 48 15 / 16%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#areas .card.area-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgb(86 48 15 / 24%);
}

#areas .area-preview-media {
  display: grid;
  width: 100%;
  height: 260px;
  overflow: hidden;
  margin: 0;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #71090c 0%, #330507 52%, #160605 100%);
  border-bottom: 1px solid rgb(151 99 38 / 50%);
}

#areas .area-preview-media > img.area-artwork {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain !important;
  box-sizing: border-box;
}

#areas .area-preview-media > img.area-artwork-marketing {
  padding: 0;
  clip-path: circle(42.2% at 50% 47.8%);
}

#areas .card.area-preview-card > .ey {
  margin: 24px 26px 0;
}

#areas .card.area-preview-card > h3 {
  margin: 8px 26px 0;
}

#areas .card.area-preview-card > p {
  margin: 12px 26px 0;
}

#areas .card.area-preview-card > b {
  margin: 18px 26px 26px;
}

@media (max-width: 700px) {
  #areas .card.area-preview-card {
    min-height: 480px;
    grid-template-rows: min(72vw, 270px) auto auto 1fr auto;
  }

  #areas .area-preview-media {
    height: min(72vw, 270px);
  }
}

.area-hub .portal-card > .doc {
  background: radial-gradient(circle at 50% 35%, #543017, #160906 70%);
}

.area-hub .portal-copy {
  position: relative;
  bottom: auto;
  padding: 26px;
  background: linear-gradient(145deg, #2b1409, #100704);
  color: #fff3df;
}

.area-hub .portal-copy p {
  margin-bottom: 0;
}

.area-detail .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
}

.area-detail .hero-photo {
  display: grid;
  min-height: 560px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #93662d;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 42%, #72080c 0%, #350507 54%, #130504 100%);
  box-shadow: 0 28px 60px rgb(0 0 0 / 46%);
}

.area-detail .hero-photo > img {
  width: 100% !important;
  height: 560px !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  object-fit: contain !important;
  object-position: center !important;
  box-shadow: none !important;
}

.area-detail .profile {
  overflow: hidden;
  border-radius: 20px;
}

.area-detail .profile > img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain !important;
  object-position: center !important;
  background: radial-gradient(circle at 50% 42%, #72080c 0%, #350507 54%, #130504 100%);
}

.links a,
.btn,
.tab,
.hamb,
.pic,
.video button,
.close,
.quantity-button,
.order-remove,
.order-clear {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f0cf8a !important;
  outline-offset: 3px;
}

img {
  color: transparent;
}

.hero-photo img,
.photo img,
.dish img,
.pic img,
.video img {
  background: #160d07;
}

/* Carta: fotografía ampliable y selección para el pedido. */
.dishes {
  align-items: stretch;
}

.dish {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 28px rgb(73 42 18 / 8%);
}

.dish-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #eadbc4;
  cursor: zoom-in;
}

.dish-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  pointer-events: none;
  transition: transform 220ms ease;
}

.dish-media:hover img {
  transform: scale(1.025);
}

.dish-media:focus-visible {
  outline: 3px solid #9b631c;
  outline-offset: -3px;
}

.dish-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.dish-info h3 {
  min-height: 52px;
}

.dish-description {
  min-height: 0;
  margin: -3px 0 14px;
  color: #735b42;
  font-size: 12px;
  line-height: 1.55;
}

.dish-price {
  margin: auto 0 12px;
  color: #7c4c14;
  font: 700 17px Georgia, serif;
}

.add-to-order {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  text-transform: none;
}

.add-to-order.is-added {
  border-color: #8b5b1f;
  background: linear-gradient(#efc66f, #c88a2e);
  color: #241307;
}

.add-to-order.is-added::before {
  content: "✓";
  margin-right: 7px;
  font-size: 14px;
}

.order-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 9999;
  max-width: min(520px, calc(100vw - 32px));
  padding: 13px 20px;
  border: 1px solid #d7aa57;
  background: #17100b;
  color: #ffe2aa;
  font: 800 13px / 1.4 Arial, sans-serif;
  text-align: center;
  box-shadow: 0 10px 32px rgb(0 0 0 / 36%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.order-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.order-panel {
  margin: 32px 0 8px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #b58c55;
  background:
    radial-gradient(circle at 100% 0, rgb(214 167 77 / 18%), transparent 34%),
    #fffaf0;
  box-shadow: 0 18px 44px rgb(64 36 15 / 12%);
}

.order-heading,
.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.order-heading {
  padding-bottom: 17px;
  border-bottom: 1px solid rgb(143 96 38 / 24%);
}

.order-heading h3 {
  margin: 4px 0 0;
  color: #3d2617;
  font: 400 clamp(28px, 3vw, 38px) / 1 Georgia, serif;
}

.order-count {
  flex: none;
  padding: 8px 12px;
  border: 1px solid #c9a570;
  background: #f6e5c9;
  color: #64411e;
  font-size: 12px;
  font-weight: 900;
}

.order-customer {
  margin: 22px 0;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgb(139 92 35 / 28%);
  background: rgb(246 229 201 / 46%);
}

.order-customer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.order-customer-head h4 {
  margin: 5px 0 0;
  color: #3d2617;
  font: 400 clamp(24px, 2.6vw, 32px) / 1.1 Georgia, serif;
}

.order-customer-head p {
  max-width: 520px;
  margin: 0;
  color: #765b3d;
  line-height: 1.5;
}

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

.order-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #563719;
  font: 800 12px Arial, sans-serif;
}

.order-field > span,
.order-field legend {
  letter-spacing: 0.02em;
}

.order-field input,
.order-field textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #bc9662;
  border-radius: 0;
  background: #fffdf8;
  color: #2f1c0e;
  font: 400 15px Arial, sans-serif;
}

.order-field textarea {
  min-height: 92px;
  resize: vertical;
}

.order-field-wide,
.order-fulfillment {
  grid-column: 1 / -1;
}

.order-field[hidden] {
  display: none !important;
}

.order-fulfillment {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 2px 0 0;
}

.order-fulfillment legend {
  margin-bottom: 9px;
}

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

.fulfillment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid #bc9662;
  background: #fffdf8;
  cursor: pointer;
}

.fulfillment-option:has(input:checked) {
  border-color: #8b5b1f;
  background: #f1d39e;
  box-shadow: inset 0 0 0 1px #8b5b1f;
}

.fulfillment-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #7a4918;
}

.fulfillment-option b,
.fulfillment-option small {
  display: block;
}

.fulfillment-option b {
  color: #3d2617;
  font-size: 14px;
}

.fulfillment-option small {
  margin-top: 4px;
  color: #795d3c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.order-empty {
  margin: 22px 0;
  padding: 18px;
  border: 1px dashed #bc9662;
  color: #765b3d;
  text-align: center;
}

.order-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.order-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgb(139 92 35 / 22%);
  background: #fffdf8;
}

.order-thumb {
  width: 70px;
  height: 58px;
  object-fit: contain;
  background: #eadbc4;
}

.order-item-copy {
  min-width: 0;
}

.order-item-copy b,
.order-item-copy small {
  display: block;
}

.order-item-copy b {
  overflow: hidden;
  color: #3d2617;
  font: 700 16px Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-copy small {
  margin-top: 4px;
  color: #8b6235;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  border: 1px solid #b58c55;
  background: #fff8ea;
}

.quantity-button,
.quantity-value,
.order-remove,
.order-clear {
  min-height: 34px;
  border: 0;
  font: 800 13px Arial, sans-serif;
}

.quantity-button {
  background: transparent;
  color: #523014;
  cursor: pointer;
}

.quantity-button:hover {
  background: #ecd5b2;
}

.quantity-value {
  display: grid;
  place-items: center;
  border-inline: 1px solid #d2b180;
}

.order-remove,
.order-clear {
  border: 1px solid #b8915d;
  background: transparent;
  color: #754521;
  cursor: pointer;
}

.order-remove {
  width: 38px;
  border-radius: 50%;
  font-size: 17px;
}

.order-footer {
  padding-top: 17px;
  border-top: 1px solid rgb(143 96 38 / 24%);
}

.order-total {
  color: #60411f;
  line-height: 1.45;
}

.order-total b {
  color: #2f1c0e;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.order-clear {
  padding: 10px 14px;
}

.order-clear:disabled,
.order-send.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.order-send {
  min-height: 42px;
  border: 1px solid #ad7724;
  cursor: pointer;
  text-transform: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Redes oficiales: usa los cuatro archivos públicos del R2 del restaurante. */
.socials {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.social {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px !important;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social:hover {
  transform: translateY(-4px);
  border-color: #d2a653;
  background: #251208;
}

.social-mark {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgb(221 180 101 / 35%);
  border-radius: 50%;
  background: rgb(255 255 255 / 5%);
}

.social-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.social h3 {
  margin: 0 0 8px;
}

.social p {
  margin: 0;
  color: #c2ad90;
  line-height: 1.5;
}

#zoom {
  width: min(1000px, 94vw);
  max-width: none;
  color: #f2d9ac;
}

#zoom img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.zoom-caption {
  margin: 10px 46px 2px 4px;
  color: #f2d9ac;
  font: 400 20px Georgia, serif;
}

/* Galería completa recuperada de las carpetas públicas del restaurante. */
#galleryPics.gallery-expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #8f642d;
  background: #160d07;
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
}

.gallery-photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
  transform: scale(1.035);
  filter: saturate(.9) contrast(.96) brightness(1.01);
}

.gallery-shade {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgb(5 3 2 / 88%));
  pointer-events: none;
}

.gallery-label {
  position: absolute;
  right: 42px;
  bottom: 14px;
  left: 14px;
  overflow: hidden;
  color: #ffe2aa;
  font: 700 15px / 1.25 Georgia, serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.gallery-zoom-mark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(255 226 170 / 72%);
  border-radius: 50%;
  background: rgb(8 5 3 / 68%);
  color: #ffe2aa;
  font: 700 14px Arial, sans-serif;
  pointer-events: none;
}

/* El recuadro de contacto muestra la ubicación real, con acceso a indicaciones. */
#contacto .map-box {
  position: relative;
  display: block !important;
  min-height: 445px;
  padding: 5px !important;
  overflow: hidden;
  border: 1px solid #8f642d;
  background: #160d07;
}

#contacto .map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 433px;
  border: 0;
  background: #e8e0d5;
}

#contacto .map-open-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border: 2px solid rgb(255 255 255 / 90%);
  background: #17100b;
  color: #ffe2aa;
  box-shadow: 0 7px 24px rgb(0 0 0 / 32%);
  text-transform: none;
}

/* Selector compacto con nueve idiomas revisados. */
.language-panel {
  position: fixed;
  z-index: 9997;
  top: 92px;
  right: 18px;
  color: #f7dfb2;
  font-family: Arial, sans-serif;
}

.language-toggle {
  display: grid;
  min-width: 64px;
  min-height: 62px;
  padding: 7px 9px;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 6px;
  border: 1px solid #9a6c32;
  border-radius: 0;
  background: rgb(10 6 3 / 93%);
  color: #f5d89f;
  box-shadow: 0 10px 28px rgb(0 0 0 / 28%);
  cursor: pointer;
}

.language-toggle > span { color: #d9a94c; font: 700 20px Georgia, serif; }
.language-toggle > b { font-size: 13px; }
.language-toggle > small { grid-column: 1 / -1; color: #cbb28a; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.language-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: min(330px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid #9a6c32;
  background: linear-gradient(145deg, rgb(22 12 6 / 98%), rgb(6 4 3 / 99%));
  box-shadow: 0 20px 54px rgb(0 0 0 / 52%);
}

.language-title { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 10px; padding: 4px 3px 10px; border-bottom: 1px solid rgb(213 167 76 / 26%); }
.language-title strong { font: 400 20px Georgia, serif; }
.language-title small { color: #bfa57f; font-size: 9px; text-transform: uppercase; }
.language-option { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 8px; border: 0; border-bottom: 1px solid rgb(255 255 255 / 7%); background: transparent; color: #f5dfbb; text-align: left; cursor: pointer; }
.language-option:hover, .language-option:focus-visible, .language-option.is-current { background: rgb(210 161 75 / 14%); }
.language-option > b { display: grid; width: 30px; height: 28px; place-items: center; border: 1px solid #765023; color: #e3b75f; font-size: 10px; }
.language-option > span { font: 400 14px Georgia, serif; }
.language-option > small { color: #bca584; font-size: 9px; }

@media (min-width: 901px) and (max-width: 1450px) {
  .nav { width: min(1280px, calc(100% - 56px)) !important; }
  .nav > a:first-child { width: 205px; flex-basis: 205px; }
  .logo { width: 205px !important; }
  .links { gap: 8px !important; margin-left: 20px; font-size: 11.6px !important; }
  .links .reserve { padding-inline: 11px !important; }
}

@media (min-width: 1600px) {
  .nav {
    width: min(1480px, calc(100% - 150px)) !important;
  }

  .nav > a:first-child {
    width: 250px;
    flex-basis: 250px;
  }

  .logo {
    width: 250px !important;
  }

  .links {
    gap: 15px !important;
    margin-left: 58px;
    margin-right: 0;
    font-size: 14px !important;
  }

  .links .reserve {
    padding: 13px 16px !important;
    font-size: inherit !important;
  }
}

@media (min-width: 1800px) {
  .nav {
    width: min(1580px, calc(100% - 190px)) !important;
  }

  .nav > a:first-child {
    width: 260px;
    flex-basis: 260px;
  }

  .logo {
    width: 260px !important;
  }

  .links {
    gap: 18px !important;
    margin-left: 72px;
    margin-right: 0;
    font-size: 14.5px !important;
  }

  .links .reserve {
    padding: 13px 18px !important;
    font-size: inherit !important;
  }
}

@media (max-width: 1280px) {
  .links {
    gap: 7px !important;
    font-size: 11.5px !important;
  }

  .links .reserve {
    padding: 11px 12px !important;
    font-size: inherit !important;
  }
}

@media (max-width: 1150px) {
  .nav > a:first-child {
    width: 190px;
    flex-basis: 190px;
  }

  .logo {
    width: 190px !important;
  }

  .links {
    gap: 5px !important;
    margin-left: 10px;
    font-size: 10px !important;
  }

  .links .reserve {
    padding-inline: 10px !important;
    font-size: 11.5px !important;
  }
}

@media (max-width: 900px) {
  header,
  .nav {
    min-height: 76px !important;
    height: 76px !important;
  }

  .logo {
    width: 205px !important;
  }

  .nav > a:first-child {
    width: 205px;
    flex-basis: 205px;
  }

  .links {
    top: 76px !important;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
  }

  .area-page .hamb {
    display: block !important;
    margin-left: auto;
    border: 1px solid #765126;
    background: #090604;
    color: #f0cf8a;
    font-size: 22px;
  }

  .area-page .links {
    position: absolute;
    right: 3%;
    left: 3%;
    display: none !important;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    background: #090604;
    box-shadow: 0 18px 38px rgb(0 0 0 / 38%);
  }

  .area-page .links.open {
    display: flex !important;
  }

  .area-page .links a {
    padding: 10px 8px;
  }

  .area-detail .hero-grid {
    grid-template-columns: 1fr;
  }

  .area-detail .hero-photo,
  .area-detail .hero-photo > img {
    height: 520px !important;
    min-height: 520px;
  }

  body.home #homeFeatures .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home #homeFeatures .feature:last-child {
    grid-column: 1 / -1;
  }

  body.home #homeHero {
    height: auto !important;
    min-height: 620px;
    overflow: hidden !important;
  }

  body.home #homeHero::before {
    background:
      linear-gradient(0deg, rgb(5 3 2 / 96%) 0%, rgb(7 4 2 / 86%) 34%, rgb(7 4 2 / 26%) 72%, rgb(5 3 2 / 12%) 100%),
      linear-gradient(90deg, rgb(5 3 2 / 38%), transparent 72%);
  }

  body.home #homeHero .hero-copy {
    width: 100%;
    min-height: 620px;
    align-items: flex-end;
  }

  body.home #homeHero .hero-photo {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  body.home #homeHero .hero-photo img {
    object-position: 64% center;
  }

  body.home #homeHero .hero-in {
    width: min(520px, 86%);
    margin: 0 auto;
    padding: 230px 0 40px;
  }

  body.home #homeWelcome,
  body.home #homeFeatures {
    height: auto !important;
    overflow: visible !important;
  }

  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #galleryPics.gallery-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dance-gallery-page .g,
  .dance-gallery-page .g.wide {
    grid-column: span 6;
  }

  .order-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .language-panel {
    top: 88px;
    right: 12px;
  }
}

@media (max-width: 560px) {
  .nav > a:first-child {
    width: min(200px, 62vw);
    flex-basis: min(200px, 62vw);
  }

  .logo {
    width: min(200px, 62vw) !important;
  }

  .hero-copy {
    min-height: 360px !important;
  }

  body.home #homeHero,
  body.home #homeHero .hero-copy {
    min-height: 590px !important;
  }

  body.home #homeHero .hero-in {
    width: 88%;
    padding: 215px 0 34px;
  }

  .dish-media {
    height: 240px;
  }

  .dish-info h3 {
    min-height: 0;
  }

  .socials {
    grid-template-columns: 1fr !important;
  }

  #galleryPics.gallery-expanded {
    grid-template-columns: 1fr !important;
  }

  .dance-gallery-page main > .gal {
    padding-top: 10px;
  }

  .dance-gallery-page main > .gal > .w {
    width: 94%;
  }

  .dance-gallery-page .g,
  .dance-gallery-page .g.wide {
    grid-column: 1 / -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  body.home #homeFeatures .feature-grid {
    grid-template-columns: 1fr;
  }

  body.home #homeFeatures .feature,
  body.home #homeFeatures .feature:last-child {
    min-height: 150px;
    grid-column: auto;
  }

  .area-hub .portal-card {
    grid-template-rows: 420px auto;
  }

  .area-hub .portal-card > img,
  .area-hub .portal-card > .doc {
    height: 420px;
  }

  .area-detail .hero-photo,
  .area-detail .hero-photo > img {
    height: 460px !important;
    min-height: 460px;
  }

  #contacto .map-box,
  #contacto .map-box iframe {
    min-height: 370px;
  }

  .social {
    min-height: 205px;
  }

  .order-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-customer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-customer-grid,
  .fulfillment-options {
    grid-template-columns: 1fr;
  }

  .order-field-wide,
  .order-fulfillment {
    grid-column: auto;
  }

  .order-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .order-thumb {
    width: 58px;
    height: 54px;
  }

  .quantity-control {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .order-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .order-actions,
  .order-clear,
  .order-send {
    width: 100%;
  }

  .language-toggle {
    min-width: 58px;
    min-height: 56px;
  }
}

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