﻿:root {
      --paper: #fffaf4;
      --surface: #ffffff;
      --ink: #211915;
      --muted: #6c625b;
      --line: #e6ded6;
      --tomato: #a3281f;
      --tomato-dark: #701912;
      --basil: #2e6c4c;
      --cheese: #f2c14e;
      --shadow: 0 18px 48px rgba(33, 25, 21, 0.14);
      --radius: 8px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--paper);
      letter-spacing: 0;
    }

    button,
    input {
      font: inherit;
    }

    a {
      color: inherit;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      min-height: 66px;
      padding: 10px clamp(16px, 4vw, 48px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.28);
      background: rgba(33, 25, 21, 0.9);
      color: #fffaf4;
      backdrop-filter: blur(18px);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      text-decoration: none;
    }

    .brand img {
      width: 42px;
      height: 42px;
      border: 2px solid rgba(255, 250, 244, 0.75);
      border-radius: 50%;
      object-fit: cover;
      background: #fffaf4;
    }

    .brand span {
      overflow: hidden;
      font-weight: 800;
      line-height: 1.05;
      text-transform: uppercase;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: min(52vw, 460px);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav a,
    .nav button,
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 14px;
      border: 1px solid rgba(255, 250, 244, 0.24);
      border-radius: var(--radius);
      background: rgba(255, 250, 244, 0.08);
      color: inherit;
      font-weight: 750;
      text-decoration: none;
      cursor: pointer;
      transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
    }

    .nav a:hover,
    .nav button:hover,
    .button:hover {
      transform: translateY(-1px);
      background: rgba(255, 250, 244, 0.16);
      border-color: rgba(255, 250, 244, 0.48);
    }

    .icon {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
    }

    .cart-button {
      position: relative;
    }

    .cart-count {
      display: inline-grid;
      place-items: center;
      min-width: 22px;
      height: 22px;
      padding: 0 6px;
      border-radius: 999px;
      background: var(--cheese);
      color: #27160f;
      font-size: 12px;
      font-weight: 900;
      line-height: 1;
    }

    .hero {
      position: relative;
      display: grid;
      place-items: center;
      min-height: clamp(430px, 68svh, 650px);
      padding: 82px 18px 44px;
      overflow: hidden;
      isolation: isolate;
      background: #261914;
      color: #fffaf4;
      text-align: center;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background-image: url("pizzeria-entre-quesos-y-amigos.jpg");
      background-repeat: no-repeat;
      background-position: center;
      background-size: min(760px, 116vw);
      opacity: 0.82;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: rgba(26, 18, 14, 0.52);
    }

    .hero-content {
      width: min(900px, 100%);
      display: grid;
      justify-items: center;
      gap: 18px;
    }

    .eyebrow {
      margin: 0;
      color: var(--cheese);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    h1 {
      max-width: 820px;
      margin: 0;
      font-size: clamp(38px, 8vw, 86px);
      line-height: 0.96;
      letter-spacing: 0;
      text-wrap: balance;
    }

    .hero p {
      max-width: 690px;
      margin: 0;
      color: rgba(255, 250, 244, 0.92);
      font-size: clamp(17px, 2.3vw, 22px);
      line-height: 1.45;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-top: 6px;
    }

    .button.primary {
      border-color: var(--cheese);
      background: var(--cheese);
      color: #27160f;
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    }

    .button.secondary {
      background: rgba(255, 250, 244, 0.14);
      color: #fffaf4;
    }

    .status-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--surface);
    }

    .status-item {
      display: grid;
      gap: 4px;
      min-height: 82px;
      padding: 16px clamp(14px, 3vw, 34px);
      border-right: 1px solid var(--line);
    }

    .status-item:last-child {
      border-right: 0;
    }

    .status-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .status-value {
      font-size: clamp(17px, 2vw, 22px);
      font-weight: 900;
      line-height: 1.2;
    }

    .status-value.open {
      color: var(--basil);
    }

    .status-value.closed {
      color: var(--tomato);
    }

    main {
      display: grid;
      gap: 0;
    }

    .section {
      padding: clamp(44px, 8vw, 86px) clamp(16px, 4vw, 48px);
    }

    .section.white {
      background: var(--surface);
    }

    .section-inner {
      width: min(1160px, 100%);
      margin: 0 auto;
    }

    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 22px;
      margin-bottom: 24px;
    }

    h2 {
      margin: 0;
      font-size: clamp(28px, 4vw, 48px);
      line-height: 1.02;
      letter-spacing: 0;
    }

    .section-heading p {
      max-width: 420px;
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.55;
    }

    .menu-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
      gap: 24px;
      align-items: start;
    }

    .menu-tools {
      display: grid;
      gap: 14px;
      margin-bottom: 18px;
    }

    .filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter-button {
      min-height: 40px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--ink);
      font-weight: 850;
      cursor: pointer;
    }

    .filter-button[aria-pressed="true"] {
      border-color: var(--tomato);
      background: var(--tomato);
      color: #fffaf4;
    }

    .search {
      position: relative;
    }

    .search input {
      width: 100%;
      min-height: 46px;
      padding: 0 14px 0 42px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--ink);
      outline: none;
    }

    .search svg {
      position: absolute;
      top: 50%;
      left: 14px;
      transform: translateY(-50%);
      color: var(--muted);
      pointer-events: none;
    }

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

    .menu-card {
      display: grid;
      gap: 14px;
      min-height: 156px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 8px 22px rgba(33, 25, 21, 0.06);
    }

    .menu-card h3 {
      margin: 0;
      font-size: 19px;
      line-height: 1.15;
      letter-spacing: 0;
    }

    .menu-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.45;
    }

    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: auto;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: #eaf3ed;
      color: var(--basil);
      font-size: 13px;
      font-weight: 850;
      white-space: nowrap;
    }

    .add-button,
    .icon-button {
      display: inline-grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border: 1px solid var(--tomato);
      border-radius: var(--radius);
      background: var(--tomato);
      color: #fffaf4;
      cursor: pointer;
      transition: transform 160ms ease, background 160ms ease;
    }

    .add-button:hover,
    .icon-button:hover {
      transform: translateY(-1px);
      background: var(--tomato-dark);
    }

    .order-panel {
      position: sticky;
      top: 88px;
      display: grid;
      gap: 16px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fffefb;
      box-shadow: var(--shadow);
    }

    .order-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .order-head h3 {
      margin: 0;
      font-size: 21px;
      letter-spacing: 0;
    }

    .clear-button {
      min-height: 34px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .order-list {
      display: grid;
      gap: 8px;
      min-height: 80px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .order-empty {
      display: grid;
      place-items: center;
      min-height: 78px;
      border: 1px dashed #d7cac0;
      border-radius: var(--radius);
      color: var(--muted);
      text-align: center;
      line-height: 1.35;
    }

    .order-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .order-row strong {
      display: block;
      min-width: 0;
      line-height: 1.25;
    }

    .order-row span {
      color: var(--muted);
      font-size: 13px;
    }

    .qty-controls {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .qty-controls button {
      display: grid;
      place-items: center;
      width: 32px;
      height: 32px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--ink);
      font-weight: 900;
      cursor: pointer;
    }

    .order-actions {
      display: grid;
      gap: 8px;
    }

    .wide-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      min-height: 46px;
      padding: 0 14px;
      border: 1px solid var(--tomato);
      border-radius: var(--radius);
      background: var(--tomato);
      color: #fffaf4;
      font-weight: 900;
      text-decoration: none;
      cursor: pointer;
    }

    .wide-button.alt {
      border-color: var(--line);
      background: var(--surface);
      color: var(--ink);
    }

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

    .hours-list {
      display: grid;
      gap: 0;
      margin: 0;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
      list-style: none;
    }

    .hours-list li {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
    }

    .hours-list li:last-child {
      border-bottom: 0;
    }

    .hours-list li.today {
      background: #eaf3ed;
      color: #173927;
      font-weight: 900;
    }

    .feature-panel {
      display: grid;
      align-content: start;
      gap: 18px;
      min-height: 100%;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .feature-panel h3 {
      margin: 0;
      font-size: 24px;
      letter-spacing: 0;
    }

    .feature-panel p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .contact-card {
      display: grid;
      gap: 18px;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      min-height: 220px;
    }

    .contact-card h3 {
      margin: 0;
      font-size: 24px;
      letter-spacing: 0;
    }

    .contact-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
    }

    .contact-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: auto;
    }

    .contact-actions .button {
      border-color: var(--line);
      background: var(--surface);
      color: var(--ink);
    }

    .contact-actions .button.primary-contact {
      border-color: var(--basil);
      background: var(--basil);
      color: #fffaf4;
    }

    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 40;
      transform: translateY(18px);
      opacity: 0;
      max-width: min(360px, calc(100vw - 36px));
      padding: 14px 16px;
      border-radius: var(--radius);
      background: #211915;
      color: #fffaf4;
      box-shadow: var(--shadow);
      pointer-events: none;
      transition: transform 180ms ease, opacity 180ms ease;
    }

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

    footer {
      padding: 28px clamp(16px, 4vw, 48px);
      background: #211915;
      color: #fffaf4;
    }

    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      width: min(1160px, 100%);
      margin: 0 auto;
    }

    .footer-inner p {
      margin: 0;
      color: rgba(255, 250, 244, 0.72);
    }

    @media (max-width: 900px) {
      .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
      }

      .nav {
        overflow-x: auto;
        padding-bottom: 2px;
      }

      .nav a,
      .nav button {
        flex: 0 0 auto;
      }

      .status-strip,
      .menu-layout,
      .hours-grid,
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .status-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .status-item:last-child {
        border-bottom: 0;
      }

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

      .order-panel {
        position: static;
      }
    }

    @media (max-width: 640px) {
      .brand span {
        max-width: 100%;
        font-size: 14px;
      }

      .hero {
        padding-top: 132px;
        text-align: left;
        place-items: end start;
      }

      .hero-content {
        justify-items: start;
      }

      .hero-actions {
        justify-content: start;
      }

      .hero-actions .button {
        width: 100%;
      }

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

      .card-footer {
        align-items: start;
      }

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