/* ============================================================
   OCEANIKA · Carta digital — estilo alineado a la web oficial
   Identidad: rojo + negro + blanco. Solo visualización.
   ============================================================ */

/* ---------------------------- HEADER ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--grad-header);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--t-mid) var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6); }

/* Fila 1 */
.topnav {
  position: relative; max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 14px 24px 10px;
}
.brand { display: flex; align-items: center; gap: 12px; z-index: 2; }
.brand-logo { height: 46px; width: auto; }
.brand-mark {
  font-size: 1.35rem; color: #fff; font-weight: 700;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--grad-red); box-shadow: var(--shadow-red);
  border: 2px solid rgba(255,255,255,0.9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-dim); margin-top: 2px; }

/* Fila 2: horario + WhatsApp (centrados) */
.subnav {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 4px 24px 12px;
}
.schedule-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  font-size: 0.88rem; color: var(--white-dim);
}
.schedule-pill svg { color: var(--white-faint); }
.sched-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sched-dot.open { background: #3ecf8e; box-shadow: 0 0 8px #3ecf8e; }
.sched-dot.closed { background: var(--red-intense); box-shadow: 0 0 8px rgba(255,31,45,0.6); }
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--grad-red); color: #fff; font-weight: 600; font-size: 0.88rem;
  box-shadow: var(--shadow-red); transition: transform var(--t-fast) var(--ease);
}
.contact-pill:hover { transform: translateY(-1px); }

/* Fila 3: categorías */
.catnav {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: stretch; gap: 6px; padding: 0 16px;
  border-top: 1px solid var(--border-subtle);
}
.cat-search-btn, .cat-more {
  flex-shrink: 0; width: 46px; display: grid; place-items: center;
  color: var(--white-dim); transition: color var(--t-fast) var(--ease);
}
.cat-search-btn:hover, .cat-more:hover { color: var(--red-intense); }
.category-track {
  display: flex; gap: 4px; overflow-x: auto; scroll-behavior: smooth; flex: 1;
  scrollbar-width: none; -ms-overflow-style: none;
}
.category-track::-webkit-scrollbar { display: none; }
.cat-tab {
  position: relative; flex-shrink: 0; padding: 16px 16px 14px;
  color: var(--white-dim); font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.cat-tab:hover { color: var(--white-warm); }
.cat-tab.is-active { color: var(--red-intense); border-bottom-color: var(--red-intense); font-weight: 600; }

/* Buscador desplegable */
.search-drawer { max-width: var(--container); margin: 0 auto; padding: 0 24px; overflow: hidden;
  max-height: 0; transition: max-height var(--t-mid) var(--ease), padding var(--t-mid) var(--ease); }
.search-drawer.open { max-height: 90px; padding: 12px 24px 16px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill); padding: 11px 18px;
}
.search-box:focus-within { border-color: var(--red-intense); }
.search-box svg { color: var(--white-faint); flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: none; color: var(--white-warm); outline: none; font-size: 0.95rem; }
.search-box input::placeholder { color: var(--white-faint); }
.search-clear { color: var(--white-dim); font-size: 1.4rem; line-height: 1; padding: 0 4px; }

@media (max-width: 760px) {
  .brand-name { font-size: 1.25rem; }
  .schedule-pill { font-size: 0.82rem; padding: 9px 15px; }
}

/* ---------------------------- HERO ---------------------------- */
.hero {
  position: relative; min-height: 46vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 22px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(215,25,32,0.32), transparent 55%),
    linear-gradient(180deg, rgba(8,2,3,0.55) 0%, rgba(5,5,5,0.86) 100%),
    url('../images/hero.jpeg') center / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 22px);
}
.hero-content { position: relative; max-width: 680px; animation: heroIn var(--t-slow) var(--ease-out); }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { display: inline-block; font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--red-intense); margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.04;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  background: linear-gradient(180deg, #fff 0%, #f2e7e7 60%, #d7b3b5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--white-dim); font-size: clamp(1rem, 2.4vw, 1.15rem); max-width: 480px; margin: 16px auto 26px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------- MENU ---------------------------- */
.menu-main { max-width: var(--container); margin: 0 auto; padding: 20px 20px 90px; }
.empty-menu, .no-results { text-align: center; padding: 90px 20px; color: var(--white-dim); }

.menu-section { padding-top: 40px; scroll-margin-top: 190px; }

/* Banner rojo por categoría (estilo web oficial) */
.section-banner {
  background: var(--grad-banner); border-radius: var(--radius-md);
  padding: 22px 26px; margin-bottom: 22px; text-align: center;
  box-shadow: var(--shadow-red);
  border: 1px solid rgba(255,255,255,0.08);
}
.section-title {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.06em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.section-desc { color: var(--white-dim); font-size: 0.95rem; margin: -8px 0 20px; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Grid de tarjetas horizontales */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex; flex-direction: row; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  cursor: pointer; min-height: 150px;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.12); }
.product-card:focus-visible { outline: 2px solid var(--red-intense); outline-offset: 2px; }
.product-card.is-soldout { opacity: 0.62; }

.product-media { position: relative; flex-shrink: 0; width: 42%; max-width: 190px; overflow: hidden; background: var(--gray-dark); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.product-card:hover .product-img { transform: scale(1.06); }

.badge-discount {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--grad-red); color: #fff; font-weight: 700; font-size: 0.82rem;
  padding: 5px 12px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.badge-featured {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: rgba(5,5,5,0.7); color: #ffd76a; font-size: 0.8rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}
.badge-soldout {
  position: absolute; inset: 0; margin: auto; z-index: 3; width: fit-content; height: fit-content; align-self: center;
  background: rgba(5,5,5,0.82); color: #fff; font-weight: 600; font-size: 0.78rem;
  padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
}

.product-body { flex: 1; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.product-desc {
  color: var(--white-dim); font-size: 0.85rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price-block { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price-now { font-size: 1.18rem; font-weight: 700; color: var(--white-warm); }
.price-old { font-size: 0.85rem; color: var(--white-faint); text-decoration: line-through; }

.view-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-red); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-red);
  transition: transform var(--t-fast) var(--ease);
}
.view-btn:hover { transform: scale(1.08); }
.view-btn:active { transform: scale(0.92); }

@media (max-width: 420px) {
  .product-media { width: 38%; }
  .product-body { padding: 14px; }
  .product-name { font-size: 1rem; }
}

/* ---------------------------- FOOTER ---------------------------- */
.site-footer { border-top: 1px solid var(--border-subtle); background: linear-gradient(180deg, #140607, var(--black-deep)); padding: 56px 22px; scroll-margin-top: 190px; }
.footer-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.footer-mark { margin: 0 auto 16px; }
.footer-brand { font-family: var(--font-display); font-size: 1.7rem; color: var(--white-warm); }
.footer-tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-dim); margin-top: 4px; }
.footer-line { color: var(--white-dim); font-size: 0.92rem; margin: 8px 0; }
.footer-branches { margin: 22px 0 6px; }
.footer-branches-title { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold, #C7A96B); margin-bottom: 14px; }
.footer-branches .branch { margin: 14px 0; }
.footer-branches .branch-name { color: var(--white-warm); font-size: 0.95rem; font-weight: 600; }
.footer-branches .branch-hours { color: var(--white-dim); font-size: 0.88rem; margin-top: 2px; }
.footer-social { display: flex; gap: 20px; justify-content: center; margin: 22px 0 16px; }
.footer-social a { color: var(--red-intense); font-size: 0.9rem; font-weight: 600; }
.footer-social a:hover { color: #fff; }
.footer-legal { color: var(--white-faint); font-size: 0.78rem; margin-top: 12px; }
.footer-admin { margin-top: 16px; }
.footer-admin a { color: var(--white-faint); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-admin a:hover { color: var(--red-intense); }
