/* ================================================================
   TÍPICOS LA OLANCHANA — Menú Digital
   ================================================================
   Producción — Hostinger Cloud Hosting
   Sin frameworks. CSS puro, optimizado, profesional.
   ================================================================ */

/* ————————————————————————————————
   CUSTOM PROPERTIES
   ———————————————————————————————— */
   :root {
    /* Paleta — Tierra hondureña */
    --color-bg:          #f3ede4;
    --color-bg-warm:     #ece4d8;
    --color-surface:     #fdfbf8;
    --color-surface-alt: #f8f4ee;
  
    /* Barro y madera */
    --color-ink:         #1e1209;
    --color-ink-soft:    #3b2714;
    --color-ink-muted:   #6d5942;
    --color-ink-faint:   #9e8e7a;
  
    /* Terracota y ámbar — inspirado en cerámica Lenca */
    --color-gold:        #b5802e;
    --color-gold-dark:   #8c6322;
    --color-gold-light:  #c9a054;
    --color-gold-pale:   #ddc893;
  
    /* Acento terracota */
    --color-terra:       #a05a30;
    --color-terra-soft:  #c47a4a;
  
    /* Utilidad */
    --color-border:      rgba(140, 110, 70, 0.10);
    --color-border-strong: rgba(140, 110, 70, 0.18);
    --color-overlay:     rgba(28, 17, 8, 0.85);
  
    /* Sombras */
    --shadow-xs:  0 1px 2px rgba(28, 17, 8, 0.04);
    --shadow-sm:  0 2px 6px rgba(28, 17, 8, 0.05);
    --shadow-md:  0 4px 16px rgba(28, 17, 8, 0.07);
    --shadow-lg:  0 12px 40px rgba(28, 17, 8, 0.10);
  
    /* Tipografía */
    --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --font-body:    'Jost', 'Helvetica Neue', 'Arial', sans-serif;
  
    /* Espaciado base */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
  
    /* Radios */
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
  
    /* Transiciones */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.35s;
  }
  
  
  /* ————————————————————————————————
     RESET
     ———————————————————————————————— */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  
  body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-bg);
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23e8dfd2' opacity='0.4'/%3E%3Crect x='0' y='0' width='1' height='1' fill='%23d4c9b8' opacity='0.15'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  
  /* ————————————————————————————————
     LAYOUT
     ———————————————————————————————— */
  .page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  
  /* ================================================================
     HEADER
     ================================================================ */
  .header {
    background: var(--color-ink);
    padding: 1.4rem 1.5rem 1.3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  /* Subtle radial glow — terracota */
  .header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(
      ellipse,
      rgba(160, 90, 48, 0.10) 0%,
      rgba(176, 141, 62, 0.06) 40%,
      transparent 70%
    );
    pointer-events: none;
  }
  
  /* Bottom gold accent line */
  .header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--color-gold-dark) 50%, transparent 95%);
    opacity: 0.25;
  }
  
  .header__logo {
    width: 80px;
    height: auto;
    margin: 0 auto 0.6rem;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
    transition: transform var(--duration) var(--ease-out);
  }
  
  .header__logo:hover {
    transform: scale(1.03);
  }
  
  .header__rule {
    width: 36px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto 0.5rem;
    opacity: 0.45;
  }
  
  .header__label {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 0.15rem;
  }
  
  .header__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5.5vw, 3.4rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.05;
    letter-spacing: 0.5px;
  }
  
  .header__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0.5rem auto 0;
    width: 120px;
  }
  
  .header__ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-dark), transparent);
  }
  
  .header__ornament-diamond {
    width: 5px;
    height: 5px;
    border: 1px solid var(--color-gold-dark);
    transform: rotate(45deg);
    flex-shrink: 0;
  }
  
  .header__tagline {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-top: 0.5rem;
    opacity: 0.5;
  }
  
  
  /* ================================================================
     NAVIGATION
     ================================================================ */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--duration) var(--ease-out);
  }
  
  /* Shadow appears on scroll via JS */
  .nav--scrolled {
    box-shadow: var(--shadow-md);
  }
  
  .nav__track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .nav__track::-webkit-scrollbar {
    display: none;
  }
  
  .nav__btn {
    flex: 1;
    min-width: max-content;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-ink-faint);
    position: relative;
    white-space: nowrap;
    transition:
      color var(--duration) var(--ease-out),
      background var(--duration) var(--ease-out);
  }
  
  .nav__btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.4s var(--ease-out);
  }
  
  .nav__btn:hover {
    color: var(--color-ink-soft);
    background: var(--color-bg-warm);
  }
  
  .nav__btn.is-active {
    color: var(--color-ink);
    font-weight: 600;
  }
  
  .nav__btn.is-active::after {
    width: 22px;
    background: var(--color-terra);
  }
  
  
  /* ================================================================
     MAIN CONTENT
     ================================================================ */
  .main {
    flex: 1;
    padding: 0 1rem 2rem;
  }
  
  /* — Category Header — */
  .category-header {
    text-align: center;
    padding: 1.3rem 0 1rem;
  }
  
  .category-header__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-ink);
    letter-spacing: 1.5px;
  }
  
  .category-header__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.3rem;
  }
  
  .category-header__line {
    width: 22px;
    height: 1px;
    background: var(--color-gold);
  }
  
  .category-header__dot {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: var(--color-terra);
  }
  
  /* — Menu Card Grid — */
  .menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  /* — Single Menu Item — */
  .menu-item {
    background: var(--color-surface);
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: background var(--duration) var(--ease-out);
  
    /* Staggered entrance animation */
    opacity: 0;
    transform: translateY(5px);
    animation: itemReveal 0.3s var(--ease-out) forwards;
  }
  
  .menu-item:nth-child(1)  { animation-delay: 0.02s; }
  .menu-item:nth-child(2)  { animation-delay: 0.05s; }
  .menu-item:nth-child(3)  { animation-delay: 0.08s; }
  .menu-item:nth-child(4)  { animation-delay: 0.11s; }
  .menu-item:nth-child(5)  { animation-delay: 0.14s; }
  .menu-item:nth-child(6)  { animation-delay: 0.17s; }
  .menu-item:nth-child(7)  { animation-delay: 0.20s; }
  .menu-item:nth-child(8)  { animation-delay: 0.23s; }
  
  @keyframes itemReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .menu-item:hover {
    background: var(--color-surface-alt);
  }
  
  /* Item: info block */
  .menu-item__info {
    flex: 1;
    min-width: 0;
  }
  
  .menu-item__name {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.25;
  }
  
  .menu-item__desc {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--color-ink-muted);
    margin-top: 1px;
    line-height: 1.35;
  }
  
  /* Item: dotted leader */
  .menu-item__dots {
    flex: 1;
    min-width: 12px;
    border-bottom: 1px dotted var(--color-ink-faint);
    margin-bottom: 4px;
    opacity: 0.22;
  }
  
  /* Item: price */
  .menu-item__price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gold);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  
  
  
  /* ================================================================
     FOOTER
     ================================================================ */
  .footer {
    background: var(--color-ink);
    padding: 1.8rem 1.5rem 2rem;
    text-align: center;
    position: relative;
  }
  
  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--color-gold-dark) 50%, transparent 95%);
    opacity: 0.2;
  }
  
  .footer__logo {
    width: 50px;
    height: auto;
    margin: 0 auto 0.5rem;
    opacity: 0.65;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  }
  
  .footer__brand {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-gold-light);
    margin-bottom: 0.8rem;
  }
  
  .footer__rule {
    width: 28px;
    height: 1px;
    background: var(--color-gold-dark);
    margin: 0 auto 0.8rem;
    opacity: 0.3;
  }
  
  /* WhatsApp Button */
  .footer__wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 2px;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 2px;
    transition:
      border-color var(--duration) var(--ease-out),
      color var(--duration) var(--ease-out),
      transform var(--duration) var(--ease-out);
  }
  
  .footer__wa:hover {
    border-color: var(--color-gold-dark);
    color: var(--color-gold-light);
    transform: translateY(-1px);
  }
  
  .footer__wa svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
  }
  
  .footer__address {
    font-size: 0.65rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.32);
    margin-top: 1rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer__closing {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--color-gold-dark);
    margin-top: 1rem;
    opacity: 0.35;
  }
  
  
  /* ================================================================
     RESPONSIVE — TABLET (≥600px)
     ================================================================ */
  @media (min-width: 600px) {
    .header {
      padding: 2rem 2rem 1.8rem;
    }
  
    .header__logo {
      width: 110px;
      margin-bottom: 0.8rem;
    }
  
    .main {
      padding: 0 1.5rem 3rem;
    }
  
    .category-header {
      padding: 1.6rem 0 1.2rem;
    }
  
    .category-header__title {
      font-size: 1.8rem;
    }
  
    .menu-grid {
      grid-template-columns: 1fr 1fr;
      border-radius: var(--radius-lg);
    }
  
    .menu-item {
      padding: 1rem 1.3rem;
    }
  
    .menu-item__name {
      font-size: 1rem;
    }
  
    .nav__btn {
      padding: 0.8rem 1.4rem;
      font-size: 0.62rem;
      letter-spacing: 2.5px;
    }
  
    .footer__logo {
      width: 65px;
    }
  }
  
  
  /* ================================================================
     RESPONSIVE — DESKTOP (≥768px)
     ================================================================ */
  @media (min-width: 768px) {
    .header__logo {
      width: 130px;
    }
  
    .nav__track {
      justify-content: center;
    }
  
    .nav__btn {
      padding: 0.85rem 1.8rem;
      font-size: 0.65rem;
    }
  
    .menu-item {
      padding: 1.1rem 1.5rem;
    }
  
    .menu-item__name {
      font-size: 1.05rem;
    }
  
    .menu-item__price {
      font-size: 1.05rem;
    }
  }
  
  
  /* ================================================================
     RESPONSIVE — LARGE DESKTOP (≥1024px)
     ================================================================ */
  @media (min-width: 1024px) {
    .header {
      padding: 2.5rem 2rem 2.2rem;
    }
  
    .header__logo {
      width: 150px;
    }
  
    .category-header__title {
      font-size: 2rem;
    }
  
    .menu-item {
      padding: 1.15rem 1.8rem;
    }
  
    .menu-item__name {
      font-size: 1.08rem;
    }
  
    .footer {
      padding: 2rem 2rem 2.5rem;
    }
  }
  
  
  /* ================================================================
     UTILITY: Accesibilidad
     ================================================================ */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Focus visible para navegación por teclado */
  .nav__btn:focus-visible,
  .footer__wa:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
  }
  
  /* Screen reader only */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }