
:root{
  --bg:#f7f3ed;
  --paper:#fffdf9;
  --ink:#2b2926;
  --muted:#7a746d;
  --line:#e8dfd5;
  --accent:#b97545;
  --accent2:#6f8b67;
  --dark:#242522;
  --chip:#efe7dd;
  --shadow:0 18px 45px rgba(47,42,36,.10);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(180deg,#FAF6F0 0%,#F7F1E8 58%,#F3ECE3 100%);color:var(--ink)}
a{text-decoration:none;color:inherit}
.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}
.sidebar{position:sticky;top:0;height:100vh;background:var(--dark);color:#fff;padding:28px 20px;display:flex;flex-direction:column;gap:28px}
.brand{display:flex;align-items:center;gap:12px;padding:0 6px}
.brandmark{width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#d7a579,#8e5635);display:grid;place-items:center;font-size:21px}
.brand h1{font-size:17px;margin:0;letter-spacing:.12em}
.brand small{display:block;color:#b9b7b2;margin-top:3px;font-size:11px}
.brand-simple{padding:6px 14px 16px;border-bottom:1px solid #43443f}
.sidebar .brand-simple strong{font-size:22px;letter-spacing:.16em;color:#fff}
.nav{display:grid;gap:8px}
.nav a{padding:12px 14px;border-radius:12px;color:#d7d5d0;font-size:14px}
.nav a.active{background:#fff;color:var(--dark);font-weight:700}
.nav a span{display:inline-block;width:26px}
.sidebar-card{margin-top:auto;background:#31322f;border:1px solid #43443f;border-radius:18px;padding:16px}
.sidebar-card strong{display:block;font-size:13px;margin-bottom:6px}
.sidebar-card p{margin:0;color:#b9b7b2;font-size:12px;line-height:1.45}
.main{padding:28px 34px 60px;max-width:1500px;width:100%;margin:auto}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
.welcome h2{margin:0;font-size:30px;letter-spacing:-.03em}
.welcome p{margin:6px 0 0;color:var(--muted);font-size:14px}
.userbox{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--line);padding:8px 12px 8px 8px;border-radius:16px}
.avatar{width:38px;height:38px;border-radius:12px;background:#ddd3c7;display:grid;place-items:center;font-weight:800}
.search{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px;padding:17px 18px;display:flex;align-items:center;gap:12px;margin-bottom:26px}
.search .icon{font-size:20px;color:var(--muted)}
.search .placeholder{color:#958f88;font-size:15px}
.hero{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-bottom:30px}
.hero-card{background:linear-gradient(120deg,#4b4038,#2a2b28);color:#fff;border-radius:26px;min-height:260px;padding:30px;position:relative;overflow:hidden;box-shadow:var(--shadow)}

.hero-card .eyebrow{font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:#dbc7b7}
.hero-card h3{font-size:36px;max-width:560px;margin:18px 0 10px;line-height:1.06}
.hero-card p{max-width:540px;color:#d8d4ce;line-height:1.5;margin:0}
.hero-stats{display:flex;gap:10px;margin-top:24px}
.stat{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);padding:10px 14px;border-radius:14px;font-size:12px}
.kitchen-tip-card{background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:26px;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center;min-height:260px}
.kitchen-tip-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-weight:800;margin-bottom:10px}
.kitchen-tip-card h4{margin:0 0 10px;font-size:24px;line-height:1.15}
.kitchen-tip-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.kitchen-tip-list{display:grid;gap:8px;margin-top:20px}.kitchen-tip-list span{display:block;background:var(--chip);border-radius:12px;padding:9px 11px;font-size:12px;font-weight:700;color:var(--ink)}
.section-title{display:flex;justify-content:space-between;align-items:end;margin:8px 0 14px}
.section-title h3{margin:0;font-size:21px}
.section-title span{color:var(--muted);font-size:13px}
.categories{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:32px}
.cat{appearance:none;width:100%;text-align:left;font:inherit;color:inherit;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px 16px;min-height:125px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 7px 20px rgba(55,49,43,.05);cursor:pointer;transition:.2s ease}
.cat:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(55,49,43,.10)}
.recipe-category{scroll-margin-top:24px;margin-bottom:30px}
.recipe-category:target{outline:2px solid rgba(185,117,69,.28);outline-offset:10px;border-radius:18px}
.category-head{display:flex;align-items:end;justify-content:space-between;margin:4px 0 13px}
.category-head h3{margin:0;font-size:21px}
.category-head span{font-size:12px;color:var(--muted)}
.cat.active{border-color:var(--accent);box-shadow:0 0 0 2px rgba(185,117,69,.14),0 12px 26px rgba(55,49,43,.08)}
.cat .emoji{font-size:30px}
.cat strong{font-size:15px}
.cat small{color:var(--muted)}
.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:34px}
.recipe{background:var(--paper);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 10px 28px rgba(55,49,43,.06)}
.photo{height:175px;background:linear-gradient(135deg,#d8c0a7,#8d6b51);position:relative}
.photo.cookie{background:linear-gradient(135deg,#e8d496,#c49746)}
.photo.bread{background:linear-gradient(135deg,#d8ab7a,#8d5536)}
.photo.drink{background:linear-gradient(135deg,#dce8bb,#8bac65)}
.badge{position:absolute;top:14px;left:14px;background:rgba(255,255,255,.93);border-radius:999px;padding:7px 10px;font-size:11px;font-weight:700}
.recipe-body{padding:18px}
.recipe-body h4{margin:0 0 7px;font-size:18px}
.recipe-body p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.pill{background:var(--chip);padding:6px 9px;border-radius:999px;font-size:11px;color:#665d55}
.flow{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 9px 28px rgba(55,49,43,.05)}
.panel h4{margin:0 0 14px;font-size:18px}
.ingredient{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee6dc;padding:11px 0;font-size:13px}
.ingredient:last-child{border:0}
.check{width:20px;height:20px;border-radius:7px;border:1.5px solid #b8aea5;margin-right:10px;display:inline-block;vertical-align:middle}
.have .check{background:var(--accent2);border-color:var(--accent2);box-shadow:inset 0 0 0 5px var(--paper)}
.missing{color:#9c5a44}
.store-card{margin-top:14px;background:#f3eee7;border:1px solid #e5d8ca;border-radius:16px;padding:15px}
.store-card strong{display:block;margin-bottom:4px}
.store-card span{font-size:12px;color:var(--muted)}
.book{background:#fbf7f0;border:1px solid #e8dccf;border-radius:22px;padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:0;min-height:260px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
.page{padding:20px 23px}
.page:first-child{border-right:1px solid #dfd1c2}
.step-no{width:36px;height:36px;border-radius:50%;background:var(--dark);color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:18px}
.page h5{font-size:20px;margin:0 0 10px}
.page p{font-family:Georgia,serif;line-height:1.65;color:#5f564d;margin:0;font-size:14px}
.fake-btn{margin-top:16px;background:var(--dark);color:#fff;border-radius:14px;padding:12px 14px;text-align:center;font-size:13px;font-weight:700}
.note{margin-top:24px;padding:14px 16px;border:1px dashed #cdbdad;border-radius:16px;color:#766c63;font-size:12px;background:#fbf8f4}
@media(max-width:1050px){
 .shell{grid-template-columns:1fr}.sidebar{display:none}.main{padding:22px}
 .hero{grid-template-columns:1fr}.categories{grid-template-columns:repeat(3,1fr)}
 .recipe-grid{grid-template-columns:1fr 1fr}.flow{grid-template-columns:1fr}
}
@media(max-width:700px){
 .topbar{align-items:flex-start}.userbox{display:none}.welcome h2{font-size:25px}
 .categories{grid-template-columns:1fr 1fr}.recipe-grid{grid-template-columns:1fr}
 .hero-card h3{font-size:30px}.book{grid-template-columns:1fr}.page:first-child{border-right:0;border-bottom:1px solid #dfd1c2}
}





.category-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:linear-gradient(180deg,#FAF6F0 0%,#F7F1E8 58%,#F3ECE3 100%);
  overflow-y:auto;
  padding:26px 28px 60px;
}
.category-overlay:target{display:block}
.category-overlay-inner{
  max-width:1200px;
  margin:0 auto;
}
.category-overlay-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(255,239,244,.86);backdrop-filter:blur(10px);
  padding:8px 0 14px;
}
.category-overlay-title{
  display:flex;
  align-items:center;
  gap:13px;
}
.category-overlay-icon{
  width:52px;
  height:52px;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:var(--paper);
  border:1px solid var(--line);
  font-size:27px;
}
.category-overlay h2{
  margin:0;
  font-size:30px;
  letter-spacing:-.03em;
}
.category-overlay p.sub{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}
.close-category{
  display:inline-block;
  background:var(--dark);
  color:#fff;
  border-radius:12px;
  padding:11px 14px;
  font-size:13px;
  font-weight:700;
}
.category-overlay .recipe-grid{margin-bottom:0}
@media(max-width:700px){
  .category-overlay{padding:18px}
  .category-overlay-header{align-items:flex-start}
  .category-overlay h2{font-size:25px}
}


.recipe-link{display:block;text-decoration:none;color:inherit}
.recipe-link .recipe{height:100%;transition:.2s ease}
.recipe-link:hover .recipe{transform:translateY(-3px);box-shadow:0 14px 34px rgba(55,49,43,.12)}
.recipe-detail-overlay{
  display:none;position:fixed;inset:0;z-index:12000;background:linear-gradient(180deg,#FAF6F0 0%,#F7F1E8 58%,#F3ECE3 100%);
  overflow-y:auto;padding:26px 28px 60px
}
.recipe-detail-overlay:target{display:block}
.recipe-detail-inner{max-width:900px;margin:0 auto}
.recipe-detail-header{
  position:sticky;top:0;z-index:2;background:rgba(255,239,244,.86);backdrop-filter:blur(10px);
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:8px 0 16px;margin-bottom:18px
}
.recipe-detail-title{display:flex;align-items:center;gap:14px}
.recipe-detail-photo{
  width:62px;height:62px;border-radius:18px;
  background:linear-gradient(135deg,#EAD8C6,#D7B99C);
  box-shadow:0 8px 22px rgba(55,49,43,.10)
}
.recipe-detail-header h2{margin:0;font-size:30px;letter-spacing:-.03em}
.recipe-detail-header p{margin:4px 0 0;color:var(--muted);font-size:13px}
.recipe-detail-close{
  display:inline-block;background:var(--dark);color:#fff;border-radius:12px;
  padding:11px 14px;font-size:13px;font-weight:700
}
.ingredients-card{
  background:var(--paper);border:1px solid var(--line);border-radius:24px;
  padding:24px;box-shadow:var(--shadow)
}
.ingredients-card h3{margin:0 0 6px;font-size:21px}
.ingredients-card .intro{margin:0 0 18px;color:var(--muted);font-size:13px}
.ingredients-list{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
.ingredient-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px 0;border-bottom:1px solid #eee6dc;font-size:14px
}
.ingredient-name{display:flex;align-items:center;gap:10px}
.ingredient-dot{
  width:20px;height:20px;border-radius:7px;border:1.5px solid #b8aea5;
  flex:0 0 auto
}
.ingredient-qty{font-weight:700;white-space:nowrap}
.recipe-detail-summary{
  display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px
}
@media(max-width:700px){
  .recipe-detail-overlay{padding:18px}
  .recipe-detail-header{align-items:flex-start}
  .recipe-detail-header h2{font-size:25px}
  .ingredients-list{grid-template-columns:1fr}
}


.recipe-open-hint{
  margin-top:14px;
  padding-top:11px;
  border-top:1px solid #eee6dc;
  color:var(--accent);
  font-size:12px;
  font-weight:800
}
.recipe-link{display:block;text-decoration:none;color:inherit}
.recipe-link .recipe{height:100%;transition:.2s ease}
.recipe-link:hover .recipe{transform:translateY(-3px);box-shadow:0 14px 34px rgba(55,49,43,.12)}
.recipe-detail-overlay{
  display:none;position:fixed;inset:0;z-index:12000;background:linear-gradient(180deg,#FAF6F0 0%,#F7F1E8 58%,#F3ECE3 100%);
  overflow-y:auto;padding:26px 28px 60px
}
.recipe-detail-overlay:target{display:block}
.recipe-detail-inner{max-width:900px;margin:0 auto}
.recipe-detail-header{
  position:sticky;top:0;z-index:2;background:var(--bg);
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:8px 0 16px;margin-bottom:18px
}
.recipe-detail-title{display:flex;align-items:center;gap:14px}
.recipe-detail-photo{
  width:62px;height:62px;border-radius:18px;
  background:linear-gradient(135deg,#e4c4aa,#9f7254);
  box-shadow:0 8px 22px rgba(55,49,43,.10)
}
.recipe-detail-header h2{margin:0;font-size:30px;letter-spacing:-.03em}
.recipe-detail-header p{margin:4px 0 0;color:var(--muted);font-size:13px}
.recipe-detail-close{
  display:inline-block;background:var(--dark);color:#fff;border-radius:12px;
  padding:11px 14px;font-size:13px;font-weight:700
}
.ingredients-card{
  background:var(--paper);border:1px solid var(--line);border-radius:24px;
  padding:24px;box-shadow:var(--shadow)
}
.ingredients-card h3{margin:0 0 6px;font-size:21px}
.ingredients-card .intro{margin:0 0 18px;color:var(--muted);font-size:13px}
.ingredients-list{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
.ingredient-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px 0;border-bottom:1px solid #eee6dc;font-size:14px
}
.ingredient-name{display:flex;align-items:center;gap:10px}
.ingredient-dot{
  width:20px;height:20px;border-radius:7px;border:1.5px solid #b8aea5;
  flex:0 0 auto
}
.ingredient-qty{font-weight:700;white-space:nowrap}
.recipe-detail-summary{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}
@media(max-width:700px){
  .recipe-detail-overlay{padding:18px}
  .recipe-detail-header{align-items:flex-start}
  .recipe-detail-header h2{font-size:25px}
  .ingredients-list{grid-template-columns:1fr}
}

.ingredient-check{
  appearance:none;
  width:22px;
  height:22px;
  border-radius:7px;
  border:1.5px solid #b8aea5;
  background:#fff;
  flex:0 0 auto;
  cursor:pointer;
  position:relative;
}
.ingredient-check:checked{
  background:var(--accent2);
  border-color:var(--accent2);
}
.ingredient-check:checked::after{
  content:"✓";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.ingredient-label{cursor:pointer}
.ingredient-row:has(.ingredient-check:checked) .ingredient-label{
  text-decoration:line-through;
  opacity:.65;
}
.ingredient-check-help{
  margin:-8px 0 14px;
  padding:10px 12px;
  border-radius:12px;
  background:#f3eee7;
  color:var(--muted);
  font-size:12px;
}

.ingredient-status-bar{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 16px;
  box-shadow:0 8px 24px rgba(55,49,43,.05)
}
.missing-count{
  font-size:14px;
  font-weight:800;
  color:var(--ink);
}
.where-buy-btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
@media(max-width:560px){
  .ingredient-status-bar{
    align-items:stretch;
    flex-direction:column;
  }
  .where-buy-btn{
    text-align:center;
  }
}

.category-search-bar{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px 14px;
  margin:0 0 18px;
  box-shadow:0 8px 24px rgba(55,49,43,.05)
}
.category-search-icon{
  font-size:18px;
  color:var(--muted);
  line-height:1;
}
.category-search-input{
  border:0;
  outline:none;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:14px;
  width:100%;
}
.category-search-input::placeholder{
  color:#9a938b;
}
.category-search-clear{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:10px;
  padding:8px 11px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.category-search-clear:hover{
  border-color:var(--accent);
}
.category-search-empty{
  grid-column:1 / -1;
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  padding-top:4px;
}
@media(max-width:700px){
  .category-search-bar{
    grid-template-columns:auto 1fr;
  }
  .category-search-clear{
    grid-column:1 / -1;
    justify-self:start;
  }
}

.map-buy-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:15000;
  background:rgba(27,27,25,.72);
  backdrop-filter:blur(7px);
  padding:28px;
  overflow-y:auto;
}
.map-buy-overlay:target{
  display:grid;
  place-items:center;
}
.map-buy-inner{
  width:min(1100px,96vw);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
  overflow:hidden;
}
.map-buy-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  border-bottom:1px solid var(--line);
}
.map-buy-eyebrow{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--accent);
  font-weight:800;
  margin-bottom:5px;
}
.map-buy-header h2{
  margin:0;
  font-size:27px;
  letter-spacing:-.03em;
}
.map-buy-header p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}
.map-buy-close{
  width:40px;
  height:40px;
  border-radius:12px;
  background:var(--dark);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:800;
  flex:0 0 auto;
}
.map-buy-frame{
  width:100%;
  height:min(68vh,620px);
  min-height:420px;
  background:#e9e4dd;
}
.map-buy-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.map-buy-note{
  padding:12px 20px 16px;
  color:var(--muted);
  font-size:12px;
  background:#faf7f2;
}
@media(max-width:700px){
  .map-buy-overlay{padding:12px}
  .map-buy-inner{width:100%;border-radius:22px}
  .map-buy-header{padding:18px}
  .map-buy-header h2{font-size:23px}
  .map-buy-frame{height:62vh;min-height:360px}
}

.mexico-category-note{
  margin:0 0 18px;
  padding:12px 14px;
  background:#f7efe3;
  border:1px solid #ead8c1;
  border-radius:14px;
  color:#6f6257;
  font-size:12px;
  line-height:1.45
}

.photo{overflow:hidden}
.photo img.dish-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.photo .badge{
  z-index:2;
}

.photo{
  position:relative;
  overflow:hidden;
  background:#e7e1d9 !important;
}
.recipe-real-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}
.photo .badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:3;
}

.photo{
  position:relative;
  overflow:hidden;
  background:#eee6dc !important;
}
.photo img.recipe-real-photo,
.photo img.dish-image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}
.photo .badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:3;
}
.recipe-detail-photo{
  background-size:cover !important;
  background-position:center !important;
}

.recipe-feature-image{
  width:min(1400px, calc(100vw - 64px));
  height:430px;
  margin:0 50% 26px;
  transform:translateX(-50%);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(44,38,32,.14);
  background:#e8dfd5;
}
.recipe-feature-image .recipe-detail-photo{
  width:100% !important;
  height:100% !important;
  border-radius:0 !important;
  background-size:cover !important;
  background-position:center !important;
  box-shadow:none !important;
}

.beverage-photo{
  object-fit:contain !important;
  object-position:center center !important;
  transform:scale(.94);
  transform-origin:center center;
  background:#e8dfd5;
}

.beverage-detail-photo{
  background-size:contain !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-color:#e8dfd5 !important;
}

.recipe-detail-title{
  align-items:center;
}
.recipe-process-section{
  margin-top:24px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:26px;
  padding:24px;
  box-shadow:0 10px 30px rgba(55,49,43,.06);
}
.recipe-process-section h3{
  margin:0 0 6px;
  font-size:23px;
}
.process-intro{
  margin:0 0 18px;
  color:var(--muted);
  font-size:13px;
}
.process-time-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:22px;
}
.process-time-item{
  background:#f4eee7;
  border:1px solid #e8dccf;
  border-radius:15px;
  padding:12px 13px;
}
.process-time-item span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:4px;
}
.process-time-item strong{
  display:block;
  font-size:13px;
  line-height:1.3;
}
.process-steps{
  display:grid;
  gap:12px;
}
.process-step{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:13px;
  align-items:start;
  padding:14px 0;
  border-bottom:1px solid #eee6dc;
}
.process-step:last-child{
  border-bottom:0;
}
.process-step-number{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--dark);
  color:#fff;
  font-weight:800;
  font-size:14px;
}
.process-step-body h4{
  margin:0 0 5px;
  font-size:15px;
}
.process-step-body p{
  margin:0 0 7px;
  color:#5f5852;
  line-height:1.48;
  font-size:13px;
}
.process-step-time{
  display:inline-block;
  background:var(--chip);
  padding:5px 8px;
  border-radius:999px;
  color:#665d55;
  font-size:11px;
  font-weight:700;
}
.process-ready-box{
  margin-top:18px;
  background:#eef3e9;
  border:1px solid #dbe7d2;
  border-radius:16px;
  padding:14px 16px;
}
.process-ready-box strong{
  display:block;
  margin-bottom:4px;
  font-size:13px;
}
.process-ready-box span{
  display:block;
  color:#5f675a;
  font-size:12px;
  line-height:1.45;
}
@media(max-width:800px){
  .recipe-feature-image{
    width:calc(100vw - 24px);
    height:270px;
    border-radius:20px;
    margin-bottom:18px;
  }
  .process-time-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:520px){
  .process-time-grid{
    grid-template-columns:1fr;
  }
  .recipe-process-section{
    padding:18px;
  }
}

.ingredient-stage-group{
  margin-top:18px;
  border:1px solid #eee3d8;
  border-radius:16px;
  overflow:hidden;
}
.ingredient-stage-group h4{
  margin:0;
  padding:11px 14px;
  background:#f5eee6;
  font-size:13px;
}
.ingredient-stage-group .ingredients-list{
  padding:0 14px;
}
.process-time-grid{
  grid-template-columns:repeat(3,1fr);
}
.process-stage{
  margin-top:22px;
  padding-top:4px;
}
.process-stage-head{
  margin-bottom:8px;
  padding:12px 14px;
  border-left:4px solid var(--accent);
  background:#f7f1ea;
  border-radius:0 12px 12px 0;
}
.process-stage-head h4{
  margin:0 0 4px;
  font-size:16px;
}
.process-stage-head p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
@media(max-width:700px){
  .process-time-grid{
    grid-template-columns:1fr 1fr;
  }
}

/* Bebidas: miniatura fotográfica de licuado verde */
.cat .category-photo{
  width:58px;
  height:58px;
  border-radius:16px;
  object-fit:cover;
  display:block;
  box-shadow:0 7px 18px rgba(55,49,43,.14);
  border:1px solid rgba(255,255,255,.75);
}
.category-overlay-icon.photo-icon{
  padding:0;
  overflow:hidden;
}
.category-overlay-icon.photo-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


.platillo-photo{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  transform:scale(.96);
  transform-origin:center center;
  background:#e8dfd5;
}
.platillo-detail-photo{
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}


.mexican-photo{object-fit:cover!important;object-position:center center!important;}
.mexican-detail-photo{background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;}

/* Buscador dedicado de Gastronomía mexicana */
.mex-search-results{margin:0 0 22px}
.mex-search-results[hidden]{display:none!important}
.mex-search-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px}
.mex-search-status{font-size:14px;font-weight:800;color:var(--ink)}
.mex-search-grid{margin-top:0}
#mex-search-empty{grid-column:1/-1;margin-top:4px;padding:10px 12px;border-radius:12px;background:#fff3ec;border:1px solid #ead1c5;color:#855b48;font-size:13px}
#mex-search-submit{border:0;background:var(--accent);color:#fff;border-radius:10px;padding:9px 14px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.10)}
#mex-search-submit:hover{filter:brightness(.96)}

/* Alternativas de ingredientes — Chilaquiles rojos */
.ingredient-row{flex-wrap:wrap}
.ingredient-alt{flex-basis:100%;margin:4px 0 0 30px;font-size:.86rem;line-height:1.35;color:#6b6258;font-weight:600}

.ingredient-options-box{margin:12px 0 14px;padding:12px 14px;border:1px solid rgba(0,0,0,.12);border-radius:12px;background:#fff8e8;font-size:15px;line-height:1.4}.ingredient-options-box strong{font-weight:800}.ingredient-options-box span{font-weight:600}


.category-search-bar{grid-template-columns:auto minmax(0,1fr) auto auto}
.category-search-submit{
  border:0;
  background:var(--accent);
  color:#fff;
  border-radius:10px;
  padding:9px 14px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.10);
}
.category-search-submit:hover{filter:brightness(.96)}
.category-search-submit:focus-visible,
.category-search-clear:focus-visible,
.category-search-input:focus-visible{outline:3px solid rgba(39,108,82,.22);outline-offset:2px}
.recipe-link.search-result-highlight .recipe{
  box-shadow:0 0 0 3px rgba(39,108,82,.26),0 14px 32px rgba(55,49,43,.12);
  transform:translateY(-2px);
}
.category-search-results-note{
  grid-column:1 / -1;
  margin-top:2px;
  padding:10px 12px;
  border-radius:12px;
  background:#edf5f0;
  border:1px solid rgba(39,108,82,.18);
  color:#245d48;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}
@media(max-width:700px){
  .category-search-bar{grid-template-columns:auto minmax(0,1fr)}
  .category-search-submit{grid-column:1 / 2;width:100%}
  .category-search-clear{grid-column:2 / 3;width:100%;justify-self:stretch}
}



/* PANES — fotos ligeramente más pequeñas dentro de la tarjeta */
#panes .photo img.recipe-real-photo,
#panes .photo img.dish-image{
  transform:scale(.92);
  transform-origin:center center;
  border-radius:12px;
}


#china .recipe-real-photo{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
#china .photo{overflow:hidden;}


/* Ajuste visual: fotos un poco más pequeñas solo en la categoría Panes */
#panes .recipe .photo{
  height:155px;
  padding:10px;
  background:#f6eee4 !important;
}
#panes .recipe .photo img.recipe-real-photo,
#panes .recipe .photo img.dish-image{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center center;
  border-radius:16px;
}


/* Corrección de nitidez en imágenes al abrir recetas */
.recipe-feature-image{
  width:min(720px, calc(100vw - 32px)) !important;
  height:auto !important;
  aspect-ratio:3 / 2;
  margin:0 auto 26px !important;
  transform:none !important;
  background:#e8dfd5;
}
.recipe-feature-image .recipe-detail-photo{
  width:100% !important;
  height:100% !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  image-rendering:auto;
}
@media(max-width:760px){
  .recipe-feature-image{
    width:calc(100vw - 24px) !important;
    aspect-ratio:3 / 2;
    height:auto !important;
  }
}


/* Nitidez en vista interna */
.recipe-detail-photo{background-size:contain !important;background-repeat:no-repeat;background-position:center center !important;background-color:#f7f1e8;}

#receta-pan-casero-panes .recipe-detail-photo{
  background-size:94% auto !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
}

/* AJUSTE_1PX_PAN_CASERO: 155px -> 156px */
#tarjeta-pan-casero .photo{
  height:156px !important;
}


/* PWA 0.0.0.3 — compatibilidad estructural sin cambiar el lenguaje visual original */
html{scroll-behavior:smooth}
#app{min-height:100vh}
.brand{color:#fff}
.brandmark{color:#fff;font-weight:800}
.sidebar .brand strong{display:block;font-size:17px;letter-spacing:.12em}
.sidebar .brand small{display:block;color:#b9b7b2;margin-top:3px;font-size:11px}
.sidebar-version{font-size:11px;color:#b9b7b2;margin-top:8px}
.nav-sep{height:1px;background:#43443f;margin:3px 0 6px}
.hero-card-link{display:block;color:#fff;height:100%}
.location-info{padding-top:4px}
.location-card .map{position:relative}
.category-status{font-size:12px;color:var(--muted)}
.category-search-wrap{margin:0 0 22px}
.category-search-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:10px 12px;box-shadow:0 8px 24px rgba(55,49,43,.05)}
.category-search-bar input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;padding:7px 2px}
.category-search-icon{color:var(--muted);font-size:18px}
.category-search-clear{border:0;background:transparent;color:var(--accent);font:inherit;font-weight:800;cursor:pointer;padding:7px 8px}
.recipe-card-link{display:block;text-decoration:none;color:inherit}
.recipe-card-link .recipe{height:100%;transition:.2s ease}
.recipe-card-link:hover .recipe{transform:translateY(-3px);box-shadow:0 14px 34px rgba(55,49,43,.12)}
.recipe .photo{overflow:hidden;background:#eee7df}
.recipe .photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.recipe-open-hint{margin-top:14px;padding-top:11px;border-top:1px solid #eee6dc;color:var(--accent);font-size:12px;font-weight:800}
.recipe-detail-title-image{width:62px;height:62px;border-radius:18px;overflow:hidden;background:#eee6dc;box-shadow:0 8px 22px rgba(55,49,43,.10);flex:0 0 auto}
.recipe-detail-title-image img{width:100%;height:100%;object-fit:cover;display:block}
.recipe-feature-image{width:min(720px,calc(100vw - 32px));margin:4px auto 18px;padding:0;overflow:hidden;background:#f4ede5;border-radius:24px;box-shadow:0 10px 30px rgba(55,49,43,.08)}
.recipe-feature-image img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;display:block}
.recipe-detail-page{max-width:900px;margin:0 auto}
.recipe-detail-page .recipe-detail-header{position:sticky;top:0;z-index:2;background:var(--bg)}
.recipe-detail-page .ingredients-card{margin-top:0}
.ingredient-group-title{font-size:14px;margin:20px 0 4px;color:var(--ink)}
.recipe-detail-page .ingredients-list{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
.recipe-detail-page .ingredient-group{display:contents}
.recipe-process-section{margin-top:18px;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow)}
.recipe-process-section h3{margin:0 0 6px;font-size:21px}
.process-intro{margin:0 0 18px;color:var(--muted);font-size:13px}
.process-time-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 22px}
.process-time-item{background:#f3eee7;border:1px solid #e5d8ca;border-radius:14px;padding:12px;display:grid;gap:4px}
.process-time-item span{color:var(--muted);font-size:11px}.process-time-item strong{font-size:12px}
.process-steps{display:grid;gap:0}.process-step{display:grid;grid-template-columns:42px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid #eee6dc}.process-step:last-child{border-bottom:0}
.process-step-number{width:36px;height:36px;border-radius:50%;background:var(--dark);color:#fff;display:grid;place-items:center;font-weight:800}
.process-step-body h4{margin:0 0 6px}.process-step-body p{margin:0;color:#5f564d;line-height:1.55}.process-step-time{display:inline-block;margin-top:7px;color:var(--accent);font-size:12px;font-weight:800}
.process-ready-box{margin-top:18px;background:#f3eee7;border:1px solid #e5d8ca;border-radius:16px;padding:15px;display:grid;gap:5px}.process-ready-box span{color:var(--muted);font-size:13px;line-height:1.5}
.global-search-page .recipe-grid{margin-top:20px}
.error{max-width:760px;margin:80px auto;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}
@media(max-width:900px){.process-time-grid{grid-template-columns:repeat(2,1fr)}.map-page{grid-template-columns:1fr}.recipe-detail-page .ingredients-list{grid-template-columns:1fr}}
@media(max-width:700px){.category-search-bar{grid-template-columns:auto minmax(0,1fr) auto}.process-time-grid{grid-template-columns:1fr}.recipe-feature-image{border-radius:18px}.recipe-detail-title-image{width:52px;height:52px}}

/* LANI 0.0.0.7 — no category label layer over Pasteles/Panes photos */
.category-pasteles .photo .badge,
.category-panes .photo .badge{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* LANI 0.0.0.8 — hide badge layer for Pasteles/Panes everywhere */
.category-pasteles .photo .badge,
.category-panes .photo .badge,
a[data-category-card="pasteles"] .photo .badge,
a[data-category-card="panes"] .photo .badge,
a[href^="#/pasteles/"] .photo .badge,
a[href^="#/panes/"] .photo .badge{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* LANI panes explicit badge removal 0.0.0.9 */
.category-panes .badge, a[data-category-card="panes"] .badge, a[href^="#/panes/"] .badge{display:none!important;visibility:hidden!important;opacity:0!important;}

/* LANI 0.0.0.10 — hide Galletas label over recipe photos */
.category-galletas .photo .badge,
a[data-category-card="galletas"] .photo .badge,
a[href^="#/galletas/"] .photo .badge{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* LANI 0.0.0.9 — hide badge layer for Mexicana everywhere */
.category-mexicana .photo .badge,
a[data-category-card="mexicana"] .photo .badge,
a[href^="#/mexicana/"] .photo .badge{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* LANI 0.0.0.10 — hide badge layer for Gastronomía china everywhere */
.category-china .photo .badge,
a[data-category-card="china"] .photo .badge,
a[href^="#/china/"] .photo .badge{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}


/* LANI 0.0.0.11 — hide badge layer for Platillos */
.category-platillos .photo .badge,
a[data-category-card="platillos"] .photo .badge,
a[href^="#/platillos/"] .photo .badge{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* LANI 0.0.0.11 — soft pastel surfaces */
.search,.userbox,.kitchen-tip-card,.cat,.recipe,.panel,.ingredients-card{background:rgba(255,250,247,.94);backdrop-filter:blur(8px);}

/* LANI 0.0.0.12 — hide badge layer for Bebidas */
.category-bebidas .photo .badge,
a[data-category-card="bebidas"] .photo .badge,
a[href^="#/bebidas/"] .photo .badge{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* LANI 0.0.0.13 — favoritos, cocinadas, Sorpréndeme y Reto diario */
.surprise-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.surprise-btn{appearance:none;border:0;border-radius:14px;padding:13px 18px;font:inherit;font-weight:800;cursor:pointer;background:#C9785C;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.12)}.surprise-btn.secondary{background:#C9785C;color:#fff}.challenge-note{margin-top:12px;font-size:12px;color:#eadfd6}.recipe-feature-image{position:relative}.favorite-recipe-btn{position:absolute;top:16px;right:16px;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.72);background:rgba(255,255,255,.92);display:grid;place-items:center;font-size:28px;line-height:1;color:#b95c7b;cursor:pointer;box-shadow:0 8px 22px rgba(47,42,36,.16);z-index:3}.favorite-recipe-btn.active{background:#fff0f5;color:#c83c6b}.cooked-recipe-btn{appearance:none;border:1px solid var(--line);background:rgba(255,253,249,.95);color:var(--ink);border-radius:14px;padding:11px 14px;font-weight:800;cursor:pointer;margin:0 0 18px}.cooked-recipe-btn.active{background:#e9f4e5;border-color:#b7d2ae;color:#47623f}

/* v15 heart + toast polish */
.favorite-recipe-btn{transition:transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease}
.favorite-recipe-btn:hover{transform:scale(1.05)}
.favorite-recipe-btn.active{background:#ffedf3;color:#d63267;box-shadow:0 10px 26px rgba(214,50,103,.22)}
.favorite-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#3c3430;color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:700;box-shadow:0 10px 24px rgba(0,0,0,.18);z-index:20000;opacity:0;pointer-events:none;transition:opacity .2s ease, transform .2s ease}.favorite-toast.show{opacity:1;transform:translateX(-50%) translateY(-2px)}


/* LANI 0.0.0.18 — mostrar fotos completas, sin recorte */
.recipe .photo{
  height:auto !important;
  min-height:175px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f7f1e8 !important;
  overflow:hidden;
}
.recipe .photo img,
.photo img.recipe-real-photo,
.photo img.dish-image,
.photo img.beverage-photo,
.platillo-photo,
.mexican-photo{
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
}
.recipe-detail-title-image img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  background:#f7f1e8;
}
.recipe-feature-image img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
}


/* LANI 0.0.0.19 — fix recipe image framing so only one clean image shows */
.recipe .photo{
  height:220px !important;
  min-height:220px !important;
  max-height:220px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#f7f1e8 !important;
  border-radius:18px 18px 0 0;
  padding:12px !important;
}
.recipe .photo img,
.photo img.recipe-real-photo,
.photo img.dish-image,
.photo img.beverage-photo,
.platillo-photo,
.mexican-photo{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  margin:0 auto !important;
}
.recipe-detail-title-image,
.recipe-feature-image{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#f7f1e8 !important;
}
.recipe-detail-title-image img,
.recipe-feature-image img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  margin:0 auto !important;
}


/* LANI 0.0.0.26 — visual refresh only; recipe content untouched */
:root{
  --bg:#F7F1E8;
  --paper:#FFFDF8;
  --ink:#403A35;
  --muted:#766F68;
  --line:#E9DDCF;
  --accent:#C9785C;
  --accent2:#7D8B63;
  --dark:#34312E;
  --chip:#F0E7DC;
  --shadow:0 16px 38px rgba(64,58,53,.10);
}

body{
  background:
    radial-gradient(circle at top right,rgba(201,120,92,.08),transparent 32%),
    linear-gradient(180deg,#FAF6F0 0%,#F7F1E8 58%,#F3ECE3 100%);
  color:var(--ink);
}

.sidebar{
  background:linear-gradient(180deg,#3D3935 0%,#302D2A 100%);
  border-right:1px solid rgba(255,255,255,.06);
}
.brand-simple{border-bottom-color:rgba(255,255,255,.12)}
.nav a{color:#E9E2DA}
.nav a:hover{background:rgba(255,255,255,.07)}
.nav a.active{
  background:#F7F1E8;
  color:#403A35;
  box-shadow:0 7px 18px rgba(0,0,0,.12);
}

.search,.userbox,.kitchen-tip-card,.panel,.recipe,.cat,.ingredients-card,.recipe-process-section{
  background:rgba(255,253,248,.96);
  border-color:#E9DDCF;
}

.hero-card{
  background:
    radial-gradient(circle at 80% 20%,rgba(201,120,92,.25),transparent 30%),
    linear-gradient(135deg,#4A4540 0%,#35312E 65%,#2D2A27 100%);
  box-shadow:0 22px 50px rgba(52,49,46,.18);
}

.surprise-btn{
  background:#C9785C !important;
  border-color:#C9785C !important;
  color:#fff !important;
}
.surprise-btn.secondary{
  background:#C9785C !important;
  border:1px solid #C9785C !important;
  color:#fff !important;
}

.cat:hover,.recipe:hover{
  transform:translateY(-3px);
  border-color:rgba(201,120,92,.45);
  box-shadow:0 16px 36px rgba(64,58,53,.11);
}

.recipe-open-hint,.category-search-clear{color:#C9785C}
.pill{background:#F0E7DC;color:#635A52}

.cooked-recipe-btn,.where-buy-btn,.recipe-detail-close,.close-category{
  background:#403A35 !important;
  color:#fff !important;
}

.favorite-recipe-btn{
  background:rgba(255,253,248,.95) !important;
  color:#C9785C !important;
}
.favorite-recipe-btn.active{
  background:#C9785C !important;
  color:#fff !important;
}

.have .check{
  background:#7D8B63;
  border-color:#7D8B63;
}

/* 1:1 image ratio requested */
.recipe .photo{
  width:100% !important;
  aspect-ratio:1 / 1 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  padding:10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#F7F1E8 !important;
  overflow:hidden !important;
}

.recipe .photo img,
.photo img.recipe-real-photo,
.photo img.dish-image,
.photo img.beverage-photo,
.platillo-photo,
.mexican-photo{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
}

/* Main recipe image also square, without cropping */
.recipe-feature-image{
  aspect-ratio:1 / 1 !important;
  height:auto !important;
  background:#F7F1E8 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.recipe-feature-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}

.category-overlay,
.recipe-detail-overlay{
  background:
    radial-gradient(circle at top right,rgba(125,139,99,.08),transparent 28%),
    linear-gradient(180deg,#FAF6F0 0%,#F7F1E8 100%) !important;
}


/* LANI 0.0.0.27 — Reto diario interactivo */
.daily-challenge-page{max-width:1180px;margin:0 auto}
.challenge-kicker{display:inline-flex;margin-top:16px;padding:7px 11px;border-radius:999px;background:#efe5d8;color:#c9785c;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.challenge-target{background:#403a35;color:#fff;border-radius:18px;padding:14px 18px;min-width:140px;text-align:center;box-shadow:var(--shadow)}
.challenge-target span{display:block;font-size:11px;opacity:.72;text-transform:uppercase;letter-spacing:.08em}.challenge-target strong{font-size:25px;display:block;margin-top:3px}
.challenge-hero{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(330px,1.1fr);gap:22px;margin:18px 0 22px}
.challenge-photo{aspect-ratio:1/1;background:#f1e9df;border-radius:26px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center}.challenge-photo img{width:100%;height:100%;object-fit:contain;display:block}
.challenge-intro{background:#fffdf8;border:1px solid var(--line);border-radius:26px;padding:26px;box-shadow:var(--shadow)}.challenge-intro h3{font-size:27px;margin:20px 0 8px}.challenge-intro p{color:var(--muted);line-height:1.6}
.challenge-ready-box,.challenge-timer-box,.challenge-result{margin-top:22px;border-radius:20px;padding:20px;background:#f6f0e7;border:1px solid #e9ddcf}
.challenge-primary,.challenge-finish{appearance:none;border:0;border-radius:15px;padding:14px 20px;font:inherit;font-weight:900;cursor:pointer}.challenge-primary{background:#c9785c;color:#fff}.challenge-finish{background:#403a35;color:#fff;margin-top:14px;width:100%}
.challenge-timer-box{text-align:center}.challenge-timer-box span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#756b63;font-weight:800}.challenge-timer-box strong{display:block;font-size:54px;letter-spacing:-.04em;color:#403a35;margin:5px 0}.challenge-timer-box small{display:block;color:#7b736c}
.challenge-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:22px;align-items:start}.challenge-ingredients-card,.challenge-process{margin:0}
.challenge-ingredient{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;padding:13px 0;border-bottom:1px solid #eee5da;cursor:pointer}.challenge-ingredient input{width:20px;height:20px;accent-color:#7d8b63}.challenge-ingredient span{font-size:14px}.challenge-ingredient strong{font-size:13px;white-space:nowrap}
.challenge-stage-title{margin:24px 0 10px}.challenge-step{display:grid;grid-template-columns:42px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid #eee5da}.challenge-step-no{width:36px;height:36px;border-radius:12px;background:#c9785c;color:#fff;display:grid;place-items:center;font-weight:900}.challenge-step strong{display:block;margin:2px 0 5px}.challenge-step p{margin:0;color:var(--muted);line-height:1.5}.challenge-step small{display:inline-block;margin-top:7px;color:#7d8b63;font-weight:800}
.challenge-result{text-align:center}.challenge-result.success{background:#eef1e8;border-color:#ccd5be}.challenge-result.late{background:#f4eee6}.challenge-result-icon{font-size:42px}.challenge-result h3{margin:7px 0}.challenge-success-copy{color:#617052!important;font-weight:800}
.challenge-celebration{position:fixed;inset:0;z-index:30000;background:rgba(40,35,31,.18);display:grid;place-items:center;opacity:0;pointer-events:none;transition:.25s}.challenge-celebration.show{opacity:1}.challenge-celebration-card{position:relative;z-index:3;background:#fffdf8;border:1px solid #eadfd1;border-radius:28px;padding:30px 36px;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.2);transform:scale(.88);transition:.3s}.challenge-celebration.show .challenge-celebration-card{transform:scale(1)}.celebration-rockets{font-size:38px}.challenge-celebration-card h2{font-size:34px;margin:10px 0 5px}.challenge-celebration-card p{margin:0;color:#756b63}
.mini-firework{position:fixed;left:var(--x);bottom:-40px;font-size:25px;z-index:2;animation:miniRocket 2.3s ease-out var(--delay) forwards}@keyframes miniRocket{0%{transform:translateY(0) scale(.5);opacity:0}15%{opacity:1}75%{transform:translateY(-72vh) scale(1.2);opacity:1}100%{transform:translateY(-82vh) scale(.6) rotate(35deg);opacity:0}}
@media(max-width:820px){.challenge-hero,.challenge-grid{grid-template-columns:1fr}.challenge-target{min-width:110px}.challenge-timer-box strong{font-size:46px}}


/* LANI 0.0.0.28 — bloqueo anti-trampa del Reto diario */
.challenge-finish:disabled,.challenge-finish.locked{
  opacity:.48 !important;
  cursor:not-allowed !important;
  filter:grayscale(.15);
  transform:none !important;
}
.challenge-minimum{margin-top:7px!important;font-weight:700;color:#5f574f!important}
.challenge-lock-note{margin:10px auto 0;max-width:460px;color:#756b63;font-size:12px;line-height:1.45}

/* LANI 0.0.0.30 — Pasteles only: replace emoji with line icon */
.cat .emoji svg{width:34px;height:34px;display:block;color:var(--accent);}


/* v31 category cover refresh */
.categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;}
.cat.cat-photo-card{padding:0;overflow:hidden;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;background:linear-gradient(180deg,rgba(255,252,249,.98),rgba(248,242,236,.98));border:1px solid rgba(149,124,104,.18);box-shadow:0 12px 30px rgba(62,44,29,.08);}
.cat.cat-photo-card:hover{transform:translateY(-4px);box-shadow:0 18px 34px rgba(62,44,29,.13);}
.cat-photo-card .cat-media{aspect-ratio:4/3;overflow:hidden;background:#eadfd3;}
.cat-photo-card .cat-cover{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s ease;}
.cat-photo-card:hover .cat-cover{transform:scale(1.04);}
.cat-photo-card .cat-copy{padding:14px 14px 16px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;}
.cat-photo-card strong{font-size:15px;line-height:1.25;color:#332a24;}
.cat-photo-card small{font-size:12px;line-height:1.35;color:#7a6758;min-height:32px;}
.cat-photo-card .cat-cta{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:#5f5a56;color:#fff;font-size:12px;font-weight:700;letter-spacing:.01em;box-shadow:0 6px 14px rgba(46,42,39,.14);}
.cat-photo-card .emoji{padding:16px 16px 0;}
@media(max-width:900px){.categories{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.categories{grid-template-columns:1fr;gap:14px}.cat-photo-card .cat-copy{padding:13px 13px 15px}.cat-photo-card small{min-height:auto;}}

/* LANI v58 CLEAN — canonical visual system, café crema */
:root{
  --bg:#E8D7C5;
  --paper:#FBF3EA;
  --ink:#403A35;
  --muted:#766F68;
  --line:#D8C2AD;
  --accent:#C9785C;
  --accent2:#7D8B63;
  --dark:#5B493D;
  --chip:#EADACB;
  --shadow:0 16px 38px rgba(64,58,53,.10);
}

html,body{background:#E8D7C5;color:var(--ink)}
body .shell{background:#E8D7C5}
body .main{background:#F1E4D6}

/* Sidebar: un solo fondo crema, sin bloques grises ni parches */
.sidebar{
  background:#E1CBB5;
  color:#5B493D;
  border-right:1px solid rgba(119,91,68,.18);
  box-shadow:10px 0 26px rgba(101,79,62,.07);
}
.sidebar .brand-simple{
  background:transparent;
  border:0;
  border-radius:0;
}
.sidebar .brand-simple,
.sidebar .brand-simple strong,
.sidebar .brand-simple small,
.sidebar .nav a,
.sidebar .nav a span,
.sidebar .sidebar-version,
.sidebar .sidebar-card strong,
.sidebar .sidebar-card p,
.sidebar .brand small{color:#5B493D}
.sidebar .nav a{background:transparent}
.sidebar .nav a:hover{background:rgba(255,250,244,.55)}
.sidebar .nav a.active{background:#C9A98A;color:#4A392F;box-shadow:none}
.sidebar .nav-sep{background:rgba(119,91,68,.14)}
.sidebar .sidebar-card{background:rgba(251,243,234,.62);border:1px solid rgba(119,91,68,.12)}

/* Main surfaces */
.search,.userbox,.kitchen-tip-card,.panel,.recipe,.cat,.ingredients-card,.recipe-process-section,
.category-search,.recipes-shell,.recipe-detail-card,.recipe-detail-shell,.tip-card,.floating-panel{
  background:#FBF3EA;
  border-color:#D8C2AD;
}
.categories,.recipe-grid,.flow{
  background:#EEDBC8;
  border:1px solid #DCC4AD;
  border-radius:28px;
  padding:18px;
}
.cat.cat-photo-card{
  background:linear-gradient(180deg,#FCF5ED 0%,#EAD8C6 100%);
  border:1px solid rgba(149,124,104,.16);
}
.cat-photo-card .cat-media{background:#E5CDB6}
.cat-photo-card .cat-copy{background:linear-gradient(180deg,rgba(252,245,237,.96),rgba(234,216,198,.97))}
.cat-photo-card .cat-cta{background:#A97758;color:#fff}

/* Approved hero: cake image fills the complete card background */
.hero-card{
  min-height:340px;
  padding:30px 30px 96px;
  position:relative;
  overflow:hidden;
  color:#2F211B;
  background-image:
    linear-gradient(90deg,rgba(249,241,232,.96) 0%,rgba(249,241,232,.86) 26%,rgba(249,241,232,.52) 48%,rgba(249,241,232,.16) 74%),
    url('../assets/hero/pastel-que-cocinamos-hoy.png');
  background-position:left top,center center;
  background-repeat:no-repeat,no-repeat;
  background-size:cover,cover;
  box-shadow:0 22px 50px rgba(76,52,37,.12);
}
.hero-card::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.08);z-index:0}
.hero-card::after{display:none;content:none}
.hero-card>*:not(.surprise-actions){position:relative;z-index:2;max-width:46%}
.hero-card .eyebrow{color:#A16449}
.hero-card h3{color:#2F211B}
.hero-card p{color:#6B584C}
.hero-card .challenge-note{color:#7A6659}
.hero-card .surprise-actions{position:absolute;left:30px;bottom:26px;z-index:3;margin:0;max-width:none}
.hero-card .surprise-btn,.hero-card .surprise-btn.secondary{background:#C9785C !important;border-color:#C9785C !important;color:#fff !important}

@media(max-width:820px){
  .hero-card{
    min-height:390px;
    background-image:
      linear-gradient(180deg,rgba(249,241,232,.92) 0%,rgba(249,241,232,.80) 32%,rgba(249,241,232,.60) 56%,rgba(249,241,232,.30) 100%),
      url('../assets/hero/pastel-que-cocinamos-hoy.png');
    background-position:center center,center center;
  }
  .hero-card>*:not(.surprise-actions){max-width:100%}
  .hero-card{padding-bottom:104px}
  .hero-card .surprise-actions{left:22px;right:22px;bottom:22px}
}
