/* =========================================================================
   Mi Actividad ProFondo — Estilos del front-end
   Paleta cálida y solidaria · Mobile-first · Botones grandes
   ========================================================================= */

:root {
	--mapf-teal:    #0f766e;
	--mapf-teal-2:  #14b8a6;
	--mapf-coral:   #fb7185;
	--mapf-coral-2: #f97316;
	--mapf-green:   #16a34a;
	--mapf-ink:     #1f2937;
	--mapf-ink-soft:#475569;
	--mapf-muted:   #6b7280;
	--mapf-line:    #e5e7eb;
	--mapf-bg:      #f6f8fa;
	--mapf-card:    #ffffff;
	--mapf-soft:    #f1f5f9;
	--mapf-warn:    #f59e0b;
	--mapf-danger:  #dc2626;
	--mapf-radius:  16px;
	--mapf-radius-lg: 22px;
	--mapf-shadow:  0 6px 24px rgba(15, 23, 42, .08);
	--mapf-shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);

	/* Colores de la actividad/plantilla (la landing los sobreescribe en línea). */
	--mapf-c1: var(--mapf-teal);
	--mapf-c2: var(--mapf-teal-2);
	--mapf-c3: var(--mapf-coral-2);

	--mapf-font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mapf-display: "Poppins", var(--mapf-font);
}

/* ---------- Contenedor general ---------- */
.mapf-wrap {
	font-family: var(--mapf-font);
	color: var(--mapf-ink);
	max-width: 1080px;
	margin: 0 auto;
	padding: 18px 16px 64px;
	line-height: 1.55;
}
.mapf-wrap *, .mapf-landing * { box-sizing: border-box; }
.mapf-wrap h1, .mapf-wrap h2, .mapf-wrap h3,
.mapf-landing h1, .mapf-landing h2, .mapf-landing h3 {
	font-family: var(--mapf-display);
	line-height: 1.2;
	color: var(--mapf-ink);
	margin: 0 0 .4em;
}
.mapf-wrap a { color: var(--mapf-teal); }
.mapf-narrow { max-width: 560px; }

/* ---------- Botones ---------- */
.mapf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--mapf-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	padding: 14px 22px;
	border-radius: 14px;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	transition: transform .08s ease, box-shadow .15s ease, background .15s ease, opacity .15s;
	background: var(--mapf-soft);
	color: var(--mapf-ink);
}
.mapf-btn:hover { transform: translateY(-1px); }
.mapf-btn:active { transform: translateY(0); }
.mapf-btn[disabled], .mapf-btn.is-loading { opacity: .6; pointer-events: none; }

.mapf-btn-primary {
	background: linear-gradient(135deg, var(--mapf-c1), var(--mapf-c2));
	color: #fff;
	box-shadow: 0 8px 20px rgba(15, 118, 110, .25);
}
.mapf-btn-accent {
	background: linear-gradient(135deg, var(--mapf-coral), var(--mapf-coral-2));
	color: #fff;
	box-shadow: 0 8px 20px rgba(251, 113, 133, .28);
}
.mapf-btn-wa { background: #25d366; color: #fff; }
.mapf-btn-soft { background: var(--mapf-soft); color: var(--mapf-ink-soft); font-size: 14px; padding: 10px 16px; }
.mapf-btn-ghost { background: transparent; border: 2px solid var(--mapf-line); color: var(--mapf-ink-soft); }
.mapf-btn-danger { background: #fee2e2; color: var(--mapf-danger); }
.mapf-btn-block { width: 100%; }
.mapf-btn-lg { font-size: 18px; padding: 18px 26px; }
.mapf-btn-sm { font-size: 13px; padding: 8px 12px; border-radius: 10px; }

/* ---------- Tarjetas ---------- */
.mapf-card {
	background: var(--mapf-card);
	border: 1px solid var(--mapf-line);
	border-radius: var(--mapf-radius);
	padding: 18px;
	box-shadow: var(--mapf-shadow-sm);
}
.mapf-card + .mapf-card { margin-top: 14px; }
.mapf-card-pad { padding: 22px; }

/* ---------- Formularios ---------- */
.mapf-field { margin-bottom: 14px; }
.mapf-field label,
.mapf-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--mapf-ink);
}
.mapf-field .mapf-hint { font-size: 12.5px; color: var(--mapf-muted); margin-top: 4px; }
.mapf-input,
.mapf-textarea,
.mapf-select {
	width: 100%;
	font-family: var(--mapf-font);
	font-size: 16px;
	color: var(--mapf-ink);
	background: #fff;
	border: 2px solid var(--mapf-line);
	border-radius: 12px;
	padding: 12px 14px;
	transition: border-color .15s, box-shadow .15s;
}
.mapf-input:focus,
.mapf-textarea:focus,
.mapf-select:focus {
	outline: none;
	border-color: var(--mapf-c2);
	box-shadow: 0 0 0 4px rgba(20, 184, 166, .15);
}
.mapf-textarea { min-height: 110px; resize: vertical; }
.mapf-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mapf-row > * { flex: 1 1 220px; }
.mapf-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.mapf-check input { width: 20px; height: 20px; margin-top: 2px; }

/* ---------- Avisos / alertas ---------- */
.mapf-alert {
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14.5px;
	margin-bottom: 14px;
	border: 1px solid transparent;
}
.mapf-alert-info    { background: #ecfeff; border-color: #a5f3fc; color: #155e75; }
.mapf-alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.mapf-alert-warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.mapf-alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.mapf-legal {
	background: #fff7ed;
	border: 1px dashed #fdba74;
	color: #9a3412;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 13px;
	margin: 14px 0;
}

/* ---------- Píldoras / badges ---------- */
.mapf-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	background: var(--mapf-soft);
	color: var(--mapf-ink-soft);
}
.mapf-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

/* ---------- Encabezado de página interna ---------- */
.mapf-page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.mapf-page-head h1 { font-size: 26px; margin: 0; }
.mapf-breadcrumb { font-size: 13px; color: var(--mapf-muted); margin-bottom: 6px; }
.mapf-breadcrumb a { color: var(--mapf-muted); text-decoration: none; }

/* ---------- KPIs ---------- */
.mapf-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mapf-kpi {
	background: var(--mapf-card);
	border: 1px solid var(--mapf-line);
	border-radius: var(--mapf-radius);
	padding: 14px 16px;
	box-shadow: var(--mapf-shadow-sm);
}
.mapf-kpi .n { font-family: var(--mapf-display); font-size: 24px; font-weight: 800; color: var(--mapf-ink); }
.mapf-kpi .l { font-size: 12px; color: var(--mapf-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.mapf-kpi.good .n { color: var(--mapf-green); }
.mapf-kpi.warn .n { color: var(--mapf-warn); }

/* ---------- Barra de progreso (meta / tope) ---------- */
.mapf-progress { background: var(--mapf-soft); border-radius: 999px; height: 14px; overflow: hidden; }
.mapf-progress > span {
	display: block; height: 100%;
	background: linear-gradient(90deg, var(--mapf-c1), var(--mapf-c2));
	border-radius: 999px;
	transition: width .6s ease;
}
.mapf-progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--mapf-ink-soft); margin-bottom: 6px; font-weight: 700; }

/* ---------- Tablas responsive ---------- */
.mapf-table-wrap { overflow-x: auto; border-radius: var(--mapf-radius); border: 1px solid var(--mapf-line); }
.mapf-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; min-width: 720px; }
.mapf-table th, .mapf-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--mapf-line); white-space: nowrap; }
.mapf-table th { background: #f9fafb; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--mapf-muted); }
.mapf-table tr:last-child td { border-bottom: 0; }
.mapf-table .mapf-actions { display: flex; gap: 6px; }

/* ---------- Tabs ---------- */
.mapf-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--mapf-line); margin-bottom: 18px; padding-bottom: 0; }
.mapf-tab {
	border: 0; background: transparent; cursor: pointer;
	font-family: var(--mapf-display); font-weight: 700; font-size: 14.5px;
	color: var(--mapf-muted); padding: 12px 14px; white-space: nowrap;
	border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.mapf-tab.is-active { color: var(--mapf-c1); border-bottom-color: var(--mapf-c1); }
.mapf-tabpane { display: none; }
.mapf-tabpane.is-active { display: block; animation: mapf-fade .25s ease; }
@keyframes mapf-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Lista de actividades (panel) ---------- */
.mapf-act-list { display: grid; gap: 14px; }
.mapf-act {
	display: flex; gap: 14px; align-items: center;
	background: #fff; border: 1px solid var(--mapf-line);
	border-radius: var(--mapf-radius); padding: 14px; box-shadow: var(--mapf-shadow-sm);
	text-decoration: none; color: inherit;
}
.mapf-act:hover { box-shadow: var(--mapf-shadow); }
.mapf-act .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--mapf-soft); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.mapf-act .meta { flex: 1; min-width: 0; }
.mapf-act .meta h3 { font-size: 17px; margin: 0 0 2px; }
.mapf-act .meta small { color: var(--mapf-muted); }

/* =========================================================================
   LANDING PÚBLICA
   ========================================================================= */
body.mapf-landing { background: var(--mapf-bg); }
.mapf-landing {
	font-family: var(--mapf-font);
	color: var(--mapf-ink);
	max-width: 720px;
	margin: 0 auto;
	padding: 0 0 90px;
	--mapf-c1: var(--mapf-teal);
	--mapf-c2: var(--mapf-teal-2);
	--mapf-c3: var(--mapf-coral-2);
}
.mapf-hero {
	position: relative;
	background: linear-gradient(135deg, var(--mapf-c1), var(--mapf-c2));
	color: #fff;
	padding: 26px 20px 22px;
	border-radius: 0 0 26px 26px;
	overflow: hidden;
}
.mapf-hero .mapf-pill { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); }
.mapf-hero h1 { color: #fff; font-size: 27px; margin: 12px 0 8px; }
.mapf-hero .mapf-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; opacity: .95; }
.mapf-hero-img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.mapf-landing .mapf-section { padding: 18px 18px 0; }
.mapf-landing .mapf-section h2 { font-size: 19px; margin-bottom: 10px; }

/* Tarjetas de producto */
.mapf-products { display: grid; gap: 14px; }
.mapf-product {
	display: flex; gap: 14px;
	background: #fff; border: 1px solid var(--mapf-line);
	border-radius: var(--mapf-radius); padding: 14px; box-shadow: var(--mapf-shadow-sm);
}
.mapf-product .pic { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--mapf-soft); flex: 0 0 auto; display:flex;align-items:center;justify-content:center;font-size:30px;}
.mapf-product .body { flex: 1; min-width: 0; }
.mapf-product .body h3 { font-size: 16px; margin: 0 0 2px; }
.mapf-product .body .desc { font-size: 13.5px; color: var(--mapf-muted); margin: 0 0 8px; }
.mapf-product .price { font-family: var(--mapf-display); font-weight: 800; font-size: 19px; color: var(--mapf-c1); }
.mapf-product .row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Métodos de pago */
.mapf-pay { display: grid; gap: 10px; }
.mapf-pay .item {
	display: flex; align-items: center; gap: 12px;
	background: var(--mapf-soft); border-radius: 12px; padding: 12px 14px;
}
.mapf-pay .item b { font-family: var(--mapf-display); }
.mapf-pay .item .who { font-size: 12.5px; color: var(--mapf-muted); }
.mapf-pay-note { font-size: 13px; color: var(--mapf-ink-soft); font-weight: 700; margin-top: 8px; }

/* Compartir */
.mapf-share { display: flex; flex-wrap: wrap; gap: 10px; }
.mapf-share .mapf-btn { flex: 1 1 auto; }

/* Barra fija de acción en móvil */
.mapf-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--mapf-line);
	padding: 12px 16px;
	display: flex; gap: 10px;
	box-shadow: 0 -6px 20px rgba(15,23,42,.06);
}
.mapf-sticky .mapf-btn { flex: 1; }

/* Vendedor asignado */
.mapf-seller-tag {
	display: flex; align-items: center; gap: 10px;
	background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
	border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700;
}

/* ---------- QR ---------- */
.mapf-qr-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.mapf-qr { width: max-content; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--mapf-line); }
.mapf-qr canvas, .mapf-qr img { display: block; border-radius: 6px; }

/* =========================================================================
   MODALES (formulario de pedido, etc.)
   ========================================================================= */
.mapf-modal {
	position: fixed; inset: 0; z-index: 1000;
	display: none; align-items: flex-end; justify-content: center;
	background: rgba(15, 23, 42, .55);
	padding: 0;
}
.mapf-modal.is-open { display: flex; }
.mapf-modal-card {
	background: #fff; width: 100%; max-width: 560px;
	border-radius: 22px 22px 0 0;
	max-height: 94vh; overflow-y: auto;
	padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
	animation: mapf-up .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes mapf-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.mapf-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mapf-modal-head h2 { margin: 0; font-size: 20px; }
.mapf-modal-close { background: var(--mapf-soft); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; }

/* Selección de estado de pago */
.mapf-payopts { display: grid; gap: 10px; }
.mapf-payopt {
	display: flex; align-items: center; gap: 10px;
	border: 2px solid var(--mapf-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 600;
}
.mapf-payopt.is-active { border-color: var(--mapf-c2); background: #f0fdfa; }
.mapf-payopt input { width: 18px; height: 18px; }

/* Confirmación de pedido */
.mapf-confirm { text-align: center; padding: 10px 4px 4px; }
.mapf-confirm .check { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 38px; margin: 0 auto 12px; }
.mapf-confirm .codigo { font-family: var(--mapf-display); font-weight: 800; font-size: 28px; letter-spacing: 2px; color: var(--mapf-c1); margin: 6px 0 2px; }

/* =========================================================================
   HOME (marketing)
   ========================================================================= */
.mapf-home { font-family: var(--mapf-font); color: var(--mapf-ink); }
.mapf-home-hero {
	background: linear-gradient(135deg, var(--mapf-teal), var(--mapf-teal-2));
	color: #fff; text-align: center;
	padding: 56px 20px 50px; border-radius: 0 0 32px 32px;
}
.mapf-home-hero h1 { color: #fff; font-size: 34px; max-width: 740px; margin: 0 auto 14px; }
.mapf-home-hero p { font-size: 17px; opacity: .95; max-width: 640px; margin: 0 auto 24px; }
.mapf-home-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mapf-home-section { max-width: 1080px; margin: 0 auto; padding: 44px 18px; }
.mapf-home-section h2 { font-size: 26px; text-align: center; margin-bottom: 8px; }
.mapf-home-section .sub { text-align: center; color: var(--mapf-muted); max-width: 620px; margin: 0 auto 28px; }
.mapf-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mapf-feature { background: #fff; border: 1px solid var(--mapf-line); border-radius: var(--mapf-radius); padding: 18px; box-shadow: var(--mapf-shadow-sm); }
.mapf-feature .ico { font-size: 28px; }
.mapf-feature h3 { font-size: 16px; margin: 8px 0 4px; }
.mapf-feature p { font-size: 13.5px; color: var(--mapf-muted); margin: 0; }
.mapf-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mapf-type { background: #fff; border: 1px solid var(--mapf-line); border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--mapf-shadow-sm); }
.mapf-type .e { font-size: 30px; }
.mapf-type h4 { margin: 8px 0 0; font-size: 14.5px; }
.mapf-price-box { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border-radius: var(--mapf-radius-lg); padding: 32px 24px; text-align: center; max-width: 640px; margin: 0 auto; }
.mapf-price-box .big { font-family: var(--mapf-display); font-size: 42px; font-weight: 800; }
.mapf-price-box ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.mapf-transp { background: #ecfeff; border: 1px solid #a5f3fc; color: #155e75; border-radius: var(--mapf-radius); padding: 22px; text-align: center; max-width: 720px; margin: 0 auto; font-size: 15.5px; }

/* =========================================================================
   AUTH (login / registro)
   ========================================================================= */
.mapf-auth { max-width: 440px; margin: 30px auto; }
.mapf-auth .mapf-card { padding: 26px; }
.mapf-auth h1 { font-size: 24px; text-align: center; }
.mapf-auth .switch { text-align: center; font-size: 14px; color: var(--mapf-muted); margin-top: 16px; }

/* ---------- Asistente de creación (pasos) ---------- */
.mapf-steps { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; }
.mapf-step-dot { flex: 1; min-width: 70px; text-align: center; font-size: 12px; color: var(--mapf-muted); }
.mapf-step-dot .num { width: 30px; height: 30px; border-radius: 50%; background: var(--mapf-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 4px; font-family: var(--mapf-display); }
.mapf-step-dot.is-active .num { background: var(--mapf-c1); color: #fff; }
.mapf-step-dot.is-done .num { background: var(--mapf-green); color: #fff; }
.mapf-wizard-step { display: none; }
.mapf-wizard-step.is-active { display: block; animation: mapf-fade .25s ease; }
.mapf-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mapf-choice {
	border: 2px solid var(--mapf-line); border-radius: 14px; padding: 16px; cursor: pointer;
	text-align: center; background: #fff; transition: border-color .15s, transform .08s;
}
.mapf-choice:hover { transform: translateY(-2px); }
.mapf-choice.is-active { border-color: var(--mapf-c2); background: #f0fdfa; }
.mapf-choice .e { font-size: 30px; }
.mapf-choice h4 { margin: 8px 0 4px; font-size: 15px; }
.mapf-choice p { font-size: 12px; color: var(--mapf-muted); margin: 0; }
.mapf-swatch { display: inline-flex; gap: 4px; margin-top: 8px; justify-content: center; }
.mapf-swatch i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.mapf-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* Filas de productos dinámicas */
.mapf-prod-row { background: var(--mapf-soft); border-radius: 14px; padding: 14px; margin-bottom: 12px; position: relative; }
.mapf-prod-row .remove { position: absolute; top: 8px; right: 8px; background: #fee2e2; color: var(--mapf-danger); border: 0; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; }

/* Ranking */
.mapf-rank { display: grid; gap: 8px; }
.mapf-rank-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--mapf-line); border-radius: 12px; padding: 10px 14px; }
.mapf-rank-item .pos { font-family: var(--mapf-display); font-weight: 800; font-size: 18px; color: var(--mapf-c1); width: 26px; }
.mapf-rank-item .grow { flex: 1; min-width: 0; }

/* Utilidades */
.mapf-muted-txt { color: var(--mapf-muted); }
.mapf-center { text-align: center; }
.mapf-mt { margin-top: 16px; }
.mapf-mt-lg { margin-top: 26px; }
.mapf-mb { margin-bottom: 16px; }
.mapf-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mapf-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mapf-empty { text-align: center; color: var(--mapf-muted); padding: 30px 16px; }
.mapf-empty .e { font-size: 40px; display: block; margin-bottom: 8px; }
.mapf-divider { height: 1px; background: var(--mapf-line); margin: 18px 0; border: 0; }
.mapf-spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: mapf-spin .7s linear infinite; }
@keyframes mapf-spin { to { transform: rotate(360deg); } }
.mapf-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 2000; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.mapf-toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* =========================================================================
   RESPONSIVE — escritorio
   ========================================================================= */
@media (min-width: 720px) {
	.mapf-kpis { grid-template-columns: repeat(4, 1fr); }
	.mapf-features { grid-template-columns: repeat(3, 1fr); }
	.mapf-types { grid-template-columns: repeat(5, 1fr); }
	.mapf-choices { grid-template-columns: repeat(3, 1fr); }
	.mapf-modal { align-items: center; }
	.mapf-modal-card { border-radius: 22px; }
	.mapf-sticky { position: static; background: transparent; border: 0; box-shadow: none; padding: 18px 0 0; }
	.mapf-home-hero h1 { font-size: 44px; }
}

/* =========================================================================
   ASISTENTE DE AYUDA (widget flotante)
   ========================================================================= */
.mapf-assist { position: static; }

.mapf-assist-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(120deg, var(--mapf-c1), var(--mapf-c2));
	font-family: var(--mapf-display);
	font-weight: 800;
	font-size: 15px;
	padding: 13px 18px;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
	transition: transform .15s ease, box-shadow .15s ease;
}
.mapf-assist-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 23, 42, .34); }
.mapf-assist-fab-ico { font-size: 19px; line-height: 1; }
.mapf-assist.is-open .mapf-assist-fab { opacity: 0; pointer-events: none; }

.mapf-assist-panel {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 1200;
	width: 390px;
	max-width: calc(100vw - 36px);
	max-height: min(82vh, 720px);
	background: #fff;
	border: 1px solid var(--mapf-line);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .32);
	display: none;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(14px);
	opacity: 0;
	transition: transform .2s ease, opacity .2s ease;
}
.mapf-assist-panel.is-open { display: flex; transform: translateY(0); opacity: 1; animation: mapf-fade .22s ease; }

.mapf-assist-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px;
	color: #fff;
	background: linear-gradient(120deg, var(--mapf-c1), var(--mapf-c2));
}
.mapf-assist-head strong { font-family: var(--mapf-display); font-size: 17px; }
.mapf-assist-sub { font-size: 12.5px; opacity: .95; margin-top: 2px; }
.mapf-assist-x {
	background: rgba(255,255,255,.2);
	border: 0; color: #fff;
	width: 34px; height: 34px;
	border-radius: 50%;
	font-size: 20px; line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
}

.mapf-assist-note { padding: 14px 18px 0; }
.mapf-assist-note-txt {
	background: var(--mapf-soft);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--mapf-ink-soft);
}
.mapf-assist-link {
	display: inline-block;
	margin-top: 10px;
	background: var(--mapf-c1);
	color: #fff;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	font-family: var(--mapf-display);
	font-weight: 700;
	font-size: 13.5px;
	padding: 9px 14px;
	border-radius: 10px;
}
.mapf-assist-link:hover { filter: brightness(1.05); }

.mapf-assist-tabs { display: flex; gap: 4px; padding: 14px 18px 0; }
.mapf-assist-tab {
	flex: 1;
	border: 0;
	background: var(--mapf-soft);
	cursor: pointer;
	font-family: var(--mapf-display);
	font-weight: 700;
	font-size: 13.5px;
	color: var(--mapf-muted);
	padding: 9px 6px;
	border-radius: 10px;
}
.mapf-assist-tab.is-active { background: var(--mapf-c1); color: #fff; }

.mapf-assist-searchbox { padding: 12px 18px 4px; }
.mapf-assist-searchbox input {
	width: 100%;
	font-family: var(--mapf-font);
	font-size: 15px;
	border: 2px solid var(--mapf-line);
	border-radius: 12px;
	padding: 10px 14px;
	background: #fff;
	color: var(--mapf-ink);
}
.mapf-assist-searchbox input:focus { outline: none; border-color: var(--mapf-c2); }

.mapf-assist-body { padding: 8px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mapf-assist-intro { font-size: 13.5px; color: var(--mapf-muted); margin: 8px 0 12px; }
.mapf-assist-desc { font-size: 14px; color: var(--mapf-ink-soft); white-space: pre-line; margin: 0; line-height: 1.5; }

/* Pasos de la guía */
.mapf-assist-step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mapf-line); }
.mapf-assist-step:last-child { border-bottom: 0; }
.mapf-assist-step-n {
	flex: 0 0 auto;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: linear-gradient(120deg, var(--mapf-c1), var(--mapf-c2));
	color: #fff;
	font-family: var(--mapf-display);
	font-weight: 800;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px;
}
.mapf-assist-step-c { flex: 1; min-width: 0; }
.mapf-assist-step-c h4 { margin: 2px 0 4px; font-size: 15px; }

/* Categorías / temas */
.mapf-assist-cat { border: 1px solid var(--mapf-line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.mapf-assist-cat-head {
	width: 100%;
	display: flex; align-items: center; justify-content: space-between;
	background: #fff;
	border: 0; cursor: pointer;
	font-family: var(--mapf-display);
	font-weight: 700; font-size: 14.5px;
	color: var(--mapf-ink);
	padding: 13px 14px;
	text-align: left;
}
.mapf-assist-cat-head.is-open { color: var(--mapf-c1); }
.mapf-assist-chev { transition: transform .2s ease; color: var(--mapf-muted); }
.mapf-assist-cat-head.is-open .mapf-assist-chev { transform: rotate(180deg); }
.mapf-assist-cat-items { padding: 0 14px 8px; }

.mapf-assist-item { border-top: 1px solid var(--mapf-line); }
.mapf-assist-cat-items .mapf-assist-item:first-child { border-top: 0; }
.mapf-assist-item-head {
	width: 100%;
	background: transparent; border: 0; cursor: pointer;
	text-align: left;
	font-weight: 600; font-size: 14px;
	color: var(--mapf-ink);
	padding: 11px 0;
	position: relative;
	padding-right: 22px;
}
.mapf-assist-item-head::after { content: '+'; position: absolute; right: 2px; top: 10px; color: var(--mapf-muted); font-size: 17px; }
.mapf-assist-item-head.is-open::after { content: '−'; color: var(--mapf-c1); }
.mapf-assist-item-body { padding: 0 0 12px; }

/* Resultados de búsqueda */
.mapf-assist-result { border: 1px solid var(--mapf-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.mapf-assist-result h4 { margin: 2px 0 5px; font-size: 14.5px; }
.mapf-assist-result-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--mapf-c1); font-weight: 700; }
.mapf-assist-empty { font-size: 14px; color: var(--mapf-muted); padding: 10px 0; }

.mapf-assist-foot { text-align: center; font-size: 11.5px; color: var(--mapf-muted); padding: 10px; border-top: 1px solid var(--mapf-line); }

@media (max-width: 720px) {
	.mapf-assist-panel {
		right: 0; left: 0; bottom: 0;
		width: 100%;
		max-width: 100%;
		max-height: 88vh;
		border-radius: 20px 20px 0 0;
		border-left: 0; border-right: 0; border-bottom: 0;
	}
	.mapf-assist-fab { right: 14px; bottom: 14px; padding: 12px 16px; }
	body.mapf-assist-lock { overflow: hidden; }
}

/* En la landing (móvil) sube el botón del asistente sobre la barra fija de pedido. */
@media (max-width: 720px) {
	body.mapf-landing .mapf-assist-fab { bottom: 90px; }
}
