/* =====================================================================
   SUKI SUSHI RAMEN — Carta digital
   style.css
   Paleta marina nocturna + acento rojo/terracota
   ===================================================================== */

:root {
  --c-abyss: #040d1c;
  --c-deep: #0a2342;
  --c-tide: #114a7e;
  --c-card: #16283f;
  --paper: #fbf9f5;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.78);
  --text-dark: #171311;
  --text-secondary: #6b625b;
  --accent: #c84b31;
  --accent-soft: #e9c7a7;
  --border-subtle: #e6ded4;
  --cta-gold: #e9aa5e;
  --hero-fade-h: clamp(80px, 16vw, 170px);

  --sidebar-w: 250px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Anton", "Poppins", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
}

/* ----------------------------- Reset ------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ========================= ANIMACIONES HERO ========================= */
@keyframes heroFadeScale {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ctaPulse {
  0%,
  100% {
    box-shadow:
      0 10px 28px rgba(233, 170, 94, 0.45),
      0 0 0 0 rgba(233, 170, 94, 0.4);
  }
  55% {
    box-shadow:
      0 10px 28px rgba(233, 170, 94, 0.45),
      0 0 0 12px rgba(233, 170, 94, 0);
  }
}
@keyframes accentLineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes socialPop {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-7px) scale(1.15);
  }
  65% {
    transform: translateY(-3px) scale(1.07);
  }
  100% {
    transform: translateY(-4px) scale(1.1);
  }
}

/* ============================ CABECERA ============================== */
.hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 3.5rem) 1.2rem calc(var(--hero-fade-h) + 1.6rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/fondo_web.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
@media (max-width: 1024px) {
  .hero__bg {
    background-image: url("../assets/img/fondo_tablet.png");
  }
  .hero {
    padding-bottom: clamp(2rem, 6vw, 3.5rem);
  }
  .hero::after {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero__bg {
    background-image: url("../assets/img/fondo_movil.png");
  }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 8, 18, 0.6) 0%,
    rgba(2, 8, 18, 0.62) 45%,
    rgba(2, 8, 18, 0.88) 100%
  );
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: var(--hero-fade-h);
  background: linear-gradient(
    to bottom,
    rgba(251, 249, 245, 0) 0%,
    var(--paper) 100%
  );
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--ink);
}
.hero__logo {
  width: clamp(90px, 14vw, 130px);
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  animation: heroFadeScale 1s var(--ease) both;
}
.hero__jp {
  font-family: var(--font-jp);
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: var(--accent-soft);
  margin-bottom: 0.3rem;
  animation: heroSlideUp 0.65s var(--ease) 0.2s both;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(2, 8, 18, 0.55);
  animation: heroSlideUp 0.65s var(--ease) 0.35s both;
}
.hero__subtitle {
  max-width: 42ch;
  margin: 0.8rem auto 1.6rem;
  color: var(--ink-dim);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  animation: heroSlideUp 0.65s var(--ease) 0.5s both;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.1rem;
  border-radius: 999px;
  background: var(--cta-gold);
  color: #171311;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 28px rgba(233, 170, 94, 0.45);
  margin-bottom: 1px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    filter 0.3s;
  animation:
    heroSlideUp 0.65s var(--ease) 0.65s both,
    ctaPulse 2.8s ease-in-out 1.6s infinite;
}
.hero__cta:hover {
  background: var(--cta-gold);
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 16px 36px rgba(233, 170, 94, 0.55);
  animation: none;
}

/* --------------------- Hero info strip — pills --------------------- */
.hero__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.hero__info-sep {
  display: none;
}
.hero__info-item {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.6rem 1.15rem;
  background: rgba(4, 14, 28, 0.6);
  border: 1px solid rgba(233, 170, 94, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 500;
  transition:
    border-color 0.3s,
    background 0.3s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.hero__info-item:hover {
  border-color: rgba(233, 170, 94, 0.75);
  background: rgba(4, 14, 28, 0.78);
  transform: translateY(-3px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    0 0 14px rgba(233, 170, 94, 0.18);
}
.hero__info-item svg {
  width: 15px;
  height: 15px;
  color: var(--cta-gold);
  flex-shrink: 0;
}
.hero__info-item a {
  color: inherit;
  font-weight: 600;
  transition: color 0.2s;
}
.hero__info-item a:hover {
  color: var(--cta-gold);
}
.hero__info > div:nth-of-type(1) {
  animation: heroSlideUp 0.6s var(--ease) 0.85s both;
}
.hero__info > div:nth-of-type(2) {
  animation: heroSlideUp 0.6s var(--ease) 1s both;
}
.hero__info > div:nth-of-type(3) {
  animation: heroSlideUp 0.6s var(--ease) 1.15s both;
}

@media (min-width: 1025px) {
  .hero {
    padding-bottom: calc(var(--hero-fade-h) + 8rem);
  }
}
@media (max-width: 580px) {
  .hero__info {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero__info-item {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ============================= LAYOUT ================================ */
.layout {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* --------------------------- Menú lateral ---------------------------- */
.sidebar {
  flex: 0 0 var(--sidebar-w);
  position: sticky;
  top: 1.4rem;
  margin-top: 1.8rem;
  align-self: flex-start;
  max-height: calc(100vh - 2.8rem);
  overflow-y: auto;
  background: var(--c-deep);
  border-radius: 20px;
  padding: 0.9rem 0;
  box-shadow: 0 20px 44px rgba(4, 13, 28, 0.2);
}
.sidebar__list {
  display: flex;
  flex-direction: column;
}
.sidebar__list a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-left: 3px solid transparent;
  transition:
    color 0.25s,
    background 0.25s,
    border-color 0.25s;
}
.sidebar__list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.sidebar__list a.is-active {
  color: #fff;
  background: rgba(200, 75, 49, 0.2);
  border-left-color: var(--accent);
}

/* ------------------------- Zona de contenido -------------------------- */
.content {
  flex: 1;
  min-width: 0;
  padding: 1.8rem 0 4rem;
}
.menu-section {
  scroll-margin-top: 1.4rem;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.menu-section__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--c-deep);
  padding-bottom: 0.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--border-subtle);
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.menu-section.in .menu-section__title {
  opacity: 1;
  transform: none;
}
.menu-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 54px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease) 0.3s;
}
.menu-section.in .menu-section__title::after {
  transform: scaleX(1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* ----------------------------- Cards --------------------------------- */
.card-grid .dish-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s var(--ease) calc(var(--card-i, 0) * 45ms),
    transform 0.55s var(--ease) calc(var(--card-i, 0) * 45ms),
    box-shadow 0.35s var(--ease),
    outline 0.35s var(--ease);
}
.card-grid.in .dish-card {
  opacity: 1;
  transform: none;
}
.dish-card {
  background: var(--c-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(10, 25, 46, 0.18);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(10, 25, 46, 0.3);
}
.dish-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.dish-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, var(--c-card) 100%);
  pointer-events: none;
  z-index: 0;
}
.dish-card__allergens {
  position: absolute;
  bottom: 3px;
  left: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-end;
}
.dish-card__allergen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.dish-card__allergen-icon {
  display: block;
  width: 50px !important;
  height: 30px;
  object-fit: contain;
}
.dish-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.dish-card:hover img {
  transform: scale(1.06);
}
.dish-card__info {
  padding: 0.7rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.dish-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.3;
}
.dish-card__price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cta-gold);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* --------------------------- Volver arriba ---------------------------- */
.scroll-top {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(200, 75, 49, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  filter: brightness(1.08);
}

/* ------------------------------- Footer -------------------------------- */
.site-footer {
  text-align: center;
  padding: 1.8rem 1rem;
  background: var(--c-abyss);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.65);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.footer__social a:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(200, 75, 49, 0.45);
  animation: socialPop 0.45s var(--ease) forwards;
}
.footer__social svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 880px) {
  .layout {
    flex-direction: column;
    padding: 0;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    flex: none;
    margin: 0;
    border-radius: 0;
    max-height: none;
    overflow: visible;
    padding: 0.3rem 0;
  }
  .sidebar__list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar__list::-webkit-scrollbar {
    display: none;
  }
  .sidebar__list a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.85rem 1rem;
  }
  .sidebar__list a.is-active {
    border-left: none;
    border-bottom-color: var(--accent);
  }
  .menu-section {
    scroll-margin-top: 3.6rem;
  }
  .content {
    padding: 1.4rem clamp(1rem, 4vw, 1.6rem) 3rem;
  }
}

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

/* -------------------------- Movimiento reducido -------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .menu-section__title,
  .card-grid .dish-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .menu-section__title::after {
    transform: scaleX(1) !important;
  }
}

/* ===================================================================
   COOKIE CONSENT — CookieConsent by Orest Vida
   Adaptado a la paleta marina nocturna + acento terracota/oro
   =================================================================== */
:root {
  --cc-font-family: var(--font-body);
  --cc-z-index: 999999;

  --cc-bg: var(--c-deep);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--ink-dim);

  --cc-modal-border-radius: 20px;
  --cc-btn-border-radius: 999px;
  --cc-overlay-bg: rgba(4, 13, 28, 0.72);

  --cc-btn-primary-bg: var(--cta-gold);
  --cc-btn-primary-color: var(--text-dark);
  --cc-btn-primary-border-color: var(--cta-gold);
  --cc-btn-primary-hover-bg: #f0bb7a;
  --cc-btn-primary-hover-color: var(--text-dark);
  --cc-btn-primary-hover-border-color: #f0bb7a;

  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-border-color: rgba(255, 255, 255, 0.35);
  --cc-btn-secondary-hover-bg: rgba(255, 255, 255, 0.12);
  --cc-btn-secondary-hover-color: var(--ink);
  --cc-btn-secondary-hover-border-color: rgba(255, 255, 255, 0.55);

  --cc-separator-border-color: rgba(255, 255, 255, 0.14);
  --cc-cookie-category-block-bg: rgba(255, 255, 255, 0.05);
  --cc-cookie-category-block-border: rgba(255, 255, 255, 0.12);
  --cc-cookie-category-block-hover-bg: rgba(255, 255, 255, 0.08);
  --cc-cookie-category-block-hover-border: rgba(255, 255, 255, 0.16);
  --cc-cookie-category-expanded-block-bg: transparent;
  --cc-cookie-category-expanded-block-hover-bg: rgba(255, 255, 255, 0.06);

  --cc-toggle-on-bg: var(--accent);
  --cc-toggle-off-bg: rgba(255, 255, 255, 0.22);
  --cc-toggle-on-knob-bg: #fff;
  --cc-toggle-off-knob-bg: #fff;
  --cc-toggle-readonly-bg: rgba(255, 255, 255, 0.14);
  --cc-toggle-readonly-knob-bg: rgba(255, 255, 255, 0.7);

  --cc-footer-bg: var(--c-abyss);
  --cc-footer-color: var(--ink-dim);
  --cc-footer-border-color: rgba(255, 255, 255, 0.1);

  --cc-link-color: var(--accent-soft);
  --cc-link-color-hover: var(--cta-gold);

  --cc-webkit-scrollbar-bg: rgba(255, 255, 255, 0.08);
  --cc-webkit-scrollbar-hover-bg: rgba(255, 255, 255, 0.18);
}

#cm,
#pm {
  border: 1px solid rgba(233, 170, 94, 0.22);
  box-shadow: 0 20px 44px rgba(4, 13, 28, 0.35);
}

#cm .cm__title,
#pm .pm__title {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

#cm .cm__btn,
#pm .pm__btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
}
