/* ────────────────────────────────────────────────────────────────
   Simpleat · "Obsidian & Brasas" (design system de Stitch)
   Fondo obsidian profundo, esmeralda mint + fuego artesanal,
   glassmorphism nocturno, tipografía editorial EB Garamond + Plus Jakarta Sans.
   Mobile-first, touch-friendly. Un producto de Vértice.
   ──────────────────────────────────────────────────────────────── */

:root {
  /* Superficies obsidian */
  --fondo: #0b0f10;
  --superficie: #101415;
  --sup-bajo: #181c1d;
  --sup-medio: #1c2021;
  --sup-alto: #272b2c;
  --sup-mas-alto: #313536;

  /* Texto */
  --texto: #e0e3e4;
  --texto-suave: #bbcabf;
  --texto-apagado: #86948a;

  /* Acentos */
  --esmeralda: #4edea3;      /* primary: consumidor/fresco */
  --esmeralda-prof: #10b981; /* primary-container */
  --esmeralda-on: #003824;   /* texto sobre esmeralda */
  --fuego: #ffb690;          /* secondary: carnicería/Ingenio Argento */
  --fuego-prof: #ec6a06;     /* secondary-container */
  --fuego-vivo: #ff7e31;     /* tertiary-container */
  --fuego-on: #552100;

  /* Bordes de vidrio */
  --borde: rgba(255, 255, 255, 0.08);
  --borde-fuerte: rgba(255, 255, 255, 0.14);
  --borde-fuego: rgba(249, 115, 22, 0.35);
  --borde-esmeralda: rgba(16, 185, 129, 0.35);

  --radio: 8px;
  --radio-card: 16px;
  --radio-pill: 9999px;

  --serif: "EB Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Aura esmeralda de fondo ───────────────────────────────────── */
.halo {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.halo--uno {
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.09) 0%, transparent 60%);
}

/* ── Cabecera fija ─────────────────────────────────────────────── */
.cabecera {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(16, 20, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.cabecera__fila {
  height: 64px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.marca {
  font-family: var(--serif);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.marca__simple {
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.marca__eat {
  font-weight: 500;
  font-style: italic;
  color: var(--esmeralda);
  font-size: 1.35rem;
}
.marca__nodo {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--esmeralda);
  display: block;
  margin-top: -4px;
}
.cabecera__lema {
  display: none;
}

/* ── Principal ─────────────────────────────────────────────────── */
.principal {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 88px 1rem 120px;
}

/* ── Saludo editorial ──────────────────────────────────────────── */
.saludo {
  text-align: center;
  padding: 0.25rem 0.5rem 1rem;
}
.saludo h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 5.5vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.saludo p {
  color: var(--texto-suave);
  font-size: 0.85rem;
  margin: 0;
  max-width: 300px;
  margin-inline: auto;
}

/* ── Omnibar glassmorphism ─────────────────────────────────────── */
.omnibar__caja {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(24, 28, 29, 0.85);
  border: 1px solid var(--borde);
  border-radius: var(--radio-card);
  padding: 0.55rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7);
}
.omnibar__icono {
  font-size: 1.3rem;
  flex: none;
  color: var(--esmeralda);
}
.omnibar__input {
  flex: 1;
  min-width: 0;
  background: rgba(11, 15, 16, 0.9);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  color: var(--texto);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
}
.omnibar__input:focus {
  box-shadow: 0 0 0 1px var(--esmeralda-prof);
}
.omnibar__input::placeholder { color: var(--texto-apagado); }
.omnibar__foto {
  flex: none;
  background: var(--sup-mas-alto);
  border: 1px solid var(--borde);
  color: var(--esmeralda);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease;
}
.omnibar__foto:active { transform: scale(0.92); }
.omnibar__boton {
  flex: none;
  background: var(--esmeralda-prof);
  color: var(--esmeralda-on);
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.omnibar__boton:active { transform: scale(0.96); filter: brightness(0.94); }

/* Fila de chips rápidos */
.omnibar__rapidos {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.omnibar__rapidos::-webkit-scrollbar { display: none; }
.omnibar__rapidos .etiqueta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-apagado);
  flex: none;
}

/* ── Sugerencias ───────────────────────────────────────────────── */
.sugerencias {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.9rem;
}
.chip-sugerencia {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borde);
  color: var(--texto-suave);
  border-radius: var(--radio-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.chip-sugerencia:active { border-color: var(--esmeralda); color: var(--texto); }

/* ── Estado vacío ──────────────────────────────────────────────── */
.vacio {
  text-align: center;
  padding: 1.5rem 0.5rem 0;
}
.vacio__frase { color: var(--texto-suave); font-size: 0.95rem; margin: 0 0 0.4rem; }
.vacio__frase strong { color: var(--texto); font-weight: 600; }
.vacio__detalle { color: var(--texto-apagado); font-size: 0.8rem; margin: 0; }

/* ── Resultado / receta ────────────────────────────────────────── */
.resultado { margin-top: 1.25rem; animation: aparecer 0.35s ease; }
@keyframes aparecer {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tarjeta {
  background: rgba(24, 28, 29, 0.85);
  border: 1px solid var(--borde);
  border-radius: var(--radio-card);
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 0.9rem;
}

.receta__titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Chips de estado */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radio-pill);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto);
}
.chip--verde { background: rgba(78, 222, 163, 0.12); color: var(--esmeralda); border-color: var(--borde-esmeralda); }
.chip--amarillo { background: rgba(255, 182, 145, 0.12); color: var(--fuego); border-color: var(--borde-fuego); }
.chip--rojo { background: rgba(255, 120, 120, 0.12); color: #ff9e9e; border-color: rgba(255, 120, 120, 0.3); }
.chip--rapido { background: rgba(16, 185, 129, 0.15); color: var(--esmeralda-prof); border-color: var(--borde-esmeralda); }

/* Pasos */
.paso {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--borde);
}
.paso:last-child { border-bottom: none; }
.paso__icono { font-size: 1.35rem; line-height: 1.35; flex: none; }
.paso__cuerpo { flex: 1; min-width: 0; }
.paso__header { font-weight: 600; font-size: 0.95rem; color: var(--texto); }
.paso__header .cantidad { color: var(--esmeralda); font-weight: 700; }
.paso__tecnica { color: var(--texto-suave); font-size: 0.85rem; margin-top: 0.2rem; }
.paso__origen {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-apagado);
  border: 1px solid var(--borde);
  border-radius: var(--radio-pill);
  padding: 0.15rem 0.55rem;
}

/* Notas / sinergia */
.notas { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.notas li {
  color: var(--texto-suave);
  font-size: 0.85rem;
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
}
.notas li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--esmeralda);
  font-weight: 700;
}

.titulo-seccion {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-apagado);
  margin: 0 0 0.7rem;
}

/* Hack "Ingenio Argento" */
.hack {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--borde-fuego);
  background: rgba(236, 106, 6, 0.1);
  border-radius: 12px;
  margin-bottom: 0.55rem;
}
.hack__badge {
  flex: none;
  background: var(--fuego-prof);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radio-pill);
  padding: 0.2rem 0.6rem;
  margin-top: 0.1rem;
}
.hack__texto { color: var(--texto); font-size: 0.85rem; }

.nudge {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--borde-esmeralda);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  color: var(--texto);
  font-size: 0.85rem;
}

/* ── Navegación inferior ───────────────────────────────────────── */
.pienav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0 1rem 0.75rem;
  pointer-events: none;
}
.pienav__barra {
  pointer-events: auto;
  max-width: 440px;
  margin: 0 auto;
  height: 60px;
  border-radius: var(--radio-pill);
  background: rgba(24, 28, 29, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.8);
}
.pienav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  height: 44px;
  border-radius: var(--radio-pill);
  color: var(--texto-suave);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: color 0.15s ease, background 0.15s ease;
}
.pienav__item span.ico { font-size: 1.25rem; }
.pienav__item span.txt { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; }
.pienav__item.activo { color: var(--esmeralda); background: rgba(78, 222, 163, 0.1); }

/* ── Pie ───────────────────────────────────────────────────────── */
.pie {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem 0.5rem;
  color: var(--texto-apagado);
  font-size: 0.78rem;
  display: none; /* el footer queda fuera, la nav inferior lo reemplaza en mobile */
}
.pie__vertice { display: block; margin-top: 0.2rem; font-size: 0.72rem; }
.pie__vertice strong { color: var(--esmeralda); font-weight: 700; letter-spacing: 0.04em; }

@media (min-width: 640px) {
  .pie { display: block; padding-bottom: 1.5rem; }
}
