:root{
  --navy:#071527;
  --navy-2:#0c2038;
  --navy-3:#102944;
  --gold:#f7b928;
  --gold-2:#ffd66b;
  --text:#0d1b2d;
  --muted:#64748b;
  --soft:#f5f7fb;
  --line:#e5ebf4;
  --card:#ffffff;
  --green:#16a34a;
  --danger:#ef4444;
  --shadow:0 24px 70px rgba(7,21,39,.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(180deg,#eef3f9 0,#fff 38%,#f6f8fc 100%);color:var(--text)}
a{color:inherit;text-decoration:none}.app{min-height:100vh;overflow-x:hidden}.loading-screen,.error-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 30% 0,#193c64 0,#071527 52%,#030812 100%);color:#fff;text-align:center}.loader-card,.error-box{width:min(520px,100%);border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:30px;padding:34px;box-shadow:0 30px 90px rgba(0,0,0,.32);backdrop-filter:blur(12px)}.loader-mark{width:68px;height:68px;border-radius:22px;margin:0 auto 18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#071527;font-weight:950;box-shadow:0 22px 80px rgba(247,185,40,.35)}.loading-screen h1,.error-screen h1{margin:0 0 10px;font-size:30px}.loading-screen p,.error-screen p{margin:0;color:#c8d5e6;line-height:1.6}.hero{position:relative;min-height:610px;color:#fff;background:#071527;overflow:hidden}.hero-bg{position:absolute;inset:0;background:linear-gradient(120deg,rgba(7,21,39,.98),rgba(7,21,39,.76) 48%,rgba(7,21,39,.2)),var(--cover-url);background-size:cover;background-position:center;transform:scale(1.04)}.hero-layer{position:absolute;inset:0;background:radial-gradient(circle at 18% 22%,rgba(247,185,40,.28),transparent 30%),radial-gradient(circle at 75% 15%,rgba(255,214,107,.16),transparent 24%),linear-gradient(180deg,rgba(7,21,39,0) 58%,#eef3f9 100%)}.topbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:22px clamp(18px,5vw,80px)}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-logo{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.18);font-weight:950;color:#ffe7a4;overflow:hidden;backdrop-filter:blur(12px)}.brand-logo.has-image{background:#fff}.brand-logo img{width:100%;height:100%;object-fit:cover}.brand-text{min-width:0}.brand strong{display:block;max-width:58vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px}.brand span{display:block;margin-top:2px;color:#d4deec;font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:850}.prime-badge{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(247,185,40,.45);background:rgba(247,185,40,.14);font-weight:950;color:#ffe6a2;backdrop-filter:blur(12px)}.hero-content{position:relative;z-index:2;width:min(860px,100%);padding:82px clamp(18px,5vw,80px) 150px}.eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(247,185,40,.38);background:rgba(247,185,40,.13);border-radius:999px;padding:8px 13px;color:#ffe2a0;font-size:13px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.hero h1{margin:22px 0 18px;font-size:clamp(44px,8.4vw,96px);line-height:.9;letter-spacing:-.07em}.hero p{max-width:650px;margin:0;color:#e7eef8;font-size:19px;line-height:1.65}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:16px;padding:0 18px;font-weight:950}.btn.primary{background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#071527;box-shadow:0 18px 44px rgba(247,185,40,.25)}.btn.ghost{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;backdrop-filter:blur(12px)}.hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.hero-meta span{padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#f2f7ff;font-weight:800;font-size:14px}.main{position:relative;z-index:3;margin-top:-82px;padding:0 clamp(15px,5vw,80px) 42px}.summary-card{width:min(1080px,100%);margin:0 auto 18px;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#dfe7f2;border:1px solid #dfe7f2;border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}.summary-card>div{background:#fff;padding:20px}.summary-card small{display:block;color:#7b8798;text-transform:uppercase;font-weight:950;letter-spacing:.08em;font-size:12px}.summary-card strong{display:block;margin-top:5px;color:#071527;font-size:24px}.notice-card,.tools-panel,.featured-section,.menu-content,.footer-card{width:min(1080px,100%);margin-left:auto;margin-right:auto}.notice-card{display:flex;gap:15px;align-items:flex-start;border:1px solid rgba(247,185,40,.42);border-radius:26px;background:linear-gradient(135deg,#fff9e9,#fff);padding:20px;margin-bottom:16px;box-shadow:0 18px 50px rgba(7,21,39,.08)}.notice-icon{width:46px;height:46px;border-radius:16px;background:#071527;color:#fff;display:grid;place-items:center;flex:0 0 auto}.notice-card strong{font-size:17px}.notice-card p{margin:5px 0 0;color:#637083;line-height:1.5}.tools-panel{position:relative;margin-bottom:18px}.search-box{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:22px;padding:10px 10px 10px 16px;box-shadow:0 16px 42px rgba(7,21,39,.08)}.search-box span{font-size:24px;color:#a77000}.search-box input{flex:1;border:0;outline:0;font:inherit;font-weight:750;color:#071527;min-height:40px;background:transparent}.search-box button{border:0;border-radius:14px;background:#edf2f8;padding:10px 13px;font-weight:900;color:#071527}.section-title{margin:28px 0 16px}.section-title span{color:#a66d00;text-transform:uppercase;letter-spacing:.08em;font-weight:950;font-size:13px}.section-title h2{margin:4px 0 0;font-size:30px;letter-spacing:-.04em;color:#071527}.featured-scroll{display:flex;gap:15px;overflow:auto;padding:4px 2px 14px;scroll-snap-type:x mandatory;scrollbar-width:none}.featured-scroll::-webkit-scrollbar{display:none}.featured-card{min-width:300px;max-width:340px;background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 18px 52px rgba(7,21,39,.10);scroll-snap-align:start}.featured-img{height:170px;display:grid;place-items:center;background:linear-gradient(135deg,#e8eef7,#fff1c9);font-size:62px;overflow:hidden}.featured-img img{width:100%;height:100%;object-fit:cover}.featured-body{padding:17px}.featured-body h3{margin:0 0 7px;font-size:20px;color:#071527}.featured-body p{margin:0;color:#667386;line-height:1.45;font-size:14px}.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.tag{display:inline-flex;align-items:center;border:1px solid #dfe7f1;background:#f8fafc;color:#415064;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}.tag.featured{border-color:rgba(247,185,40,.4);background:#fff7df;color:#9a6200}.category-sticky{position:sticky;top:0;z-index:10;margin:16px calc(clamp(15px,5vw,80px) * -1) 8px;padding:12px clamp(15px,5vw,80px);background:rgba(245,247,251,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(226,232,240,.78)}.category-nav{width:min(1080px,100%);margin:0 auto;display:flex;gap:10px;overflow:auto;scrollbar-width:none}.category-nav::-webkit-scrollbar{display:none}.cat-chip{border:1px solid #dce6f2;background:#fff;border-radius:999px;padding:11px 14px;color:#26364a;font-weight:950;white-space:nowrap;box-shadow:0 8px 22px rgba(7,21,39,.06);cursor:pointer}.cat-chip.active{border-color:rgba(247,185,40,.6);background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#071527}.category-block{scroll-margin-top:92px;margin:28px 0}.category-header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}.category-header h2{margin:0;font-size:28px;letter-spacing:-.04em;color:#071527}.category-header span{color:#738198;font-weight:900}.products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-card{display:grid;grid-template-columns:138px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:0 12px 34px rgba(7,21,39,.07)}.product-media{min-height:138px;background:linear-gradient(135deg,#eaf0f7,#fff2ca);display:grid;place-items:center;font-size:48px;overflow:hidden}.product-media img{width:100%;height:100%;object-fit:cover}.product-info{padding:16px;min-width:0}.product-top{display:flex;justify-content:space-between;gap:12px}.product-card h3{margin:0 0 6px;font-size:18px;color:#071527}.product-card p{margin:0;color:#64748b;line-height:1.45;font-size:14px}.price{flex:0 0 auto;font-size:18px;font-weight:950;color:#a66d00;background:#fff7de;border:1px solid rgba(247,185,40,.38);border-radius:14px;padding:8px 10px;height:max-content}.empty-state,.no-results{background:#fff;border:1px solid var(--line);border-radius:28px;padding:34px;text-align:center;box-shadow:0 16px 45px rgba(7,21,39,.08)}.empty-state h2,.no-results h3{margin:0 0 8px;color:#071527}.empty-state p,.no-results p{margin:0;color:#64748b}.is-hidden-by-search{display:none!important}.footer-card{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:34px;padding:22px;border-radius:24px;background:#071527;color:#fff}.footer-card span{color:#c8d5e6}.float-top{position:fixed;right:16px;bottom:16px;width:46px;height:46px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#071527;font-weight:950;box-shadow:0 18px 45px rgba(7,21,39,.28);z-index:30}
@media (max-width:760px){.hero{min-height:600px}.topbar{padding:16px}.brand-logo{width:48px;height:48px;border-radius:16px}.brand strong{font-size:17px}.prime-badge{height:36px;padding:0 12px}.hero-content{padding:62px 16px 135px}.hero h1{font-size:50px}.hero p{font-size:16px}.hero-actions .btn{flex:1}.main{margin-top:-72px;padding:0 12px 28px}.summary-card{grid-template-columns:1fr 1fr 1fr;border-radius:22px}.summary-card>div{padding:14px}.summary-card strong{font-size:20px}.notice-card{border-radius:22px;padding:16px}.category-sticky{margin-left:-12px;margin-right:-12px;padding:10px 12px}.products-grid{grid-template-columns:1fr}.product-card{grid-template-columns:108px minmax(0,1fr);border-radius:22px}.product-media{min-height:128px;font-size:38px}.product-info{padding:13px}.product-top{display:block}.price{display:inline-flex;margin-top:10px}.featured-card{min-width:272px}.footer-card{display:block;text-align:center}.footer-card span{display:block;margin-top:5px}}
@media (max-width:430px){.summary-card{grid-template-columns:1fr}.product-card{grid-template-columns:1fr}.product-media{height:180px}.hero h1{font-size:44px}.hero-meta span{width:100%}.search-box{border-radius:18px}.search-box input{font-size:14px}.category-header{display:block}.category-header span{display:block;margin-top:4px}.featured-card{min-width:255px}}


/* PrimeRest Carta V2 - cabecera logo flotante */
.hero{min-height:560px;display:grid;align-items:center;}
.hero-content-clean{width:min(760px,100%);margin:0 auto;text-align:center;padding:96px 22px 168px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.restaurant-logo-large{width:min(760px,88vw);min-height:0;border-radius:0;display:grid;place-items:center;padding:0;background:transparent!important;border:0!important;box-shadow:none!important;color:#fff;font-size:64px;font-weight:950;letter-spacing:-.05em;overflow:visible;backdrop-filter:none!important;text-shadow:0 8px 34px rgba(0,0,0,.55);}
.restaurant-logo-large.has-image{background:transparent!important;}
.restaurant-logo-large img{max-width:100%;max-height:370px;width:auto;height:auto;object-fit:contain;display:block;filter:drop-shadow(0 12px 30px rgba(0,0,0,.42)) drop-shadow(0 1px 0 rgba(255,255,255,.18));}
.restaurant-description{max-width:820px;margin:64px auto 0;color:rgba(255,255,255,.92);font-size:clamp(17px,2.05vw,22px);font-weight:400;line-height:1.55;text-shadow:0 3px 24px rgba(0,0,0,.62);}
.restaurant-description::after{content:"";display:block;width:120px;height:1px;margin:22px auto 0;background:linear-gradient(90deg,transparent,rgba(247,185,40,.85),transparent);}
.restaurant-description[hidden]{display:none!important;}
.restaurant-description[hidden]::after{display:none!important;}
.main{margin-top:-54px;}
.tools-panel{margin-top:0;margin-bottom:20px;}
.footer-card{background:#fff;color:#071527;border:1px solid var(--line);box-shadow:0 12px 34px rgba(7,21,39,.07);}
.footer-card span{color:#64748b;}
@media (max-width:760px){.hero{min-height:500px}.hero-content-clean{padding:78px 16px 118px}.restaurant-logo-large{width:min(500px,88vw)}.restaurant-logo-large img{max-height:260px}.restaurant-description{font-size:16px;margin-top:42px}.main{margin-top:-42px}}
@media (max-width:430px){.hero{min-height:460px}.restaurant-logo-large{width:min(360px,88vw)}.restaurant-logo-large img{max-height:210px}.restaurant-description{font-size:15px;margin-top:34px}}


/* Alérgenos Carta Digital */
.allergen-icons{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;align-items:center;}
.allergen-icon{width:31px;height:31px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid rgba(7,21,39,.08);box-shadow:0 7px 18px rgba(7,21,39,.10);overflow:hidden;}
.allergen-icon img{width:100%;height:100%;object-fit:contain;display:block;}
.featured-card .allergen-icons{margin-top:12px;}
.featured-card .allergen-icon{width:29px;height:29px;}
.product-card .tags{align-items:center;}
.product-card .tags .allergen-icons{margin-top:0;}
@media(max-width:430px){.allergen-icon{width:29px;height:29px}.featured-card .allergen-icon{width:27px;height:27px}}


/* Botón fijo y modal de leyenda de alérgenos */
.allergen-help-btn{
  position:fixed;
  right:16px;
  bottom:76px;
  z-index:32;
  height:44px;
  border:1px solid rgba(7,21,39,.10);
  border-radius:999px;
  padding:0 16px;
  background:rgba(255,255,255,.92);
  color:#071527;
  font-weight:950;
  font-size:14px;
  box-shadow:0 16px 44px rgba(7,21,39,.18);
  backdrop-filter:blur(14px);
  cursor:pointer;
}
.allergen-help-btn:hover{transform:translateY(-1px);box-shadow:0 20px 52px rgba(7,21,39,.22)}
.allergen-modal[hidden]{display:none!important}
.allergen-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:18px}
.allergen-modal-backdrop{position:absolute;inset:0;background:rgba(3,8,18,.64);backdrop-filter:blur(10px)}
.allergen-modal-card{
  position:relative;
  width:min(720px,100%);
  max-height:min(82vh,760px);
  overflow:auto;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 34px 100px rgba(0,0,0,.34);
  padding:28px;
  animation:allergenModalIn .18s ease-out;
}
@keyframes allergenModalIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.allergen-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#fff;
  color:#071527;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(7,21,39,.08);
}
.allergen-modal-head{padding-right:48px;margin-bottom:20px}
.allergen-modal-kicker{display:inline-flex;align-items:center;border-radius:999px;background:#fff7df;border:1px solid rgba(247,185,40,.38);color:#9a6200;padding:7px 10px;font-size:12px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.allergen-modal-head h2{margin:14px 0 7px;font-size:30px;line-height:1;letter-spacing:-.04em;color:#071527}
.allergen-modal-head p{margin:0;color:#64748b;line-height:1.5}
.allergen-legend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.allergen-legend-item{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e5ebf4;background:#fff;border-radius:18px;box-shadow:0 8px 24px rgba(7,21,39,.05)}
.allergen-legend-item img{width:34px;height:34px;object-fit:contain;flex:0 0 auto}
.allergen-legend-item span{font-weight:900;color:#102944}
@media(max-width:760px){.allergen-help-btn{right:12px;bottom:72px;height:42px;padding:0 14px}.allergen-modal{padding:12px;align-items:end}.allergen-modal-card{border-radius:26px;padding:22px;max-height:86vh}.allergen-modal-head h2{font-size:26px}.allergen-legend-grid{grid-template-columns:1fr}.allergen-legend-item{padding:11px}}


/* Características del plato */
.dish-badges{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 10px;align-items:center;}
.dish-badge{height:25px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:0 10px 0 7px;font-size:10.5px;font-weight:950;letter-spacing:.065em;text-transform:uppercase;color:#fff;box-shadow:0 7px 18px rgba(7,21,39,.12);line-height:1;}
.dish-badge img{width:16px;height:16px;display:block;object-fit:contain;}
.dish-badge--new{background:#12385f;}
.dish-badge--spicy{background:#6b1f1f;}
.dish-badge--vegetarian{background:#355c2f;}
.dish-badge--vegan{background:#1f6a48;}
.featured-body .dish-badges{margin-top:12px;margin-bottom:8px;}
.product-card .dish-badges{margin-top:2px;margin-bottom:8px;}
@media(max-width:430px){.dish-badge{height:24px;font-size:10px}.dish-badge img{width:15px;height:15px}}

/* Selector de idiomas Carta Digital */
.language-selector{position:fixed;right:16px;bottom:130px;z-index:34;}
.language-help-btn{height:44px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(7,21,39,.10);border-radius:999px;padding:0 14px;background:rgba(255,255,255,.94);color:#071527;font-weight:950;font-size:14px;box-shadow:0 16px 44px rgba(7,21,39,.18);backdrop-filter:blur(14px);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease;}
.language-help-btn:hover,.language-selector.is-open .language-help-btn{transform:translateY(-1px);box-shadow:0 20px 52px rgba(7,21,39,.22)}
.language-help-btn img{width:25px;height:25px;border-radius:999px;object-fit:cover;box-shadow:0 0 0 1px rgba(7,21,39,.10);background:#fff;}
.language-help-btn span{letter-spacing:.04em;}
.language-menu{position:absolute;right:0;bottom:54px;width:238px;border:1px solid rgba(226,232,240,.92);border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 24px 70px rgba(7,21,39,.24);padding:8px;backdrop-filter:blur(16px);animation:languageMenuIn .16s ease-out;}
.language-menu[hidden]{display:none!important;}
@keyframes languageMenuIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.language-option{width:100%;min-height:46px;display:grid;grid-template-columns:31px 42px minmax(0,1fr);align-items:center;gap:8px;border:0;border-radius:16px;background:transparent;color:#102944;text-align:left;padding:7px 10px;cursor:pointer;}
.language-option:hover,.language-option.active{background:#fff7df;}
.language-option img{width:31px;height:31px;border-radius:999px;object-fit:cover;box-shadow:0 0 0 1px rgba(7,21,39,.10);background:#fff;}
.language-option span{font-weight:950;color:#a66d00;letter-spacing:.04em;}
.language-option strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#071527;}
.language-option.active::after{content:'✓';position:absolute;right:18px;color:#a66d00;font-weight:950;}
.language-option{position:relative;}
@media(max-width:760px){.language-selector{right:12px;bottom:122px}.language-help-btn{height:42px;padding:0 13px}.language-menu{bottom:52px;width:min(238px,calc(100vw - 24px));}}
