:root {
  --red: #0B7A70;   /* turquesa profundo: botones (contraste 5.2 con blanco) */
  --turq: #19C3B1; --lila: #B79CF2; --lila-deep: #7C5CD6; --lila-soft: #F1EBFF; --coral: #FF6B57;
  --red-dark: #095F57;
  --green: #2f6b3a;
  --cream: #EDE5FF;  /* fondo: lila suave de la paleta */
  --turq-soft: #DDF6F2;
  --paper: #ffffff;
  --ink: #1E1636;
  --muted: #625a78;
  --line: #E7E1F2;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(60, 40, 120, .12);
  --serif: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .4em; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(237, 229, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.top .logo img { height: 42px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.cart-btn { text-decoration: none; margin-left: 8px; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 600; }
.cart-btn[hidden] { display: none; }
.cart-btn .count { background: #fff; color: var(--red); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .8rem; padding: 0 6px; }
@media (max-width: 760px) { .top nav { display: none; } .cart-btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #4a2117 0%, #24130d 60%); overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 72px 16px 80px; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-3deg); }
.hero-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.35); background: #3a1d14; }
.hero-photos img:nth-child(2) { margin-top: 36px; }
.hero-photos img:nth-child(3) { margin-top: -36px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding: 48px 16px 40px; } .hero-photos { grid-template-columns: repeat(4, 1fr); transform: none; gap: 8px; } .hero-photos img:nth-child(n) { margin: 0; border-radius: 12px; } }
.hero .eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); max-width: 14ch; margin-top: 18px; }
.hero p { max-width: 46ch; font-size: 1.1rem; color: #f3e6da; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 600; text-decoration: none; transition: transform .1s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: #f3e6da; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px rgba(25,195,177,.3); }
.status-pill.closed i { background: #f0a24a; box-shadow: 0 0 0 4px rgba(240,162,74,.25); }

/* ---------- Strip ---------- */
.strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 16px; }
.strip p { margin: 0; }
.strip div { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.strip b { display: block; }
.strip span { color: var(--muted); }
.strip svg { flex: none; color: var(--red); }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: 1fr; } }

/* ---------- Carta ---------- */
.menu-section { padding: 48px 0 24px; }
.menu-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.menu-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.search { flex: 1 1 260px; max-width: 340px; position: relative; }
.search input { width: 100%; padding: 12px 14px 12px 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: inherit; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cats { position: sticky; top: 64px; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); margin: 16px 0 8px; }
.cats .inner { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.cats .inner::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.cats a.active { background: var(--lila-deep); color: #fff; border-color: var(--lila-deep); }
.cat-block { padding-top: 22px; }
.cat-block h3 { font-size: 1.6rem; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.item { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: left; color: inherit; width: 100%; transition: box-shadow .2s, border-color .2s; }
.item:hover { box-shadow: var(--shadow); border-color: #CDBDF3; }
.item .ph { flex: none; width: 96px; height: 96px; border-radius: 10px; background: var(--lila-soft) center/cover no-repeat; display: grid; place-items: center; color: var(--lila); }
.item .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item .nm { font-weight: 600; }
.item .ds { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .pr { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.item .add { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.empty-search { color: var(--muted); padding: 30px 0; display: none; }

/* ---------- Info ---------- */
.about { padding: 64px 0; }
.about .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about p { color: var(--muted); }
.about .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about .photos img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; background: var(--lila-soft); }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }
.contact { background: var(--ink); color: #f3e6da; padding: 56px 0; }
.contact .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact h3 { color: #fff; font-size: 1.3rem; }
.contact a { color: #fff; }
.contact table { border-collapse: collapse; }
.contact td { padding: 2px 14px 2px 0; vertical-align: top; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
footer { background: #160F29; color: #a8978a; font-size: .85rem; padding: 20px 0; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: #a8978a; }

/* ---------- Drawer / Modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 10, 5, .5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 70; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.show { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 1.4rem; }
.x { background: none; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; color: var(--muted); }
.x:hover { background: var(--cream); }
.drawer .body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer .foot { border-top: 1px solid var(--line); padding: 16px 20px; }
.line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line .q { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 32px; }
.line .q button { background: none; border: 0; width: 30px; height: 30px; font-size: 1.1rem; }
.rm-line { display: block; margin: 6px 0 0 auto; background: none; border: 0; color: #c0265e; font-weight: 600; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 2px 0; }
.line .q span { min-width: 18px; text-align: center; font-weight: 600; }
.line .n { flex: 1; }
.line .n small { display: block; color: var(--muted); }
.sum { display: flex; justify-content: space-between; margin: 4px 0; }
.sum.total { font-weight: 700; font-size: 1.15rem; margin-top: 8px; }
.note { font-size: .85rem; color: var(--muted); }
.warn { background: #fff4e5; border: 1px solid #f3d3a6; color: #7a4a10; border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }
.err { background: #fdecea; border: 1px solid #f5c2bd; color: #8c1c16; border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }

.modal { position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; width: min(520px, calc(100% - 24px)); max-height: calc(100% - 40px); overflow-y: auto; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal .img { height: 220px; background: var(--lila-soft) center/cover no-repeat; border-radius: 18px 18px 0 0; }
.modal .in { padding: 20px; }
.modal .x { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.9); }
.opts { display: grid; gap: 8px; margin: 14px 0; }
.opt { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--red); background: #ECFBF8; }
.opt input { accent-color: var(--red); margin-right: 10px; }
textarea, input[type=text], input[type=tel], input[type=email], select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
textarea { resize: vertical; min-height: 60px; }
label.f { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.addbar { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.addbar .q { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 48px; }
.addbar .q button { background: none; border: 0; width: 44px; height: 44px; font-size: 1.3rem; }
.addbar .q span { min-width: 22px; text-align: center; font-weight: 700; }
.addbar .btn { flex: 1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 4px; margin-bottom: 6px; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pay { display: grid; gap: 8px; }
.done { text-align: center; padding: 30px 10px; }
.done .big { font-family: var(--serif); font-size: 3rem; color: var(--red); }
.legal-check { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; margin-top: 14px; }
.toast { pointer-events: none; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 90; opacity: 0; transition: .2s; font-size: .92rem; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.mobile-cart { display: none; }
@media (max-width: 760px) {
  .mobile-cart { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; justify-content: space-between; }
  .mobile-cart[hidden] { display: none; }
  body { padding-bottom: 72px; }
  .item .ph { width: 84px; height: 84px; }
}
.demo-banner { background: var(--lila-deep); color: #fff; text-align: center; font-size: .85rem; padding: 6px 12px; }
.demo-banner a { color: #fff; font-weight: 600; }

/* ---------- Plataforma ---------- */
.brand { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--turq), var(--lila)); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.home-hero { background: radial-gradient(90% 120% at 100% 0%, #CFF5EF 0%, transparent 60%), radial-gradient(80% 120% at 0% 100%, var(--lila-soft) 0%, var(--cream) 60%); padding: 56px 0 28px; }
.home-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; }
.home-hero p { color: var(--muted); max-width: 52ch; font-size: 1.08rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: .92rem; }
.chip.on { background: var(--lila-deep); color: #fff; border-color: var(--lila-deep); }
.rests { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 18px 0 64px; }
.rest { display: block; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.rest:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.rest .cv { height: 150px; background: linear-gradient(135deg, #D9F7F2, #E6DCFF) center/cover no-repeat; display: grid; place-items: center; font-size: 3.4rem; position: relative; }
.rest .cv .badge { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; }
.rest .cv .badge.off { background: #2b2420; color: #fff; }
.rest.closed .cv { filter: grayscale(.6); opacity: .8; }
.rest .bd { padding: 14px 16px 16px; }
.rest h3 { font-family: var(--sans); font-size: 1.08rem; margin: 0 0 2px; }
.rest .meta { color: var(--muted); font-size: .88rem; display: flex; gap: 10px; flex-wrap: wrap; }
.how { background: var(--turq-soft); border-top: 1px solid var(--line); padding: 48px 0; }
.how .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.how p { color: var(--muted); margin: 0; }
.how .n { width: 34px; height: 34px; border-radius: 50%; background: var(--lila-soft); color: var(--lila-deep); display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 760px) { .how .wrap { grid-template-columns: 1fr; } }
.rest-head { background: transparent; border-bottom: 1px solid #DCCFFA; }
.rest-head .cover { height: 180px; background: linear-gradient(135deg, #D9F7F2, #E6DCFF) center/cover no-repeat; display: grid; place-items: center; font-size: 4rem; }
.rest-head .wrap { padding-top: 18px; padding-bottom: 18px; }
.rest-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.rest-head .meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.back { text-decoration: none; color: var(--muted); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); }
.pill.off i { background: #e3962f; }

.hh { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.hh-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 320px; justify-self: end; }
.hh-art span { aspect-ratio: 1; border-radius: 28px; background: #fff; display: grid; place-items: center; font-size: 3.6rem; box-shadow: var(--shadow); }
.hh-art span:nth-child(odd) { transform: rotate(-4deg); } .hh-art span:nth-child(even) { transform: rotate(3deg) translateY(14px); }
@media (max-width: 760px) { .hh { grid-template-columns: 1fr; } .hh-art { display: none; } }

/* acentos de marca */
.item .add { background: var(--turq); color: var(--ink); font-weight: 700; }
.rest .cv .badge { background: #fff; color: var(--ink); }
.rest .cv .badge.off { background: var(--ink); color: #fff; }
.home-hero h1 span.hl { background: linear-gradient(90deg, var(--turq), var(--lila-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hh-art span:nth-child(1) { background: #D9F7F2; } .hh-art span:nth-child(2) { background: var(--lila-soft); }
.hh-art span:nth-child(3) { background: var(--lila-soft); } .hh-art span:nth-child(4) { background: #D9F7F2; }
.offer { display: inline-block; background: var(--coral); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 2px 8px; font-size: .75rem; }

/* Fondo con la paleta: degradado intenso lila → turquesa */
body { background: linear-gradient(165deg, #A98BFF 0%, #8F6CF5 28%, #6FA6EE 55%, #3FCBD3 80%, #22C3AE 100%) fixed; background-color: #8F6CF5; }
:root { --line: #B9A5F2; --cream: #A98BFF; --muted: #241C3A; }
.top { background: rgba(169, 139, 255, .92); border-bottom-color: rgba(60, 30, 140, .3); }
.home-hero { background: transparent; }
.home-hero p { color: #1E1636; }
.cats { background: rgba(155, 124, 250, .95); border-bottom-color: rgba(60, 30, 140, .3); }
.how { background: rgba(255, 255, 255, .45); }
.rest-head { border-bottom-color: rgba(60, 30, 140, .3); }
footer { background: #1E1636; color: #E9E2FF; padding: 22px 0 26px; font-size: .9rem; box-shadow: 0 60vh 0 60vh #1E1636; }   /* el oscuro llega hasta abajo de la pantalla */
footer a { color: #8FF0E2; font-weight: 600; }
/* "a domicilio" destacado */
.home-hero h1 span.hl { color: #fff; -webkit-text-fill-color: #fff; background: linear-gradient(90deg, #19C3B1, #0B9C8E); -webkit-background-clip: border-box; background-clip: border-box;
  padding: 0 .28em .04em; border-radius: .3em; box-shadow: 0 6px 18px rgba(11, 122, 112, .45); -webkit-box-decoration-break: clone; box-decoration-break: clone; display: inline-block; transform: rotate(-1.5deg); margin-top: .1em; }

/* ---------- Favoritos y "Pide otra vez" (historial de este móvil) ---------- */
.favs { background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; padding: 14px; margin: 16px 0 4px; backdrop-filter: blur(6px); }
.favs-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.favs-hd h3 { margin: 0; font-size: 1.2rem; }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 999px; }
.btn-sm span { font-weight: 500; opacity: .85; margin-left: 4px; font-size: .82rem; }
.favs-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.fav { flex: none; width: 250px; display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: inherit; }
.fav img, .fav i { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; font-style: normal; font-size: 1.6rem; background: var(--lila-soft); }
.fav .fn { flex: 1; min-width: 0; line-height: 1.25; }
.fav .fn b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav .fn small { display: block; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav .add { width: 32px; height: 32px; border-radius: 50%; background: var(--turq); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; flex: none; }
.again { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 6px 0 22px; }
.again .ag { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.again .ag .agt { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.again .ag p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.again .ag .btn { margin-top: 4px; text-align: center; }

/* ---------- Perfil del cliente (registro rápido) ---------- */
.prof-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.75); border-radius: 999px; padding: 5px 12px 5px 5px; font-weight: 700; color: var(--ink); margin-left: auto; margin-right: 8px; box-shadow: 0 2px 10px rgba(30,22,54,.12); }
.prof-btn .av, .prof-head .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #19C3B1, #7C5CD6 60%, #F0379B); color: #fff; font-weight: 800; }
.top .wrap > nav + .prof-btn { margin-left: 12px; }
@media (max-width: 520px) { .prof-btn .tx { display: none; } .prof-btn { padding: 4px; margin-right: 6px; } }
.prof-invite { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.88); border-radius: 18px; padding: 12px 14px; margin-top: 14px; max-width: 520px; box-shadow: 0 10px 30px rgba(30,22,54,.15); }
.prof-invite .pi-ic { font-size: 1.8rem; } .prof-invite .pi-tx { flex: 1; min-width: 0; line-height: 1.3; }
.prof-invite .pi-tx span { display: block; font-size: .85rem; color: var(--muted); }
.prof-invite .btn { white-space: nowrap; padding: 10px 16px; }
.prof-ov { position: fixed; inset: 0; z-index: 90; background: rgba(30,22,54,.55); display: none; align-items: flex-end; justify-content: center; padding: 0; }
.prof-ov.show { display: flex; }
@media (min-width: 640px) { .prof-ov { align-items: center; padding: 16px; } }
.prof-card { position: relative; background: #fff; width: min(460px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); animation: profUp .28s ease; }
@media (min-width: 640px) { .prof-card { border-radius: 26px; } }
@keyframes profUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.prof-x { position: absolute; right: 12px; top: 10px; border: 0; background: #F1EBFF; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.prof-steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.prof-steps span { display: block; flex: none; width: 26px; height: 6px; border-radius: 99px; background: #E6DEFA; transition: .25s; }
.prof-steps span.st-on { width: 44px; background: linear-gradient(90deg, #19C3B1, #7C5CD6); } .prof-steps span.st-done { background: #19C3B1; }
.prof-step { animation: profIn .25s ease; } @keyframes profIn { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.prof-step.shake { animation: profShake .3s; } @keyframes profShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.prof-em { font-size: 2.6rem; text-align: center; } .prof-em.pop { animation: profPop .5s ease; } @keyframes profPop { 0% { transform: scale(.3); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.prof-card h2 { text-align: center; font-size: 1.45rem; margin: 6px 0 6px; }
.prof-card .note { text-align: center; }
.prof-in { display: block; width: 100%; font: inherit; font-size: 1.08rem; padding: 14px 16px; border: 2px solid #E6DEFA; border-radius: 14px; margin-top: 10px; background: #FBFAFF; }
.prof-in:focus { outline: none; border-color: #7C5CD6; background: #fff; box-shadow: 0 0 0 4px rgba(124,92,214,.15); }
.prof-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.prof-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.prof-chips button, .addr-chips button { border: 2px solid #E6DEFA; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .92rem; }
.prof-chips button.on, .addr-chips button.on { border-color: #7C5CD6; background: #F1EBFF; color: #4b2fb0; }
.prof-err { color: #b3261e; text-align: center; min-height: 1.2em; margin: 8px 0 0; font-weight: 600; font-size: .92rem; }
.prof-acts { display: flex; gap: 8px; margin-top: 10px; } .prof-acts .btn-red { flex: 1; }
.prof-skip { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .88rem; }
.prof-done { text-align: center; } .prof-done p { margin: 8px 0; }
.prof-addr-mini { background: #F1EBFF; border-radius: 12px; padding: 10px; margin: 10px 0; }
.prof-head { display: flex; gap: 12px; align-items: center; padding-right: 30px; } .prof-head h2 { text-align: left; margin: 0; } .prof-head .av.big { width: 52px; height: 52px; font-size: 1.4rem; }
.prof-link { margin-left: auto; background: none; border: 0; color: #4b2fb0; font-weight: 700; }
.prof-h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.prof-addr { display: flex; gap: 10px; align-items: center; border: 2px solid #EEE8FB; border-radius: 14px; padding: 10px; margin-top: 8px; }
.prof-addr.def { border-color: #19C3B1; background: #F2FCFA; }
.prof-addr .ic { font-size: 1.4rem; } .prof-addr .t { flex: 1; min-width: 0; font-size: .92rem; } .prof-addr .t span { color: var(--muted); }
.prof-addr .b { display: flex; gap: 4px; } .prof-addr .b button { border: 0; background: #F6F3FC; border-radius: 8px; width: 32px; height: 32px; }
.tag-def { background: #19C3B1; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700; }
.prof-l { display: block; font-weight: 600; font-size: .88rem; margin-top: 10px; }
.addr-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.addr-reg { display: block; width: 100%; text-align: left; border: 2px dashed #CDBDF5; background: #F7F3FF; border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; font-weight: 600; color: #4b2fb0; font-size: .9rem; }
.prof-btn + .cart-btn { margin-left: 0; }
@media (max-width: 760px) { .top .wrap > nav + .prof-btn { margin-left: auto; } }

.surch { background: #1E1636; color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; }

/* Trabaja con nosotros / Partners */
.join { background: linear-gradient(135deg, #19C3B1 0%, #7C5CD6 60%, #F0379B 100%); padding: 34px 0; }
.join-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.join-c { background: rgba(255,255,255,.96); border-radius: 20px; padding: 20px; box-shadow: 0 10px 30px rgba(30,22,54,.18); }
.join-c .ic { font-size: 2rem; } .join-c h3 { margin: 6px 0; font-size: 1.25rem; color: #1E1636; } .join-c p { margin: 0 0 14px; color: #3d3557; }
.join-ov { position: fixed; inset: 0; background: rgba(30,22,54,.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.join-ov[hidden] { display: none; }
.join-f { position: relative; background: #fff; border-radius: 20px; padding: 22px; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; }
.join-f h2 { margin: 0 0 6px; } .join-f label { display: block; font-weight: 600; font-size: .9rem; margin-top: 10px; color: #1E1636; }
.join-f input:not([type=checkbox]), .join-f textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1.5px solid #d9cff7; border-radius: 10px; font: inherit; }
.join-f .chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .85rem; } .join-f .chk input { margin-top: 3px; }
.join-f .x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.join-f .err { color: #c0265e; font-weight: 600; min-height: 1em; }
.join-f .btn { margin-top: 12px; }

/* ---------- Logo en la cabecera ---------- */
.brand img { display: block; height: 40px; width: auto; }
@media (max-width: 520px) { .brand img { height: 34px; } }

/* ---------- Portada: tarjeta flotante "Tu pedido va en camino" sobre los cuadros de comida ---------- */
.hh-wrap { position: relative; justify-self: end; padding: 0 0 84px 80px; }
.hh-wrap .hh-art { justify-self: auto; }
.ha-card { position: absolute; left: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.97); border-radius: 18px; padding: 10px 16px 10px 10px; box-shadow: 0 18px 40px -14px rgba(30,22,54,.5); animation: haFloat 5s ease-in-out infinite; }
.ha-card > img { width: 46px; height: auto; flex: none; }
.ha-card b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.ha-card small { display: block; font-size: .78rem; color: #5b5375; margin-top: 2px; }
.ha-bar { display: block; width: 150px; height: 6px; border-radius: 99px; background: #EEE8FB; margin-top: 7px; overflow: hidden; }
.ha-bar > i { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, #19C3B1, #7C5CD6 60%, #F0379B); animation: haBar 3.2s ease-in-out infinite alternate; }
@keyframes haFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes haBar { from { width: 52%; } to { width: 82%; } }
@media (prefers-reduced-motion: reduce) { .ha-card, .ha-bar > i { animation: none; } }
@media (max-width: 760px) { .hh-wrap { display: none; } }

/* ---------- Zona del cliente en la portada ---------- */
.zonepick { margin: 4px 0 10px; }
.zonepick label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; max-width: 100%; background: rgba(255,255,255,.88); border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 700; box-shadow: 0 6px 18px -8px rgba(30,22,54,.35); }
.zonepick select { min-width: 0; max-width: 62vw; border: 0; background: #F1EBFF; border-radius: 999px; padding: 7px 10px; font: inherit; font-weight: 600; color: var(--ink); }
.nozone-h { grid-column: 1 / -1; margin: 10px 0 -4px; font-weight: 700; color: #1E1636; background: rgba(255,255,255,.55); border-radius: 12px; padding: 10px 14px; }
.rest.nozone { opacity: .62; filter: grayscale(.5); }
.rest.nozone:hover { opacity: .9; }
.zone-warn { margin: 12px 0 0; background: #FFF4D6; border: 1px solid #F2D27A; color: #4a3500; border-radius: 14px; padding: 10px 14px; font-size: .95rem; }
.zone-warn a { color: #4b2fb0; font-weight: 700; }
.prof-btn img.av.ph, .prof-head img.av.ph { object-fit: cover; padding: 0; background: #eee; }
.prof-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 4px; }
.prof-photo .note { flex-basis: 100%; font-size: .8rem; margin: 0; }
.prof-photo .pp-t { flex-basis: 100%; font-size: .95rem; }
