/* Recetario de Papacocina — warm editorial food blog */

:root {
  --bg: #faf6ef;
  --bg-soft: #f2ece0;
  --card: #ffffff;
  --ink: #2a1e17;
  --ink-soft: #6b5b4f;
  --ink-muted: #a49585;
  --accent: #b8532b;
  --accent-soft: #e8b498;
  --accent-hover: #963c1a;
  --border: #e5dccc;
  --border-soft: #f0e8d8;
  --shadow: 0 1px 2px rgba(42, 30, 23, 0.04), 0 8px 24px rgba(42, 30, 23, 0.06);
  --shadow-hover: 0 4px 8px rgba(42, 30, 23, 0.08), 0 16px 32px rgba(42, 30, 23, 0.12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(1.4) blur(10px);
  background: rgba(250, 246, 239, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { font-size: 28px; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.site-title {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.tagline {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-style: italic;
}

/* ---- Search ---- */
.search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
#search {
  width: 100%;
  padding: 16px 22px;
  font-size: 17px;
  font-family: var(--sans);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
#search::placeholder { color: var(--ink-muted); }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  list-style: none;
  padding: 8px;
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
  text-align: left;
  z-index: 10;
}
.search-results li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  gap: 12px;
}
.search-results li a:hover { background: var(--bg-soft); }
.search-results .sr-meta {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.search-results .empty { padding: 14px; color: var(--ink-muted); text-align: center; }

/* Full-page search results */
.section-search { padding-top: 48px; }
.search-empty {
  text-align: center;
  color: var(--ink-muted);
  font-style: italic;
  padding: 40px 0;
  font-size: 17px;
}

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-first { padding-top: 48px; }
.section-recent { background: var(--bg-soft); border-top: 1px solid var(--border-soft); }
.section-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
  border-radius: 2px;
}
.see-all {
  margin-top: 32px;
  text-align: right;
}
.see-all a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.see-all a:hover { color: var(--accent-hover); }

/* ---- Tipo grid ---- */
.tipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.tipo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tipo-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-hover);
}
.tipo-icon { font-size: 26px; }
.tipo-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tipo-count {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---- Recipe grid ---- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.recipe-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  min-height: 170px;
}
.recipe-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-hover);
}
.card-icon { font-size: 22px; opacity: 0.9; }
.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.card-tipo {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
a.tag:hover { background: var(--accent-soft); color: var(--ink); }

/* ---- Page titles ---- */
.page-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.page-icon { margin-right: 12px; }
.page-lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 40px;
  font-style: italic;
}
.crumbs {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---- Tags cloud ---- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  transition: all 0.15s;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tag-count {
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---- Recipe page ---- */
.recipe { padding: 56px 0 80px; }
.recipe-container { max-width: 780px; }
.recipe-header { margin-bottom: 32px; }
.recipe-icon { font-size: 40px; display: inline-block; margin-bottom: 8px; }
.recipe-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.adaptada {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 15px;
  margin: 0 0 12px;
}
.adaptada strong { color: var(--accent); font-weight: 500; font-style: normal; }
.recipe-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.recipe-tags .tag {
  font-size: 13px;
  padding: 4px 12px;
}
.comentario {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0 40px;
  line-height: 1.4;
}
.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  margin-top: 40px;
}
@media (max-width: 720px) {
  .recipe-body { grid-template-columns: 1fr; gap: 32px; }
}
.recipe-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.ing-section {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--ink);
}
.ing-section:first-child { margin-top: 0; }
.ingredientes {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.ingredientes li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15.5px;
}
.ingredientes li:last-child { border-bottom: none; }
.preparacion {
  padding-left: 24px;
  margin: 0;
  counter-reset: step;
  list-style: none;
}
.preparacion li {
  position: relative;
  padding: 0 0 16px 42px;
  counter-increment: step;
}
.preparacion li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notas {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-soft);
}
.notas h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.notas p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
  background: var(--bg-soft);
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: var(--accent-hover); }
.footer-meta { color: var(--ink-muted); font-size: 13px; margin-top: 8px; }

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 40px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
  .ti