/* ==========================================================================
   KOROKOCO — ESTILOS
   Este archivo solo consume variables de tokens.css.
   Para cambiar la marca NO edites esto: edita css/tokens.css.
   ========================================================================== */

/* ----- Reset mínimo ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

section { padding-block: var(--space-section); }

.section-title {
  font-size: var(--text-title);
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

/* ----- Botones ----- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--brand); color: var(--on-dark); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  border: 2px solid currentColor;
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-small);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem;
  }
  .nav-links.open { display: flex; }
}

/* ----- Hero ----- */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding-block: calc(var(--space-section) * 1.2);
}

.hero h1 {
  font-size: var(--text-hero);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: var(--text-sub);
  color: color-mix(in srgb, var(--on-dark) 75%, transparent);
  max-width: 45ch;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Menú ----- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover { transform: translateY(-4px); }

.menu-card-img {
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: var(--text-small);
}

.menu-card-body { padding: 1.25rem; }
.menu-card-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.menu-card-body p { color: var(--ink-soft); font-size: var(--text-small); margin-bottom: 0.75rem; }
.menu-card-body .price { font-family: var(--font-display); font-weight: 700; color: var(--brand); }

/* ----- Cómo pedir ----- */
.order { background: var(--paper-alt); }

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition);
}
.order-card:hover { transform: translateY(-4px); border-color: var(--brand); }

.order-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.order-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.order-card p { color: var(--ink-soft); font-size: var(--text-small); }

/* ----- Info (zona + horarios) ----- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.info-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--brand);
}

.info-block ul { list-style: none; }
.info-block li {
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-small);
}
.info-block li span:last-child { color: var(--ink-soft); }

/* ----- CTA final ----- */
.cta {
  background: var(--brand);
  color: var(--on-dark);
  text-align: center;
}
.cta h2 { font-size: var(--text-title); margin-bottom: 1rem; }
.cta p { margin-bottom: 2rem; opacity: 0.9; }
.cta .btn-primary { background: var(--ink); }
.cta .btn-primary:hover { background: #000; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--on-dark) 70%, transparent);
  padding-block: 2.5rem;
  font-size: var(--text-small);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner img { height: 32px; opacity: 0.85; }
.site-footer a { color: var(--on-dark); }

/* ----- Accesibilidad ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
