/* App del usuario: diseñada para celular, centrada en pantallas grandes. */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; background: var(--fondo); position: relative; }
@media (min-width: 600px) { body { background: #EEEBF6; } .app { box-shadow: 0 0 0 1px var(--linea), var(--sombra); } }
.cab { padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cab .marca { display: flex; align-items: center; gap: 10px; }
.cab .marca strong { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.ciudad-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 0 12px; min-height: 38px; font-weight: 700; font-size: 14px; max-width: 60vw; }
.ciudad-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ciudad-btn svg { color: var(--kiubo); flex-shrink: 0; }
.sec { padding: 20px 18px 0; display: flex; flex-direction: column; gap: 12px; }
.sec-tit { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec-tit h2 { font-size: 19px; font-weight: 800; }
.hero { border-radius: 26px; padding: 20px; background: var(--kiubo); color: #fff; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--sol); opacity: .95; }
.hero h1 { font-size: 26px; font-weight: 800; position: relative; z-index: 1; max-width: 85%; }
.buscador { display: flex; flex-direction: row; align-items: center; gap: 10px; background: var(--blanco); color: var(--tenue); border-radius: 16px; padding: 0 14px; position: relative; z-index: 1; }
.buscador input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px 0; min-height: 0; }
.tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.tipos button { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 14px; min-height: 44px; font-weight: 700; font-size: 13px; padding: 0 4px; }
.tipos button[aria-pressed="true"] { background: #fff; color: var(--kiubo-osc); border-color: #fff; }
.tarjeta-neg { display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--tinta); }
.tarjeta-neg .portada { height: 130px; background: var(--kiubo-claro); position: relative; display: grid; place-items: center; }
.tarjeta-neg .portada img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-neg .portada .etqs { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tarjeta-neg .portada .logo-m { position: absolute; left: 12px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; border: 3px solid #fff; background: var(--kiubo-claro); overflow: hidden; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: var(--kiubo-osc); }
.tarjeta-neg .portada .logo-m img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-neg .info { padding: 28px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.tarjeta-neg .info strong { font-size: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--suave); align-items: center; }
.meta .ab { color: var(--menta); font-weight: 700; } .meta .ce { color: var(--coral); font-weight: 600; }
.fila-x { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.fila-x::-webkit-scrollbar { display: none; }
.fila-x > * { flex: 0 0 240px; }
.ruta-card { background: var(--sol); color: var(--tinta); border-radius: 20px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.ruta-card b { font-family: var(--f-display); font-size: 18px; }

/* barra inferior */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(540px, calc(100% - 20px)); height: 66px; background: rgba(255,255,255,.97); border: 1px solid var(--linea); border-radius: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; box-shadow: 0 14px 34px rgba(40,20,90,.16); z-index: 30; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--tenue); text-decoration: none; min-height: 50px; justify-content: center; }
.nav a[aria-current="page"] { color: var(--kiubo); font-weight: 800; }

/* micrositio */
.micro { --marca: var(--marca-neg); background: var(--blanco); min-height: 100vh; padding-bottom: 110px; }
.micro .cover { height: 240px; background: var(--marca); position: relative; overflow: hidden; }
.micro .cover img { width: 100%; height: 100%; object-fit: cover; }
.flotar { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 2; }
.micro .cuerpo { background: var(--blanco); border-radius: 26px 26px 0 0; margin-top: -26px; position: relative; padding: 0 18px; display: flex; flex-direction: column; gap: 10px; }
.micro .logo-g { width: 96px; height: 96px; border-radius: 28px; background: var(--marca); color: #fff; border: 5px solid #fff; box-shadow: var(--sombra); margin-top: -48px; overflow: hidden; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 30px; }
.micro .logo-g img { width: 100%; height: 100%; object-fit: cover; }
.micro h1 { font-size: 27px; font-weight: 800; }
.datos4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--linea); border-radius: 16px; }
.datos4 div { padding: 10px 4px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.datos4 div + div { border-left: 1px solid var(--linea); }
.datos4 b { font-size: 15px; } .datos4 small { font-size: 11px; color: var(--suave); }
.acciones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acciones a, .acciones button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--linea); background: var(--blanco); color: var(--tinta); text-decoration: none; font-size: 12px; font-weight: 700; }
.acciones svg { color: var(--marca); }
.btn.marca { background: var(--marca); border-color: var(--marca); color: #fff; }
.secciones { position: sticky; top: 0; z-index: 5; background: var(--blanco); margin: 0 -18px; padding: 8px 18px; border-bottom: 1px solid var(--linea); }
.productos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prod { border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--blanco); }
.prod.en { border: 2px solid var(--marca); }
.prod .foto { aspect-ratio: 4 / 3; background: #F3F1F8; display: grid; place-items: center; color: var(--tenue); }
.prod .foto img { width: 100%; height: 100%; object-fit: cover; }
.prod .inf { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.prod .inf b { font-size: 14px; line-height: 1.2; }
.prod .inf .desc { font-size: 12px; color: var(--suave); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .pie { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; gap: 6px; }
.paso { display: flex; align-items: center; background: var(--marca); color: #fff; border-radius: 16px; height: 36px; }
.paso button { width: 32px; height: 36px; border: 0; background: none; color: #fff; font-size: 18px; padding: 0; }
.mas { width: 36px; height: 36px; border-radius: 18px; border: 1.5px solid var(--marca); background: #fff; color: var(--marca); font-size: 20px; padding: 0; flex-shrink: 0; }
.mas:disabled { opacity: .4; }
.historia { background: #16131F; color: #EFEDF5; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.horario-t { border: 1px solid var(--linea); border-radius: 16px; font-size: 14px; }
.horario-t div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; }
.horario-t div + div { border-top: 1px solid var(--linea); }
.horario-t .hoy { background: var(--kiubo-claro); font-weight: 700; }
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.galeria button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #F3F1F8; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.barra-pedido { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(540px, calc(100% - 20px)); z-index: 31; }
.barra-pedido button { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--tinta); color: #fff; border: 0; border-radius: 20px; min-height: 62px; padding: 0 10px 0 14px; box-shadow: 0 14px 30px rgba(22,19,31,.3); text-align: left; }
.barra-pedido .n { width: 30px; height: 30px; border-radius: 10px; background: var(--sol); color: var(--tinta); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.barra-pedido .t { background: rgba(255,255,255,.12); border-radius: 12px; padding: 9px 11px; font-weight: 700; }

/* hoja inferior */
.velo { position: fixed; inset: 0; background: rgba(22,19,31,.5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.hoja { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.hoja .asa { width: 42px; height: 5px; border-radius: 3px; background: var(--linea2); align-self: center; }
.burbuja { align-self: flex-end; max-width: 94%; background: #D7F4CF; color: #1A2A1F; border-radius: 14px 14px 4px 14px; padding: 10px 12px; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.chat { background: #EAE3D8; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; }
.visor { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 70; display: grid; place-items: center; padding: 16px; }
.visor img { max-height: 90vh; border-radius: 12px; }

/* perfil */
.pasaporte { background: var(--sol-claro); color: var(--sol-tinta); border: 1px solid #F5E2A8; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sellos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; justify-items: center; }
.sello { width: 68px; height: 68px; border-radius: 34px; border: 2.5px solid var(--kiubo); color: var(--kiubo); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 9px; letter-spacing: .03em; padding: 6px; text-transform: uppercase; }
.sello.vacio { border-style: dashed; border-color: rgba(90,67,0,.3); color: rgba(90,67,0,.5); font-size: 18px; }
