/*
Theme Name: Menú Fácil Demo
Theme URI: https://example.com
Author: Demo
Description: Menú digital editable para restaurantes, con categorías, precios, fotos y WhatsApp.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: menu-facil-demo
*/
:root{--ink:#19251e;--muted:#6c756e;--accent:#47795b;--bg:#f7f8f5;--card:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}.wrap{max-width:1080px;margin:auto;padding:0 20px}.hero{background:var(--ink);color:white;padding:56px 0 46px}.hero-inner{display:flex;align-items:center;gap:22px}.brand-logo{width:84px;height:84px;border-radius:22px;object-fit:cover;background:#fff}.eyebrow{font-size:12px;letter-spacing:2px;text-transform:uppercase;opacity:.7}h1{font-size:clamp(34px,6vw,60px);letter-spacing:-2px;line-height:1.05;margin:10px 0}h2{font-size:25px;letter-spacing:-.6px;margin:36px 0 18px}.subtitle{opacity:.78;max-width:580px;line-height:1.6}.nav{display:flex;gap:9px;overflow:auto;padding:20px 0;position:sticky;top:0;background:var(--bg);z-index:3}.chip{white-space:nowrap;border:1px solid #d7dfd8;border-radius:30px;padding:10px 16px;background:#fff;font-size:14px}.chip:hover,.chip:focus{background:var(--ink);color:#fff}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dish{background:var(--card);border:1px solid #e7eae5;border-radius:20px;overflow:hidden;display:flex;flex-direction:column}.dish img{width:100%;aspect-ratio:16/10;object-fit:cover}.dish-content{padding:20px;flex:1;display:flex;flex-direction:column}.dish h3{font-size:19px;margin:0 0 6px}.desc{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 16px}.dish-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px}.price{font-weight:800;font-size:19px}.cta{background:var(--accent);color:#fff;border-radius:10px;padding:11px 14px;font-size:13px;font-weight:700}.sold{background:#f2e4dd;color:#91513a;padding:7px 10px;border-radius:20px;font-size:12px}.placeholder{aspect-ratio:16/10;background:#e7ede6;display:grid;place-items:center;color:#738475;font-size:42px}.footer{margin-top:70px;background:#eaf0e9;padding:35px 0;color:#465c4b}.footer p{margin:7px 0}.empty{padding:26px;background:#fff;border-radius:16px}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:#fff;padding:12px;z-index:10}@media(max-width:650px){.hero{padding:35px 0}.brand-logo{width:64px;height:64px}.grid{grid-template-columns:1fr}.dish img,.placeholder{aspect-ratio:16/9}.dish-content{padding:17px}}

/* v1.1: el logo mantiene proporción y nunca desborda */
.hero .custom-logo-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;max-width:220px}
.hero img.custom-logo,.hero .custom-logo-link img{display:block;width:auto!important;height:auto!important;max-width:220px!important;max-height:90px!important;object-fit:contain!important;border-radius:0!important}
.hero-inner>div:last-child{min-width:0}
@media(max-width:650px){.hero-inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}.hero .custom-logo-link{max-width:180px}.hero img.custom-logo,.hero .custom-logo-link img{max-width:180px!important;max-height:65px!important}.hero h1{font-size:clamp(26px,8vw,42px);letter-spacing:-1px}.hero .subtitle{margin:auto}.dish img{aspect-ratio:4/3;object-fit:cover}}
/* v1.2 — dos encabezados responsive; el logo no se recorta */
.mf-header{background:var(--bg);color:var(--ink);text-align:center}
.mf-banner{height:230px;position:relative;overflow:hidden;background:var(--mf-hero-color)}
.mf-banner-photo{position:absolute;inset:-22px;background-size:cover;background-position:center;filter:blur(var(--mf-hero-blur));transform:scale(1.06)}
.mf-banner-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.28))}
.mf-bubble-logo{position:relative;z-index:2;margin:-64px auto 0;width:128px;height:128px;background:#fff;border:5px solid #fff;border-radius:50%;box-shadow:0 8px 28px #0002;display:flex;align-items:center;justify-content:center;padding:14px}
.mf-bubble-logo .custom-logo-link{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.mf-bubble-logo img.custom-logo{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.mf-rect-logo{position:relative;z-index:2;height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.mf-rect-logo .custom-logo-link{display:flex;align-items:center;justify-content:center;max-width:80%;max-height:100%}
.mf-rect-logo img.custom-logo{display:block;width:auto!important;height:auto!important;max-width:min(480px,80vw)!important;max-height:145px!important;object-fit:contain!important}
.mf-header-copy{padding-top:24px;padding-bottom:32px}
.mf-header--bubble .mf-header-copy{padding-top:18px}
.mf-header-copy h1{font-size:clamp(28px,5vw,48px);margin:8px 0}
.mf-header-copy .subtitle{margin:auto;color:var(--muted);opacity:1}
.mf-header-copy .eyebrow{color:var(--accent);opacity:1}
@media(max-width:650px){.mf-banner{height:170px}.mf-bubble-logo{width:110px;height:110px;margin-top:-55px;padding:11px}.mf-rect-logo img.custom-logo{max-height:100px!important}.mf-header-copy{padding-top:20px;padding-bottom:24px}.mf-header--bubble .mf-header-copy{padding-top:16px}}

/* v1.3 — presentaciones de platillos y logo contenido dentro del círculo */
.dish-photo{width:100%;overflow:hidden;flex-shrink:0}
.dish-photo img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.dish--small{flex-direction:row;align-items:stretch;min-height:155px}
.dish--small .dish-photo{width:38%;max-width:190px;align-self:stretch}
.dish--small .dish-photo img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.dish--small .dish-content{min-width:0;padding:16px}
.dish--small .dish h3{font-size:17px}
.dish--small .dish-bottom{flex-wrap:wrap}
.dish--none{min-height:145px}
.mf-bubble-logo{overflow:hidden;isolation:isolate}
.mf-bubble-logo .custom-logo-link{min-width:0;min-height:0;max-width:100%;max-height:100%;overflow:hidden;border-radius:50%}
.mf-bubble-logo img.custom-logo,.mf-bubble-logo .custom-logo-link img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:0!important}
@media(max-width:650px){.dish--small .dish-photo{width:36%;max-width:155px}.dish--small .dish-content{padding:13px}.dish--small .dish-bottom{gap:7px}.dish--small .cta{padding:8px 10px;font-size:11px}.dish--small .dish-photo img{aspect-ratio:auto}}

/* v1.4: marco fino, logo completo y menos espacio en encabezado */
.mf-bubble-logo{padding:7px!important;border-width:3px!important;width:112px;height:112px;margin-top:-56px;overflow:hidden}
.mf-bubble-logo .custom-logo-link{border-radius:50%;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center}
.mf-bubble-logo img.custom-logo,.mf-bubble-logo .custom-logo-link img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
.mf-header-copy{padding-bottom:14px!important}
.mf-header--bubble .mf-header-copy{padding-top:14px!important}
.mf-header-copy .eyebrow{margin-bottom:4px}
.nav{padding-top:12px;padding-bottom:12px}
@media(max-width:650px){.mf-bubble-logo{width:100px;height:100px;margin-top:-50px;padding:6px!important}.mf-header--bubble .mf-header-copy{padding-top:12px!important;padding-bottom:12px!important}}

/* v1.5 — círculo 2x más grande y borde máximo 2px */
.mf-header--bubble .mf-bubble-logo{
  width:224px;height:224px;margin:-112px auto 0;
  border:2px solid #fff!important;padding:0!important;
  background:#fff;overflow:hidden;border-radius:50%;
}
.mf-header--bubble .mf-bubble-logo .custom-logo-link{
  width:100%;height:100%;max-width:100%;max-height:100%;
  padding:0;margin:0;display:flex;align-items:center;justify-content:center;
  overflow:hidden;border-radius:50%;
}
.mf-header--bubble .mf-bubble-logo img.custom-logo,
.mf-header--bubble .mf-bubble-logo .custom-logo-link img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  border:0!important;border-radius:0!important;
}
@media(max-width:650px){
  .mf-header--bubble .mf-bubble-logo{width:200px;height:200px;margin-top:-100px;}
  .mf-header--bubble .mf-banner{height:205px;}
}

/* v1.7 — logo ajustable; fondo sólo en estilo circular */
.mf-header--bubble .mf-bubble-logo{width:min(var(--mf-bubble-size,224px),90vw)!important;height:min(var(--mf-bubble-size,224px),90vw)!important;margin-top:calc(min(var(--mf-bubble-size,224px),90vw) / -2)!important;background:var(--mf-bubble-bg,#fff)!important;border:2px solid var(--mf-bubble-bg,#fff)!important;}
.mf-header--bubble .mf-bubble-logo .custom-logo-link{background:transparent!important;}
.mf-header--rectangle .mf-rect-logo,.mf-header--rectangle .mf-rect-logo .custom-logo-link{background:transparent!important;border:0!important;box-shadow:none!important;}
.mf-header--rectangle .mf-rect-logo img.custom-logo{max-width:min(var(--mf-rect-logo-size,320px),85vw)!important;width:auto!important;height:auto!important;max-height:170px!important;object-fit:contain!important;}

/* v2.1: modo oscuro exclusivo del menú público; el panel conserva su apariencia */
body.mf-menu-dark{--ink:#f4f5f3;--muted:#b5bdb7;--bg:#151816;--card:#232825;--accent:#85c79b;background:var(--bg);color:var(--ink)}
body.mf-menu-dark .mf-header{background:var(--bg);color:var(--ink)}
body.mf-menu-dark .nav{background:var(--bg)}
body.mf-menu-dark .chip{background:#252c27;color:#f4f5f3;border-color:#424b44}
body.mf-menu-dark .chip:hover,body.mf-menu-dark .chip:focus{background:#d6ebdc;color:#142319}
body.mf-menu-dark .dish{background:var(--card);border-color:#39433c}
body.mf-menu-dark .desc{color:var(--muted)}
body.mf-menu-dark .footer{background:#202721;color:#d3ded5}
body.mf-menu-dark .empty{background:var(--card)}
body.mf-menu-dark .placeholder{background:#313c33;color:#c2d0c5}
body.mf-menu-dark .cta{background:#9bd9ad;color:#102016}
body.mf-menu-dark .sold{background:#49372d;color:#ffd7b9}
body.mf-menu-dark .mf-header-copy .subtitle{color:var(--muted)}
body.mf-menu-dark .mf-header-copy .eyebrow:not([style]){color:#9bd9ad}
body.mf-menu-dark .mf-bubble-logo{background:#fff;color:#19251e}

/* v2.2: el color elegido del eslogan prevalece en modo oscuro */

