/* ════════════════════════════════════════════════════
   styles.css — ESTILOS GLOBALES
   kopi coffee. — menú digital
════════════════════════════════════════════════════ */

/* ── Fuentes ── */
@font-face {
  font-family: 'Behmer';
  src: url('../fonts/Behmer.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ── */
:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --gray:  #1a1a1a;
  --mid:   #888;
  --pink:  #ff3ea5;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--black);
  color: var(--white);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
}

/* ════════════════════════════════
   FONDO — onda de vapor fija
════════════════════════════════ */
.vapor-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
header {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  border-bottom: 1px solid #222;
  overflow: hidden;
}

.header-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

.logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease both;
}

.logo-icon {
  width: 200px;
  height: auto;
  margin-bottom: 28px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 15vw, 172px);
  letter-spacing: -4px;
  line-height: 0.88;
  text-align: center;
  color: var(--white);
  text-transform: lowercase;
}

.logo-text span {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.22em;
  letter-spacing: 0.35em;
  color: var(--mid);
  text-transform: lowercase;
  margin-top: 6px;
}

.location {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #444;
  animation: fadeUp 1s ease 0.5s both;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #333;
  animation: pulse 2s infinite;
  z-index: 2;
}

/* ════════════════════════════════
   NAV — sticky con scroll horizontal
════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

nav a {
  flex-shrink: 0;
  padding: 18px 24px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-right: 1px solid #1a1a1a;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--white); background: #111; }

/* ════════════════════════════════
   SECCIONES
════════════════════════════════ */
main { position: relative; z-index: 10; }

section {
  padding: 80px 40px;
  border-bottom: 1px solid #161616;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.section-label h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 68px);
  letter-spacing: -1px;
  line-height: 0.95;
  color: var(--white);
  text-transform: lowercase;
}

.section-label .line {
  flex: 1;
  height: 1px;
  background: #222;
}

.section-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 40px;
  font-style: italic;
}

/* ════════════════════════════════
   ITEMS — filas del menú
════════════════════════════════ */
.item-list { display: flex; flex-direction: column; }

.item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #131313;
}

.item:last-child { border-bottom: none; }

/* Fila clickeable */
.item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  cursor: pointer;
}

.item-row:hover .item-name  { color: var(--white); }
.item-row:hover .item-price { color: var(--white); }

.item-row.no-detail { cursor: default; }
.item-row.no-detail:hover .item-name  { color: #ccc; }
.item-row.no-detail:hover .item-price { color: #888; }

.item-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #ccc;
  transition: color 0.15s;
  flex: 1;
}

.item-sub {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #555;
  font-style: italic;
  display: block;
  margin-top: 4px;
}

.item-dots {
  flex: 1;
  border-bottom: 1px dotted #2a2a2a;
  margin: 0 12px 4px;
}

.item-price {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #888;
  transition: color 0.15s;
  white-space: nowrap;
}

/* Botón + / × */
.item-toggle {
  font-size: 18px;
  font-weight: 300;
  color: #333;
  transition: transform 0.35s ease, color 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
  line-height: 1;
  user-select: none;
}

.item.open .item-toggle {
  transform: rotate(45deg);
  color: #666;
}

/* ════════════════════════════════
   DETALLE expandible
════════════════════════════════ */
.item-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.item.open .item-detail { max-height: 520px; }

.detail-inner {
  display: flex;
  gap: 28px;
  padding: 16px 0 28px;
  border-top: 1px solid #1a1a1a;
}

.detail-media {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.detail-media img,
.detail-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-desc {
  flex: 1;
  display: flex;
  align-items: center;
}

.detail-desc p {
  font-size: 14px;
  line-height: 1.9;
  color: #aaa;
  letter-spacing: 0.02em;
}

/* Cursor parpadeante mientras se escribe */
.detail-desc p.typing::after {
  content: '|';
  color: var(--pink);
  animation: blink 0.6s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ════════════════════════════════
   GRID — dos columnas (batidos)
════════════════════════════════ */
.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

/* ════════════════════════════════
   NOTA al pie de sección
════════════════════════════════ */
.nota {
  margin-top: 32px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #444;
  padding: 16px 0;
  border-top: 1px solid #1a1a1a;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  position: relative;
  z-index: 10;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #1a1a1a;
}

footer .f-logo {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: #222;
  text-transform: lowercase;
}

footer p {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #2a2a2a;
}

.footer-ig {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-ig svg   { color: var(--pink); }
.footer-ig:hover { opacity: 0.7; }

.footer-ubicuo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-ubicuo:hover { opacity: 0.7; }
.footer-ubicuo img   { width: 22px; height: auto; }

.footer-ubicuo span {
  font-family: 'Behmer', sans-serif;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ════════════════════════════════
   ANIMACIONES
════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 640px) {
  .item-grid { grid-template-columns: 1fr; }
  section    { padding: 60px 24px; }
  nav a      { padding: 16px 16px; }
}

@media (max-width: 480px) {
  .detail-inner           { flex-direction: column; gap: 16px; }
  .detail-media           { width: 100%; height: 240px; }
  .item.open .item-detail { max-height: 700px; }
  .detail-desc p          { font-size: 13px; }
}
