:root {
  --navy-950: #050a1e;
  --navy-900: #08122f;
  --navy-850: #0d1737;
  --navy-800: #151f3e;
  --navy-750: #1c2749;

  --cream: #efe6d2;
  --cream-soft: #f7f0e2;
  --white: #fffdf8;

  --muted: #bfc5d2;
  --muted-dark: #7f8799;

  --red: #ef3a34;
  --red-dark: #ce2925;

  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;

  --green-status: #48d87b;

  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

/* =========================================
   CONFIGURACIÓN GENERAL
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  color: var(--white);
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--navy-950);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

/* =========================================
   PÁGINA PRINCIPAL
   ========================================= */

.home-page {
  position: relative;
  overflow-x: hidden;
}

.home-background {
  position: fixed;
  inset: -30px;
  z-index: 0;

  background:
    linear-gradient(
      rgba(5, 10, 30, 0.1),
      rgba(5, 10, 30, 0.1)
    ),
    url("fondo.jpg") center / cover no-repeat;

  filter:
    blur(11px)
    brightness(0.4)
    saturate(0.85);

  transform: scale(1.08);
}

.home-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(43, 60, 119, 0.28),
      transparent 40%
    ),
    linear-gradient(
      150deg,
      rgba(8, 18, 47, 0.82),
      rgba(5, 10, 30, 0.96) 72%
    );
}

.home-shell {
  position: relative;
  z-index: 2;

  display: grid;
  min-height: 100dvh;
  place-items: center;

  padding: 34px 18px;
}

.profile-card {
  width: min(100%, 610px);
  padding: 34px;

  border: 1px solid var(--line);
  border-radius: 32px;

  background:
    linear-gradient(
      180deg,
      rgba(17, 27, 59, 0.9),
      rgba(8, 16, 45, 0.94)
    );

  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

/* =========================================
   LOGO Y ENCABEZADO
   ========================================= */

.brand-block {
  text-align: center;
}

.logo-frame {
  display: grid;
  place-items: center;

  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  padding: 9px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.015)
    );

  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand-logo {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: 22px;
  object-fit: contain;
}

.status-badge {
  display: inline-flex;
  align-items: center;

  min-height: 30px;
  margin-bottom: 8px;
  padding: 6px 12px;
  gap: 8px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;

  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);

  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--green-status);
  box-shadow: 0 0 0 4px rgba(72, 216, 123, 0.12);
}

.brand-block h1 {
  margin: 8px 0 0;

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.intro-text {
  max-width: 440px;
  margin: 17px auto 0;

  color: var(--muted);

  font-size: 1rem;
  line-height: 1.65;
}

/* =========================================
   BOTONES PRINCIPALES
   ========================================= */

.main-actions {
  display: grid;
  gap: 14px;

  margin-top: 31px;
}

.action-card,
.secondary-card {
  display: flex;
  align-items: center;

  text-decoration: none;

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.action-card:hover,
.secondary-card:hover {
  transform: translateY(-2px);
}

.action-card:focus-visible,
.secondary-card:focus-visible,
.header-back:focus-visible,
.header-order:focus-visible,
.floating-whatsapp:focus-visible {
  outline: 3px solid rgba(239, 230, 210, 0.28);
  outline-offset: 3px;
}

.action-card {
  min-height: 88px;
  padding: 16px 18px;
  gap: 15px;

  border-radius: 22px;
}

/* =========================================
   WHATSAPP VERDE
   ========================================= */

.action-primary {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--whatsapp),
      #20c760
    );

  box-shadow:
    0 15px 34px rgba(37, 211, 102, 0.28);
}

.action-primary:hover {
  background:
    linear-gradient(
      135deg,
      #2be070,
      var(--whatsapp-dark)
    );

  box-shadow:
    0 18px 42px rgba(37, 211, 102, 0.38);

  transform: translateY(-3px);
}

.action-primary:active {
  transform: translateY(0) scale(0.985);
}

/* =========================================
   BOTÓN VER MENÚ ROJO
   ========================================= */

.action-menu {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--red),
      #ff4d47
    );

  box-shadow:
    0 15px 34px rgba(239, 58, 52, 0.24);
}

.action-menu:hover {
  background:
    linear-gradient(
      135deg,
      #ff4640,
      var(--red-dark)
    );

  box-shadow:
    0 18px 42px rgba(239, 58, 52, 0.34);

  transform: translateY(-3px);
}

.action-menu:active {
  transform: translateY(0) scale(0.985);
}

/* =========================================
   CONTENIDO INTERNO DE BOTONES PRINCIPALES
   ========================================= */

.action-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 15px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.action-menu .action-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.action-icon svg {
  width: 24px;
  height: 24px;

  fill: currentColor;
}

.action-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.action-copy strong {
  color: #ffffff;
  font-size: 1.03rem;
}

.action-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.79rem;
}

.action-arrow {
  margin-left: auto;

  color: #ffffff;

  font-size: 1.16rem;
  font-weight: 800;

  transition: transform 180ms ease;
}

.action-card:hover .action-arrow {
  transform: translateX(4px);
}

/* =========================================
   INSTAGRAM Y CÓMO LLEGAR
   ========================================= */

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

.secondary-card {
  position: relative;

  min-height: 92px;
  padding: 17px 18px;
  gap: 13px;

  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.045)
    );

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Flecha para mostrar que son botones */
.secondary-card::after {
  content: "→";

  margin-left: auto;

  color: var(--cream);

  font-size: 1.15rem;
  font-weight: 800;

  transition: transform 0.2s ease;
}

.secondary-card:hover {
  transform: translateY(-3px);

  border-color: rgba(255, 255, 255, 0.3);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.075)
    );

  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.secondary-card:hover::after {
  transform: translateX(4px);
}

.secondary-card:active {
  transform: translateY(0) scale(0.98);
}

.secondary-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(239, 58, 52, 0.24);
  border-radius: 13px;

  color: #ffffff;
  background: rgba(239, 58, 52, 0.17);
}

.secondary-icon svg {
  width: 21px;
  height: 21px;

  fill: currentColor;
}

.secondary-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.secondary-copy strong {
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 700;
}

.secondary-copy small {
  overflow: hidden;

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================
   TEXTO INFERIOR
   ========================================= */

.service-note {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 27px;
  padding-top: 23px;
  gap: 9px;

  border-top: 1px solid var(--line);

  color: var(--cream);

  font-size: 0.85rem;
  font-weight: 600;
}

.service-note-icon {
  color: var(--red);
  font-size: 0.65rem;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 22px;
  gap: 10px;

  color: #8992a6;

  font-size: 0.73rem;
}

.footer-dot {
  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: currentColor;
}

/* =========================================
   PÁGINA DEL MENÚ
   ========================================= */

.menu-page {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(39, 55, 109, 0.24),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      var(--navy-900),
      var(--navy-950)
    );
}

/* =========================================
   CABECERA DEL MENÚ
   ========================================= */

.menu-header {
  position: sticky;
  top: 0;
  z-index: 30;

  border-bottom: 1px solid var(--line);

  background: rgba(8, 18, 47, 0.88);

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.menu-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: min(100% - 32px, 1040px);
  min-height: 76px;
  margin: 0 auto;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
}

.menu-logo {
  width: 48px;
  height: 48px;

  border: 1px solid var(--line);
  border-radius: 13px;

  object-fit: contain;
}

.brand-link > span {
  display: grid;
  gap: 1px;
}

.brand-link strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
}

.brand-link small {
  color: var(--muted);
  font-size: 0.7rem;
}

.menu-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-back,
.header-order {
  display: inline-flex;
  align-items: center;

  min-height: 42px;
  padding: 0 15px;
  gap: 7px;

  border-radius: 12px;

  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.header-back {
  border: 1px solid rgba(255, 255, 255, 0.15);

  background: rgba(255, 255, 255, 0.07);
}

.header-back:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

/* Botón WhatsApp del encabezado */
.header-order {
  color: #ffffff;
  background: var(--whatsapp);

  box-shadow:
    0 9px 22px rgba(37, 211, 102, 0.22);
}

.header-order:hover {
  transform: translateY(-2px);

  background: var(--whatsapp-dark);

  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.32);
}

/* =========================================
   CONTENIDO DEL MENÚ
   ========================================= */

.menu-main {
  width: min(100% - 30px, 940px);
  margin: 0 auto;
  padding: 48px 0 70px;
}

.menu-hero {
  max-width: 680px;
  margin: 0 auto 35px;

  text-align: center;
}

.section-label {
  display: inline-block;

  color: var(--red);

  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.menu-hero h1 {
  margin: 8px 0 12px;

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.menu-hero p {
  max-width: 570px;
  margin: 0 auto;

  color: var(--muted);

  line-height: 1.65;
}

/* =========================================
   IMÁGENES DEL MENÚ
   ========================================= */

.menu-gallery {
  display: grid;
  gap: 24px;
}

.menu-sheet {
  margin: 0;
  padding: 10px 10px 13px;

  border: 1px solid var(--line);
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.035);

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.26);
}

.menu-image-button {
  display: block;

  width: 100%;
  margin: 0;
  padding: 0;

  overflow: hidden;

  border: 0;
  border-radius: 17px;

  background: transparent;

  cursor: zoom-in;
}

.menu-img {
  display: block;

  width: 100%;
  height: auto;

  transition:
    transform 250ms ease,
    filter 250ms ease;
}

.menu-image-button:hover .menu-img {
  transform: scale(1.006);
  filter: brightness(1.025);
}

.menu-sheet figcaption {
  padding: 11px 5px 0;

  color: var(--muted-dark);

  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

/* =========================================
   BANNER INFERIOR DEL MENÚ
   ========================================= */

.order-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 35px;
  padding: 26px;
  gap: 24px;

  border: 1px solid rgba(239, 58, 52, 0.24);
  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(239, 58, 52, 0.11),
      rgba(255, 255, 255, 0.035)
    );
}

.order-banner h2 {
  margin: 5px 0;

  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
}

.order-banner p {
  margin: 0;

  color: var(--muted);

  font-size: 0.86rem;
}

.order-banner > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 18px;
  gap: 9px;

  border-radius: 15px;

  color: #ffffff;
  background: var(--whatsapp);

  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.22);

  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.order-banner > a:hover {
  transform: translateY(-2px);

  background: var(--whatsapp-dark);

  box-shadow:
    0 15px 34px rgba(37, 211, 102, 0.32);
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  border-radius: 18px;

  background: var(--whatsapp);

  box-shadow:
    0 15px 35px rgba(37, 211, 102, 0.3);

  text-decoration: none;

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);

  background: var(--whatsapp-dark);

  box-shadow:
    0 18px 42px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp svg {
  width: 27px;
  height: 27px;

  fill: #ffffff;
}

/* =========================================
   VISTA AMPLIADA DEL MENÚ
   ========================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: grid;
  place-items: center;

  padding: 28px;

  background: rgba(3, 6, 18, 0.94);

  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  display: block;

  max-width: min(1100px, 96vw);
  max-height: 90vh;

  border-radius: 15px;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.58);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 101;

  width: 48px;
  height: 48px;

  border: 1px solid var(--line);
  border-radius: 15px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* =========================================
   DISEÑO RESPONSIVE
   ========================================= */

@media (max-width: 650px) {
  .home-shell {
    padding: 18px 12px 28px;
  }

  .profile-card {
    padding: 28px 18px 23px;
    border-radius: 27px;
  }

  .logo-frame {
    width: 112px;
    height: 112px;

    border-radius: 25px;
  }

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

  .secondary-card {
    min-height: 78px;
  }

  .menu-header-inner {
    min-height: 68px;
  }

  .menu-logo {
    width: 42px;
    height: 42px;
  }

  .brand-link small,
  .header-back span:last-child {
    display: none;
  }

  .header-back {
    justify-content: center;

    width: 42px;
    padding: 0;
  }

  .header-order {
    padding: 0 12px;
  }

  .menu-main {
    width: min(100% - 20px, 940px);
    padding-top: 35px;
  }

  .menu-gallery {
    gap: 17px;
  }

  .menu-sheet {
    padding: 7px 7px 10px;

    border-radius: 19px;
  }

  .menu-image-button {
    border-radius: 13px;
  }

  .order-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .order-banner > a {
    width: 100%;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .lightbox {
    padding: 14px;
  }
}

/* =========================================
   ANIMACIONES
   ========================================= */

@media (prefers-reduced-motion: no-preference) {
  .profile-card {
    animation:
      card-in
      600ms
      cubic-bezier(0.2, 0.7, 0.2, 1)
      both;
  }

  .action-card,
  .secondary-grid,
  .service-note {
    animation:
      item-in
      500ms
      ease
      both;
  }

  .action-primary {
    animation-delay: 90ms;
  }

  .action-menu {
    animation-delay: 160ms;
  }

  .secondary-grid {
    animation-delay: 230ms;
  }

  .service-note {
    animation-delay: 300ms;
  }

  @keyframes card-in {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.986);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes item-in {
    from {
      opacity: 0;
      transform: translateY(9px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}