:root {
  --black: #0b0b0b;
  --soft-black: #151515;
  --red: #b5161b;
  --red-dark: #7f0f13;
  --beige: #b9ab7d;
  --beige-soft: #fff4df;
  --muted: #c9b99a;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--beige);
  font-family: "Montserrat", Arial, sans-serif;
  overscroll-behavior-y: contain;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

h1,
h2,
.logo,
.nav-links a {
  font-family: "Cinzel", serif;
}

/* ORDER CONFIRMATION MODAL */

.order-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.order-modal-overlay.modal-visible {
  opacity: 1;
  pointer-events: all;
}

.order-modal {
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(24px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.order-modal-overlay.modal-visible .order-modal {
  transform: translateY(0);
}

.order-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 16px;
}

.order-modal-header.modal-error {
  border-bottom: 1px solid rgba(181, 22, 27, 0.3);
}

.order-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(42, 122, 80, 0.2);
  border: 1px solid rgba(42, 122, 80, 0.4);
  color: #3dba78;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-modal-icon.modal-error {
  background: rgba(181, 22, 27, 0.15);
  border-color: rgba(181, 22, 27, 0.4);
  color: #e05560;
}

.order-modal-title {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--beige-soft);
}

.order-modal-subtitle {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 700;
  margin-top: 2px;
}

.order-modal-body {
  padding: 0 24px 16px;
}

.modal-customer {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-customer strong {
  color: var(--beige);
  display: block;
  margin-bottom: 2px;
}

.modal-items {
  border-top: 1px solid rgba(185, 171, 125, 0.12);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.modal-item-row span:first-child { color: var(--beige); }

.modal-total {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 1rem;
  color: var(--beige-soft);
  border-top: 1px solid rgba(185, 171, 125, 0.15);
  padding-top: 10px;
  margin-top: 8px;
}

.modal-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

.modal-error-msg {
  font-size: 0.9rem;
  color: #e05560;
  line-height: 1.5;
}

.order-modal-close {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.order-modal-close:hover { background: var(--red-dark); }

/* TOAST */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.2);
  color: var(--beige-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast--show {
  opacity: 1;
  transform: translateY(0);
}

/* FLOATING CART BUTTON */

.cart-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.2s, transform 0.2s;
}

.cart-fab:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.cart-fab.cart-fab--hidden {
  display: none;
}

/* INSTALL BUTTON */

.install-btn {
  border: 1px solid rgba(185, 171, 125, 0.4);
  background: transparent;
  color: var(--beige);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.install-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* iOS INSTALL INSTRUCTIONS */

.ios-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ios-install-overlay.ios-visible {
  opacity: 1;
  pointer-events: all;
}

.ios-install-card {
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.2);
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.ios-install-overlay.ios-visible .ios-install-card {
  transform: translateY(0);
}

.ios-install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.ios-install-title {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--beige-soft);
  margin-bottom: 16px;
  font-weight: 700;
}

.ios-install-steps {
  color: var(--muted);
  line-height: 2;
  font-size: 0.95rem;
}

.ios-install-steps strong { color: var(--beige); }

.ios-share-icon {
  display: inline-block;
  font-size: 1rem;
  vertical-align: middle;
}

/* FLOATING NAV */

.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(185, 171, 125, 0.12);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.floating-nav--visible {
  transform: translateY(0);
}

.floating-nav-inner {
  width: min(1150px, 92%);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.floating-nav-logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.floating-nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.floating-nav-links a {
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--beige);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.floating-nav-links a:hover,
.floating-nav-links a.nav-active {
  color: var(--red);
}

@media (max-width: 650px) {
  .floating-nav-logo {
    height: 44px;
  }

  .floating-nav-links {
    gap: 14px;
    justify-content: center;
    width: 100%;
  }

  .floating-nav-links a {
    font-size: 0.9rem;
    font-weight: 800;
  }
}

/* HEADER / HERO */

.site-header {
  min-height: 100svh;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      #0b0b0b 100%
    ),
    url("images/croquetas.jpeg");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
}

.navbar {
  width: min(1150px, 92%);
  margin: 0 auto;
  padding: 0 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero {
  width: min(1150px, 92%);
  margin: 0 auto;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  font-size: 1rem;
}

.hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--beige);
}

.hero p {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* GENERAL SECTIONS */

.menu-section,
.about-section,
.cart-section,
.scroll-gallery {
  scroll-margin-top: 32px;
}

.menu-section,
.about-section,
.cart-section {
  width: min(1150px, 92%);
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 8px 0 0;
  color: var(--beige);
}

/* MENU TABS */

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tabs button {
  border: 1px solid rgba(185, 171, 125, 0.3);
  background: var(--soft-black);
  color: var(--beige);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.tabs button.active,
.tabs button:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* MENU CARDS */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.menu-item {
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.16);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.menu-item h3 {
  margin: 0 0 8px;
  color: var(--beige-soft);
}

.menu-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.price {
  color: var(--beige);
  font-weight: 900;
}

.add-btn {
  border: none;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.add-btn:hover {
  background: var(--red-dark);
}

/* IMAGE BREAK */

.image-break {
  min-height: 420px;
  background:
    linear-gradient(
      to bottom,
      var(--black) 0%,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.35) 70%,
      var(--black) 100%
    ),
    url("images/sushisolo.JPG");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
}

.image-break-content {
  max-width: 700px;
}

.image-break h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin: 0 0 12px;
  color: var(--beige);
}

.image-break p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ABOUT / CART */

.about-card,
.cart-card {
  background: linear-gradient(145deg, #151515, #0d0d0d);
  border: 1px solid rgba(185, 171, 125, 0.18);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.about-card h2 {
  margin-top: 0;
  color: var(--beige);
}

.about-card p {
  color: var(--muted);
  line-height: 1.7;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(185, 171, 125, 0.15);
}

.empty-cart {
  text-align: center;
  color: var(--muted);
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 24px 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

.cart-total-grand {
  font-size: 1.25rem;
  color: var(--beige);
  border-top: 1px solid rgba(185,171,125,0.25);
  padding-top: 8px;
  margin-top: 4px;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(185, 171, 125, 0.3);
  background: #090909;
  color: var(--beige);
  font: inherit;
}

.order-form textarea {
  min-height: 100px;
  resize: vertical;
}

.order-form input[type="datetime-local"] {
  appearance: none;
  -webkit-appearance: none;
  line-height: normal;
}

.order-form button {
  border: none;
  background: var(--red);
  color: var(--white);
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.order-status {
  margin-top: 16px;
  font-weight: 700;
}

/* CONTACT & RESERVACIONES */

.contact-section,
.reservaciones-section {
  width: min(1150px, 92%);
  margin: 0 auto;
  padding: 80px 0;
  scroll-margin-top: 32px;
}

.contact-card {
  background: linear-gradient(145deg, #151515, #0d0d0d);
  border: 1px solid rgba(185, 171, 125, 0.18);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
}

.contact-value {
  font-size: 1.05rem;
  color: var(--beige-soft);
  font-weight: 600;
}

/* SCROLL GALLERY */

.scroll-gallery {
  width: 100%;
  background: var(--black);
  padding: 40px 0;
}

.gallery-panel {
  min-height: 75svh;
  max-width: 1400px;
  margin: 0 auto 40px;
  border-radius: 28px;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;

  position: relative;
}

.gallery-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--black) 0%,
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0.35) 70%,
    var(--black) 100%
  );
}

.gallery-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.gallery-text h2 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  margin: 0 0 14px;
  color: var(--beige);
}

.gallery-text p {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.panel-one {
  background-image: url("images/tokyo2man.JPG");
}

.panel-two {
  background-image: url("images/bandeja.JPG");
}

.panel-three {
  background-image: url("images/niguirisalmon.JPG");
}

.panel-four {
  background-image: url("images/alaska.JPG");
}

/* FOOTER */

.site-footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid rgba(185, 171, 125, 0.15);
}

/* TABLET */

@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .site-header {
    min-height: 100svh;
    background-position: center top;
  }

  .navbar {
    width: 92%;
    padding-bottom: 22px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .hero {
    width: 92%;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 28rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 2rem;
  }

  .menu-section,
  .about-section,
  .cart-section {
    padding: 60px 0;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .cart-card {
    padding: 22px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .image-break {
    min-height: 340px;
    padding: 80px 20px;
  }

    .gallery-panel {
    min-height: 65svh;
  }

  .gallery-text {
    max-width: 90%;
  }

  .gallery-text h2 {
    font-size: 2.8rem;
    line-height: 1;
  }

  .gallery-text p {
    font-size: 1rem;
  }
}
@media (max-width: 650px) {
  .site-header {
    min-height: 100svh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #0b0b0b;
  }
}

/* GALLERY PAGE */

.gallery-page-header {
  background: var(--soft-black);
  border-bottom: 1px solid rgba(185, 171, 125, 0.15);
  padding: 32px 0 48px;
  text-align: center;
}

.gallery-page-nav {
  width: min(1150px, 92%);
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
}

.gallery-page-hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--beige);
  margin: 10px 0 0;
}

.nav-active {
  color: var(--red) !important;
}

.photo-gallery {
  width: min(1150px, 92%);
  margin: 0 auto;
  padding: 60px 0 80px;
  columns: 3;
  column-gap: 16px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.12);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.photo-card:hover img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .photo-gallery {
    columns: 2;
  }
}

@media (max-width: 550px) {
  .photo-gallery {
    columns: 1;
  }
}